CN114612588A - Picture editing method and device, electronic equipment and storage medium - Google Patents

Picture editing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114612588A
CN114612588A CN202210238471.0A CN202210238471A CN114612588A CN 114612588 A CN114612588 A CN 114612588A CN 202210238471 A CN202210238471 A CN 202210238471A CN 114612588 A CN114612588 A CN 114612588A
Authority
CN
China
Prior art keywords
editing
picture
progress
operation element
candidate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210238471.0A
Other languages
Chinese (zh)
Inventor
吴绍宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bright Jupiter Private Ltd.
Original Assignee
Lemei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lemei Technology Co ltd filed Critical Lemei Technology Co ltd
Priority to CN202210238471.0A priority Critical patent/CN114612588A/en
Publication of CN114612588A publication Critical patent/CN114612588A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a picture editing method and device, electronic equipment and a storage medium. The editing method comprises the following steps: acquiring a plurality of editing events for a picture; generating an operation element of the picture according to each editing event, wherein the operation element is used for representing the editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event; acquiring operation information aiming at the operation element; and adjusting the editing progress of the picture according to the operation information aiming at the operation element. Therefore, the method can realize multiple times of adjustment of the editing progress of the picture, improves the flexibility and convenience of adjustment of the editing progress of the picture, and is beneficial to improving the picture editing efficiency.

Description

