Image processing method and device, electronic equipment and computer storage medium
By providing an image processing method in an electronic device, and controlling and editing live images using status identification, the problem of insufficient processing capabilities of live image is solved, and user experience and editing flexibility is improved.
Patent Information
- Application Number
- CN202410389062.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2024-12-20
AI Technical Summary
Electronic devices lack the ability to support live pictures, and users cannot determine whether the picture is a live picture, and cannot provide sufficient control and editing capabilities, resulting in poor user experience.
Provide an image processing method, by receiving the operation to be edited, displaying the editing interface, controlling and indicating the live status using status identification, determining the target image or the live image as the editing object, and performing editing processing, improving the editing ability and user experience of the live image .
The ability of electronic devices to support live images is enhanced, and users can understand and control the status of live images through status identification, improving the processing flexibility and user experience of live images.
Smart Images

Figure CN119166023A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, device, electronic device and computer storage medium. Background Art
[0002] With the development of science and technology, there are more and more formats of pictures, such as live pictures and static images. Live pictures can also be called dynamic images, which means that a short video is recorded within a few seconds before and after the shooting while taking a static image. Users can browse the short video corresponding to the picture at the same time. That is, the live picture is composed of multiple static images.
[0003] Currently, electronic devices have insufficient support for live images. On the one hand, users cannot determine whether the images to be published are live images; on the other hand, they cannot provide sufficient control and editing capabilities for live images, resulting in a poor user experience. Summary of the invention
[0004] The embodiments of the present application provide an image processing method, device, electronic device and computer storage medium, which can solve the technical problem of poor user experience caused by the processing method of real-time pictures.
[0005] The present application provides an image processing method, including:
[0006] receiving an operation to be edited on a target live image;
[0007] In response to the editing operation, an editing interface is displayed, and a status mark of the target live image is displayed via the editing interface, wherein the status mark is used to control and indicate a live state of the target live image;
[0008] Based on the live state indicated by the state identifier, determining to use the target image in the target live image or the target live image as an editing object;
[0009] In response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image.
[0010] The present application provides an image processing method, including:
[0011] Receiving a preview operation of a target live image;
[0012] In response to the preview operation, acquiring and displaying a live state indicated by a state identifier of the target live image, wherein the state identifier is used to control and indicate a live state of the target live image, and the live state includes an on state or an off state;
[0013] Based on the live status, at least a portion of the target live image is played, and / or the target image in the target live image is displayed.
[0014] Accordingly, an embodiment of the present application provides an image processing device, comprising:
[0015] A receiving module, used for receiving an operation to be edited on a target live image;
[0016] A response module, used for displaying an editing interface in response to the editing operation, and displaying a status mark of the target live image via the editing interface, wherein the status mark is used for controlling and indicating a live state of the target live image;
[0017] A determination module, configured to determine, based on the live state indicated by the state identifier, to take the target image in the target live image or the target live image as an editing object;
[0018] The generating module is used for editing the editing object in response to the editing operation on the editing object to obtain the edited image corresponding to the target live image.
[0019] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the image processing method provided in the embodiment of the present application.
[0020] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any image processing method provided in the embodiment of the present application.
[0021] In addition, an embodiment of the present application also provides a computer program product, including a computer program, and when the above computer program is executed by a processor, any image processing method provided in the embodiment of the present application is implemented.
[0022] In an embodiment of the present application, an operation to be edited on a target live image is received; in response to the operation to be edited, an editing interface is displayed, and a state identifier of the target live image is displayed via the editing interface, the state identifier being used to control and indicate a live state of the target live image; based on the live state indicated by the state identifier, a target image or a target live image in the target live image is determined to be an editing object; in response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image, so that not only the live image can be edited to improve the support capability of the electronic device for the live image, but also the live state of the live image can be known through the state identifier, and the editing object corresponding to the target live image can be controlled through the state identifier, thereby improving the user experience and the flexibility of processing the live image. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flowchart of an image processing method provided in an embodiment of the present application;
[0025] Figure 2 is a schematic diagram of a preview interface provided in an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of an album interface provided in an embodiment of the present application;
[0027] Figure 4 is a schematic diagram of an editing interface provided in an embodiment of the present application;
[0028] Figure 5 is another schematic diagram of the album interface provided in the embodiment of the present application;
[0029] Figure 6 is another schematic diagram of an editing interface provided in an embodiment of the present application;
[0030] Figure 7 is another schematic diagram of an editing interface provided in an embodiment of the present application;
[0031] Figure 8 is a schematic diagram of a cover selection interface provided in an embodiment of the present application;
[0032] Fig. 9 is a schematic diagram of a target preview interface provided in an embodiment of the present application;
[0033] Fig.10 is a schematic diagram of a publishing interface provided in an embodiment of the present application;
[0034] Fig.11 is another flowchart of the image processing method provided in the embodiment of the present application;
[0035] Fig.12 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;
[0036] Fig.13 is another structural schematic diagram of the image processing device provided in an embodiment of the present application;
[0037] Fig.14 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0039] The embodiments of the present application provide an image processing method, device, electronic device and computer storage medium. The image processing device can be integrated in an electronic device, which can be a server or a terminal.
[0040] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0041] The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0042] In addition, the term "plurality" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood as implying relative importance.
[0043] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0044] In this embodiment, the description will be made from the perspective of the image processing device. In order to facilitate the description of the image processing method of the present application, the following detailed description will be given with the image processing device integrated in the terminal, that is, with the terminal as the execution subject.
[0045] See also Figure 1 , Figure 1 : is a flowchart of an image processing method provided by an embodiment of the present application. The image processing method may include:
[0046] S101: Receive an operation to be edited on a target live image.
[0047] Among them, the target live image refers to a picture composed of multiple static images and the multiple static images are switched at a specified frequency to produce a certain dynamic effect. The multiple static images include a cover picture, and the cover picture refers to a static image displayed before the target live image is played.
[0048] The live image type of the target live image can be set according to actual conditions, for example, the live image type of the target live image can be GIF (Graphics Interchange Format) or APNG (Animated Portable Network Graphics), which is not limited in the present application embodiment. Any live image type that can achieve a similar live effect is within the protection scope of the present invention.
[0049] The operation to be edited is used to generate an instruction to enter the editing interface. The method of receiving the operation to be edited on the target live image can be set according to the actual situation. For example, the operation to be edited on the target live image can be received by triggering the preview interface, or the operation to be edited on the target live image can be received by triggering the album interface. The embodiment of the present application does not limit this.
[0050] When the operation to be edited on the target live image is received through the trigger operation on the preview interface, the process of receiving the operation to be edited on the target live image may be:
[0051] Display a preview interface, the preview interface including a target image and a target control of a target live image;
[0052] By triggering the target control, an operation to be edited on the target live image is received.
[0053] For example, the preview interface is as follows Figure 2As shown, the target control is a "next step" control, and the terminal can receive an operation to be edited on the target live image in response to a trigger operation on the "next step" control.
[0054] When the edit operation on the target live image is received through the trigger operation on the album interface, the process of receiving the edit operation on the target live image may be:
[0055] Displaying an album interface, the album interface including at least one target image of a live image and a target control;
[0056] In response to a selection operation on at least one live image, determining the live image corresponding to the selection operation as a target live image;
[0057] By triggering the target control, an operation to be edited on the target live image is received.
[0058] For example, the album interface is Figure 3 As shown, the terminal can determine the live image p1 as the target live image in response to the selection operation of the live image p1, and receive the to-be-edited operation on the target live image in response to the triggering operation of the "next step" control.
[0059] S102: In response to the operation to be edited, an editing interface is displayed, and a status indicator of a target live image is displayed via the editing interface, where the status indicator is used to control and indicate a live status of the target live image.
[0060] The shape of the status mark can be set according to the actual situation. For example, the status mark can be a rectangle or a rounded rectangle, which is not limited in the present embodiment. Figure 4 shown.
[0061] Optionally, the live status may include an on state and an off state, and the on state and the off state may be represented by different marks, for example, the on state is represented by a first target mark, and the off state is represented by a second target mark.
[0062] The first target flag and the second target flag can be set according to actual conditions. For example, the first target flag can be Figure 4 The second target mark may be as shown in 401. Figure 4 The “close” shown in 402 is not limited in this embodiment of the present application.
[0063] The editing interface refers to an interface for editing content, which may include various editing functions. The editing functions may be set according to actual conditions. For example, the editing function may be at least one of a cropping function, a text function, a sticker function, an adjustment function, a beauty function, and a background function. The present application embodiment is not limited here. For example, the editing interface may be as follows. Figure 4 shown.
[0064] Optionally, the editing interface may also display a target image, and the target image may be at least one of the multiple static images of the target live image. When the target image is one of the multiple static images, the target image may be a cover image or may not be a cover image, in which case one of the static images in the target live image may be edited. Alternatively, the multiple static images may all be the target image, in which case each of the static images in the target live image may be edited.
[0065] Optionally, the terminal can respond to the operation to be edited on the target live image by decomposing the target live image to obtain multiple static images of the target live image, extract the target image from the static images, and then display the target image through the editing interface; or, if the target image is stored in the terminal, the terminal can respond to the operation to be edited on the target live image by directly obtaining the target image in the target live image and displaying the target image through the editing interface.
[0066] In some embodiments, the live status of the target live image indicated by the status identifier in the editing interface may be a default live status, or the live status of the target live image indicated by the status identifier may also be the live status indicated by the status identifier in the inherited preview interface and / or the live status indicated by the status identifier in the album interface.
[0067] When the live state of the target live image indicated by the state identifier is the live state indicated by the state identifier in the inherited preview interface, the preview interface further includes the state identifier of the target live image, and in response to the operation to be edited, an editing interface is displayed, including:
[0068] In response to the to-be-edited operation, obtaining a live state indicated by a state indicator of a target live image in a preview interface;
[0069] Determine the live state indicated by the state identifier of the target live image in the editing interface according to the live state indicated by the state identifier of the target live image in the preview interface;
[0070] An editing interface is displayed, and a status mark of the target live image is displayed via the editing interface, where the status mark is used to control and indicate the live status of the target live image.
[0071] For example, the preview interface can be Figure 2As shown, the live state indicated by the state mark of the target live image in the preview interface is the on state, and the live state indicated by the state mark of the target live image in the editing interface is also the on state.
[0072] In an embodiment of the present application, in response to an operation to be edited, a live state indicated by a state identifier of a target live image in a preview interface is obtained; according to the live state indicated by the state identifier of the target live image in the preview interface, a live state indicated by a state identifier of the target live image in the editing interface is determined; the editing interface is displayed, and the state identifier of the target live image is displayed via the editing interface, the state identifier being used to control and indicate the live state of the target live image, so that a user can also obtain and control the live state of the target live image in real time through the preview interface, further improving the convenience for the user to obtain and control the live state of the target live image.
[0073] In some embodiments, before obtaining the live state indicated by the state indicator of the target live image in the preview interface in response to the to-be-edited operation, the method further includes:
[0074] Receiving a preview operation of a target live image;
[0075] In response to the preview operation, a status identifier of the target live image is obtained, and a preview interface is displayed, wherein the preview interface includes the status identifier of the target live image;
[0076] In response to a trigger operation on the state identifier of the target live image, the live state indicated by the state identifier of the target live image is switched to the live state corresponding to the trigger operation.
[0077] Among them, the type of trigger operation can be set according to actual conditions, for example, the trigger operation can be a click operation or a long press operation, which is not limited in the embodiments of the present application. When the live state indicated by the state identifier of the target live image is the open state, the live state corresponding to the trigger operation is the closed state, and when the live state indicated by the state identifier of the target live image is the closed state, the live state corresponding to the trigger operation is the open state.
[0078] In an embodiment of the present application, a preview interface is displayed, and the preview interface includes a status identifier of a target live image; in response to a trigger operation on the status identifier of the target live image, the live status indicated by the status identifier of the target live image is switched to the live status corresponding to the trigger operation, so that the user can also switch the live status of the target live image according to actual needs in the preview interface.
[0079] In some embodiments, before obtaining the live state indicated by the state indicator of the target live image in the preview interface in response to the to-be-edited operation, the method further includes:
[0080] Receiving a preview operation of a target live image;
[0081] In response to the preview operation, obtaining historical operation data of the user;
[0082] Determine the live state indicated by the state indicator of the target live image according to the historical operation data of the user;
[0083] A preview interface is displayed, wherein the preview interface includes a live status indicated by a status indicator of the target live image.
[0084] Among them, the user's historical operation data can be the user's operation behavior on the live image when processing the live image in the past, which can be set according to the actual situation. For example, it can include the user's setting behavior of the status identification of the live image or the status identification in the published live image. The embodiment of the present application is not limited here.
[0085] For example, when the historical operation data is the user's setting behavior for the status identifier of the live image, if the user's historical operation data is to switch the live status of the status identifier of the live image to the on state, then the live status indicated by the status identifier of the target live image is the on state; if the user's historical operation data is to switch the live status of the status identifier of the live image to the off state, then the live status indicated by the status identifier of the target live image is the off state.
[0086] For another example, a state classification model can be trained based on the user's historical operation data, and the state classification model is used to determine the live identification of the live image. The target live image is input into the state identification model to obtain the live state of the target live image.
[0087] Optionally, the live state indicated by the state identifier of the target live image may also be first determined based on the user's historical operation data, and then determined according to the user's trigger operation.
[0088] In an embodiment of the present application, a preview operation of a target live image is received; in response to the preview operation, historical operation data of a user is obtained; based on the historical operation data of the user, a live state indicated by a state identifier of the target live image is determined; and a preview interface is displayed, the preview interface including the live state indicated by the state identifier of the target live image, so that the live state indicated by the state identifier of the preview target live image is automatically determined based on the historical operation data of the user, thereby improving the convenience of determining the live state indicated by the state identifier of the target live image.
[0089] In some embodiments, in response to the preview operation, a preview interface is displayed, and the preview interface includes a status indicator of the target live image, including:
[0090] In response to the preview operation, a live state indicated by a state identifier of the target live image is acquired and the live state indicated by the state identifier of the target live image is displayed on the preview interface, wherein the state identifier is used to control and indicate the live state of the target live image, and the live state includes an on state or an off state;
[0091] Based on the live status, at least a portion of the target live image is played, and / or the target image in the target live image is displayed.
[0092] The live state indicated by the state identifier of the acquired target live image may be a default live state, or may be a live state indicated by the state identifier of the inherited target live image in the album interface.
[0093] Optionally, based on the live state, the process of playing at least a portion of the target live image and / or displaying the target image in the target live image may be:
[0094] If the live state is in the on state, playing at least a portion of the target live image and displaying the target image in the target live image;
[0095] If the live state is off, the target image in the target live image is displayed.
[0096] Among them, at least a part of the images can be set according to actual conditions. For example, at least a part of the images can be all static images in the target live image, or, they can be static images corresponding to a previous preset time length in the target live image. The previous preset time length can be set according to actual conditions. For example, the previous preset time length can be the previous 1.5 seconds or the previous 1.6 seconds. The embodiments of the present application are not limited here.
[0097] In the embodiment of the present application, if the live state is in the on state, at least a portion of the target live image is played and the target image in the target live image is displayed; if the live state is in the off state, the target image in the target live image is displayed, so that different display modes in the target live image are selected in different live states, so that the user can perceive the live state of the target live image from the display mode of the target live image. Moreover, when the static image corresponding to the preset time length in the target live image is played, not only can the user perceive that the live state of the target live image is in the on state, but also the hardware performance consumed by playing the target live image can be reduced.
[0098] In some embodiments, after playing at least a portion of the target live image and / or displaying the target image in the target live image based on the live status, the method further includes:
[0099] If the live state indicated by the state identifier is an on state, in response to a first trigger operation on the target image, playing the target live image;
[0100] And / or, if the live state indicated by the state identifier is an off state, then in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
[0101] Among them, the first trigger operation can be set according to the actual situation, for example, the first trigger operation can be a long press operation or a click operation, which is not limited in the embodiment of the present application. The type of trigger operation for the state identifier can be set according to the actual situation, for example, the trigger operation for the state identifier can be a click operation or a long press operation, which is not limited in the embodiment of the present application.
[0102] In an embodiment of the present application, if the live state indicated by the state identifier is the on state, then in response to the first trigger operation on the target image, the target live image is played; and / or, if the live state indicated by the state identifier is the off state, then in response to the trigger operation on the state identifier, the live state of the target live image is switched to the on state, and the target live image is played, so that when the live state is the on state, the target live image can be played, and when the live state is switched from the off state to the on state, the target live image is played, so that the user perceives the switching of the live state from the playback on the target live image.
[0103] In some embodiments, after playing at least a portion of the target live image and / or displaying the target image in the target live image based on the live status, the method further includes:
[0104] In response to the zoom-in operation on the target image, the target image is zoomed in and the state mark is hidden.
[0105] In the embodiment of the present application, after the target image is displayed, the target image can be enlarged and the status mark can be hidden in response to a zoom-in operation on the target image, thereby achieving real-time control of the display of the status mark.
[0106] When the live state of the target live image indicated by the state identifier is the live state indicated by the inherited album interface state identifier, the album interface further includes the state identifier of the target live image, and in response to the to-be-edited operation, an editing interface is displayed, including:
[0107] Displaying at least one live image and a live identification of the live image via an album interface;
[0108] In response to a selection operation on a target live image, displaying a status indicator of the live image to replace the live indicator;
[0109] In response to the to-be-edited operation, obtaining a live state indicated by a state indicator of a target live image in the album interface;
[0110] Determine the live state indicated by the state identifier of the target live image in the editing interface according to the live state indicated by the state identifier of the target live image in the album interface;
[0111] An editing interface is displayed, and a status mark of the target live image is displayed via the editing interface, where the status mark is used to control and indicate the live status of the target live image.
[0112] For example, the album interface and the live image live logo can be as follows Figure 3 As shown, in response to the selection operation of the live image p1, the album interface and the status mark can be as shown in FIG. Figure 5 As shown, at this time, the live state indicated by the state mark of the live image p1 in the album interface is the on state, and the live state indicated by the state mark of the target live image in the editing interface is also the on state.
[0113] In some embodiments, before receiving the to-be-edited operation on the target live image, the method further includes:
[0114] Displaying at least one live image and a live identification of the live image via an album interface;
[0115] In response to a selection operation on a target live image, a status indicator of the live image is displayed to replace the live indicator.
[0116] For example, the album interface and the live image live logo can be as follows Figure 3 As shown, in response to the selection operation of the live image p1, the album interface and the status mark can be as shown in FIG. Figure 4 shown.
[0117] In some embodiments, when at least one live image and a live identification of the live image are displayed via an album interface, after displaying the album interface, a preview interface can also be displayed in response to a preview operation on the target live image in the album interface, the preview interface including a target image, a target control, and a status identification of the target live image, and in response to a trigger operation on the target control, an operation to be edited is received.
[0118] In some embodiments, after displaying the editing interface in response to the operation to be edited, the method further includes:
[0119] If an element that blocks the state indicator is detected, the state indicator is displayed in a target display style, and the target display style indicates that the state indicator is in a disabled state.
[0120] Among them, elements refer to individuals existing in the interface, for example, elements can be controls or materials, which are not limited in the embodiments of the present application. When the status indicator is displayed in the target display style, it means that the status indicator is in a disabled state. The target display style can be set according to actual conditions, for example, the target display style can be a gray display style or a weakened display style with a transparency of 40%, which is not limited in the embodiments of the present application.
[0121] In an embodiment of the present application, if an element that obstructs the status indicator is detected, the status indicator is displayed in a target display style. The target display style indicates that the status indicator is in a disabled state, so that the user can determine the usage status of the status indicator in real time through the target display style, thereby improving the convenience for the user to determine the usage status of the status indicator.
[0122] In some embodiments, after displaying the editing interface in response to the operation to be edited, the method further includes:
[0123] If the live state indicated by the state indicator is an on state, in response to a preview operation on the editing area in the editing interface, the target live image is played;
[0124] And / or, if the live state indicated by the state identifier is an off state, then in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
[0125] The editing area in the editing interface may include a target image. The type of the preview operation may be set according to actual conditions, for example, the preview operation may be a long press operation or a click operation, which is not limited in the present embodiment.
[0126] The trigger operation of the status indicator can be set according to the actual situation. For example, the trigger operation can be a click operation or a long press operation, which is not limited in the embodiment of the present application.
[0127] In some embodiments, after displaying the editing interface in response to the operation to be edited, the method further includes:
[0128] In response to the target trigger operation of the state identifier, the live state indicated by the state identifier is switched to the live state corresponding to the target trigger operation.
[0129] Among them, when the live state indicated by the state identifier is the on state, the live state corresponding to the target trigger operation is the off state, and when the live state indicated by the state identifier is the off state, the live state corresponding to the target trigger operation is the on state.
[0130] The target trigger operation can be set according to actual conditions. For example, the target trigger operation can be a click operation. When the live state of the status mark in the target live image is the on state, in response to the click operation on the status mark of the target live image, the live state of the status mark of the target live image is switched to the off state, that is, the live state corresponding to the target trigger operation is the off state. When the live state of the status mark in the target live image is the off state, in response to the click operation on the status mark in the target live image, the live state of the status mark in the target live image is switched to the on state, that is, the live state corresponding to the target trigger operation is the on state. For another example, the target trigger operation can include a first click operation and a second click operation. In response to the click operation on the target A first click operation on the status identifier of the live image displays a function selection interface, which includes an on control and a off control. In response to a second click operation on the on control, the live status of the status identifier of the target live image is switched to the on state (at this time, if the live status of the status identifier of the target live image is originally in the on state, there is no need to switch), and the live status corresponding to the target trigger operation is the on state. In response to a second click operation on the off control, the live status of the status identifier of the target live image is switched to the off state (at this time, if the live status of the status identifier of the target live image is originally in the off state, there is no need to switch), and the live status corresponding to the target trigger operation is the off state, which is not limited in the embodiments of the present application.
[0131] In an embodiment of the present application, after the editing interface is displayed in response to the operation to be edited, the live state indicated by the status identifier is switched to the live state corresponding to the target trigger operation in response to the target trigger operation, so that the user can switch the live state of the target live image in real time in the editing interface, thereby improving the flexibility of editing the target live image.
[0132] In some embodiments, after displaying the editing interface in response to the operation to be edited, the method further includes:
[0133] In response to a zoom-in operation on a target image in the editing interface, the target image is zoomed in and the status mark is hidden.
[0134] In an embodiment of the present application, in response to a zoom-in operation on a target image in an editing interface, the target image is zoomed in and the status indicator is hidden, thereby achieving real-time control over the display of the status indicator.
[0135] In some embodiments, the live state corresponding to the target trigger operation is an on state, and after the live state indicated by the state identifier is switched to the live state corresponding to the target trigger operation in response to the target trigger operation of the state identifier, the method further includes:
[0136] In response to the matching operation on the state identifier, the live state of the state identifier of the first live image is switched to an on state, and the first live image is a live image other than the target live image in the selected multiple pictures.
[0137] Among them, the matching operation can be set according to the actual situation. For example, the matching operation can be a double-click operation or a long press operation, which is not limited in the embodiment of the present application.
[0138] Since the terminal can select multiple pictures and then edit the selected multiple pictures through the editing interface, the selected multiple pictures include the target live image, for example, Figure 4 As shown in 401, the terminal can switch the target image to other pictures in response to a sliding operation on the screen, where the other pictures are pictures other than the target live image among the selected multiple pictures, and then edit the other pictures in response to an editing operation on the other pictures.
[0139] Since other pictures may also include live images, in order to improve the user's control speed of the status identifier, the terminal can switch the live state of the status identifier of the first live image to the on state in response to the matching operation of the status identifier, thereby realizing one-click control of the status identifiers of multiple live images and improving the control speed of the status identifier.
[0140] For example, the selected multiple pictures include live image p1, live image p2, live image p3 and picture p4, the target live image is live image p1, the first live images are live image p2 and live image p3, and the terminal responds to the target trigger operation on the state identifier of the live image p1, switches the live state of the state identifier of the live image p1 to the on state, and responds to the matching operation on the state identifier of the live image p1, switches the live state of the state identifier of the live image p2 and the live state of the state identifier of the live image p3 to the on state.
[0141] In some embodiments, in response to the operation to be edited, an editing interface is displayed, the editing interface including status indicators of the target image and the target live image, including:
[0142] In response to the editing operation, the target image in the target live image and the recommended picture matching the target live image are displayed via the editing interface, and the recommended picture includes a status identifier, so that the user can trigger the status identifier of the target live image in the editing interface based on the status identifier in the recommended picture.
[0143] Among them, the recommended picture matching the target live image can refer to a picture that includes the same object as the target live image, and the object refers to the individual included in the picture. For example, the target live image includes scenic spot s1, and picture p1 also includes scenic spot s1, then picture p1 is the recommended picture matching the target live image, and the object is scenic spot s1.
[0144] Alternatively, the recommended picture matched with the target live image may refer to a picture including the same object as the target live image and posted by a user associated with the user. The user refers to a user using the terminal, and the user associated with the user may be at least one of a friend of the user, a user who follows the user, and a user followed by the user.
[0145] Optionally, a recommended picture is displayed in the editing interface, and the live status of the status identifier of the recommended picture can be an on state or an off state. When the live status of the status identifier of the recommended picture is an on state, the picture format of the recommended picture is a live image format. When the live status of the status identifier of the recommended picture is an off state, the picture format of the recommended picture is a static image format. At this time, the status identifier of the recommended picture in the editing interface is used to indicate the picture format of the recommended picture, and the picture format of the recommended picture cannot be changed. When the picture format of the recommended picture needs to be changed, the recommended picture needs to be placed in the editing area of the editing interface. The editing area of the editing interface refers to the area where the target image is located.
[0146] In the embodiment of the present application, the recommended picture is displayed on the editing interface, and the recommended picture includes a status mark, and the status mark of the recommended picture indicates the picture format of the recommended picture, so that the user can view the effect of the recommended picture under the picture format, and trigger the status mark of the target live image according to the effect of the recommended picture (at this time, the editing interface can be as follows Figure 6 As shown), or, the editing interface may also include interactive parameters of the note where the recommended image is located, so that the user can trigger the status identification of the target live image according to the interactive parameters.
[0147] When the editing interface includes the interactive parameter of the note where the recommended image is located, in response to the to-be-edited operation, displaying the target image in the target live image and the recommended image matching the target live image via the editing interface, including:
[0148] In response to the to-be-edited operation, obtaining a recommended picture matching the target live image, the recommended pictures including a first recommended picture and a second recommended picture, the live state of the state identifier included in the first recommended picture being an on state, and the live state of the state identifier included in the second recommended picture being an off state;
[0149] Determine a first interaction parameter corresponding to the note where the first recommended image is located and a second interaction parameter corresponding to the note where the second recommended image is located;
[0150] The target image, the first recommended image, the first interaction parameter, the second recommended image, and the second interaction parameter in the target live image are displayed via the editing interface.
[0151] The first recommended picture may include at least one, and the second recommended picture may include at least one. When the first recommended picture includes multiple pictures, the first recommended picture may be pictures in different published notes, and when the second recommended picture includes multiple pictures, the second recommended picture may be pictures in different published notes.
[0152] The first interaction parameter refers to the interaction behavior with the note where the first recommended image is located, which can be set according to actual conditions. For example, the first interaction parameter may include at least one of the number of views, reposts, likes, comments and favorites of the note where the first recommended image is located, which is not limited in this embodiment of the present application.
[0153] The definition of the second interaction parameter may refer to the definition of the first interaction parameter, and the embodiment of the present application will not be repeated here.
[0154] Optionally, when the first recommended picture is a picture in different published notes, the first interaction parameter may be the sum of the interaction parameters of the different published notes; when the second recommended picture is a picture in a different published note, the second interaction parameter may be the sum of the interaction parameters of the different published notes.
[0155] For example, the first interaction parameter and the second interaction parameter are both the number of note comments, and the editing interface can be as follows Figure 7 shown.
[0156] In an embodiment of the present application, in response to an instruction to edit a target live image, a recommended picture matching the target live image is obtained, the recommended pictures including a first recommended picture and a second recommended picture, the live state of the status identifier included in the first recommended picture being an on state, and the live state of the status identifier included in the second recommended picture being a off state; a first interaction parameter corresponding to the note where the first recommended picture is located and a second interaction parameter corresponding to the note where the second recommended picture is located are determined; the target image, the first recommended picture, the first interaction parameter, the second recommended picture and the second interaction parameter in the target live image are displayed via an editing interface, so that a user can trigger the status identifier of the target image according to the first interaction parameter and the second interaction parameter, for example, if the first interaction parameter is greater than the second interaction parameter, the user may switch the live state of the status identifier of the target image to an on state, and if the first interaction parameter is less than the second interaction parameter, the user may switch the live state of the status identifier of the target image to a off state.
[0157] S103: Based on the live state indicated by the state identifier, take the target image or the target live image in the target live image as an editing object.
[0158] Wherein, based on the live state indicated by the state identifier, the process of taking the target image or the target live image in the target live image as the editing object may be:
[0159] If the live state indicated by the state identifier is a closed state, the target image in the target live image is taken as an editing object;
[0160] If the live state indicated by the state identifier is the on state, the target live image is taken as the editing object.
[0161] When the target image in the target live image is taken as the editing object, it means that only the target image is edited, the target live image is edited in the form of a static image format, and the edited image corresponding to the target live image is in the static image format. When the target live image is taken as the editing object, it means that the target live image is edited in the form of a live image format, which can be only the target image or all image frames in the target live image, and the edited image corresponding to the target live image is in the live image format.
[0162] In some embodiments, the target image may be a cover image in the target live image, which may be a default cover image in the target live image. The default cover image in the target live image may be called an initial static image, that is, the target image may be an initial static image, or the default cover image in the target live image may be modified, and the modified cover image may be used as the target image. When the modified cover image is used as the target image, in some embodiments, after displaying the editing interface in response to the operation to be edited, the following is further included:
[0163] In response to a cover selection operation received via the state identifier, displaying at least one image frame of a target live image;
[0164] The selected image frame is used as a target image in a target live image.
[0165] When an editing interface is displayed in response to an editing operation, the editing interface may include a default cover image.
[0166] Optionally, in response to a cover selection operation received via the status identifier, a cover selection interface may be displayed, the cover selection interface including a first area and a second area, the first area including a default cover image, and the second area including at least one image frame after being reduced. In response to a selection operation of a reduced target image in the reduced plurality of at least one image frame, the target image is displayed on the first area; in response to a confirmation operation on the target image, the target image is displayed via the editing interface.
[0167] The type of cover selection operation can be set according to actual conditions. For example, the cover selection operation can be a long press operation, that is, the terminal can switch the live status of the status identifier in response to a click operation on the status identifier, and display the cover selection interface in response to the long press operation on the status identifier. Alternatively, the cover selection operation can also include a first click operation and a third click operation. The terminal can display a function selection interface in response to the first click operation on the status identifier, and the function selection interface includes a cover selection control. In response to the third click operation on the cover selection control, the cover selection interface is displayed. The embodiments of the present application are not limited here.
[0168] The type of confirmation operation on the target image can be set according to actual conditions. For example, the cover selection interface may include a confirmation control, and the confirmation operation on the target image may be a click operation on the confirmation control, or the confirmation operation on the target image may also be a voice confirmation operation. The embodiments of the present application are not limited here.
[0169] In an embodiment of the present application, the cover image in the target live image can be selected through the status identification, so that the user can select the required cover image according to actual needs, so that the edited image corresponding to the target live image can better meet the user's needs.
[0170] For example, the cover selection operation includes a first click operation and a third click operation, and the initial static image in the target live image displayed via the editing interface can be as follows: Figure 8 As shown in 801, the initial static image may be the fifth static image in the target live image. In response to the first click operation on the state indicator, a function selection interface is displayed. The function selection interface may be as follows: Figure 8 As shown in 802, in response to the third click operation on the cover selection control in the function selection interface, the cover selection interface is displayed. The cover selection interface can be as follows: Figure 8 As shown in 803, in response to the selection operation of the reduced target image in the reduced plurality of static images, the target image is displayed on the first area. At this time, the cover selection interface can be as shown in FIG. Figure 8 As shown in 804 , in response to a click operation on the “√” confirmation control, the target image is displayed via the editing interface.
[0171] Optionally, after displaying the cover selection interface, the terminal can play the target live image in response to a second trigger operation on the static image displayed on the first area. The second trigger operation can be set according to actual conditions. For example, the second trigger operation can be a click operation or a long press operation, which is not limited in the embodiments of the present application.
[0172] Optionally, an initial static image may also be displayed in the preview interface. The process of displaying the initial static image in the preview interface may specifically refer to the process of displaying the target image in the preview interface, and the embodiments of the present application will not be described in detail herein.
[0173] S104: In response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image.
[0174] Among them, the editing operation can be a trigger operation of the editing function on the editing interface, and its type can be set according to the implementation process of the editing function. For example, when the editing function is a cropping function, the editing operation can be a click operation, a drag operation, and a confirmation operation. The embodiment of the present application is not limited here.
[0175] Optionally, the editing operation may include at least one, for example, the editing operation may be an editing operation for a cropping function and / or an editing operation for a beautification function, which is not limited in the embodiments of the present application.
[0176] When the editing object is a target image, the picture format of the edited image corresponding to the target live image is a static image format; when the editing object is a target live image, the picture format of the edited image corresponding to the target live image is a live image format.
[0177] When the editing object is a target live image, only the target image in the target live image may be edited to obtain an edited target image, and the target image in the target live image may be replaced with the edited target image to obtain an edited image.
[0178] When the editing object is a target live image, all image frames in the target live image may also be edited to obtain an edited image.
[0179] When all the image frames in the target live image are edited, the editing object is edited in response to the editing operation on the editing object to obtain an edited image corresponding to the target live image.
[0180] In response to an editing operation on a target image in a target live image, editing the target image to obtain an edited target image;
[0181] Matching the edit operation with the target edit operation in the operation set;
[0182] Editing other static images in the target live image according to the editing operation matching the target editing operation to obtain other edited static images, where the other static images are static images other than the target image among the multiple static images of the target live image;
[0183] According to the edited target image and the other edited static images, an edited image corresponding to the target live image is obtained.
[0184] Among them, the target editing operation in the operation set can be a pre-set operation, which can be set according to actual conditions. For example, the target editing operation can be an operation corresponding to the cropping function and an operation corresponding to the background function. The embodiment of the present application does not limit this.
[0185] The editing operation that matches the target editing operation may mean that when the editing function corresponding to the target editing operation is the same as the editing function corresponding to the editing operation, the editing operation matches the target editing operation. When the editing operation matches the target editing operation, other static images in the target live image are edited according to the editing operation. When the editing operation does not match the target editing operation, other static images in the target live image are not edited according to the editing operation, so that different editing processes are performed on other static images, further improving the flexibility of editing the target live image.
[0186] For example, the target live image includes static image p11, static image p12, static image p13 and static image p14, the target image is static image p12, and the other static images are static image p11, static image p13 and static image p14, the editing operation includes the editing operation corresponding to the cropping function and the editing operation corresponding to the sticker function, the target editing operation includes the editing operation corresponding to the cropping function, the static image p12 is edited according to the editing operation corresponding to the cropping function and the editing operation corresponding to the sticker function to obtain the edited static image p12, the static image p11, static image p13 and static image p14 are edited according to the editing operation corresponding to the cropping function to obtain the edited static image p11, edited static image p13 and edited static image p14, the edited static image p11, edited static image p12, edited static image p13 and edited static image p14 constitute the edited image.
[0187] In some embodiments, in response to an editing operation on an editing object, the editing object is edited to obtain an edited image corresponding to the target live image. The edited image can be displayed via a target preview interface so that the user can preview the edited image. The target preview interface can also be called a release preview interface.
[0188] In some embodiments, the target preview interface may further include a status indicator of the edited image.
[0189] In some embodiments, after the editing object is edited in response to the editing operation on the editing object to obtain an edited image corresponding to the target live image, the method further includes:
[0190] In response to a preview operation on the edited image, displaying the edited image via a target preview interface, wherein the edited image includes a status indicator;
[0191] In response to a triggering operation on a status indicator of the edited image, a picture format of the edited image is changed to obtain a changed picture;
[0192] Display the changed image.
[0193] For example, when the picture format of the edited image is a live image format, the terminal responds to the trigger operation of the status identification of the edited image, changes the edited image to a picture in a static image format, and obtains a changed picture. When the picture format of the edited image is a static image format, the terminal responds to the trigger operation of the status identification of the edited image, changes the edited image to a picture in a live image format, and obtains a changed picture.
[0194] In the embodiment of the present application, in response to a preview operation on an edited image, the edited image is displayed via a target preview interface, and the edited image includes a status indicator; in response to a trigger operation on the status indicator of the edited image, the image format of the edited image is changed to obtain a changed image; the changed image is displayed so that the image format of the edited image can be modified in the target preview interface, further improving the flexibility of controlling the edited image format of the target live image. For example, the target preview interface can be as follows: Fig. 9 shown.
[0195] Optionally, when the picture format of the edited image is a live image format, in response to a preview operation on the edited image, the process of displaying the edited image via the target preview interface may be:
[0196] In response to the preview operation on the edited image, the edited image is played via the target preview interface to display the cover picture in the edited image.
[0197] Among them, playing the edited image through the target preview interface can be playing all static images in the target live image through the target preview interface, or, static images corresponding to the previous preset time length in the target live image can be played through the target preview interface. The previous preset time length can be set according to actual conditions. For example, the previous preset time length can be the first 1.5 seconds or the first 1.6 seconds, which is not limited in the embodiment of the present application.
[0198] Optionally, after playing the edited image through the target preview interface and displaying the cover image in the edited image, the edited image can also be played on the target preview interface in response to a third trigger operation on the cover image. The third trigger operation can be set according to actual conditions. For example, the third trigger operation can be a long press operation or a click operation, which is not limited in the embodiments of the present application.
[0199] In some embodiments, if the edited image is in a static image format, then in response to a preview operation on the edited image, after the edited image is displayed via the target preview interface, the live state of the status identifier of the edited image can be switched to an on state in response to a trigger operation on the status identifier of the edited image, and the target live image can be played.
[0200] In some embodiments, after the editing object is edited in response to the editing operation on the editing object to obtain an edited image corresponding to the target live image, the method further includes:
[0201] In response to a publishing operation on the edited image, displaying a publishing interface, the publishing interface including the edited image and a live identification;
[0202] In response to a publishing operation on the publishing interface, the note including the edited image is published.
[0203] The live logo is used to indicate the image format of the edited image, so that the image format of the edited image can be understood through the live logo in the publishing interface and notes.
[0204] For example, the publishing interface can be Fig.10 As shown, the edited image includes a live logo.
[0205] In some embodiments, after the publishing interface is displayed in response to a publishing operation on the edited image, a target preview interface may also be displayed in response to a triggering operation on the edited image.
[0206] In an embodiment of the present application, in multiple links of the entire publishing link (such as the album interface, the album preview interface, the editing interface and the publishing preview interface), status identification is included, so that the live image can be controlled and displayed in the entire publishing link, so that the user can perceive and control the live status of the live image in real time, improving the user experience and the flexibility of processing the live image.
[0207] As can be seen from the above, in an embodiment of the present application, an operation to be edited on a target live image is received; in response to the operation to be edited, an editing interface is displayed, and a status identifier of the target live image is displayed via the editing interface, the status identifier being used to control and indicate the live status of the target live image; based on the live status indicated by the status identifier, a target image or a target live image in the target live image is determined to be an editing object; in response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image, so that not only can the live image be edited, thereby improving the support capability of the electronic device for the live image, but also the live status of the live image can be known through the status identifier, and the editing object corresponding to the target live image can be controlled through the status identifier, thereby improving the user experience and the flexibility of processing the live image.
[0208] According to the following Fig.11 , the image processing method provided by the present application is further explained. In order to facilitate the explanation of the image processing method of the present application, the following detailed explanation will be given with the image processing device integrated in the terminal, that is, the terminal will be used as the execution subject for detailed explanation.
[0209] See also Fig.11 , Fig.11 : is a flowchart of an image processing method provided by an embodiment of the present application. The image processing method may include:
[0210] S1101: Receive a preview operation on a target live image.
[0211] The preview operation is used to display a preview interface of the target live image. The method of receiving the preview operation of the target live image can be set according to the actual situation. For example, the preview operation of the target live image can be received through voice triggering, or the preview operation of the target live image can be received through a triggering operation on the album interface. The embodiment of the present application is not limited here.
[0212] In some embodiments, before receiving a preview operation on the target live image, the method further includes:
[0213] Displaying at least one live image and a live identification of the live image via an album interface;
[0214] In response to a selection operation on a target live image, a status indicator of the live image is displayed to replace the live indicator.
[0215] At this time, a preview operation may also be received in response to a trigger operation on the album interface.
[0216] S1102: In response to the preview operation, obtain and display a live state indicated by a state identifier of the target live image, where the state identifier is used to control and indicate the live state of the target live image, and the live state includes an on state or an off state.
[0217] In response to the preview operation, the terminal may obtain the live state indicated by the state identifier of the target live image, and display a preview interface, on which the live state indicated by the state identifier of the target live image is displayed.
[0218] In some embodiments, the live state indicated by the status identifier of the target live image may be a default live state, or the live state indicated by the status identifier of the target live image may be the live state indicated by the status identifier of the target live image in the inherited album interface, or the live state indicated by the status identifier of the target live image may be a live state determined according to the user's historical operation data, or the live state indicated by the status identifier of the target live image may be determined according to the user's trigger, which is not limited in the embodiments of the present application.
[0219] Optionally, the live state indicated by the state identifier of the target live image may also be first determined based on the user's historical operation data, and then determined according to the user's trigger operation.
[0220] When the live state indicated by the state identifier of the target live image is determined according to the live state determined by the historical operation data of the user, in response to the preview operation, the live state indicated by the state identifier of the target live image is acquired and displayed, including:
[0221] In response to the preview operation, obtaining historical operation data of the user;
[0222] Determine the live state indicated by the state indicator of the target live image according to the historical operation data of the user;
[0223] The live status is displayed on the status indicator of the target live image.
[0224] For example, if the user's historical operation data is to switch the live state of the status identifier of the live image to the on state, then the live state indicated by the status identifier of the target live image is the on state. For another example, if the user's historical operation data is to switch the live state of the status identifier of the live image to the off state, then the live state indicated by the status identifier of the target live image is the off state.
[0225] When the live state indicated by the state identifier of the target live image is determined according to the trigger of the user, the live state indicated by the state identifier of the target live image is acquired and displayed in response to the preview operation, including:
[0226] In response to the preview operation, acquiring a status identifier of the target live image, and displaying the status identifier of the target live image;
[0227] In response to a trigger operation on the state identifier, a live state corresponding to the trigger operation is displayed on the state identifier of the target live image.
[0228] Wherein, in response to the preview operation, the state identification of the displayed target live image may include the live state or may not include the live state. When in response to the preview operation, the state identification of the displayed target live image includes the live state, in response to the preview operation, the live state of the state identification of the displayed target live image may be a default live state.
[0229] The trigger operation of the status indicator can be set according to the actual situation. For example, the trigger operation of the status indicator can be a click operation or a long press operation, which is not limited in the embodiment of the present application.
[0230] When, in response to a preview operation, the status identifier of the displayed target live image includes a live status, if, in response to the preview operation, the live status of the status identifier of the displayed target live image is an on status, then the live status corresponding to the trigger operation is an off status; if, in response to the preview operation, the live status of the status identifier of the displayed target live image is an off status, then the live status corresponding to the trigger operation is an on status.
[0231] S1103: Based on the live status, play at least a portion of the target live image, and / or display the target image in the target live image.
[0232] Wherein, based on the live status, at least a part of the target live image is played on the preview interface, and / or the target image in the target live image is displayed.
[0233] Optionally, based on the live state, the process of playing at least a portion of the target live image and / or displaying the target image in the target live image may be:
[0234] If the live state is in the on state, playing at least a portion of the target live image and displaying the target image in the target live image;
[0235] If the live state is off, the target image in the target live image is displayed.
[0236] Among them, at least a part of the images can be set according to actual conditions. For example, at least a part of the images can be all static images in the target live image, or, they can be static images corresponding to a previous preset time length in the target live image. The previous preset time length can be set according to actual conditions. For example, the previous preset time length can be the previous 1.5 seconds or the previous 1.6 seconds. The embodiments of the present application are not limited here.
[0237] In an embodiment of the present application, if the live state is in the on state, at least a portion of the target live image is played and the target image in the target live image is displayed; if the live state is in the off state, the target image in the target live image is displayed, so that different display modes in the target live image are selected in different live states, so that the user can perceive the live state of the target live image from the display mode of the target live image.
[0238] In some embodiments, after playing at least a portion of the target live image and / or displaying the target image in the target live image based on the live status, the method further includes:
[0239] If the live state indicated by the state identifier is an on state, in response to a first trigger operation on the target image, playing the target live image;
[0240] And / or, if the live state indicated by the state identifier is an off state, then in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
[0241] In some embodiments, before playing at least a portion of the target live image based on the live status and / or displaying the target image in the target live image, the method further includes:
[0242] In response to a cover selection operation received via the state identifier, displaying at least one image frame of a target live image;
[0243] The selected image frame is used as a target image in a target live image.
[0244] In some embodiments, after playing at least a portion of the target live image and / or displaying the target image in the target live image based on the live status, the method further includes:
[0245] In response to the zoom-in operation on the target image, the target image is zoomed in and the state mark is hidden.
[0246] In an embodiment of the present application, a preview operation of a target live image is received, and in response to the preview operation, a live state indicated by a state identifier of the target live image is acquired and displayed, the state identifier is used to control and indicate the live state of the target live image, the live state includes an on state or an off state, and based on the live state, at least a portion of the image in the target live image is played, and / or the target image in the target live image is displayed, so that different live states can be displayed in different display modes, so that the user can perceive the picture format of the target live image from different display modes, thereby improving the flexibility of the user in processing the target live image.
[0247] The specific implementation method and corresponding beneficial effects of this embodiment can be specifically referred to the above-mentioned image processing embodiment, and this embodiment will not be described in detail here.
[0248] In order to better implement the image processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above image processing method. The meanings of the terms are the same as those in the above image processing method, and the specific implementation details can refer to the description in the method embodiment.
[0249] For example, Fig.12 As shown, the image processing device may include:
[0250] The receiving module 1201 is used to receive an operation to be edited on a target live image.
[0251] The response module 1202 is used to respond to the operation to be edited, display an editing interface, and display a state mark of the target live image via the editing interface, where the state mark is used to control and indicate the live state of the target live image.
[0252] The determination module 1203 is used to determine, based on the live state indicated by the state identifier, whether to use the target image or the target live image in the target live image as an editing object.
[0253] The generating module 1204 is used to edit the editing object in response to the editing operation on the editing object, and obtain an edited image corresponding to the target live image.
[0254] Optionally, the determination module 1203 is specifically configured to execute:
[0255] If the live state indicated by the state identifier is a closed state, the target image in the target live image is taken as an editing object;
[0256] If the live state indicated by the state identifier is the on state, the target live image is taken as the editing object.
[0257] Optionally, the editing object is a target live image, and the generating module 1204 is specifically used to execute:
[0258] In response to an editing operation on a target image in a target live image, editing the target image to obtain an edited target image;
[0259] Matching the edit operation with the target edit operation in the operation set;
[0260] Editing other static images in the target live image according to the editing operation matching the target editing operation to obtain other edited static images, where the other static images are static images other than the target image among the multiple static images of the target live image;
[0261] According to the edited target image and the other edited static images, an edited image corresponding to the target live image is obtained.
[0262] Optionally, the image processing device further includes:
[0263] Display module for executing:
[0264] If an element that blocks the state indicator is detected, the state indicator is displayed in a target display style, and the target display style indicates that the state indicator is in a disabled state.
[0265] Optionally, the display module is further configured to execute:
[0266] If the live state indicated by the state identifier is an open state, in response to a preview operation on the editing area in the editing interface, the target live image is played;
[0267] And / or, if the live state indicated by the state identifier is an off state, then in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
[0268] Optionally, the display module is further configured to execute:
[0269] In response to a cover selection operation received via the state identifier, displaying at least one image frame of a target live image;
[0270] The selected image frame is used as a target image in a target live image.
[0271] Optionally, the display module is further configured to execute:
[0272] Displaying at least one live image and a live identification of the live image via an album interface;
[0273] In response to a selection operation on a target live image, a status indicator of the live image is displayed to replace the live indicator.
[0274] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0275] In order to better implement the image processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above image processing method. The meanings of the terms are the same as those in the above image processing method, and the specific implementation details can refer to the description in the method embodiment.
[0276] For example, Fig.13 As shown, the image processing device may include:
[0277] The first receiving module 1301 is used to receive a preview operation on a target live image.
[0278] The first response module 1302 is used to respond to the preview operation, obtain and display the live state indicated by the state identifier of the target live image, and the state identifier is used to control and indicate the live state of the target live image, and the live state includes an on state or an off state.
[0279] The playing and displaying module 1303 is configured to play at least a portion of the target live image and / or display the target image in the target live image based on the live status.
[0280] Optionally, the playback and display module is specifically used to execute:
[0281] If the live state is in the on state, playing at least a portion of the target live image and displaying the target image in the target live image;
[0282] If the live state is off, the target image in the target live image is displayed.
[0283] Optionally, the first response module is specifically used to execute:
[0284] In response to the preview operation, obtaining historical operation data of the user;
[0285] Determine the live state indicated by the state indicator of the target live image according to the historical operation data of the user;
[0286] The live status is displayed on the status indicator of the target live image.
[0287] Optionally, the first response module is specifically used to execute:
[0288] In response to the preview operation, acquiring a status identifier of the target live image, and displaying the status identifier of the target live image;
[0289] In response to a trigger operation on the state identifier, a live state corresponding to the trigger operation is displayed on the state identifier of the target live image.
[0290] Optionally, the playback and display module 1303 is further configured to execute:
[0291] If the live state indicated by the state identifier is an on state, in response to a first trigger operation on the target image, playing the target live image;
[0292] And / or, if the live state indicated by the state identifier is an off state, then in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
[0293] Optionally, the first receiving module 1301 is further configured to execute:
[0294] In response to a cover selection operation received via the state identifier, displaying at least one image frame of a target live image;
[0295] The selected image frame is used as a target image in a target live image.
[0296] Optionally, the playback and display module 1303 is further configured to execute:
[0297] In response to the zoom-in operation on the target image, the target image is zoomed in and the state mark is hidden.
[0298] Optionally, the first receiving module 1301 is further configured to execute:
[0299] Displaying at least one live image and a live identification of the live image via an album interface;
[0300] In response to a selection operation on a target live image, a status indicator of the live image is displayed to replace the live indicator.
[0301] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0302] The present application also provides an electronic device, which may be a server or a terminal, etc. Fig.14 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0303] The electronic device may include components such as a processor 1401 with one or more processing cores, a memory 1402 with one or more computer-readable storage media, a power supply 1403, and an input unit 1404. Those skilled in the art will appreciate that Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0304] The processor 1401 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing computer programs and / or modules stored in the memory 1402, and calling data stored in the memory 1402. Optionally, the processor 1401 may include one or more processing cores; preferably, the processor 1401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1401.
[0305] The memory 1402 can be used to store computer programs and modules. The processor 1401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 1402. The memory 1402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1402 may also include a memory controller to provide the processor 1401 with access to the memory 1402.
[0306] The electronic device also includes a power supply 1403 for supplying power to each component. Preferably, the power supply 1403 can be logically connected to the processor 1401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 1403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0307] The electronic device may further include an input unit 1404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0308] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 1401 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 1402 according to the following instructions, and the processor 1401 will run the computer programs stored in the memory 1402, thereby realizing various functions, such as:
[0309] receiving an operation to be edited on a target live image;
[0310] In response to the operation to be edited, an editing interface is displayed, and a state mark of the target live image is displayed via the editing interface, where the state mark is used to control and indicate the live state of the target live image;
[0311] Based on the live state indicated by the state identifier, taking the target image or the target live image in the target live image as an editing object;
[0312] In response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image.
[0313] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the image processing method above, which will not be elaborated here.
[0314] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0315] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any image processing method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0316] receiving an operation to be edited on a target live image;
[0317] In response to the operation to be edited, an editing interface is displayed, and a state mark of the target live image is displayed via the editing interface, where the state mark is used to control and indicate the live state of the target live image;
[0318] Based on the live state indicated by the state identifier, taking the target image or the target live image in the target live image as an editing object;
[0319] In response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image.
[0320] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0321] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0322] Since the computer program stored in the computer-readable storage medium can execute the steps in any image processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any image processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0323] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned image processing method.
[0324] The above is a detailed introduction to an image processing method, device, electronic device and computer storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An image processing method, characterized in that: include: receiving an operation to be edited on a target live image; In response to the to-be-edited operation, an editing interface is displayed, and a status indicator of the target live image is displayed via the editing interface, wherein the status indicator is used to control and indicate a live status of the target live image; Based on the live state indicated by the state identifier, taking a target image in the target live image or the target live image as an editing object; In response to an editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image.
2. The image processing method according to claim 1, characterized in that: The step of taking the target image in the target live image and / or the target live image as an editing object based on the live state indicated by the state identifier includes: If the live state indicated by the state identifier is a closed state, taking the target image in the target live image as an editing object; If the live state indicated by the state identifier is an open state, the target live image is taken as an editing object.
3. The image processing method according to claim 2, characterized in that: The editing object is the target live image, and in response to the editing operation on the editing object, the editing object is edited to obtain an edited image corresponding to the target live image, including: In response to an editing operation on the target image in the target live image, editing the target image to obtain an edited target image; Matching the editing operation with a target editing operation in an operation set; Performing editing processing on other static images in the target live image according to an editing operation matching the target editing operation to obtain other edited static images, wherein the other static images are static images other than the target image among the multiple static images of the target live image; According to the edited target image and the edited other static images, an edited image corresponding to the target live image is obtained.
4. The image processing method according to claim 1, characterized in that: After displaying the editing interface in response to the editing operation, the method further includes: If it is detected that there is an element that blocks the status indicator, the status indicator is displayed in a target display style, and the target display style indicates that the status indicator is in a disabled state.
5. The image processing method according to claim 1, characterized in that: After displaying the editing interface in response to the editing operation, the method further includes: If the live state indicated by the state identifier is an open state, in response to a preview operation on the editing area in the editing interface, playing the target live image; And / or, if the live state indicated by the state identifier is an off state, in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
6. The image processing method according to claim 1, characterized in that: After displaying the editing interface in response to the editing operation, the method further includes: In response to a cover selection operation received via the state identifier, displaying at least one image frame of the target live image; The selected image frame is used as the target image in the target live image.
7. The image processing method according to claim 1, characterized in that: Before receiving the operation to be edited on the target live image, the method further includes: Displaying at least one live image and a live identification of the live image via an album interface; In response to a selection operation on a target live image, a status indicator of the live image is displayed to replace the live indicator.
8. An image processing method, characterized in that: include: Receiving a preview operation of a target live image; In response to the preview operation, acquiring and displaying a live state indicated by a state identifier of the target live image, wherein the state identifier is used to control and indicate a live state of the target live image, and the live state includes an on state or an off state; Based on the live status, at least a portion of the target live image is played, and / or a target image in the target live image is displayed.
9. The image processing method according to claim 8, characterized in that: The playing at least a portion of the target live image based on the live state, and / or displaying the target image in the target live image, comprises: If the live state is the on state, playing at least a portion of the target live image and displaying the target image in the target live image; If the live state is in the off state, the target image in the target live image is displayed.
10. The image processing method according to claim 8, characterized in that: The step of acquiring and displaying the live state indicated by the state indicator of the target live image in response to the preview operation includes: In response to the preview operation, acquiring historical operation data of the user; Determining the live state indicated by the state identifier of the target live image according to the historical operation data of the user; The live status is displayed on the status indicator of the target live image.
11. The image processing method according to claim 8, characterized in that: The step of acquiring and displaying the live state indicated by the state indicator of the target live image in response to the preview operation includes: In response to the preview operation, acquiring a status identifier of the target live image, and displaying the status identifier of the target live image; In response to a trigger operation on the status identifier, a live status corresponding to the trigger operation is displayed on the status identifier of the target live image.
12. The image processing method according to claim 8, characterized in that: After playing at least a portion of the target live image based on the live state, and / or displaying the target image in the target live image, the method further includes: If the live state indicated by the state identifier is an on state, in response to a first trigger operation on the target image, playing the target live image; And / or, if the live state indicated by the state identifier is an off state, in response to a trigger operation on the state identifier, the live state of the target live image is switched to an on state, and the target live image is played.
13. The image processing method according to claim 8, characterized in that: Before playing at least a portion of the target live image based on the live state and / or displaying the target image in the target live image, the method further includes: In response to a cover selection operation received via the state identifier, displaying at least one image frame of the target live image; The selected image frame is used as the target image in the target live image.
14. The image processing method according to claim 8, characterized in that: After playing at least a portion of the target live image based on the live state, and / or displaying the target image in the target live image, the method further includes: In response to the zoom-in operation on the target image, the target image is zoomed in and the status mark is hidden.
15. The image processing method according to claim 8, characterized in that: Before receiving the preview operation of the target live image, the method further includes: Displaying at least one live image and a live identification of the live image via an album interface; In response to a selection operation on a target live image, a status indicator of the live image is displayed to replace the live indicator.
16. An image processing device, characterized in that: include: A receiving module, used for receiving an operation to be edited on a target live image; A response module, configured to display an editing interface in response to the operation to be edited, and to display a status mark of the target live image via the editing interface, wherein the status mark is used to control and indicate a live state of the target live image; A determination module, configured to determine, based on the live state indicated by the state identifier, whether to use a target image in the target live image or the target live image as an editing object; The generating module is used for editing the editing object in response to the editing operation on the editing object to obtain the edited image corresponding to the target live image.
17. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the image processing method according to any one of claims 1 to 15.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the image processing method according to any one of claims 1 to 15.
