Method, apparatus, device, medium and program product for editing media content
Patent Information
- Application Number
- CN202611140156.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-10-30
AI Technical Summary
在编辑过程中,用户往往难以直观、准确地指定要修改的目标元素,编辑也难以准确地针对期望的对象展开
[0008]以此方式,媒体内容中的文本元素以条目形式被结构化地呈现给用户,并且能够经由界面中的编辑组件被直接编辑。用户能够直观、准确地指定并修改媒体内容中的目标元素,编辑过程中的歧义得以减少。编辑结果被直接应用到媒体内容,从而形成从元素告知、元素编辑到结果呈现的完整闭环。
Smart Images

Figure CN123011102A_ABST
Abstract
Description
Technical Field
[0001] The examples in this article generally relate to the field of computers, and in particular to methods, apparatus, devices, media, and program products for editing media content. Background Technology
[0002] The creation and editing of media content typically rely on natural language descriptions to express modification intentions, or on a combination of markers to indicate where changes should be made. During the editing process, users often struggle to intuitively and accurately specify the target elements to be modified, and editors also find it difficult to precisely target the desired object. The industry is demanding more intuitive and accurate methods for editing media content. Summary of the Invention
[0003] In a first aspect of this document, a method for editing media content is provided. The method includes: presenting a first interface, the first interface including a first region and a second region, the first region displaying first media content, the second region including a first entry describing a first text element in the first media content; presenting a first editing component in the first region, the first editing component presenting first text content corresponding to the first text element; receiving a first operation in the first editing component, the first operation editing the first text content into second text content; and presenting second media content in the first region, the second media content including a second text element corresponding to the second text content.
[0004] In a second aspect of this document, an apparatus for editing media content is provided. The apparatus includes: a first presentation module for presenting a first interface, the first interface including a first area and a second area, the first area displaying first media content, and the second area including a first entry describing a first text element in the first media content; a second presentation module for presenting a first editing component in the first area, the first editing component presenting first text content corresponding to the first text element; a receiving module for receiving a first operation in the first editing component, the first operation editing the first text content into second text content; and a third presentation module for presenting second media content in the first area, the second media content including a second text element corresponding to the second text content.
[0005] In a third aspect of this document, an electronic device is provided. The device includes at least one processor; and at least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor. When executed by the at least one processor, the instructions cause the electronic device to perform the method of the first aspect.
[0006] In a fourth aspect of this document, a computer-readable storage medium is provided. This computer-readable storage medium stores a computer program that can be executed by a processor to implement the method of the first aspect.
[0007] In a fifth aspect of this document, a computer program product is provided, which is tangibly stored in a computer-readable storage medium and includes computer-executable instructions that, when executed by an electronic device, cause the electronic device to perform the method of the first aspect.
[0008] In this way, text elements in media content are presented to users in a structured, itemized format and can be directly edited via editing components in the interface. Users can intuitively and accurately specify and modify target elements in the media content, reducing ambiguity during the editing process. The edited results are directly applied to the media content, thus forming a complete closed loop from element notification and editing to result presentation.
[0009] It should be understood that the content described in this section is not intended to limit the key or important features of the examples in this article, nor is it intended to restrict the scope of the solution. Other features will become readily apparent from the following description. Attached Figure Description
[0010] The above and other features, advantages, and aspects of the various examples herein will become more apparent when taken in conjunction with the accompanying drawings and the following detailed description. In the accompanying drawings, the same or similar reference numerals denote the same or similar elements, wherein: Figure 1 A schematic diagram of the example environment is shown; Figures 2A to 2D A schematic diagram of an example interface for editing media content based on several scenarios is shown; Figures 3A to 3D The diagrams show some other example interfaces for editing media content according to certain scenarios; Figures 4A to 4F The diagram shows further example interfaces for editing media content according to various scenarios; Figure 5 A flowchart illustrating an example process for editing media content based on several scenarios is provided. Figure 6 A block diagram of a device for editing media content is shown, according to several scenarios; and Figure 7 A block diagram is shown of an electronic device capable of implementing one or more examples. Detailed Implementation
[0011] The examples in this document will now be described in more detail with reference to the accompanying drawings. While some examples are shown in the drawings, it should be understood that solutions can be implemented in various forms and should not be construed as limited to the examples presented herein. Rather, these examples are provided to provide a more thorough and complete understanding of the solutions. It should be understood that the drawings and examples in this document are for illustrative purposes only and are not intended to limit the scope of protection of the solutions.
[0012] It should be noted that the headings of any section / subsection provided herein are not restrictive. Various examples are described throughout this document, and examples of any type may be included under any section / subsection. Furthermore, examples described in any section / subsection may be combined in any way with any other examples described in the same section / subsection and / or different sections / subsections.
[0013] In the description of the examples in this document, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based on". The term "an example" or "the example" should be understood as "at least one example". The term "some examples" should be understood as "at least some examples". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0014] The examples in this document may involve user data, data acquisition, and / or use. All of these aspects comply with relevant laws, regulations, and rules. In the examples, all data collection, acquisition, processing, manipulation, forwarding, and use are conducted with the user's knowledge and confirmation. Accordingly, when implementing each example, the type, scope of use, and usage scenarios of any data or information that may be involved should be communicated to the user and their authorization obtained through appropriate means, in accordance with relevant laws and regulations. The specific methods of notification and / or authorization can vary depending on the actual situation and application scenario; the scope of the solution is not limited in this regard.
[0015] In this manual and the sample solutions, any processing of personal information will be conducted only under legal grounds (such as obtaining the consent of the data subject or being necessary for the performance of a contract) and will only be carried out within the scope stipulated or agreed upon. A user's refusal to process personal information beyond what is necessary for basic functions will not affect the user's use of basic functions.
[0016] The term "media content" as used in this article refers to content that can be presented and edited, including but not limited to images, pictures, template images, video frames, or any combination thereof.
[0017] The term "element" as used in this article refers to the identifiable and editable components of media content, which may include, but are not limited to, text, graphics, people, objects, decorations, shapes, backgrounds, etc.
[0018] The term "text element" as used in this article refers to elements in media content that are presented in text form, such as headlines, body text, and copy.
[0019] The term "layer" as used in this article refers to the hierarchical unit obtained by dividing media content into elements. A layer can include one or more elements, such as a person layer, a text layer, a shape layer, a background layer, etc.
[0020] The term "entry" as used in this article refers to an interface item used to describe an element or layer in media content, which may include, but is not limited to, list items, form items, card items, etc. in a panel.
[0021] The term "editing component" as used in this article refers to an interface component that receives editing operations on elements, and may include, but is not limited to, text input boxes, editable text boxes, form controls, or other appropriate controls.
[0022] As used in this article, the term "editing panel" refers to an interface panel containing one or more entries for centralized presentation and editing of one or more elements in media content.
[0023] The term "descriptive information" as used in this article refers to information used to describe elements in media content, which may include, but is not limited to, element indexes, element text descriptions, element thumbnails, etc.
[0024] As used in this article, the term "identifier" refers to a graphic or symbol presented in media content to indicate elements, which may include, but is not limited to, superscripts, serial numbers, borders, etc.
[0025] The term "edit request" as used in this article refers to information used to request editing of an element, which may include, but is not limited to, text modification requests, replacement requests, and erase requests.
[0026] The term "input component" as used in this article refers to an interface component used to receive editing requests for elements, which may include, but is not limited to, input boxes, floating input panels, or other appropriate controls.
[0027] The term "interactive component" as used in this article refers to a UI component used to aggregate and present one or more inputs, which may include, but is not limited to, input fields, conversation panels, or other appropriate components.
[0028] As used in this article, the term "processing entity" refers to an entity that performs processing such as identification, generation, or editing of media content, and may include, but is not limited to, processing modules running on electronic devices, processing services running on servers, machine learning models, or any combination thereof.
[0029] The term “Optical Character Recognition (OCR)” as used in this article refers to the technology of recognizing and extracting text content from images.
[0030] The term "Vision Language Model (VLM)" as used in this paper refers to a machine learning model capable of jointly processing image and text information. It can be used to identify objects in an image and provide their names or descriptions. In this paper, "intelligent system" refers to a system capable of autonomous control based on a machine learning model. An intelligent system is, for example, a virtual object or entity that can make decisions and autonomously execute actions based on a machine learning model to achieve preset goals or complete preset tasks. An intelligent system can be an automated program that understands the user's intent and can utilize models or invoke tools to complete various types of tasks. In some cases, examples of intelligent systems may include, but are not limited to, agents, bots, chatbots, digital avatars, intelligent customer service, and digital assistants. Alternatively, an intelligent system can also be an intelligent role implemented based on a machine learning model. An "intelligent system" can process user requests based on generative models (e.g., language models, multimodal models) to perform specified types of tasks. In some cases, an intelligent system may also be associated with a virtual account, which may have a corresponding avatar or nickname.
[0031] As mentioned above, the creation and editing of media content typically relies on natural language descriptions to express modification intentions, or combines this with some marking tools to indicate the modification locations. In this editing approach, users find it difficult to intuitively and accurately specify the target element to be modified, and the editing intentions regarding the target element are prone to ambiguity. For example, when there are multiple elements close to or overlapping each other in the media content, the location specified by the user may involve multiple elements simultaneously, making it difficult to determine the object to be edited. Consequently, the editing process may require users to repeatedly describe and adjust, resulting in numerous interaction rounds, and the accuracy of the editing is difficult to guarantee.
[0032] A scheme for editing media content is proposed. According to the scheme, a first interface is presented, comprising a first area and a second area. The first area displays first media content, and the second area includes a first entry describing a first text element in the first media content. A first editing component is presented in the first area, displaying first text content corresponding to the first text element. At the first editing component, a first operation to edit the first text content into second text content is received. Second media content is presented in the first area, including a second text element corresponding to the second text content.
[0033] Through the above approach, text elements in media content are presented to users in a structured manner and can be directly edited, allowing users to intuitively and accurately modify target elements. Because editing directly targets the provided elements, ambiguity in editing intent is reduced. Ineffective editing attempts and repetitive interaction rounds are also reduced, and the computational overhead caused by identifying and generating erroneous objects is decreased.
[0034] The following describes various examples of this scheme in further detail with reference to the accompanying drawings.
[0035] Figure 1 A schematic diagram of example environment 100 is shown. (e.g.) Figure 1 As shown, example environment 100 may include electronic device 110.
[0036] In this example environment 100, electronic device 110 may run an application 120 that supports editing media content. Application 120 may be any suitable type of application for editing media content, including but not limited to image editing applications, content creation applications, office applications, or other suitable applications. User 140 may interact with application 120 via electronic device 110 and / or its attached devices.
[0037] exist Figure 1 In environment 100, if application 120 is active, electronic device 110 can use application 120 to present interface 150 for supporting the editing of media content.
[0038] In some cases, electronic device 110 communicates with server 130 to provide services to application 120. Electronic device 110 can be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable gaming terminals, virtual reality (VR) / augmented reality (AR) devices, personal communication system (PCS) devices, personal navigation devices, personal digital assistants (PDAs), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio receivers, e-book devices, gaming devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some cases, electronic device 110 can also support any type of user-facing interface (such as "wearable" circuitry).
[0039] Server 130 can be a single physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and artificial intelligence platforms. Server 130 may include, for example, computing systems / servers such as mainframes, edge computing nodes, computing devices in a cloud environment, etc. Server 130 can provide backend services for applications 120 in electronic devices 110 that support editing media content.
[0040] A communication connection can be established between server 130 and electronic device 110. This communication connection can be established via wired or wireless means. The communication connection can include, but is not limited to, Bluetooth, mobile network, Universal Serial Bus (USB), and Wireless Fidelity (WiFi) connections. In some cases, server 130 and electronic device 110 can exchange signaling information through their communication connection.
[0041] It should be understood that the structure and function of the various elements in environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of the scheme.
[0042] The following description of the example will continue with reference to the accompanying drawings.
[0043] The examples described herein can be implemented on electronic device 110. It should be noted that the operations described relative to electronic device 110 can be performed by a related application 120 running on electronic device 110. The interface described relative to electronic device 110 can be provided by application 120; for example, electronic device 110 presents the corresponding interface by running application 120. Furthermore, some operations described relative to electronic device 110 may require the assistance of server 130 to complete.
[0044] Furthermore, the processing described in this paper, such as element recognition, text extraction, and media content generation, can be implemented using various architectures. In some cases, these processes can be performed independently by electronic device 110. For example, electronic device 110 can run a machine learning model locally for recognition and generation, using the local model to recognize media content and generate edited media content. In other cases, these processes can be performed independently by server 130. For example, electronic device 110 can send the media content to be processed and related editing information to server 130, which will then perform the recognition and generation processes and return the results to electronic device 110 for presentation. In still other cases, these processes can be jointly performed by electronic device 110 and server 130. For example, electronic device 110 can perform lightweight recognition processing locally, while delegating the more expensive generation processing to server 130, with the two exchanging intermediate results via a communication connection. The scope of the solution is not limited in terms of implementation architecture.
[0045] Figure 2A A schematic diagram of a sample interface 200A for editing media content according to certain scenarios is shown. Figures 2A to 2D The examples primarily involve layer-based media content editing. See below for reference. Figure 2A To describe the process of editing media content.
[0046] like Figure 2A As shown, interface 200A can be an example of interface 150 described above. On interface 200A, electronic device 110 presents a first area 202 and a second area 204. The first area 202 displays first media content 201. In this example, the first media content 201 can be an image to be edited, which includes graphic elements such as people, shapes, and backgrounds, as well as text elements such as text 1 and text 2.
[0047] In some cases, the primary media content can also be video frames within a video. Editing elements within a video frame can be performed in a similar manner to the above, and the edited video frame can be updated into the corresponding video.
[0048] like Figure 2AAs shown, the second area 204 includes a screen element panel, which displays items 208-1, 208-2, 208-3, 208-4 and 208-5.
[0049] It should be understood that in some cases, depending on the scenario, each entry may correspond to one or more elements. Examples of such correspondences will be described further below.
[0050] exist Figure 2A In this context, item 208-1 describes a person element in the first media content 201, item 208-2 describes a text element (e.g., text 1) in the first media content 201, item 208-3 describes another text element (e.g., text 2) in the first media content 201, item 208-4 describes a shape element in the first media content 201, and item 208-5 describes a background element in the first media content 201. Item 208-2 can be referred to as the first item, and the text 1 described in item 208-2 can be referred to as the first text element. Figure 2A The diagram also shows a scope identifier 206, which can be a bounding box presented in the first media content 201 based on the selection of item 208-2, the details of which will be combined below. Figure 2B Further description. In addition, Interface 200A can also display template controls and template lists, as well as other controls such as reset controls, confirmation controls, and export controls. The confirmation control is used to apply edits to media content.
[0051] By providing a second area 204 containing various items outside the first area 202 displaying the first media content 201, the elements in the first media content 201 are presented to the user in a structured manner as items. Users can understand the editable elements in the media content without having to identify each element individually on the screen. Because the descriptions of the elements are presented collectively in the same interface as items, the electronic device 110 does not need to load additional detail interfaces for each element separately, thus reducing rendering overhead and the number of interface switching times.
[0052] In some cases, electronic device 110 can acquire first media content 201 based on an upload operation or a template selection operation. Figure 2A As an example, the left side of interface 200A presents template controls and a template list, from which the user can select a template as the first media content 201. Alternatively and / or additionally, the user can upload a local image as the first media content 201 via an upload operation. In this way, the user can obtain media content to be edited with fewer operations, and the source of media content is more flexible. Since templates can be reused, the computational overhead of generating media content from scratch is reduced. The number of times complete media content is transmitted between the edge and the cloud can also be reduced accordingly.
[0053] In some cases, multiple elements in the first media content 201 are divided into multiple layers, including the first layer. Figure 2A As an example, the elements in the first media content 201 are divided into layers such as a character layer, a text layer, a shape layer, and a background layer. Entries 208-1 to 208-5 correspond to the respective layers, with entry 208-2 corresponding to the first layer including the text "1," and the character elements in the character layer corresponding to entry 208-1 belonging to another layer. This layer division can be achieved, for example, by the electronic device 110 and / or the server 130 using appropriate image segmentation processing. In this way, the elements in the media content are organized into independent layers before editing begins, allowing the user to select and edit elements within layer boundaries. Because each layer is independent, processing a single layer does not require data from other layers, reducing the amount of data involved in recognition and generation processing. The accuracy of the processing is also correspondingly improved.
[0054] Figure 2B A schematic diagram of an example interface 200B for editing media content is shown, based on several scenarios. Interface 200B can be the state of interface 200A after the first item is selected and the first editing component is presented.
[0055] In some cases, the first item corresponds to the first layer in the first media content, and the first layer includes the first text element. The electronic device 110 can receive a fifth operation in the second area 204, the fifth operation being used to select the first item. Figure 2B As an example, a user performs a fifth action, such as clicking, on item 208-2 in the second area 204 to select item 208-2. Figure 2B Entry 208-2 and Figure 2A Entry 208-2 in the text is the same entry. Figure 2A This indicates that the item is not selected. Figure 2B This shows the state of the item after it has been selected via the fifth operation. Based on the fifth operation, the first layer corresponding to item 208-2 is determined as the layer to be edited. In this way, the user can intuitively specify the object to be edited on a layer-by-layer basis, making element selection more intuitive. Since the selection is based on the item rather than the screen position, the electronic device 110 does not need to perform additional recognition processing on the user's position input on the screen, reducing the computational overhead required for the selection process. Invalid processing due to misselection is also reduced accordingly.
[0056] In some cases, the electronic device 110 may present first descriptive information in the first entry, the first descriptive information being used to describe the first text element. In some cases, the first descriptive information may include a thumbnail of the first layer. Figure 2A and Figure 2B As an example, the left side of entry 208-2 presents a thumbnail of the first layer, showing the text "1" in a reduced format. In this way, the user can preview the layer's content via a thumbnail without expanding the layer. Because the thumbnail's data size is much smaller than the original layer, the rendering overhead and memory usage required for loading and refreshing the entry are reduced. Alternatively and / or additionally, the first descriptive information may include a text description of the first layer. Figure 2A and Figure 2B As an example, entry 208-2 presents text descriptions such as "Text Layer 1". In this way, users can quickly distinguish between layers based on the text descriptions. Because the text descriptions can express the layer type with a few characters, the amount of data that the interface needs to transmit and render is further reduced.
[0057] In some cases, electronic device 110 can, based on a fifth operation, present a range identifier in the first media content, the range identifier representing the range of the first layer, and electronic device 110 can receive a sixth operation within the area corresponding to the range identifier. Figure 2A As an example, in response to entry 208-2 being selected via the fifth operation, electronic device 110 displays a range identifier 206 at the location of text 1 in the first media content 201. The range identifier 206 represents the range of the first layer, for example, in the form of a bounding box. Subsequent sixth operations by the user, such as circling or highlighting words, are received within the area corresponding to the range identifier 206. In this way, the user knows the range of the selected layer before circling, and the circling operation is constrained within this range. Even if multiple elements overlap on the screen, the user will not mistakenly select elements in other layers. Since the circling is constrained to the defined range, electronic device 110 does not need to recognize and process screen content outside the range, thus reducing the amount of data and computational overhead involved in recognition. The repeated editing and regeneration caused by misselection are also reduced accordingly.
[0058] In some cases, electronic device 110 can receive a sixth operation for selecting a third region within the first media content, the third region including a first text element, and electronic device 110 can present a first editing component based on the sixth operation. Figure 2B As an example, users in Figure 2A Within the area corresponding to the range identifier 206, the third area including the text 1 is selected through a sixth operation such as circling or highlighting. Based on the sixth operation, the electronic device 110 presents a first editing component 214 in the first area 202. The first editing component 214 can be an editable text box located in the original position of the text element being edited. Figure 2BAs shown, the first editing component 214 displays the text corresponding to text 1 by default, i.e., the first text content. In this way, users can directly specify the content to be edited by circling or highlighting words, and the first editing component is displayed on demand. Since the editing component is only displayed when triggered, the number of persistent components in the interface is reduced, and the rendering overhead and memory usage of the interface are reduced accordingly.
[0059] In some cases, the first text content is extracted through optical character recognition (OCR) of the first media content. Figure 2B As an example, electronic device 110 performs optical character recognition on text 1 in the third region, thereby extracting the text content of text 1 into editable first text content in the first editing component 214. The relevant recognition processing can be performed locally by electronic device 110, or by server 130 which returns the recognition result to electronic device 110, or by both working together. In this way, the text that was originally part of the image content is converted into editable text, allowing the user to modify the existing content without re-entering all the text. Since recognition is performed only on the selected region, the amount of image data processed is reduced, and the recognition latency and computational overhead are correspondingly lowered. The focused recognition range also helps improve recognition accuracy. In the case where recognition is performed locally by electronic device 110, text extraction can be completed without the media content leaving the device, reducing the number of data transmissions and the data exposure area between the device and the cloud.
[0060] In some cases, electronic device 110 may present a first editing component that covers at least a portion of the third region. Figure 2B As an example, the first editing component 214 covers at least a portion of the third area, so that the editable text is presented in the original position of text 1. In this way, the user's gaze does not need to switch back and forth between the screen and other areas, the editing position remains consistent with the presentation position, and the editing result is more intuitive. Since the editing is completed in place, the electronic device 110 does not need to lay out a separate editing interface for editing, and the number of times interface elements are created and destroyed is reduced. Rendering overhead and memory usage are correspondingly reduced.
[0061] In some cases, the first entry corresponds to the first layer in the first media content, and the first layer includes the first text element. In this case, the third area may also include a second element in the first media content, which belongs to the second layer in the first media content, and the electronic device 110 may, based on the fifth and sixth operations, present a first editing component whose content belongs to the first layer, such as the first text content. Figure 2BAs an example, the text "1" and the character element are close to each other in the image. The third area selected by the user includes not only the text "1" in the first layer, but also a part of the character element that overlaps with the text "1" (such as the character's hand). The character element can be called the second element, and its corresponding character layer can be called the second layer. Since the first layer has already been selected based on the fifth operation, the electronic device 110 presents the first editing component 214 based on the fifth and sixth operations. The content presented by the first editing component 214 belongs to the first layer, that is, it only includes the content corresponding to the text "1", and does not include the content in the character layer. In this way, even if multiple elements overlap or superimpose in the image, the editing is only performed on the elements in the selected layer, and the selection and editing of elements are unambiguous. Since the content of other layers does not enter the recognition and editing process, invalid recognition and invalid generation for other layers are avoided, and the corresponding computational overhead and repeated editing rounds are reduced.
[0062] Figure 2C A schematic diagram of an example interface 200C for editing media content according to certain scenarios is shown. Interface 200C can be the state of interface 200B during the process of the first operation being received.
[0063] like Figure 2C As shown, in the first editing component 214, the electronic device 110 receives a first operation, which edits the first text content into a second text content. For example, the user edits the first text content corresponding to the text 1 into a second text content such as the text 3 in the first editing component 214. Figure 2C The text 3 and input cursor presented in the first editing component 214 illustrate the editing process. In this way, users can directly modify the text on the screen as if editing ordinary text, making the editing operation less difficult. Since the editing occurs at the text level rather than the image level, the editing stage does not require repeated image generation processing, thus reducing the computational overhead during the editing process.
[0064] Figure 2D A schematic diagram of an example interface 200D for editing media content is shown, based on several scenarios. Interface 200D can be the state of interface 200C after editing has been applied.
[0065] like Figure 2D As shown, based on the first operation, the electronic device 110 presents second media content 242 in the first area 202. For example, in response to a user's triggering of a confirmation control, the electronic device 110 presents the second media content 242 in the first area 202, the second media content 242 including a second text element ( Figure 2D(The second text element corresponds to the second text content, i.e., the second text element is derived from the second text content). The second text element can be obtained, for example, by electronic device 110 and / or server 130 by re-rendering or regenerating the second text content. In this way, after completing text editing, the user can intuitively see the edited effect on the original interface, with editing and previewing completed in a closed loop within the same interface. Because the result is presented locally on the current interface, there is no need to jump to a separate preview interface, reducing the number of interface loads and corresponding rendering overhead. The number of interface requests sent to the server is also reduced accordingly.
[0066] In some cases, electronic device 110 can update the first entry, the updated first entry describing the second text element. In some cases, the update of the first entry can be based on a first operation, such as receiving a first operation. In some cases, the update of the first entry can be based on the generation of second media content.
[0067] by Figure 2D As an example, Figure 2D The updated first entry 212 is shown in the image. Entry 212 and... Figure 2A and Figure 2B Entry 208-2 is the same entry; entry 208-2 shows the state of the entry before it was edited, and entry 212 shows the state of the entry after it was updated based on the first operation. The thumbnail and text description of the updated entry 212 are changed from description text 1 to description text 3, that is, from describing the first text element to describing the second text element. In this way, the description on the entry side is consistent with the editing result on the screen, and the user can know the current content of each element at any time through the entry. Since the entry is updated in place based on the existing editing result, the electronic device 110 does not need to re-perform recognition processing on the media content, thus saving the computational overhead related to recognition.
[0068] In some cases, the content in the second media content, excluding the second text element, is consistent with the content in the first media content, excluding the first text element. Figure 2D As an example, the characters, shapes, backgrounds, and text 2 in the second media content 242 are consistent with those in the first media content 201, except that text 1 is replaced with text 3. In this way, users can be assured that the editing only affects the target element, and the rest of the screen content remains unchanged, ensuring that the editing result is controllable and meets expectations. Since the unedited content does not need to participate in the generation process, the amount of data and computational overhead involved in generation is reduced.
[0069] In some scenarios, the second media content is regenerated layer by layer, while layers in the first media content other than the first layer are not regenerated. For example, electronic device 110 and / or server 130 only regenerate the first layer, which includes the second text element; the remaining layers remain unchanged and are composited with the regenerated first layer to form the second media content 242. In this way, the smallest unit of generation can be a single layer rather than the entire media content, allowing users to achieve more controlled and localized editing. Since regeneration is performed on only a single layer, the computational overhead and latency required for generation are significantly reduced. In the case where generation is performed by server 130, the amount of data transferred between the edge and the cloud, as well as the server's generation load, are also reduced accordingly.
[0070] Figure 3A A schematic diagram of another example interface 300A for editing media content according to certain scenarios is shown. Figures 3A to 3D The examples primarily involve editing media content that includes a large number of text elements.
[0071] like Figure 3A As shown, in interface 300A, electronic device 110 displays first media content 310 in the first area. The first media content 310 includes multiple text elements such as text 1, text 2, text 3, and text 4. The division of the first and second areas in interface 300A is consistent with the above description. Figure 2A The first region 202 and the second region 204 described are similar. The toolbar of interface 300A displays an editing text control 302, as well as other controls such as cutout, erase, enlarge, and sharpen. In response to a trigger operation on the editing text control 302, electronic device 110 extracts text from the first media content 310, and displays a prompt message 304 during the extraction process to indicate that text extraction is in progress. In some cases, text extraction is achieved through optical character recognition (OCR) of the first media content 310. This processing can be performed by electronic device 110, server 130, or a combination of both. In this way, all text in the screen can be extracted at once with a single trigger, eliminating the need for the user to specify text individually. Because the extraction is performed on the entire screen at once, the number of recognition processing calls is reduced, correspondingly lowering the number of rounds and communication overhead in the end-to-cloud interaction.
[0072] Figure 3B A schematic diagram of an example interface 300B for editing media content is shown, based on certain scenarios. Interface 300B can be the state of interface 300A after text extraction is completed.
[0073] like Figure 3BAs shown, after text extraction is complete, the electronic device 110 presents an editing panel 315 in the second area of the interface 300B. The editing panel 315 is, for example, a "Custom Text" panel. The editing panel 315 includes entries 317-1, 317-2, 317-3, and 317-4, each describing text 1, text 2, text 3, and text 4 in the first media content 310, and each entry includes an editable input box displaying the corresponding text content. The editing panel 315 also includes a cancel control and a confirmation control, where the cancel control is used to abandon the current edit. Simultaneously, the electronic device 110 presents editing components 318-1, 318-2, 318-3, and 318-4 at the positions of each text element in the first media content 310. Each editing component is indicated by a dashed box, signifying that the corresponding text element has been extracted and is in an editable state, allowing the user to edit the text content in its original position. Figure 3B In the example, interface 300B can also be considered an example of the first interface: the area displaying the first media content 310 can be called the first area, the area presenting the editing panel 315 can be called the second area, item 317-1 can be called the first item, the text 1 described by item 317-1 can be called the first text element, and the editing component 318-1 located at the position of text 1 can be an implementation of the first editing component in this example. The text content presented in the editing component 318-1 corresponding to text 1 is the first text content. The text content presented in each editing component and each item is extracted by optical character recognition of the first media content 310. In this way, all the text in the screen is listed in the editing panel 315 in the form of items, and the editable states of the screen side and the panel side correspond to each other. The user can view the overall text and process each item one by one. Since all items are presented in the same panel, the user does not need to click on the screen to view the content of each text, and the number of recognition calls and interface refreshes on the screen side is reduced.
[0074] In some cases, the first item includes a second editing component that presents first text content. The electronic device 110 can receive a second operation within the second editing component. The second operation is used to edit the first text content, and a third media content is presented in a first area, the third media content being obtained based on the second operation. Figure 3B and Figure 3CAs an example, item 317-1 includes a second editing component, which can be an editable input box in item 317-1 that displays the first text content, allowing the user to directly edit the first text content within this editable input box. Correspondingly, the same text element can be edited via editing component 318-1 in the first area or via the second editing component of item 317-1 in the second area, forming a dual editing entry point. After editing is applied, the electronic device 110 displays the third media content obtained based on the second operation in the first area. In this way, the user can edit both on the screen side and on the panel side, making the editing entry point more flexible. Since panel-side editing does not require repeatedly locating elements on the screen, the number of location-related recognition processes and interaction latency are reduced.
[0075] Figure 3C A schematic diagram of an example interface 300C for editing media content is shown, based on several scenarios. Interface 300C can be the state of interface 300B after the user has made edits in the editing panel.
[0076] In some cases, the second operation may include a modification operation that edits the first text content to the third text content. Figure 3C As an example, in the second editing component of entry 317-1, the user modifies the first text content corresponding to the text 1 to the modified text 1 322 (which can also be referred to as the third text content). In this way, the user can modify the text line by line in the panel, and the modified content is immediately apparent. Since the modification is completed at the text level, the modification phase does not require triggering image generation processing, resulting in low computational overhead during the editing process. Alternatively and / or additionally, the second operation may include a deletion operation that removes the first text content. Figure 3C As an example, item 326 shows the removal control. Figure 3C The removal control 326 is shown in the entry describing text 4. Removal control 326 also applies to other entries such as 317-1. In response to a trigger on removal control 326, the text content described for the corresponding entry is deleted. In this way, users can both modify text and directly delete unwanted text, providing more comprehensive coverage of editing types. Since deletion does not require inputting replacement content, the corresponding input processing and content generation are omitted, thus reducing processing overhead.
[0077] In some cases, the second area includes an editing panel, which includes a first entry and a second entry. The second entry describes a first element in the first media content, and the second entry includes a third editing component. In some cases, the editing panel may also include a confirmation control, which is used to confirm the editing input corresponding to the entry in the editing panel. The electronic device 110 may receive a third operation in the third editing component, the third operation being used to edit the first element; receive a fourth operation, the fourth operation being used to confirm the second and third operations; and, based on the fourth operation, present third media content, the third media content being obtained based on the second and third operations.
[0078] In some cases, the fourth action can be implemented as triggering a confirmation control. Figure 3B and Figure 3C As an example, the editing panel 315 includes item 317-1 (an example of a first item), item 317-2 (an example of a second item), and a confirmation control 328. Item 317-2 describes text 2 (an example of a first element), and the editable input box in item 317-2 can be an example of a third editing component. The user modifies the corresponding text content to the modified text 2 324 through a third operation in the third editing component of item 317-2, and then triggers the confirmation control 328 through a fourth operation. Based on the fourth operation, the electronic device 110 presents the third media content in the first area. Before the fourth operation, the edits received in each item are not applied to the first media content 310. It should be noted that the first element is not limited to a text element. Alternatively and / or additionally, the items in the editing panel can also describe non-text elements such as graphics, people, and objects. For example, items of each identified element can be presented in the editing panel through element recognition, and the user enters editing instructions for the corresponding element in the editing component of each item, and confirms them uniformly through the confirmation control. In this way, users can input and edit content for multiple elements separately in the editing panel, and then confirm the changes all at once, eliminating the need to repeatedly select and input each element individually. Because multiple modifications are applied uniformly after a single confirmation, the media content generation process can be performed on multiple modifications in a single operation, reducing the number of repeated generation iterations and the number of rounds of interaction between the client and cloud. The server's generation load and the bandwidth consumption for client-cloud communication are also reduced accordingly.
[0079] Figure 3D A schematic diagram of an example interface 300D for editing media content under certain circumstances is shown. Interface 300D can be the state of interface 300C after editing has been uniformly applied. Figure 3DAs shown, based on the fourth operation, the electronic device 110 presents third media content 350 in the first area. In the third media content 350, text 1 is replaced with modified text 1, text 2 is replaced with modified text 2, text 4 is no longer presented due to the deletion operation, and text 3 remains unchanged. In this way, multiple modifications are applied uniformly after a single confirmation, allowing the user to directly see the overall effect of batch editing. Because multiple modifications are merged into a single generation process, the number of repeated screen refreshes is reduced, and the overall computational and communication overhead of the generation process is also reduced.
[0080] Figure 4A A schematic diagram of another example interface 400A for editing media content according to certain scenarios is shown. Figures 4A to 4F The examples primarily involve editing elements in media content using markup.
[0081] like Figure 4A As shown, the toolbar of Interface 400A displays a marker control, as well as other controls such as cutout, erase, enlarge, and sharpen. The marker control is used to enter marker mode. The first area of Interface 400A displays the first media content, which includes multiple text elements such as text 1 to text 6, as well as other elements such as graphic objects. At the bottom of Interface 400A, interactive components are also presented. These interactive components may be input boxes used to summarize various editing commands, which will be discussed in detail below. Figure 4C Further description.
[0082] In some cases, the electronic device 110 may receive a seventh operation for selecting a third element in first media content; present second descriptive information corresponding to the third element in a first input component; receive a first editing request related to the third element through the first input component; and present fourth media content in a first area, the fourth media content being obtained by editing the third element. Figure 4A and Figure 4B As an example, the user selects the third element 402 through the seventh operation, and the third element 402 is... Figure 4A The middle character is 1. The seventh operation can be a selection operation, a point selection operation, or a hover operation, etc. Figure 4A The dashed box in the image indicates the area where the third element 402 has been selected. Based on the seventh operation, the electronic device 110 presents a first input component 404, which may be an input box that appears with the selected element and is used to receive an editing request for that element. The first input component 404 presents second descriptive information 403, which corresponds to the third element 402. (The text repeats itself here.) Figure 4BAs shown, the user inputs a first editing request 412 into the first input component 404. The first editing request 412 is, for example, a request to change the text 1 to the text 7. After editing is completed, the electronic device 110 presents the fourth media content obtained by editing the third element 402 in the first area. For example, the original text 1 in the fourth media content is replaced with the text 7. In this way, the selected element is explicitly informed to the user in the form of descriptive information, allowing the user to confirm the editing object before issuing the editing request, without ambiguity between the editing object and the editing intent. Because the editing request is explicitly associated with the informed element, the processing entity no longer needs to infer the editing location from the natural language description, reducing the computational overhead of intent parsing. The repeated generation caused by misparsing is also reduced accordingly, and the accuracy of editing is improved.
[0083] In some cases, the third element is identified based on the position of the seventh operation. Figure 4D and Figure 4E As an example, after a user performs a seventh operation at a certain location in the first media content, the electronic device 110 and / or the server 130 can use a visual language model to identify the element at the corresponding location as the selected element based on the location of the seventh operation in the first media content. Figure 4D The presentation area 432 in the middle can be the presentation area for the descriptive information in the first input component. Figure 4D This shows the transitional state during the recognition process; at this point, index "4" has been displayed in presentation area 432, but the corresponding representation information is still being acquired. After recognition is complete, the identified result is presented as corresponding descriptive information, such as... Figure 4E As shown in description information 442, this method allows users to specify the element to be edited with a single click or selection, eliminating the need for precise outlining. Because recognition is performed focused on the operation location, the range of the image being processed is reduced, consequently lowering latency and computational overhead.
[0084] In some scenarios, the electronic device 110 can receive a hover operation applied to a third element. Based on the hover operation, a recognition box is displayed at the location of the third element, and a seventh operation is received applied to the recognition box. For example, when a user hovers the cursor over the text "1", a recognition box is displayed at the location of "1", indicating that the content at that location has been recognized. The user's triggering operation on the recognition box constitutes the seventh operation. In this way, the user can know which content on the screen can be selected and edited during the hover phase, making the selection entry point clearer. Since recognition can be completed in advance during the hover phase, there is no need to perform recognition processing again during the actual selection, thus shortening the response latency of the interaction.
[0085] In some cases, the second descriptive information may include the index of the third element. Figure 4AAs an example, the "1" in the second description information 403 is the index of the third element 402, indicating that the third element 402 is the first locale currently marked. In this way, the user can distinguish the successively marked locales by index. Since the index can express the order of marking with very few characters, the corresponding rendering overhead is negligible. Alternatively and / or additionally, the second description information may include representation information of the third element. Figure 4A As an example, the content corresponding to the text 1 in the second description information 403 is the representation information of the third element 402, which allows the user to confirm the selected object. In this way, the user can verify the selected element without having to re-view the screen. Since the representation information is presented locally with the first input component 404, the verification process does not cause additional interface jumps or corresponding loading overhead.
[0086] In some cases, the representational information may include a textual description of a third element. Figure 4A As an example, the content corresponding to text 1 in the second description information 403 is the representation information in the form of a text description. The text description can be obtained by recognizing text content or by recognizing element names. In this way, users can quickly confirm the selected element by reading the text. Because the data volume of the text description is small, the corresponding transmission and rendering overhead is low. Alternatively and / or additionally, the representation information may include a thumbnail of the third element. Figure 4F As an example, each candidate description displays a small image of the corresponding element, which serves as a thumbnail representation. This allows users to visually identify the selected element intuitively. Because the thumbnails are presented at a reduced size, their loading and rendering overhead is significantly lower than the original screen content.
[0087] In some cases, the first editing request may include a text modification request. Figure 4B As an example, the first edit request 412 is a text modification request to change text 1 to text 7. In this way, the user can modify the marked text using a natural input method. Because the modification request is bound to the marked element, the processing entity no longer needs to locate the modification position, making the processing path more direct. Alternatively and / or additionally, the first edit request may include a replacement request based on reference media content added via the media addition entry of the first input component. Figure 4A and Figure 4C As an example, the first input component 404 presents a media addition entry 405, through which users can add reference media content and request that the marked element be replaced with content related to the reference media content. The added reference media content is synchronized to the interactive components along with the corresponding input, such as... Figure 4CThe reference media thumbnail shown above the interactive component 422. In this way, users can intuitively express the replacement target using the reference media content, making the expression of replacement intent more accurate. Since the reference media content is transmitted along with the request, the processing entity does not need to obtain the replacement target through additional interaction rounds, reducing the number of edge-cloud interactions. Alternatively and / or additionally, the first edit request may include an erase request. Figure 4A As an example, the first input component 404 presents an erase entry 406, which allows the user to request the erasure of marked elements by triggering the erase entry 406. In this way, the user can express their erase intent with a single trigger, without needing to input a description. Because the semantics of the erase request are clear, the processing entity does not need to perform intent parsing, thus eliminating the corresponding parsing overhead.
[0088] Figure 4B A schematic diagram of an example interface 400B for editing media content according to certain scenarios is shown. Figure 4C A schematic diagram of a sample interface 400C for editing media content according to certain scenarios is shown below. Figure 4B and Figure 4C This describes the marking and unified editing of multiple local areas.
[0089] In some cases, the electronic device 110 may receive a ninth operation to confirm the first editing request; based on the ninth operation, present a first input corresponding to the first editing request in the interactive component; and receive a tenth operation to confirm the first input. Based on the tenth operation, the electronic device 110 may present fourth media content in a first area.
[0090] In some cases, electronic device 110 can receive an eleventh operation, which is used to select a fourth element in the first media content. In the second input component, electronic device 110 can present fourth descriptive information, which corresponds to the fourth element. Through the second input component, electronic device 110 can receive a second editing request, which is related to the fourth element. Electronic device 110 can receive a twelfth operation, which is used to confirm the second editing request. Based on the twelfth operation, electronic device 110 can present a second input in the interactive component, which corresponds to the second editing request. Electronic device 110 can receive a tenth operation, which is used to confirm the first and second inputs. Based on the tenth operation, electronic device 110 can present fourth media content, which is obtained by editing the third and fourth elements. Figure 4B and Figure 4C As an example, in Figure 4BIn this process, the user executes the ninth operation by triggering the confirmation control in the first input component to confirm the first edit request 412. Based on the ninth operation, the first edit request 412 is not immediately applied to the first media content, but is synchronously presented as the first input in the interactive component 422 at the bottom of the interface, such as... Figure 4C The input in the interactive component 422, starting with index "1", modifies the text 1 to the text 7. Subsequently, the user selects another element (e.g., ...) within the first media content through an eleventh operation such as circling or clicking. Figure 4C The element indicated by the identifier "2" (also referred to as the fourth element) is presented in the electronic device 110 as a second input component. The second input component displays fourth descriptive information corresponding to the fourth element, including the index and representation information of the fourth element. The user inputs a second editing request related to the fourth element through the second input component and confirms the second editing request through a twelfth operation. Based on the twelfth operation, the second input corresponding to the second editing request is presented in the interaction component 422, such as... Figure 4C The inputs starting with index "2" are shown in interactive component 422. In a similar manner, the user can continue to mark other parts and issue corresponding editing requests; the inputs corresponding to each editing request are summarized one by one in interactive component 422. For example... Figure 4C As shown, the interactive component 422 summarizes and presents multiple inputs corresponding to each editing request. The user performs a tenth operation by triggering the send control in the interactive component 422 to confirm these inputs. Based on the tenth operation, the electronic device 110 presents fourth media content in the first area, which is obtained by editing each selected element. In this way, the user can sequentially mark multiple parts of the media content and provide modification suggestions for each part. The modification suggestions are then summarized and applied uniformly at once, eliminating the need for the user to wait for each part to complete its editing individually. Since multiple editing requests are merged into a single generation process, the number of times the media content is generated is reduced from multiple times to one.
[0091] In some cases, electronic device 110 may, based on a seventh operation, present a marker in the first media content, the marker being located at the position of the third element, and the marker representing the index of the third element. Figure 4CAs an example, each selected element is marked with a corresponding indicator. For instance, the indicator at the location of the text "1" represents the index "1" of text "1," and the other indicators represent the indices "2" through "5" of the corresponding elements. Each indicator on the screen corresponds one-to-one with the indices entered in interactive component 422. In this way, users can intuitively verify the correspondence between the positions of each marker and each modification suggestion, ensuring no mismatch between modification suggestions and marker positions. Because the indicators are presented locally as lightweight graphic symbols, the rendering overhead required for screen refresh is minimal. Verification does not require expanding additional interfaces, thus avoiding corresponding loading overhead.
[0092] In some cases, the first and second inputs are merged into an editing instruction, which is then provided to the processing entity. For example, multiple inputs in the interaction component 422 can be merged into a single editing instruction, which is provided to the processing entity running on the electronic device 110 and / or the server 130. The processing entity then performs unified editing processing on the first media content based on the editing instruction. In this way, multiple user modifications are processed uniformly in the form of a single editing instruction, and the editing result is presented all at once. Since the merged editing instruction triggers only one processing call, the number of calls to the processing entity is reduced. The amount of data and the number of interaction rounds in the edge-cloud communication are also reduced accordingly.
[0093] Figure 4D A schematic diagram of a sample interface 400D for editing media content according to certain scenarios is shown. Figure 4E A schematic diagram of a sample interface 400E for editing media content based on certain scenarios is shown. As described above, Figure 4D This shows the state of the marked element during the identification process. Figure 4E This shows the status after recognition is complete. For example... Figure 4E As shown, after recognition is complete, the input component displays description information 442, which includes the index "4" of the corresponding element and the corresponding representation information ( Figure 4E Candidate result 1 is shown in the middle. An expand control is also presented next to description information 442, which is used to select description information 442, and will be discussed in detail below. Figure 4F Further description.
[0094] In some cases, the electronic device 110 can receive an eighth operation, which is used to edit the second description information, and based on the eighth operation, presents third description information in the first input component, the third description information being obtained based on the editing of the second description information by the eighth operation. Figure 4EAs an example, if the presented description does not match the user's expected object, the user can directly edit the representation information in the description to modify it into the desired object description, thus obtaining the edited description. The edited object is calibrated along with the description correction. In this way, when informed that the result does not match expectations, the user can directly correct the description to calibrate the edited object. Since calibration is completed before the edit request is issued, the generation of erroneous objects is avoided. The number of repeated generations is correspondingly reduced.
[0095] Figure 4F A schematic diagram of a sample interface 400F for editing media content based on various scenarios is shown below. Figure 4E and Figure 4F This describes the process of calibrating the selected element by selecting candidate description information.
[0096] In some cases, the electronic device 110 may receive a thirteenth operation, the thirteenth operation being used to select second descriptive information; based on the thirteenth operation, present multiple candidate descriptive information, the multiple candidate descriptive information respectively corresponding to multiple elements in the first media content, the multiple elements having different ranges, and the multiple elements including a third element; receive a fourteenth operation, the fourteenth operation being used to select candidate descriptive information from the multiple candidate descriptive information; and based on the fourteenth operation, update the second descriptive information to the selected candidate descriptive information. Figure 4E and Figure 4F As an example, in response to the user's triggering of the expand control next to the description information 442 (i.e., the thirteenth operation), the electronic device 110 presents multiple candidate description information 452, which are presented, for example, in the form of a "recognition result" list, including candidate result 1, candidate result 2 and candidate result 3, each of which corresponds to multiple elements of different ranges in the first media content. Figure 4F The dashed box in the image indicates the range of the element corresponding to the currently selected candidate description information within the first media content. After the user selects a candidate description information through the fourteenth operation, the description information in the input component is updated to the selected candidate description information, and the object being edited is subsequently calibrated. In this way, users can select among candidates with different ranges, thereby quickly calibrating the object to be edited to the element indicated by the true intent, achieving a balance between the default recognition result and the object the user actually wants. Since calibration is completed through a single selection of candidates, the user does not need to reselect, reducing the number of repetitive recognition processes. Processing for generating erroneous objects is also avoided.
[0097] In some cases, the range of multiple elements is determined by the ascending diffusion of the position of the seventh operation. Figure 4FAs an example, centered on the location where the user performs an action, candidate elements can be determined sequentially from smallest to largest range, thus forming multiple candidates from local to global, each corresponding to candidate result 1, candidate result 2, and candidate result 3, respectively. In this way, candidates are organized according to an ascending range, allowing the user to quickly locate the object of their true intent at a granular level. Because the number of candidates is controlled within a relatively small range, the processing overhead required for candidate generation and presentation is low.
[0098] It also provides methods corresponding to the examples described above. Figure 5 A flowchart of an example process 500 for editing media content according to certain scenarios is shown. Process 500 can be implemented at electronic device 110. See below for reference. Figure 5 To describe process 500.
[0099] like Figure 5 As shown, in box 510, the electronic device 110 presents a first interface. The first interface includes a first area and a second area. The first area displays first media content, and the second area includes a first item, which describes a first text element in the first media content. Its interactive presentation can be found above. Figure 2A and Figure 3B The example described.
[0100] In box 520, electronic device 110 presents a first editing component in the first area. The first editing component presents first text content, which corresponds to a first text element. Its interactive presentation can be found above. Figure 2B and Figure 3B The example described.
[0101] In box 530, electronic device 110 receives a first operation in the first editing component, the first operation editing the first text content into second text content. Its interactive presentation can be seen above. Figure 2C The example described.
[0102] In box 540, electronic device 110 presents second media content in the first area. The second media content includes second text elements, which correspond to the second text content. Its interactive presentation can be found above. Figure 2D The example described.
[0103] In this way, text elements in media content are presented to the user in a structured, itemized format and can be directly edited within the interface, making element specification and modification more intuitive and accurate. Furthermore, since editing directly targets the provided elements, the processing entity does not need to infer the edited object from vague descriptions, reducing the computational overhead required for intent parsing and repetitive generation. Consequently, editing accuracy is improved.
[0104] In some cases, the first entry includes a second editing component that presents the first text content, and the electronic device 110 can receive a second operation for editing the first text content in the second editing component, and present third media content obtained based on the second operation in a first area. Specific interactive presentations can be found above. Figure 3B and Figure 3C The example described illustrates this approach. In this way, users can directly edit text on the item side, making the editing interface more flexible. Simultaneously, item-side editing eliminates the need to repeatedly locate elements within the screen, reducing the number of location-related recognition processes and interaction latency.
[0105] In some cases, the second operation may include at least one of the following: a modification operation, which edits the first text content to the third text content; and a deletion operation, which deletes the first text content. See above for a detailed presentation. Figure 3C and Figure 3D The example described illustrates this approach. In this way, users can both modify and directly delete unwanted text content, offering more comprehensive coverage of editing types. Furthermore, deletion eliminates the need to input replacement content, thus simplifying input processing and content generation. This reduces processing overhead.
[0106] In some cases, the second area may include an editing panel, which includes a first entry and a second entry. The second entry describes a first element in the first media content and includes a third editing component. The electronic device 110 can receive a third operation for editing the first element, receive a fourth operation for confirming the second and third operations, and, based on the fourth operation, present the third media content obtained based on the second and third operations. Specific interactive presentation can be found above. Figures 3B to 3D The example described illustrates this approach. In this way, users can input and edit content for multiple elements separately, and then confirm the changes all at once, reducing the need for repetitive operations on each element individually. Simultaneously, multiple modifications are merged into a single generation process, reducing the number of media content generation iterations, the number of edge-cloud interaction rounds, and communication bandwidth usage.
[0107] In some cases, electronic device 110 can update the first entry, and the updated first entry describes the second text element. For specific interactive presentation, please refer to the above. Figure 2D The example described illustrates this approach. In this way, the description on the entry side remains consistent with the edited content on the screen, allowing users to readily access the current content of elements through the entry. Simultaneously, entries are updated in-situ based on existing edits, eliminating the need to re-perform recognition processing on the media content and saving computational overhead associated with recognition.
[0108] In some cases, the first item may correspond to the first layer in the first media content, the first layer including the first text element, and the electronic device 110 may receive a fifth operation for selecting the first item in the second area. For specific interactive presentation, please refer to the above. Figure 2B The example described illustrates this. In this way, users can intuitively specify the objects to be edited, layer by layer. Simultaneously, selection is completed from the entry point, eliminating the need for image position recognition, thus reducing computational overhead and the rate of incorrect selections.
[0109] In some cases, the electronic device 110 may present first descriptive information describing the first text element in the first entry. The first descriptive information includes at least one of the following: a thumbnail of the first layer; and a text description of the first layer. For specific interactive presentation details, please refer to the above. Figure 2A and Figure 2B The example described illustrates this. In this way, users can understand the content of a layer from its thumbnails and text descriptions without needing to expand the layer, making layer identification more efficient. At the same time, the data volume of the thumbnails and text descriptions is much smaller than that of the original layers, reducing the rendering overhead and memory usage of the entries.
[0110] In some cases, the electronic device 110 can receive a sixth operation for selecting a third area within the first media content, the third area including a first text element, and based on the sixth operation, present a first editing component. For specific interactive presentation details, please refer to the above. Figure 2B The example described illustrates this approach. In this way, users can directly specify the content to be edited by circling or highlighting words, and the editing component is presented on demand. Simultaneously, the editing component is only presented when triggered, reducing persistent elements on the interface and consequently lowering rendering overhead and memory usage.
[0111] In some cases, electronic device 110 may display a first editing component that covers at least a portion of the third area. For specific interactive presentation details, please refer to the above text. Figure 2B The example described illustrates this. In this way, editing unfolds in the selected area, eliminating the need for the user's gaze to switch between different areas of the screen. Furthermore, in-place editing eliminates the need for a separate editing interface, reducing the number of interface elements created and destroyed, and consequently lowering rendering overhead.
[0112] In some cases, the electronic device 110 can, based on the fifth operation, present a range marker representing the extent of the first layer in the first media content, and receive a sixth operation within the area corresponding to the range marker. For specific interactive presentation details, please refer to the above. Figure 2A and Figure 2BThe example described illustrates this. In this way, the selection is confined to the area of the selected layer, preventing accidental selection of overlapping elements. Simultaneously, content outside the selection area does not need to participate in the recognition process, reducing the amount of data and computational overhead. The number of duplicate selections caused by accidental selections is also correspondingly reduced.
[0113] In some cases, the first entry corresponds to the first layer in the first media content, which includes the first text element. In this case, the third area may also include a second element in the first media content, which belongs to the second layer of the first media content. Furthermore, the electronic device 110 can present a first editing component based on the fifth and sixth operations. The content presented by the first editing component belongs to the first layer; for example, the content presented within the first editing component is the first text content. For specific interactive presentation details, please refer to the above. Figure 2B The example described illustrates this principle. In this way, even if the selected area spans multiple layers, editing only expands the content within the selected layer, preventing ambiguity in the selection. Simultaneously, content from other layers does not enter the recognition and generation process, avoiding unnecessary processing overhead.
[0114] In some cases, the electronic device 110 can receive a seventh operation for selecting a third element in the first media content, present second descriptive information corresponding to the third element in a first input component, receive a first editing request related to the third element through the first input component, and present fourth media content obtained by editing the third element in a first area. Specific interactive presentations can be found above. Figure 4A and Figure 4B The example described illustrates this approach. In this way, the selected element is explicitly communicated to the user in the form of descriptive information, ensuring unambiguity between the editable object and the editing intent. Simultaneously, the explicit association between the edit request and the informed element reduces the computational overhead of intent resolution and the repetitive generation caused by misinterpretation.
[0115] In some cases, the second descriptive information may include the index of the third element and the representation information of the third element. See above for a specific presentation example. Figure 4A and Figure 4E The example described illustrates this approach. In this way, users can quickly identify the selected element using index and representation information. Simultaneously, the description information can represent the element with a small amount of data, reducing the amount of data transmitted and rendered by the interface.
[0116] In some cases, electronic device 110 can, based on a seventh operation, present a marker within the first media content, the marker being located at the position of the third element, and the marker representing the index of the third element. For specific interactive presentation details, please refer to the above. Figure 4CThe example described illustrates this. In this way, the icons on the screen correspond one-to-one with the indexes in the descriptive information, allowing users to intuitively check the position of each marker. At the same time, the icons are presented as lightweight graphic symbols, minimizing the rendering overhead required for screen refreshes.
[0117] In some cases, the electronic device 110 can receive an eighth operation for editing the second description information, and based on the eighth operation, present third description information in the first input component, the third description information being obtained based on the editing of the second description information by the eighth operation. For specific interactive presentation, please refer to the above. Figure 4E The example described illustrates this approach. In this way, when the result does not meet expectations, the user can directly correct the description to calibrate the edited object. Furthermore, calibration is completed before an edit request is issued, thus avoiding the generation of erroneous objects and reducing the number of re-generations.
[0118] In some cases, the electronic device 110 may receive a ninth operation to confirm the first editing request, and based on the ninth operation, present a first input corresponding to the first editing request in the interactive component. In some cases, the electronic device 110 may receive a tenth operation to confirm the first input. Based on the tenth operation, the electronic device 110 may present fourth media content in a first area.
[0119] In some cases, electronic device 110 can receive an eleventh operation for selecting a fourth element in the first media content. Electronic device 110 can present fourth descriptive information corresponding to the fourth element in a second input component, receive a second editing request related to the fourth element through the second input component, receive a twelfth operation for confirming the second editing request, and based on the twelfth operation, present a second input corresponding to the second editing request in an interactive component. Electronic device 110 can receive a tenth operation for confirming the first and second inputs, and based on the tenth operation, present the fourth media content obtained by editing the third and fourth elements. Specific interactive presentations can be found above. Figure 4B and Figure 4C The example described illustrates this approach. In this way, users can sequentially mark multiple sections and provide individual modification suggestions, which are then aggregated and applied uniformly at once. Simultaneously, multiple edit requests are merged into a single generation process, reducing the number of generation attempts, client-cloud interaction rounds, and communication bandwidth usage. Server load peaks are also smoother.
[0120] In some cases, the electronic device 110 can receive a thirteenth operation for selecting second description information, and based on the thirteenth operation, present multiple candidate description information, each corresponding to multiple elements with different ranges in the first media content, including a third element; receive a fourteenth operation for selecting candidate description information from the multiple candidate description information, and based on the fourteenth operation, update the second description information to the selected candidate description information. For specific interactive presentation, please refer to the above. Figure 4E and Figure 4F The example described illustrates this. In this way, users can select from a range of candidates, quickly calibrating the object to be edited to the element the true intent refers to. Simultaneously, calibration is completed with a single selection of candidates, eliminating the need for re-selection and re-identification, thus reducing the number of repetitive identification processes.
[0121] In some cases, the representation information may include at least one of the following: a textual description of the third element; and a thumbnail of the third element. See above for specific presentation examples. Figure 4A and Figure 4F The example described illustrates this approach. In this way, elements can be described both with text and presented visually as thumbnails, making element identification more convenient. Furthermore, both text descriptions and thumbnails involve relatively small amounts of data, resulting in lower transmission and rendering overhead.
[0122] In some cases, electronic device 110 can receive a hover operation applied to a third element, and based on the hover operation, display a recognition box at the position of the third element, and receive a seventh operation applied to the recognition box. For specific interactive presentation, please refer to the above text. Figure 4A The example described illustrates this approach. In this way, users can see which content has been recognized simply by hovering over the screen, making the selection process more explicit. Furthermore, recognition can be pre-completed during the hover phase, eliminating the need for repeated recognition during the actual selection, thus reducing interaction latency.
[0123] In some cases, the first editing request may include at least one of the following: a text modification request; a replacement request based on reference media content added via the media addition entry of the first input component; and an erase request. For specific interactive presentation, please refer to the above. Figures 4A to 4C The example described illustrates this approach. In this way, users can issue different types of editing requests to marked areas, such as modifying text, replacing or erasing based on reference media, resulting in more comprehensive editing capabilities. Simultaneously, all types of requests are collected through the same input component, unifying the processing path for each request. This correspondingly reduces the scheduling overhead of processing entities.
[0124] In some cases, the content in the second media content, excluding the second text element, can be consistent with the content in the first media content, excluding the first text element. See above for specific examples. Figure 2D The example described illustrates this approach. In this way, users can be confident that editing only affects the target element, while the rest of the screen content remains unchanged. Simultaneously, unedited content does not need to participate in the generation process, reducing the amount of data and computational overhead involved in generation.
[0125] In some cases, electronic device 110 can acquire primary media content based on an upload operation or a template selection operation. For specific interactive presentation details, please refer to the above text. Figure 2A The example described illustrates how users can quickly obtain media content for editing by uploading or selecting a template. Furthermore, templates can be reused, reducing the computational overhead of generating media content from scratch and the corresponding data transfer.
[0126] In some cases, the initial text content can be extracted through optical character recognition (OCR) of the initial media content. See above for a detailed explanation. Figure 2B and Figure 3A The example described illustrates this. In this way, the text on the screen is converted into directly editable text, eliminating the need for the user to re-enter all the text. Furthermore, in cases where recognition is performed locally by the electronic device 110, text extraction can be completed without the media content leaving the device, reducing the number of data transfers between the device and the cloud, and decreasing the data exposure surface.
[0127] In some cases, the third element can be identified based on the position of the seventh operation. See above for a detailed representation. Figure 4D and Figure 4E The example described illustrates this. In this way, users can specify the element to be edited with a single click, without needing to precisely outline the element. Simultaneously, recognition is performed with the operation location as the anchor point, reducing the range of the image being processed. This correspondingly reduces recognition latency and computational overhead.
[0128] In some cases, the range of multiple elements can be determined by the ascending diffusion of the position of the seventh operation. See the above text for a detailed representation. Figure 4F The example described illustrates this. In this way, candidate elements are organized in ascending order of scope, allowing users to quickly locate the object of their true intent at a granular level. Simultaneously, the number of candidates is kept within a relatively small range, resulting in lower processing overhead for candidate generation and presentation.
[0129] In some cases, multiple elements within primary media content can be divided into multiple layers, with the primary layer being the second layer. See the above text for a specific example. Figure 2AThe example described illustrates this approach. In this way, element selection and editing can be performed layer-by-layer, without interference between overlapping elements. Furthermore, processing a single layer does not require access to data from other layers, reducing the amount of data processed. Consequently, the accuracy of recognition and generation is improved.
[0130] In some cases, the second media content can be regenerated layer by layer, while the layers in the first media content other than the first layer are not regenerated. See above for specific examples. Figure 2D The example described illustrates this. In this way, the impact of editing is confined to a single layer, while the rest of the screen content remains stable. Simultaneously, regeneration is performed only on a single layer, rather than on the entire media content, significantly reducing computational overhead and latency.
[0131] In some cases, the first and second inputs can be combined into an editing instruction, which is then provided to the processing entity. See above for a detailed explanation. Figure 4C The example described illustrates this approach. Multiple user-suggested modifications are processed as a single editing command, with the edit result presented all at once. Furthermore, the merged editing command triggers only one processing call, reducing the number of calls to the processing entity and the amount of data exchanged between the cloud and the client.
[0132] A corresponding apparatus for implementing the above methods or processes is also provided.
[0133] Figure 6 A block diagram of an apparatus 600 for editing media content is shown, depending on several scenarios. The apparatus 600 can be implemented as or included in an electronic device 110. The various modules / components in the apparatus 600 can be implemented by hardware, software, firmware, or any combination thereof.
[0134] like Figure 6 As shown, the device 600 includes a first presentation module 610 configured to present a first interface, the first interface including a first area and a second area, the first area displaying first media content, the second area including a first entry, the first entry describing a first text element in the first media content; a second presentation module 620 configured to present a first editing component in the first area, the first editing component presenting first text content, the first text content corresponding to the first text element; a receiving module 630 configured to receive a first operation in the first editing component, the first operation editing the first text content into second text content; and a third presentation module 640 configured to present second media content in the first area, the second media content including a second text element, the second text element corresponding to the second text content.
[0135] In some cases, the first entry includes a second editing component that presents the first text content. The receiving module 630 can also be configured to receive a second operation for editing the first text content in the second editing component. The third presentation module 640 can also be configured to present third media content obtained based on the second operation in a first area.
[0136] In some cases, the second operation may include at least one of the following: a modification operation that edits the first text content to the third text content; and a deletion operation that deletes the first text content.
[0137] In some cases, the second area may include an editing panel, which includes a first entry and a second entry. The second entry describes a first element in the first media content and includes a third editing component. The receiving module 630 may also be configured to receive a third operation for editing the first element in the third editing component, and to receive a fourth operation for confirming the second and third operations. The third presentation module 640 may also be configured to present the third media content obtained based on the second and third operations based on the fourth operation.
[0138] In some cases, the first presentation module 610 can also be configured to update a first entry, the updated first entry describing a second text element.
[0139] In some cases, the first entry may correspond to the first layer in the first media content, where the first layer includes the first text element. The receiving module 630 may also be configured to receive a fifth operation for selecting the first entry in a second area.
[0140] In some cases, the first presentation module 610 may also be configured to present first descriptive information for describing the first text element in the first entry, the first descriptive information including at least one of the following: a thumbnail of the first layer; and a text description of the first layer.
[0141] In some cases, the receiving module 630 may also be configured to receive a sixth operation for selecting a third region in the first media content, the third region including the first text element. The second presentation module 620 may also be configured to present the first editing component based on the sixth operation.
[0142] In some cases, the second presentation module 620 may also be configured to present a first editing component that covers at least a portion of the third region.
[0143] In some cases, the first presentation module 610 may also be configured to present a range identifier representing the extent of the first layer in the first media content based on a fifth operation. The receiving module 630 may also be configured to receive a sixth operation within the area corresponding to the range identifier.
[0144] In some cases, the first entry corresponds to the first layer in the first media content, which includes the first text element. In this case, the third area may also include a second element in the first media content, which belongs to the second layer in the first media content. The second presentation module 620 may also be configured to present a first editing component based on the fifth and sixth operations, wherein the content presented by the first editing component belongs to the first layer, for example, the content presented by the first editing component is the first text content.
[0145] In some cases, the receiving module 630 may also be configured to receive a seventh operation for selecting a third element in the first media content, and to receive a first editing request related to the third element via the first input component. The first presentation module 610 may also be configured to present second descriptive information corresponding to the third element in the first input component. The third presentation module 640 may also be configured to present fourth media content obtained by editing the third element in a first area.
[0146] In some cases, the second descriptive information may include the index of the third element and the representation information of the third element.
[0147] In some cases, the first presentation module 610 may also be configured to present an identifier in the first media content based on a seventh operation, the identifier being located at the position of the third element, and the identifier representing the index of the third element.
[0148] In some cases, the receiving module 630 may also be configured to receive an eighth operation for editing the second description information. The first presentation module 610 may also be configured to present third description information in the first input component based on the eighth operation, the third description information being obtained based on the editing of the second description information by the eighth operation.
[0149] In some cases, the receiving module 630 may also be configured to receive a ninth operation for confirming the first edit request, and a tenth operation for confirming the first input. The third presentation module 640 may also be configured to present fourth media content in the first area based on the tenth operation.
[0150] In some cases, the receiving module 630 may also be configured to receive a thirteenth operation for selecting second description information, and a fourteenth operation for selecting candidate description information from a plurality of candidate description information. The first presentation module 610 may also be configured to, based on the thirteenth operation, present a plurality of candidate description information, each corresponding to a plurality of elements with different ranges in the first media content, the plurality of elements including a third element, and, based on the fourteenth operation, update the second description information to the selected candidate description information.
[0151] In some cases, the representation information may include at least one of the following: a textual description of the third element; and a thumbnail of the third element.
[0152] In some cases, the receiving module 630 can also be configured to receive a hover operation applied to a third element, and a seventh operation applied to the recognition box. The first presentation module 610 can also be configured to present the recognition box at the position of the third element based on the hover operation.
[0153] In some cases, the first edit request may include at least one of the following: a text modification request; a replacement request based on reference media content added via the media addition entry of the first input component; and an erase request.
[0154] In some cases, the content in the second media content other than the second text element can be consistent with the content in the first media content other than the first text element.
[0155] In some cases, the receiving module 630 can also be configured to acquire the first media content based on an upload operation or a template selection operation.
[0156] In some cases, the first text content can be extracted by optical character recognition of the first media content.
[0157] In some cases, the third element can be identified based on the position of the seventh operation.
[0158] In some cases, the range of multiple elements can be determined by the diffusion of the position of the seventh operation from small to large.
[0159] In some cases, multiple elements in the primary media content can be divided into multiple layers, including the primary layer.
[0160] In some cases, the second media content can be regenerated layer by layer, while the layers in the first media content other than the first layer are not regenerated.
[0161] In some cases, the first and second inputs can be combined into an editing instruction, which is then provided to the processing entity.
[0162] The modules included in device 600 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some cases, one or more modules can be implemented using software and / or firmware, such as machine-executable instructions stored on a storage medium. In addition to or as an alternative to machine-executable instructions, some or all of the units in device 600 can be implemented at least partially by one or more hardware logic components. By way of example, and not limitation, exemplary types of hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard parts (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and so on.
[0163] Figure 7 A block diagram of an electronic device 700 in which one or more examples may be implemented is shown. It should be understood that... Figure 7 The electronic device 700 shown is merely exemplary and should not be construed as limiting the functionality and scope of the examples described herein. Figure 7 The illustrated electronic device 700 can be used to implement the electronic device 110 discussed above.
[0164] like Figure 7 As shown, electronic device 700 is in the form of a general-purpose electronic device. Components of electronic device 700 may include, but are not limited to, one or more processing units or processors 710, memory 720, storage devices 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. Processor 710 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 720. In a multiprocessor system, multiple processors execute computer-executable instructions in parallel to improve the parallel processing capability of electronic device 700.
[0165] Electronic device 700 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 720 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof). Storage device 730 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media capable of storing information and / or data and accessible within electronic device 700.
[0166] Electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 7 As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 720 may include computer program product 725 having one or more program modules configured to perform various methods or actions of various examples.
[0167] The communication unit 740 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the electronic device 700 can be implemented using a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the electronic device 700 can operate in a networked environment using logical connections to one or more other servers, networked personal computers, or another network node.
[0168] Input device 750 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 760 can be one or more output devices, such as a monitor, speaker, printer, etc. Electronic device 700 can also communicate with one or more external devices (not shown) via communication unit 740 as needed. These external devices include storage devices, display devices, etc., and can communicate with one or more devices that enable user interaction with electronic device 700, or with any device that enables electronic device 700 to communicate with one or more other electronic devices (e.g., network card, modem, etc.). Such communication can be performed via input / output (I / O) interface (not shown).
[0169] A computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the methods described above. A computer program product is also provided, which is tangibly stored in the computer-readable storage medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above. In some cases, the computer-readable storage medium is a non-transitory computer-readable storage medium.
[0170] This document describes various aspects with reference to flowcharts and / or block diagrams of methods, apparatus, devices, and computer program products. It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer-readable program instructions.
[0171] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0172] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0173] The flowcharts and block diagrams in the accompanying figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products under various scenarios. In this respect, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the figures. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0174] Various examples have been described above. The foregoing descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for editing media content, comprising: A first interface is presented, which includes a first area and a second area. The first area displays first media content, and the second area includes a first item, which describes a first text element in the first media content. A first editing component is presented in the first area, and the first editing component presents first text content, which corresponds to the first text element. In the first editing component, a first operation is received, wherein the first operation edits the first text content into second text content; as well as In the first area, second media content is presented, the second media content including a second text element, the second text element corresponding to the second text content.
2. The method of claim 1, wherein the first entry includes a second editing component that presents the first text content, and the method further includes: In the second editing component, a second operation is received, the second operation being used to edit the first text content; as well as In the first area, third media content is presented, which is obtained based on the second operation.
3. The method according to claim 2, wherein the second operation includes at least one of the following: a modification operation, wherein the modification operation edits the first text content into third text content; and a deletion operation, wherein the deletion operation deletes the first text content.
4. The method of claim 2, wherein the second region includes an editing panel, the editing panel including the first entry and a second entry, the second entry describing a first element in the first media content, the second entry including a third editing component, wherein presenting the third media content in the first region includes: In the third editing component, a third operation is received, the third operation being used to edit the first element; Receive a fourth operation, the fourth operation being used to confirm the second operation and the third operation; as well as Based on the fourth operation, the third media content is presented, which is obtained based on the second operation and the third operation.
5. The method according to claim 1, further comprising: Update the first entry, and the updated first entry describes the second text element.
6. The method of claim 1, wherein the first entry corresponds to a first layer in the first media content, the first layer including the first text element, and the method further includes: In the second region, a fifth operation is received, which is used to select the first entry.
7. The method of claim 6, wherein presenting the first interface comprises: In the first entry, first descriptive information is presented, which is used to describe the first text element. The first descriptive information includes at least one of the following: a thumbnail of the first layer; And the text description of the first layer.
8. The method of claim 1, wherein presenting the first editing component in the first region comprises: A sixth operation is received, the sixth operation being used to select a third region in the first media content, the third region including the first text element; as well as Based on the sixth operation, the first editing component is presented.
9. The method of claim 8, wherein presenting the first editing component based on the sixth operation comprises: The first editing component is presented, and the first editing component covers at least a portion of the third region.
10. The method of claim 8, wherein the method further comprises: Based on the fifth operation, a range identifier is presented in the first media content, the range identifier representing the range of the first layer; and The sixth receiving operation includes: Within the area corresponding to the range identifier, the sixth operation is received.
11. The method of claim 8, wherein the first entry corresponds to a first layer in the first media content, the first layer including the first text element, and the third region further includes a second element in the first media content, the second element belonging to a second layer in the first media content, and wherein presenting the first editing component based on the sixth operation includes: Based on the fifth and sixth operations, the first editing component is presented, and the first editing component presents the first text content.
12. The method according to claim 1, further comprising: Receive a seventh operation, the seventh operation being used to select a third element in the first media content; In the first input component, second description information is presented, which corresponds to the third element; The first input component receives a first edit request, which is related to the third element. as well as In the first area, fourth media content is presented, which is obtained by editing the third element.
13. The method of claim 12, wherein presenting the second descriptive information in the first input component comprises: The second description information is presented, which includes the index of the third element and the representation information of the third element.
14. The method of claim 13, further comprising: Based on the seventh operation, an identifier is presented in the first media content, the identifier being located at the position of the third element, and the identifier representing the index of the third element.
15. The method of claim 12, further comprising: Receive an eighth operation, the eighth operation being used to edit the second description information; as well as Based on the eighth operation, third description information is presented in the first input component, which is obtained by editing the second description information based on the eighth operation.
16. The method of claim 12, wherein presenting the fourth media content in the first region comprises: Receive a ninth operation, which is used to confirm the first edit request; Based on the ninth operation, a first input is presented in the interactive component, and the first input corresponds to the first edit request; Receive the tenth operation, which is used to confirm the first input; as well as Based on the tenth operation, the fourth media content is presented in the first area.
17. An apparatus for editing media content, comprising: A first presentation module is used to present a first interface, the first interface including a first area and a second area, the first area displaying first media content, the second area including a first item, the first item describing a first text element in the first media content; The second presentation module is used to present a first editing component in the first area, the first editing component presents first text content, and the first text content corresponds to the first text element; The receiving module is configured to receive a first operation in the first editing component, wherein the first operation edits the first text content into second text content; as well as The third presentation module is used to present second media content in the first area, the second media content including a second text element, the second text element corresponding to the second text content.
18. An electronic device comprising: At least one processor; as well as At least one memory coupled to the at least one processor and storing instructions for execution by the at least one processor, the instructions causing the electronic device to perform the method according to any one of claims 1 to 16 when executed by the at least one processor.
19. A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the method according to any one of claims 1 to 16.
20. A computer program product tangibly stored in a computer-readable storage medium and comprising computer-executable instructions that, when executed by an electronic device, cause the electronic device to perform the method according to any one of claims 1 to 16.