Picture editing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for editing a picture, an electronic device, and a storage medium.
Background
At present, with the vigorous development of network technology, picture editing is widely applied in people's daily life. For example, people can edit pictures to obtain pictures meeting work specifications, can edit pictures to obtain more beautiful pictures, and the like. However, the image editing method in the related art has the problems of complicated operation, low editing efficiency, and the like.
Disclosure of Invention
The present application aims to solve at least to some extent one of the technical problems in the above-mentioned technology.
Therefore, an object of the present application is to provide a picture editing method, which may generate an operation element of a picture according to each editing event of the picture, where the operation element is used to represent an editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and adjust the editing progress of the picture according to operation information for the operation element. Therefore, the method can realize multiple times of adjustment of the editing progress of the picture, improves the flexibility and convenience of adjustment of the editing progress of the picture, and is beneficial to improving the picture editing efficiency.
A second object of the present application is to provide a picture editing apparatus.
A third object of the present application is to provide an electronic device.
A fourth object of the present application is to propose a computer readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present application provides a picture editing method, including: acquiring a plurality of editing events for a picture; generating an operation element of the picture according to each editing event, wherein the operation element is used for representing the editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event; acquiring operation information aiming at the operation element; and adjusting the editing progress of the picture according to the operation information aiming at the operation element.
According to the picture editing method, the operation elements of the picture can be generated according to each editing event of the picture, the operation elements are used for representing the editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and the editing progress of the picture is adjusted according to the operation information aiming at the operation elements. Therefore, the method can realize multiple times of adjustment of the editing progress of the picture, improves the flexibility and convenience of adjustment of the editing progress of the picture, and is beneficial to improving the picture editing efficiency.
In addition, the picture editing method proposed according to the above embodiment of the present application may further have the following additional technical features:
in an embodiment of the present application, the operation element includes a plurality of setting nodes and a movable target node, where the setting nodes are used to characterize the candidate editing progress of the picture, and a position of the target node in the operation element is used to characterize the editing progress of the picture.
In an embodiment of the application, the operation element is a progress bar, a first setting node of the progress bar is used for characterizing a first candidate editing progress, and a last setting node is used for characterizing a last candidate editing progress, where the first candidate editing progress corresponds to a first editing event, and the last candidate editing progress corresponds to a combination of each editing event.
In an embodiment of the application, the generating an operation element of the picture according to each editing event includes: sequencing the editing events from morning to evening according to the editing time to generate a first sequence of the editing events; combining the editing events according to the first sequence to generate a plurality of combinations of the editing events; generating any set node of the progress bar according to any combination of the editing events; generating a second sequence of the set nodes according to the first sequence; and splicing the set nodes according to the second sequence to generate the progress bar.
In an embodiment of the application, the adjusting the editing progress of the picture according to the operation information for the operation element includes: determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element; and adjusting the editing progress of the picture according to the adjustment amount.
In one embodiment of the present application, the adjustment amount includes an adjustment direction and/or an adjustment step size; the operation information aiming at the target node comprises at least one of a moving direction, a moving distance, a first position of the target node before moving and a second position of the target node after moving; the determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element comprises the following steps: determining the adjustment direction according to the moving direction; and/or, determining the adjustment step length according to the moving distance; and/or determining the adjustment direction and/or the adjustment step length according to the first position and the second position.
In an embodiment of the application, the adjusting the editing progress of the picture according to the operation information for the operation element includes: determining a target editing progress of the picture according to the operation information aiming at the operation element; and controlling the editing progress of the picture to be adjusted to the target editing progress.
In one embodiment of the present application, the operation information for the target node includes a second location of the target node after the movement; the determining the target editing progress of the picture according to the operation information aiming at the operation element comprises the following steps: and determining the target editing progress of the picture according to the second position.
In one embodiment of the present application, the method further comprises: and generating a thumbnail of the picture under the editing progress of the picture, and controlling and displaying the thumbnail.
In one embodiment of the present application, the method further comprises: and under the condition that the determination information aiming at the editing progress of the picture is acquired, editing the picture according to at least one editing event corresponding to the editing progress of the picture, and generating a target picture under the editing progress of the picture.
In order to achieve the above object, a second aspect of the present application provides a picture editing apparatus, including: the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of editing events aiming at pictures; the generating module is used for generating an operation element of the picture according to each editing event, wherein the operation element is used for representing the editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event; a second obtaining module, configured to obtain operation information for the operation element; and the adjusting module is used for adjusting the editing progress of the picture according to the operation information aiming at the operation elements.
The picture editing device of the embodiment of the application can generate the operation elements of the picture according to each editing event of the picture, the operation elements are used for representing the editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and the editing progress of the picture is adjusted according to the operation information aiming at the operation elements. Therefore, the picture editing progress can be adjusted for multiple times, the flexibility and convenience of adjusting the picture editing progress are improved, and the picture editing efficiency is improved.
In addition, the picture editing apparatus proposed according to the above-mentioned embodiment of the present application may further have the following additional technical features:
in an embodiment of the present application, the operation element includes a plurality of setting nodes and a movable target node, where the setting nodes are used to characterize the candidate editing progress of the picture, and a position of the target node in the operation element is used to characterize the editing progress of the picture.
In an embodiment of the application, the operation element is a progress bar, a first setting node of the progress bar is used for characterizing a first candidate editing progress, and a last setting node is used for characterizing a last candidate editing progress, where the first candidate editing progress corresponds to a first editing event, and the last candidate editing progress corresponds to a combination of each editing event.
In an embodiment of the application, the generating module is further configured to: sequencing the editing events from morning to evening according to the editing time to generate a first sequence of the editing events; combining the editing events according to the first sequence to generate a plurality of combinations of the editing events; generating any set node of the progress bar according to any combination of the editing events; generating a second sequence of the set nodes according to the first sequence; and splicing the set nodes according to the second sequence to generate the progress bar.
In an embodiment of the application, the adjusting module is further configured to: determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element; and adjusting the editing progress of the picture according to the adjustment amount.
In one embodiment of the present application, the adjustment amount includes an adjustment direction and/or an adjustment step size; the operation information aiming at the target node comprises at least one of a moving direction, a moving distance, a first position of the target node before moving and a second position of the target node after moving; the adjusting module is further configured to: determining the adjustment direction according to the moving direction; and/or, determining the adjustment step length according to the moving distance; and/or determining the adjustment direction and/or the adjustment step length according to the first position and the second position.
In an embodiment of the application, the adjusting module is further configured to: determining a target editing progress of the picture according to the operation information aiming at the operation element; and controlling the editing progress of the picture to be adjusted to the target editing progress.
In one embodiment of the present application, the operation information for the target node includes a second location of the target node after the movement; the adjusting module is further configured to: and determining the target editing progress of the picture according to the second position.
In one embodiment of the present application, the apparatus further comprises: a display module, the display module to: and generating a thumbnail of the picture under the editing progress of the picture, and controlling and displaying the thumbnail.
In one embodiment of the present application, the apparatus further comprises: an editing module, the editing module to: and under the condition that the determination information aiming at the editing progress of the picture is acquired, editing the picture according to at least one editing event corresponding to the editing progress of the picture, and generating a target picture under the editing progress of the picture.
To achieve the above object, a third aspect of the present application provides an electronic device, including: the image editing method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the image editing method according to the embodiment of the first aspect of the present application.
According to the electronic device, the processor executes the instruction stored in the memory, the operation elements of the picture can be generated according to each editing event of the picture, the operation elements are used for representing the editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and the editing progress of the picture is adjusted according to the operation information aiming at the operation elements. Therefore, the picture editing progress can be adjusted for multiple times, the flexibility and convenience of adjusting the picture editing progress are improved, and the picture editing efficiency is improved.
To achieve the above object, a fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the picture editing method according to the first aspect of the present application.
The computer-readable storage medium of the embodiment of the application, which stores a computer program and is executed by a processor, may generate an operation element of a picture according to each editing event of the picture, where the operation element is used to represent an editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and adjust the editing progress of the picture according to operation information for the operation element. Therefore, the picture editing progress can be adjusted for multiple times, the flexibility and convenience of adjusting the picture editing progress are improved, and the picture editing efficiency is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a picture editing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a progress bar in a picture editing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of operation elements for generating a picture in a picture editing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of adjusting an editing progress of a picture in a picture editing method according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating a process of adjusting an editing progress of a picture in a picture editing method according to another embodiment of the present application;
FIG. 6 is a block diagram of a picture editing apparatus according to an embodiment of the present application;
FIG. 7 is a block diagram of an electronic device according to one embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The following describes a picture editing method, an apparatus, an electronic device, and a storage medium according to embodiments of the present application with reference to the drawings.
Fig. 1 is a flowchart illustrating a picture editing method according to an embodiment of the present application.
As shown in fig. 1, the method for editing a picture according to the embodiment of the present application includes:
s101, a plurality of editing events aiming at the pictures are acquired.
The main body of the image editing method according to the embodiment of the present application may be the image editing apparatus according to the embodiment of the present application, and the image editing apparatus may be configured in any electronic device to execute the image editing method according to the embodiment of the present application. The electronic device may be any device having a computing capability, for example, a Personal Computer (PC), a mobile terminal, a server, and the like, and the mobile terminal may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, and a wearable device.
In an embodiment of the application, a plurality of editing events for a picture may be obtained. It should be noted that the category of the editing event is not limited too much, for example, the editing event includes, but is not limited to, adjusting brightness, adjusting contrast, adjusting color tone, rotating, clipping, adding text, adding a picture frame, and the like.
In one embodiment, a plurality of operation information for the picture can be acquired, and any editing event for the picture can be generated according to any operation information for the picture.
In one embodiment, operation information generated by a user through a picture editing tool may be acquired. It should be noted that the type of the picture editing tool is not limited too much, for example, the picture editing tool includes but is not limited to APP (Application), web page, and the like. For example, a user may click on an icon for adjusting brightness, select and/or enter brightness on an editing interface of a picture editing tool to generate an event for adjusting brightness for a picture. For example, a user may click on an icon of the input text on an editing interface of the picture editing tool and input the text to generate an add text event for the picture.
In one embodiment, a picture may be input to a picture editing model, edited by the picture editing model, and output a plurality of editing events for the picture. It should be noted that the type of the picture editing model is not limited too much. For example, the picture editing model may be preset in the picture editing tool.
And S102, generating an operation element of the picture according to each editing event, wherein the operation element is used for representing the editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event.
It should be noted that the operation elements of the picture refer to operable elements, and the category of the operation elements is not limited too much, for example, the operation elements include, but are not limited to, an input text box, an icon, a progress bar, a selection menu, and the like. For example, the operation element is located on an editing interface of the picture editing tool.
It should be noted that the editing progress of the picture corresponds to at least one editing event. It will be appreciated that the picture may have a plurality of candidate editing schedules, each candidate editing schedule corresponding to at least one editing event, the editing schedule of the picture being one of the plurality of candidate editing schedules. For example, the number of candidate editing schedules is equal to the number of editing events.
For example, for a plurality of editing events of the picture a, the editing events 1 to 4 are sequentially from morning to evening according to the editing time, the candidate editing schedules of the picture a include candidate editing schedules 1 to 4, where the candidate editing schedule 1 corresponds to the editing event 1, the candidate editing schedule 2 corresponds to a combination of the editing events 1 and 2, the candidate editing schedule 3 corresponds to a combination of the editing events 1 to 3, and the candidate editing schedule 4 corresponds to a combination of the editing events 1 to 4.
In one embodiment, generating the operation element of the picture according to each editing event may include generating a candidate editing schedule of the picture according to each editing event, and generating the operation element of the picture according to each candidate editing schedule of the picture.
For example, when the operation element is an input text box, any candidate input text of the input text box can be generated according to any candidate editing progress of the picture; when the operation elements are icon sets, any icon can be generated according to any candidate editing progress of the picture, and the icon sets are generated on the basis of each icon; when the operation element is a progress bar, any node can be generated according to any candidate editing progress of the picture, and the progress bar is generated based on each node; when the operation element is a selection menu, any candidate item in the selection menu can be generated according to any candidate editing progress of the picture, and the selection menu is generated based on each candidate item.
S103, acquiring operation information aiming at the operation element.
The type of the operation information for the operation element is not limited to a large number, and the operation information for the operation element includes, but is not limited to, operation information input for the operation element, operation information for selecting the operation element, and the like.
In one embodiment, the operation element may be controlled to be displayed, for example, the operation element may be displayed on an editing interface of the picture editing tool, and accordingly, operation information for the operation element generated by the user through the editing interface of the picture editing tool may be obtained.
And S104, adjusting the editing progress of the picture according to the operation information aiming at the operation element.
In one embodiment, adjusting the editing progress of the picture according to the operation information for the operation element may include the following two possible embodiments:
in the method 1, when the operation information for the operation element is the first operation information for returning N editing schedules, the editing schedule of the picture is controlled to return N editing schedules.
It should be noted that N is not limited too much, and N may be a natural number, for example, N may be 1, 2, 3, or the like.
For example, the candidate editing schedules of the picture a include candidate editing schedules 1 to 10, the editing schedules corresponding to the candidate editing schedules 1 to 10 are sequentially increased, and the editing schedule of the picture a is the candidate editing schedule 5.
In the case that the operation information for the operation element is the first operation information for returning 1 editing progress, controlling the editing progress of the picture to return 1 editing progress, that is, controlling the editing progress of the picture to return from the candidate editing progress 5 to the candidate editing progress 4;
in the case where the operation information for the operation element is the first operation information for returning 3 editing schedules, the editing schedule of the control picture is returned to 3 editing schedules, that is, the editing schedule of the control picture is returned from the candidate editing schedule 5 to the candidate editing schedule 2.
In the mode 2, when the operation information on the operation element is the second operation information for advancing M editing schedules, the editing schedule of the picture is controlled to advance M editing schedules.
It should be noted that M is not limited too much, and M may be a natural number, for example, M may be 1, 2, 3, or the like.
For example, the candidate editing schedules of the picture a include candidate editing schedules 1 to 10, the editing schedules corresponding to the candidate editing schedules 1 to 10 are sequentially increased, and the editing schedule of the picture a is the candidate editing schedule 5.
In the case that the operation information for the operation element is the second operation information for advancing 1 editing progress, controlling the editing progress of the picture to advance 1 editing progress, that is, controlling the editing progress of the picture to advance from the candidate editing progress 5 to the candidate editing progress 6;
in the case where the operation information for the operation element is the second operation information for advancing 3 editing schedules, the editing schedule of the control picture advances by 3 editing schedules, that is, the editing schedule of the control picture advances from the candidate editing schedule 5 to the candidate editing schedule 8.
In summary, according to the picture editing method of the embodiment of the application, the operation element of the picture can be generated according to each editing event of the picture, the operation element is used for representing the editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and the editing progress of the picture is adjusted according to the operation information for the operation element. Therefore, the method can realize multiple times of adjustment of the editing progress of the picture, improves the flexibility and convenience of adjustment of the editing progress of the picture, and is beneficial to improving the picture editing efficiency.
On the basis of any embodiment, the operation element comprises a plurality of setting nodes and a movable target node, wherein the setting nodes are used for representing the candidate editing progress of the picture, and the position of the target node in the operation element is used for representing the editing progress of the picture. For example, the number of the setting nodes is equal to the number of the candidate editing schedules. It should be noted that, the moving manner of the target node is not limited too much, for example, the moving manner of the target node may include dragging, clicking, and the like.
For example, the candidate editing schedules of the picture a include candidate editing schedules 1 to 10, the editing schedules corresponding to the candidate editing schedules 1 to 10 gradually increase, the operation elements of the picture a include setting nodes 1 to 10, and the setting nodes 1 to 10 are respectively used for representing the candidate editing schedules 1 to 10.
In one embodiment, the operational element is a progress bar. It can be understood that the farther left the position of the setting node in the progress bar is, the smaller the corresponding candidate editing progress is, and the farther right the position of the setting node in the progress bar is, the larger the corresponding candidate editing progress is.
The setting nodes included in the progress bar can be sequenced from left to right according to the positions in the progress bar, the candidate editing schedules are sequenced from small to large according to the editing schedules, the first setting node of the progress bar is used for representing the first candidate editing schedule, the last setting node is used for representing the last candidate editing schedule, the first candidate editing schedule corresponds to the first editing event, and the last candidate editing schedule corresponds to the combination of each editing event.
In one embodiment, the more left the position of the target node in the progress bar, the smaller the editing progress of the corresponding picture, and the more right the position of the setting node in the progress bar, the larger the editing progress of the corresponding picture.
In one embodiment, a target setting node corresponding to the position of the target node may be obtained, and the candidate editing progress corresponding to the target setting node may be used as the editing progress of the picture.
For example, for a plurality of editing events of the picture a, the editing events 1 to 4 are sequentially from morning to evening according to the editing time, the candidate editing schedules of the picture a include candidate editing schedules 1 to 4, where the candidate editing schedule 1 corresponds to the editing event 1, the candidate editing schedule 2 corresponds to a combination of the editing events 1 and 2, the candidate editing schedule 3 corresponds to a combination of the editing events 1 to 3, and the candidate editing schedule 4 corresponds to a combination of the editing events 1 to 4.
As shown in fig. 2, the progress bar of the picture a includes setting nodes 1 to 4, and the setting nodes 1 to 4 are respectively used for representing candidate editing progresses 1 to 4. And setting the positions of the nodes 1 to 4 in the progress bar to gradually move to the right, and gradually increasing the editing progress corresponding to the candidate editing progress 1 to 4.
On the basis of any of the above embodiments, as shown in fig. 3, the generating operation elements of the picture according to each editing event in step S102 may include:
s301, sorting the editing events from morning to evening according to the editing time, and generating a first sorting of the editing events.
For example, the plurality of editing events for the picture a include editing events 1 to 4, and the editing events 1 to 4 may be sorted from morning to evening according to the editing time, and the first generated order is the editing events 1 to 4.
S302, the editing events are combined according to the first sequence, and a plurality of combinations of the editing events are generated.
S303, generating any setting node of the progress bar according to any combination of the editing events.
It should be noted that any combination of editing events is used to characterize any candidate editing progress of the picture.
In one embodiment, combining the editing events in a first order to generate a plurality of combinations of editing events may include combining the editing events that are adjacent in the order to generate a plurality of combinations of editing events. For example, the number of combinations of editing events is equal to the number of editing events and candidate editing schedules.
For example, the first sequence corresponding to the plurality of editing events of the picture a is editing events 1 to 4, the editing event 1 may be set as combination 1, the editing events 1 and 2 may be set as combination 2, the editing events 1 to 3 may be set as combination 3, and the editing events 1 to 4 may be set as combination 4. The combinations 1 to 4 are respectively used for representing candidate editing schedules 1 to 4 of the picture a, that is, the candidate editing schedule 1 corresponds to the editing event 1, the candidate editing schedule 2 corresponds to the combination of the editing events 1 and 2, the candidate editing schedule 3 corresponds to the combination of the editing events 1 to 3, and the candidate editing schedule 4 corresponds to the combination of the editing events 1 to 4. The editing schedules corresponding to the candidate editing schedules 1 to 4 are gradually increased.
The setting nodes 1 to 4 of the progress bar may be generated according to the combinations 1 to 4, respectively, that is, the setting nodes 1 to 4 are used to represent the candidate editing progresses 1 to 4 of the picture a, respectively.
S304, generating a second sequence of the setting nodes according to the first sequence.
It should be noted that the second sorting refers to sorting the setting nodes from left to right according to positions in the progress bar, and is equal to sorting the setting nodes from small to large according to corresponding candidate editing progress.
For example, for the first sequence corresponding to the multiple editing events of the picture a, the editing events 1 to 4 are set as the editing events 1 to 4, the setting nodes 1 to 4 are respectively used for representing the candidate editing schedules 1 to 4 of the picture a, the editing schedules corresponding to the candidate editing schedules 1 to 4 are gradually increased, the setting nodes can be sequenced from small to large according to the corresponding candidate editing schedules, and the generated second sequence is the setting nodes 1 to 4.
S305, splicing the set nodes according to a second sequence to generate a progress bar.
Continuing with fig. 2 as an example, the progress bar of the picture a includes setting nodes 1 to 4, the second sequence of the setting nodes is the setting nodes 1 to 4, and the setting nodes 1 to 4 may be spliced according to the second sequence to generate the progress bar.
Therefore, according to the method, any set node of the progress bar can be generated according to any combination of the editing events, the second sequence of the set nodes is generated according to the first sequence of the editing events, the set nodes are spliced according to the second sequence to generate the progress bar, and the automatic generation of the progress bar can be realized.
On the basis of any of the above embodiments, as shown in fig. 4, the adjusting the editing progress of the picture according to the operation information for the operation element in step S104 may include:
s401, determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element.
In one embodiment, the adjustment amount comprises an adjustment direction and/or an adjustment step size.
In one embodiment, when the operation element is an input text box, the operation information for the input text box includes text information, and determining an adjustment amount of the editing progress of the picture according to the operation information for the operation element may include extracting the adjustment amount from the text information for the input text box.
For example, the user may input the adjustment direction as a return in the input text box, and input the adjustment step size as 2, then the adjustment direction as a return may be extracted from the text information for the input text box, and the adjustment step size is 2, that is, the operation information for the input text box is the first operation information for returning 2 editing schedules;
for example, if the user can input the adjustment direction as advance in the input text box and input the adjustment step size as 3, the adjustment direction as advance and the adjustment step size as 3 can be extracted from the text information for the input text box, that is, the operation information for the input text box is the second operation information for advancing 3 editing schedules.
In one embodiment, when the operation element is a progress bar, the operation information for the target node includes at least one of a moving direction, a moving distance, a first position of the target node before moving, and a second position of the target node after moving. Then, according to the operation information for the operation element, determining an adjustment amount of the editing progress of the picture, which may include the following three possible embodiments:
mode 1, the adjustment direction is determined according to the movement direction.
In one embodiment, the more left the position of the target node in the progress bar, the smaller the editing progress of the corresponding picture, and the more right the position of the setting node in the progress bar, the larger the editing progress of the corresponding picture.
Continuing with the example of fig. 2, the target node may move left and right on the progress bar, and if the moving direction of the target node is left, the adjustment direction may be determined to be back, and if the moving direction of the target node is right, the adjustment direction may be determined to be push.
And 2, determining an adjustment step length according to the moving distance.
In one embodiment, the moving distance of the target node is positively correlated with the adjustment step size.
In an embodiment, a mapping relation or a mapping table between the moving distance and the adjustment step length may be established in advance, and after the moving distance is obtained, the mapping relation or the mapping table may be queried, so that the adjustment step length mapped by the moving distance may be obtained as the determined adjustment step length. It should be noted that the mapping relationship or the mapping table is not limited too much.
And 3, determining an adjusting direction and/or an adjusting step length according to the first position and the second position.
In one embodiment, determining the adjustment direction based on the first location and the second location may include determining a moving direction of the target node based on the first location and the second location, and determining the adjustment direction based on the moving direction. For example, in the case where the first location is located on the left side of the second location, the moving direction of the target node may be determined to be rightward; in the case where the first location is located to the right of the second location, the moving direction of the target node may be determined to be to the left. It should be noted that, for the content related to determining the adjustment direction according to the moving direction, reference may be made to the above-mentioned embodiments, and details are not described here.
In one embodiment, determining the adjustment step size according to the first location and the second location may include determining a moving distance of the target node according to the first location and the second location, and determining the adjustment step size according to the moving distance. It should be noted that, for the relevant content of determining the adjustment step size according to the moving distance, reference may be made to the foregoing embodiment, and details are not described here again.
And S402, adjusting the editing progress of the picture according to the adjustment amount.
In an embodiment, the editing progress of the picture is adjusted according to the adjustment amount, and the method may include the following two possible embodiments:
in the method 1, when the adjustment amount includes that the adjustment direction is returned and the adjustment step length is N, the editing progress of the picture is controlled to return N editing progresses.
And 2, controlling the editing progress of the picture to advance M editing progresses under the condition that the adjustment amount comprises the condition that the adjustment direction is advancing and the adjustment step length is M.
It should be noted that, the contents related to the control of the edit progress of the picture to return to the N edit progresses and the control of the edit progress of the picture to advance to the M edit progresses can be referred to the above embodiments, and are not described herein again.
Therefore, the method can determine the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element, and adjust the editing progress of the picture according to the adjustment amount, namely, the multiple adjustment of the editing progress of the picture can be realized according to the adjustment amount.
On the basis of any of the above embodiments, as shown in fig. 5, the adjusting the editing progress of the picture according to the operation information for the operation element in step S104 may include:
s501, determining the target editing progress of the picture according to the operation information aiming at the operation element.
In one embodiment, when the operation element is an input text box, the operation information for the input text box includes text information, and determining the target editing progress of the picture according to the operation information for the operation element may include extracting the target editing progress from the text information for the input text box. For example, the editing schedules corresponding to the candidate editing schedules 1 to 10 of the picture a gradually increase, the user may input the target editing schedule as the candidate editing schedule 6 in the input text box, and the target editing schedule as the candidate editing schedule 6 may be extracted from the text information for the input text box.
In one embodiment, when the operation element is a progress bar, the operation information for the target node includes a second position of the moved target node. Determining the target editing progress of the picture according to the operation information for the operation element may include determining the target editing progress of the picture according to the second position.
In one embodiment, determining the target editing progress of the picture according to the second position may include acquiring a target setting node consistent with the second position of the target node, and taking a candidate editing progress corresponding to the target setting node as the editing progress of the picture. Continuing with fig. 2 as an example, if the second position of the target node (not shown in the figure) is consistent with the position of the setting node 1, the candidate editing schedule 1 corresponding to the setting node 1 may be used as the editing schedule of the picture a; if the second position of the target node coincides with the position of the setting node 4, the candidate editing progress 4 corresponding to the setting node 4 may be used as the editing progress of the picture a.
In one embodiment, when the operation element is a selection menu, the operation information for the selection menu includes a target item selected from a plurality of candidates. Determining a target editing progress of the picture according to the operation information for the operation element, which may include extracting the target editing progress from the target item for the selection menu. For example, the editing schedules corresponding to the candidate editing schedules 1 to 10 of the picture a gradually increase, and the user may select the candidate editing schedule 6 from the candidates of the candidate editing schedules 1 to 10 in the selection menu, that is, the candidate editing schedule 6 is a target item, and extract the target editing schedule as the candidate editing schedule 6 from the target item.
It should be noted that, when the operation element is an icon, the relevant content of the target editing progress of the image is determined according to the operation information for the icon, which may be referred to in the foregoing embodiment and is not described herein again.
And S502, controlling the editing progress of the picture to be adjusted to the target editing progress.
For example, the candidate editing schedules of the picture a include candidate editing schedules 1 to 10, the editing schedules corresponding to the candidate editing schedules 1 to 10 are sequentially increased, and the editing schedule of the picture a is the candidate editing schedule 5.
If the target editing progress is the candidate editing progress 4, the editing progress of the picture can be controlled to return to the candidate editing progress 4 from the candidate editing progress 5; if the target editing progress is the candidate editing progress 8, the editing progress of the picture can be controlled to be advanced from the candidate editing progress 5 to the candidate editing progress 8.
Therefore, according to the method, the target editing progress of the picture can be determined according to the operation information aiming at the operation elements, the editing progress of the picture is controlled to be adjusted to the target editing progress, and multiple times of adjustment of the editing progress of the picture can be achieved according to the target editing progress.
On the basis of any one of the above embodiments, a thumbnail of the picture in the editing progress of the picture can be generated, and the display of the thumbnail is controlled. For example, the candidate editing schedules of the picture a include candidate editing schedules 1 to 10, the editing schedules corresponding to the candidate editing schedules 1 to 10 are sequentially increased, the editing schedule of the picture a is the candidate editing schedule 5, a thumbnail of the picture a in the candidate editing schedule 5 can be generated, and the display of the thumbnail is controlled, for example, the display of the thumbnail on an editing interface of a picture editing tool can be controlled.
In one embodiment, before generating the thumbnail of the picture in the editing progress of the picture, the method may include identifying that the setting condition for generating the thumbnail is currently satisfied. It should be noted that the setting conditions are not limited too much, and for example, the setting conditions may include that the adjustment of the editing progress of the picture is finished, and display information of the editing progress of the picture is acquired.
Therefore, the thumbnail of the picture in the editing progress of the picture can be generated, the thumbnail is controlled to be displayed, the user can be informed of the editing effect of the picture in the editing progress of the picture in the thumbnail mode, and the interactivity of picture editing is improved.
On the basis of any of the above embodiments, when the determination information for the editing progress of the picture is acquired, the picture may be edited according to at least one editing event corresponding to the editing progress of the picture, so as to generate a target picture in the editing progress of the picture. For example, the editing event corresponding to the editing progress of the picture includes adjusting brightness, rotating, and adding characters, and then the brightness can be adjusted, the rotating, and the characters can be added to the picture, so as to generate the target picture in the editing progress of the picture.
In order to implement the above embodiments, the present application further provides a picture editing apparatus.
Fig. 6 is a block diagram of a picture editing apparatus according to an embodiment of the present application.
As shown in fig. 6, the picture editing apparatus 100 according to the embodiment of the present application includes: a first obtaining module 110, a generating module 120, a second obtaining module 130, and an adjusting module 140.
The first obtaining module 110 is configured to obtain a plurality of editing events for a picture;
the generating module 120 is configured to generate an operation element of the picture according to each editing event, where the operation element is used to represent an editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event;
the second obtaining module 130 is configured to obtain operation information for the operation element;
the adjusting module 140 is configured to adjust the editing progress of the picture according to the operation information for the operation element.
In an embodiment of the present application, the operation element includes a plurality of setting nodes and a movable target node, where the setting nodes are used to characterize the candidate editing progress of the picture, and a position of the target node in the operation element is used to characterize the editing progress of the picture.
In an embodiment of the application, the operation element is a progress bar, a first setting node of the progress bar is used to characterize a first candidate editing progress, and a last setting node is used to characterize a last candidate editing progress, where the first candidate editing progress corresponds to a first editing event, and the last candidate editing progress corresponds to a combination of each editing event.
In an embodiment of the present application, the generating module 120 is further configured to: sequencing the editing events from morning to evening according to the editing time to generate a first sequence of the editing events; combining the editing events according to the first sequence to generate a plurality of combinations of the editing events; generating any set node of the progress bar according to any combination of the editing events; generating a second sequence of the set nodes according to the first sequence; and splicing the set nodes according to the second sequence to generate the progress bar.
In an embodiment of the present application, the adjusting module 140 is further configured to: determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element; and adjusting the editing progress of the picture according to the adjustment amount.
In one embodiment of the present application, the adjustment amount includes an adjustment direction and/or an adjustment step size; the operation information aiming at the target node comprises at least one of a moving direction, a moving distance, a first position of the target node before moving and a second position of the target node after moving; the adjustment module 140 is further configured to: determining the adjustment direction according to the moving direction; and/or, determining the adjustment step length according to the moving distance; and/or determining the adjustment direction and/or the adjustment step length according to the first position and the second position.
In an embodiment of the present application, the adjusting module 140 is further configured to: determining a target editing progress of the picture according to the operation information aiming at the operation element; and controlling the editing progress of the picture to be adjusted to the target editing progress.
In one embodiment of the present application, the operation information for the target node includes a second location of the target node after the movement; the adjustment module 140 is further configured to: and determining the target editing progress of the picture according to the second position.
In an embodiment of the present application, the picture editing apparatus 100 further includes: a display module, the display module to: and generating a thumbnail of the picture in the editing progress of the picture, and controlling and displaying the thumbnail.
In an embodiment of the present application, the picture editing apparatus 100 further includes: an editing module, the editing module to: and under the condition that the determination information aiming at the editing progress of the picture is acquired, editing the picture according to at least one editing event corresponding to the editing progress of the picture, and generating a target picture under the editing progress of the picture.
It should be noted that details not disclosed in the image editing apparatus in the embodiments of the present application refer to details disclosed in the image editing method in the embodiments of the present application, and are not repeated herein.
In summary, the picture editing apparatus according to the embodiment of the present application may generate an operation element of a picture according to each editing event of the picture, where the operation element is used to represent an editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and the editing progress of the picture is adjusted according to operation information for the operation element. Therefore, the picture editing progress can be adjusted for multiple times, the flexibility and convenience of adjusting the picture editing progress are improved, and the picture editing efficiency is improved.
In order to implement the above embodiment, as shown in fig. 7, an embodiment of the present application provides an electronic device 200, including: the image editing device comprises a memory 210, a processor 220 and a computer program stored on the memory 210 and capable of running on the processor 220, wherein the processor 220 implements the image editing method when executing the program.
According to the electronic device, the processor executes the instruction stored in the memory, the operation elements of the picture can be generated according to each editing event of the picture, the operation elements are used for representing the editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and the editing progress of the picture is adjusted according to the operation information aiming at the operation elements. Therefore, the picture editing progress can be adjusted for multiple times, the flexibility and convenience of adjusting the picture editing progress are improved, and the picture editing efficiency is improved.
In order to implement the above embodiments, the present application further proposes a computer-readable storage medium storing a computer program, which when executed by a processor implements the above-mentioned picture editing method.
The computer-readable storage medium of the embodiment of the application, which stores a computer program and is executed by a processor, may generate an operation element of a picture according to each editing event of the picture, where the operation element is used to represent an editing progress of the picture, the editing progress of the picture corresponds to at least one editing event, and adjust the editing progress of the picture according to operation information for the operation element. Therefore, the picture editing progress can be adjusted for multiple times, the flexibility and convenience of adjusting the picture editing progress are improved, and the picture editing efficiency is improved.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood, however, that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The above detailed description is given to a picture editing method, a training method, an apparatus, a device and a medium disclosed in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A picture editing method, comprising:
acquiring a plurality of editing events for a picture;
generating an operation element of the picture according to each editing event, wherein the operation element is used for representing the editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event;
acquiring operation information aiming at the operation element;
and adjusting the editing progress of the picture according to the operation information aiming at the operation element.
2. The method according to claim 1, wherein the operation element comprises a plurality of setting nodes and a movable target node, wherein the setting nodes are used for representing the candidate editing progress of the picture, and the position of the target node in the operation element is used for representing the editing progress of the picture.
3. The method of claim 2, wherein the operation element is a progress bar, a first setting node of the progress bar is used for characterizing a first candidate editing progress, and a last setting node is used for characterizing a last candidate editing progress, wherein the first candidate editing progress corresponds to a first editing event, and the last candidate editing progress corresponds to a combination of each editing event.
4. The method according to claim 3, wherein the generating the operation element of the picture according to each editing event comprises:
sequencing the editing events from morning to evening according to the editing time to generate a first sequence of the editing events;
combining the editing events according to the first order to generate a plurality of combinations of the editing events;
generating any set node of the progress bar according to any combination of the editing events;
generating a second sequence of the set nodes according to the first sequence;
and splicing the set nodes according to the second sequence to generate the progress bar.
5. The method according to claim 2, wherein the adjusting the editing progress of the picture according to the operation information for the operation element comprises:
determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element;
and adjusting the editing progress of the picture according to the adjustment amount.
6. The method of claim 5, wherein the adjustment amount comprises an adjustment direction and/or an adjustment step size; the operation information aiming at the target node comprises at least one of a moving direction, a moving distance, a first position of the target node before moving and a second position of the target node after moving;
the determining the adjustment amount of the editing progress of the picture according to the operation information aiming at the operation element comprises the following steps:
determining the adjustment direction according to the moving direction; and/or the presence of a gas in the gas,
determining the adjustment step length according to the moving distance; and/or the presence of a gas in the gas,
and determining the adjusting direction and/or the adjusting step length according to the first position and the second position.
7. The method according to claim 2, wherein the adjusting the editing progress of the picture according to the operation information for the operation element comprises:
determining a target editing progress of the picture according to the operation information aiming at the operation element;
and controlling the editing progress of the picture to be adjusted to the target editing progress.
8. A picture editing apparatus, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a plurality of editing events aiming at pictures;
the generating module is used for generating an operation element of the picture according to each editing event, wherein the operation element is used for representing the editing progress of the picture, and the editing progress of the picture corresponds to at least one editing event;
a second obtaining module, configured to obtain operation information for the operation element;
and the adjusting module is used for adjusting the editing progress of the picture according to the operation information aiming at the operation elements.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the picture editing method as claimed in any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a picture editing method according to any one of claims 1 to 7.
CN202210238471.0A 2022-03-11 2022-03-11 Picture editing method and device, electronic equipment and storage medium Pending CN114612588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210238471.0A CN114612588A (en) 2022-03-11 2022-03-11 Picture editing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210238471.0A CN114612588A (en) 2022-03-11 2022-03-11 Picture editing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114612588A true CN114612588A (en) 2022-06-10

Family

ID=81863486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210238471.0A Pending CN114612588A (en) 2022-03-11 2022-03-11 Picture editing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114612588A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160274772A1 (en) * 2015-03-17 2016-09-22 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and program
CN113741753A (en) * 2021-09-13 2021-12-03 京东方科技集团股份有限公司 Revocation method, electronic device, storage medium, and computer program product
CN114125564A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Video control method and device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160274772A1 (en) * 2015-03-17 2016-09-22 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and program
CN114125564A (en) * 2020-08-31 2022-03-01 华为终端有限公司 Video control method and device and terminal
CN113741753A (en) * 2021-09-13 2021-12-03 京东方科技集团股份有限公司 Revocation method, electronic device, storage medium, and computer program product

Similar Documents

Publication Publication Date Title
CN105184839B (en) Seamless representation of video and geometry
CN109388506B (en) Data processing method and electronic equipment
KR20170078651A (en) Authoring tools for synthesizing hybrid slide-canvas presentations
CN108958857A (en) A kind of interface creating method and device
CN112774192A (en) Game scene jumping method and device, electronic equipment and storage medium
US20200142572A1 (en) Generating interactive, digital data narrative animations by dynamically analyzing underlying linked datasets
JP2994164B2 (en) Scenario editing device
CN113262476A (en) Position adjusting method and device of operation control, terminal and storage medium
CN113918522A (en) File generation method and device and electronic equipment
JPH08328795A (en) Method for setting tool button and editing device
CN111158840B (en) Image carousel method and device
CN104350455A (en) Causing elements to be displayed
CN113655895B (en) Information recommendation method and device applied to input method and electronic equipment
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN112016692A (en) Method and system for displaying machine learning automatic modeling process
CN107491311B (en) Method and system for generating page file and computer equipment
US20100013838A1 (en) Computer system and motion control method
CN114612588A (en) Picture editing method and device, electronic equipment and storage medium
WO2023160015A1 (en) Method and apparatus for marking position in virtual scene, and device, storage medium and program product
JPH0816824A (en) Three-dimensional computer aided design device/method
CN115460448A (en) Media resource editing method and device, electronic equipment and storage medium
CN108279962A (en) A kind of method and device creating visualization data display interface
CN112199133A (en) Information aggregation method and device, electronic equipment and storage medium
CN110730379B (en) Video information processing method, device and storage medium
JP2009015774A (en) Information processing unit and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230814

Address after: 12 Dachenglian Road, Singapore # 04-01B (534233)

Applicant after: Bright Jupiter Private Ltd.

Address before: 120 Robinson Road # 13-01

Applicant before: Lemei Technology Co.,Ltd.

TA01 Transfer of patent application right