CN116611988B - Image processing method, electronic device, and storage medium - Google Patents

Image processing method, electronic device, and storage medium Download PDF

Info

Publication number
CN116611988B
CN116611988B CN202310592129.5A CN202310592129A CN116611988B CN 116611988 B CN116611988 B CN 116611988B CN 202310592129 A CN202310592129 A CN 202310592129A CN 116611988 B CN116611988 B CN 116611988B
Authority
CN
China
Prior art keywords
image
command
response
preview
images
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.)
Active
Application number
CN202310592129.5A
Other languages
Chinese (zh)
Other versions
CN116611988A (en
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.)
Shikong Shanghai Exhibition Production Co ltd
Original Assignee
Shikong Shanghai Exhibition Production 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 Shikong Shanghai Exhibition Production Co ltd filed Critical Shikong Shanghai Exhibition Production Co ltd
Priority to CN202310592129.5A priority Critical patent/CN116611988B/en
Publication of CN116611988A publication Critical patent/CN116611988A/en
Application granted granted Critical
Publication of CN116611988B publication Critical patent/CN116611988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides an image processing method, by which at least one processing command is respectively executed on at least one image respectively added at different moments. And when the image editing area receives N images to be edited at the T moment, executing the step A: executing a Q command on each image in the N images to be edited, and generating a P Q image set processed by the Q command; when the Q command is not the last execution command, acquiring the Q+1st command, executing the Q+1st processing command on the P Q th image, and generating a P Q+1 th image set after the Q command is processed; and C, receiving R images to be edited at the T+1th moment, assigning R as N, and returning to the execution step A so that each image in the R images executes the Q command to generate a P+ Q image set after the Q command processing.

Description

Image processing method, electronic device, and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an image processing method, an electronic device, and a storage medium.
Background
In the conventional image processing method, when at least one processing command needs to be executed on at least one image of the first image set at the previous moment, a plurality of images can be added respectively, a plurality of processing commands are edited, and then the execution of the plurality of processing commands is triggered for each image;
However, in some cases, after the first image set is processed at the previous time, a plurality of commands need to be executed on at least one image in the second image set at the next time according to a preset processing method, at this time, conventional processing generally needs to add a plurality of images again according to the processing method at the previous time, edit a plurality of processing commands again repeatedly, and trigger execution of the plurality of processing commands repeatedly; thus, the operation is repeated at each moment, and the processing resources are very wasted.
Disclosure of Invention
The embodiment of the invention provides an image processing method which is used for respectively executing at least one processing command on at least one image respectively added at different moments.
In a first aspect, an embodiment of the present invention provides an image processing method, which is applied to an editing terminal, where an image user interface of the editing terminal includes at least an image editing area and a command editing area, where the image editing area is used to receive any newly added image to be edited, and the command editing area is used to store a command set, where the command set includes a command string composed of M commands serially connected according to a first order, and the method includes:
In response to receiving N images to be edited at the image editing area at the T-th time, executing step a:
Step A, acquiring N images to be edited as a P-th image set, and executing a Q-th command on each image in the P-th image set, wherein the Q-th command is any command in a command string formed by M processing commands, and generating a P Q -th image set processed by the Q-th command, and the command string is acquired according to the command editing area; and (C) executing the step B;
B, judging whether the Q-th command is the last executing command in the command string, and if not, executing the step C; if yes, executing the step D;
C, acquiring a Q+1st command, executing the Q+1st processing command on the P Q th image, and generating a P Q+1 th image set processed by the Q command;
step D, monitoring whether the image editing area receives any image to be edited at the T+1th moment, wherein the time difference between the T+1th moment and the T moment is smaller than a preset time threshold; to perform step E or step F;
E, in response to receiving R images to be edited in the image editing area at the T+1th moment, executing the step E, and acquiring the R images to be edited as a P+1th image set; taking the P+1st image set as the P image set, assigning R as N, and returning to the execution step A so that the P+1st image executes the Q command to generate the P+ Q th image set after the Q command is processed;
In response to the image editing area not receiving any image to be edited at time t+1st, executing step f; wherein Q is more than or equal to 1 and less than or equal to M, M, N, P, Q, R, T are all positive integers.
In a second aspect, an embodiment of the present invention provides an image processing apparatus, including: a first execution module and a second execution module, wherein,
The first execution module is configured to execute, in response to receiving N images to be edited at the T-th moment in the image editing area, step a:
Step A, acquiring N images to be edited as a P-th image set, and executing a Q-th command on each image in the P-th image set, wherein the Q-th command is any command in a command string formed by M processing commands, and generating a P Q -th image set processed by the Q-th command, and the command string is acquired according to the command editing area; and (C) executing the step B;
B, judging whether the Q-th command is the last executing command in the command string, and if not, executing the step C; if yes, executing the step D;
C, acquiring a Q+1st command, executing the Q+1st processing command on the P Q th image, and generating a P Q+1 th image set processed by the Q command;
Step D, monitoring whether the image editing area receives any image to be edited at the T+1th moment, wherein the time difference between the T+1th moment and the T moment is smaller than a preset time threshold; to jump to the second execution module to execute the step E or the step F;
the second execution module is used for responding to the R images to be edited received at the T+1th moment in the image editing area, and executing the step E, wherein the R images to be edited are obtained and used as a P+1th image set; taking the P+1st image set as the P image set, assigning R as N, and returning to the execution step A so that the P+1st image executes the Q command to generate the P+ Q th image set after the Q command is processed;
The second execution module is further used for executing the step F, ending the processing in response to the fact that the image editing area does not receive any image to be edited at the T+1th moment; wherein Q is more than or equal to 1 and less than or equal to M, M, N, P, Q, R, T are all positive integers.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, a communication interface; wherein the memory has executable code stored thereon, which when executed by the processor, causes the processor to at least implement the image processing method according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to at least implement the image processing method according to the first aspect.
The proposal provided by the embodiment of the invention adopts a visual editing interface, which is convenient for users to modify files and commands processed in batches; for each image in the sequence from 1 to N in N images at the T moment, M processing commands are automatically traversed and executed, so that a plurality of files can be simultaneously processed at the T moment, unnecessary manual participation is reduced, the resource utilization rate is improved, R images at the T+1th moment, the time difference of which is smaller than a preset time threshold, can be automatically executed before only by being added into an image editing area, the command editing operation is saved, and the processing efficiency is also improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention;
FIG. 2 is an exemplary interface diagram of the present invention at time T;
FIG. 3 is an exemplary interface diagram of the present invention at time T+1st;
FIG. 4 is a schematic diagram of a first sequential image preview according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a second sequential image preview according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of image previewing of a first order arrangement and a second order arrangement according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of an electronic device corresponding to the image processing apparatus provided in the embodiment shown in fig. 7.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
The image processing method provided by the embodiment of the invention can be executed by an electronic device, and the electronic device can be a terminal device such as a PC, a notebook computer, a smart phone and the like, and can also be a server. The server may be a physical server comprising a separate host, or may be a virtual server, or may be a cloud server or a server cluster.
In an embodiment of the present invention, an image processing method is described by taking a terminal device as an example, where an editing terminal includes at least an image editing area and a command editing area, an image user interface of the editing terminal displays at least the image editing area, the image editing area is configured to receive N images to be edited at a T-th time to execute a command string composed of M commands serially connected in a first order, and the image editing area is configured to receive R images to be edited at a t+1th time, a time difference between the T-th time and the time is less than a preset time threshold, to continue executing the command string composed of M commands serially connected in the first order.
In one embodiment, at time T, the image editing area receives N images to be edited as a P-th image set, and at time t+1, the image editing area receives R images to be edited as a p+1-th image set, and the file loaded by the image editing area is available for editing by the user.
Illustratively, in response to an operation of deleting any image in the P-th image set, updating the P-th image set, reassigning the total number of images in the deleted P-th image set to N, and executing the step a; and
Responding to the operation of adding any image in the P-th image set, updating the P-th image set, reassigning the total number of images in the newly added P-th image set to N, and executing the step A; and
In response to the operation of deleting any image in the P+1st image set, updating the P+1st image set, reassigning the total number of images in the deleted P+1st image set to R, and executing the step E;
And E, in response to the operation of adding any image in the P+1st image set, updating the P+1st image set, reassigning the total number of images in the P+1st image set after the new image set to R, and executing the step E.
An image user interface of the editing terminal at least displays a preview image of each image in the P-th image set of the image editing area; in an embodiment, a series of commands need to be executed for each image of the plurality of images to be edited, for example, a series of commands consisting of M commands such as scaling, resizing, png format conversion into jpg format need to be performed for each image, the series of commands can be received through a command editing area of an editing terminal, the series of commands are serially connected into a command set at the editing terminal according to a first order, and the command set is stored in the command editing area, wherein the first order can be the order in which the commands input by a user are received by the editing terminal;
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, and in the following first example, a command string composed of custom M commands will be taken as an example, and the processing steps of fig. 1 will be described.
The method of this embodiment is applied to an editing terminal, specifically, as shown in interface 1 in fig. 2, where the editing terminal includes at least the above-mentioned image editing area 201 and command editing area 203, where the image editing area 201 is configured to receive N images to be edited at time T, as a P-th image set, and at time t+1st, the image editing area 201 receives R images to be edited, as a p+1st image set, where the command set includes a command string composed of M commands serially connected according to the first order, and is configured to sequentially execute the command string for N images in the P-th image set, and sequentially execute the command string for R images in the p+1st image set.
Illustratively, the following description will be made with reference to the changes of the interfaces in fig. 2, where, as shown in the interfaces in fig. 2, in the interface 1 in fig. 2, the image editing area 201 is used to receive images to be edited, in response to receiving a trigger to the gallery 200 in the interface 1, the gallery 200 may be displayed in a floating layer display form, the interface shown in the interface 2, any one of the images may be selected from the gallery in a click, drag, or the like selection manner, the interface shown in the interface 3A, at the T-th moment, N images to be edited (6 images in this embodiment) may be selected first and added to the image editing area 201, and then M commands may be selected by the command library 202, in response to receiving a trigger to the command library 202 in the interface 3A,
The command library 202 may be displayed in a floating layer display form, and a command adding control (e.g. "add to … …" in the interface 4 Aa) is displayed, the command adding control is used to add the commands selected in the command library according to the first order into the command editing area 203 shown in the interface 5A of fig. 2, at this time, the command editing area may be displayed in the interface 5A of fig. 2, and a command connection line may be set in the command editing area, after each command is added to the command editing area through the command adding control, the command connection line is triggered to edit the connection order of each command in the command editing area, and M commands are displayed in the command editing area to be serially connected according to the first order under the action of the command connection line to form a command string. After triggering the command connection control (for example, "command connection control" in interface 4 Ab), the command ordering is sequentially associated according to the order of adding commands in the command editing area, that is, the newly added command enters the command editing area and is automatically sequentially connected with the last added command in series, and M commands are displayed in the command editing area and are serially connected according to the first order to form a command string.
In response to the instruction of applying the command string edited by the command editing area 203 to the N images of the image editing area being acquired in the image editing area, (illustratively, the command string may be applied to the N images of the image editing area by triggering the long press image editing area, and the command string may also be indicated by setting an "application control", by triggering an "application control", which is not described herein in detail), so that at the T-th moment, each image of the N images is executed according to the following steps a to F so that each image executes the command string.
Further, the set of files processed for each command in the command string may be displayed correspondingly, as shown in the image set area corresponding to each command in the interface 6A of fig. 2.
Further, the command strings serially connected in the first order extracted in the format may be displayed in a command editing area (as shown in the command editing area 203 of the interface 5A of fig. 2).
In the command edit section 203 shown in the interface 5A of fig. 2, the user may modify the respective edit commands of the command edit section, or adjust the order of the edit commands,
Specifically, a command string composed of the M commands connected to each other may be presented in the command editing area; in response to obtaining an increment command for any serial position of the command string from the command library 202, updating the command string, and reassigning the incremented number of commands to M;
Updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
Updating the first order of the command string in response to a modification to any command permutation order of the command string;
In response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
After the command string in the command editing area is adjusted, the modified command string is triggered to be applied to the N images in the image editing area (for example, the modified command string may be applied to the N images in the image editing area by triggering the long-press image editing area, or may be indicated by setting an "application control", which is not described in detail herein), so that each image in the N images is executed according to the following steps a-F, so that each image executes the modified command string.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, in response to receiving N images to be edited at a T-th moment in the image editing area, as shown in fig. 1, the method may include the following steps:
Step A, acquiring N images to be edited as a P-th image set, and executing a Q-th command on each image in the P-th image set, wherein the Q-th command is any command in a command string formed by M processing commands, and generating a P Q -th image set processed by the Q-th command, and the command string is acquired according to the command editing area; and (C) executing the step B;
wherein in executing step a, further comprising:
Respectively executing a Q-th command on each image in a P-th image set formed by N images to be edited, generating a P Q -th image set formed by N images processed by the Q-th command, and marking the P Q image processed by each Q-th command by adopting a first identifier after acquiring the P Q image processed by each Q-th command, wherein the Q-th command is any command in the M commands;
In response to acquiring the N first identifiers, determining that the P Q th image set is acquired, and marking the Q-th command by adopting a second identifier;
B, judging whether the Q-th command is the last executing command in the command string, and if not, executing the step C; if yes, executing the step D;
further, judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing the step C if the Q-th command is determined not to be the last execution command in the command string in response to the acquired number of the second identifiers being smaller than M; d, in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and executing the step D;
C, acquiring a Q+1st command, executing the Q+1st processing command on the P Q th image, and generating a P Q+1 th image set processed by the Q command;
further, the (Q+1) th command can be directly acquired, and then the (Q+1) th processing command is executed on the P Q th image;
Further, the acquiring the q+1th command, executing the q+1th processing command on the P Q th image, may also include:
Acquiring a Q+1st command, assigning the Q+1st command as the Q command, assigning the P Q th image set as the P image set, and returning to execute the step A so that each image in N P Q images executes the Q+1st command to generate a P Q+1 file set composed of N P Q+1 files processed by the Q+1st command;
step D, monitoring whether the image editing area receives any image to be edited at the T+1th moment, wherein the time difference between the T+1th moment and the T moment is smaller than a preset time threshold; to perform step E or step F;
E, in response to receiving R images to be edited in the image editing area at the T+1th moment, executing the step E, and acquiring the R images to be edited as a P+1th image set; taking the P+1st image set as the P image set, assigning R as N, and returning to the execution step A so that the P+1st image executes the Q command to generate the P+ Q th image set after the Q command is processed;
Illustratively, in the interface 3B of fig. 3, in response to the corresponding operation (may be that the "photo library control" and the "command library control" are set on the floating layer, the "photo library control" and/or the "command library control" are pulled by the sliding operation), the image editing area 201 is further configured to continue to receive the image to be edited, and in response to the trigger of the photo library 200 being received in the interface 3B, the photo library 200 may be displayed in a display form of the floating layer, such as the interface shown in the interface 3B, any image may be selected from the photo library in a selection manner such as clicking, dragging, and the like, such as the interface shown in the interface 3B;
At the t+1th time, R images to be edited (6 images in this embodiment) may be selected first and then added to the image editing area 201, and the image editing area 201 may continue to hold the N images added at the T time or may clear, and in this embodiment, the interface 3B shows that the N images added at the T time are held.
Since the time difference between the t+1st time and the T time is smaller than the preset time threshold, as shown in the interface 5B of fig. 2, the command string composed of M commands edited at the T time is still kept in the command editing area. The time threshold may be set according to actual conditions, and is not limited herein. The command string composed of M commands that the command editing area continues to hold may or may not be displayed.
At the t+1th moment, R images to be edited (in this embodiment, 6 images) may be selected and added to the image editing area 201, that is, a command string formed by M commands reserved in the command editing area is triggered to execute on the R images to be edited, and specifically, step e is executed to obtain the R images to be edited as the p+1th image set; taking the P+1st image set as the P image set, assigning R as N, and returning to the execution step A so that the P+1st image executes the Q command to generate the P+ Q th image set after the Q command is processed;
illustratively, as shown in interface 6B of fig. 3, since interface 3B was shown previously in this embodiment as retaining the N images added at time T,
Then after step E is performed, interface 6B retains the P Q th image set that reveals the N image generation added at time T, and also reveals the p+ Q th image set that reveals the R image generation added at time t+1. If the N images added at the T-th time are not reserved as shown in the interface 3B in the previous embodiment, the P Q th image set generated by the N images added at the T-th time is not shown in the interface 6B either.
In response to the image editing area not receiving any image to be edited at time t+1st, executing step f; wherein Q is more than or equal to 1 and less than or equal to M, M, N, P, Q, R, T are all positive integers. Illustratively, at a T-th time instant, the image user interface of the editing terminal displays at least a preview image of each image in the P-th image set, and at a T-th+1-th time instant, displays a preview image of each image in the P-th+1-th image set;
at time T, for the P-th image set, after generating the P Q file after each Q-th command processing, overlaying the preview image of each image in the corresponding P-th image set with the preview image of each P Q image in the P-th Q image set on the image user interface of the editing terminal, and
At the T+1st moment, aiming at the P+1st image set, after generating the P+ Q file processed by each Q-th command, covering the preview image of each image in the corresponding P+1st image set by adopting the preview image of each P+ Q image in the P+ Q -th image set on the image user interface of the editing terminal.
Illustratively, at a T-th time instant, the image user interface of the editing terminal displays at least a preview image of each image in the P-th image set, and at a t+1th time instant, displays a preview image of each image in the p+1th image set;
At a T-th moment, for a P-th image set, after determining that the Q-th command is a last execution command in the command string in response to the acquired number of the second identifiers being equal to M, overlaying, on a graphical user interface of an editing terminal, a preview image of each P Q image in the P-th image set with a preview image of each image in the corresponding P-th image set;
At the t+1th moment, for the p+1th image set, after determining that the Q-th command is the last execution command in the command string in response to the acquired number of the second identifiers being equal to M, overlaying the preview image of each image in the corresponding p+1th image set with the preview image of each p+1 Q image in the p+1th image set on the image user interface of the editing terminal. In the present embodiment, the above-described time point at T is to be understood as a period of time after the start of the time point at T, and the above-described time point at t+1 is to be understood as a period of time after the start of the time point at t+1.
In the embodiment, a visual editing interface is adopted, so that a user can modify a file to be edited conveniently, and a command is displayed graphically, so that the user can modify the command for batch processing conveniently.
For N images at the T moment, each image in the sequence from 1 to N is automatically traversed and executed to execute M processing commands, so that a plurality of files can be simultaneously processed at the T moment, unnecessary manual participation is reduced, the resource utilization rate is improved, R images at the T+1th moment, the time difference of which is smaller than a preset time threshold value, can be automatically executed before only by being added into an image editing area, the command editing operation is saved, and the processing efficiency is also improved.
Illustratively, at time T, in response to the presence of the xth image (illustratively image 3 in interface 6A of figure 2) in the P-th image set,
After the X-th image has performed the step B, acquiring an X- Q th image (illustratively, an image 31 in an interface 6A in fig. 2), where the X-th Q th image is an image in the P Q th image set; and
After the X-th image has performed the step C, acquiring an X- Q+1 th image (illustratively, an image 32 in an interface 6A in fig. 2), where the X-th Q+1 th image is an image in the P Q+1 image set;
For example, a storage association relationship between the xth image, the xth Q image, and the xth Q+1 image is established, specifically, an xth storage queue may be established, the xth image is stored in the xth storage queue, after the step a is executed, the xth Q image processed by the qth command is obtained, the xth Q image is stored in the xth storage queue, after the step C is executed, the xth Q+1 image is stored in the xth storage queue after the xth Q+1 image processed by the qth+1 command is obtained.
Thus, at the T-th time, the order of m+1 images stored in the X-th storage queue and the order of command strings made up of M commands are the same, and are all arranged in the first order. The xth image, the xth Q image, and the xth Q+1 image are stored in the xth storage queue in the first order, and illustratively, a first sub-queue may be provided in the xth storage queue to store images in the first order and a second sub-queue may be provided to store preview images of the images in the first order. Thus, the second sub-queue of the xth storage queue also stores preview images of the xth image, preview images of the xth Q image, and preview images of the xth Q+1 image in the first order.
Such that switching to the X Q+1 th image is triggered in response to the sequence direction of the first sequence for the X Q th image, switching to the X image is triggered in response to the reverse sequence direction of the first sequence for the X Q th image, and/or switching to the X Q+1 th image is triggered in response to the sequence direction of the first sequence for the preview image of the X Q th image, switching to the preview image of the X Q th image is triggered in the reverse sequence direction of the first sequence for the preview image of the X Q th image;
For example, as shown in interface 6A of fig. 2, a storage association relationship between image 3 and image 31 may be established, specifically, a first sub-queue and a second sub-queue of an xth storage queue may be established in advance, image 3 may be stored in the first sub-queue of the xth storage queue, and a preview image of image 3 may be stored in the second sub-queue of the xth storage queue, after executing step S1, an image 31 processed by command 1 may be obtained, image 31 may be stored in the first sub-queue of the xth storage queue, a preview image of image 31 may be stored in the second sub-queue of the xth storage queue, after executing step C, after obtaining an image 32 processed by command 2, image 32 may be stored in the first sub-queue of the xth storage queue, and a preview image of image 32 may be stored in the second sub-queue of the xth storage queue.
Such that the number of preview images stored in the first sub-queue of the X-th store queue is one more than the number of commands in the command string. The order of M+1 preview images stored in the first sub-queue of the X-th store queue and the order of the command string composed of M commands are arranged in the first order.
So that switching to image 32 is triggered in response to the sequential direction of image 31 in said first order and switching to image 3 is triggered in response to the reverse sequential direction of image 31 in said first order.
Meanwhile, the number of preview images stored in the second sub-queue of the X-th storage queue is one more than the number of commands in the command string. The order of M+1 preview images stored in the second sub-queue of the X-th store queue and the order of the command string composed of M commands are arranged in the first order.
So that switching to the preview image of image 32 is triggered in response to the preview image of image 31 being in the sequential direction of the first order, and switching to the preview image of image 3 is triggered in response to the preview image of image 31 being in the reverse direction of the first order. In particular, as shown in the user interface presentation of interface 6A of fig. 2.
Illustratively, at time T+1st, in response to the P+1st image set, there is a Y-th image (illustratively image 9 in interface 6B in FIG. 3),
After the Y-th image has performed the step B, acquiring a Y Q -th image (illustratively, an image 91 in an interface 6B in fig. 3), where the Y Q -th image is an image in the P Q -th image set; and
After the Y-th image has performed the step C, a Y Q+1 -th image (illustratively, an image 92 in the interface 6B in fig. 3) is acquired, where the Y Q+1 -th image is an image in the P Q+1 image set;
and (3) establishing a storage association relation among the Y-th image, the Y Q -th image and the Y Q+1 -th image, specifically, establishing a Y-th storage queue, storing the Y-th image into the Y-th storage queue, obtaining the Y Q -th image processed by the Q-th command after executing the step A, storing the Y Q -th image into the Y-th storage queue, and storing the Y Q+1 -th image into the Y-th storage queue after obtaining the Y Q+1 -th image processed by the Q+1-th command after executing the step C.
Thus, at the t+1th time, the order of m+1 images stored in the Y-th storage queue and the order of command strings made up of M commands are the same, and are all arranged in the first order. The Y-th image, the Y Q -th image, and the Y Q+1 -th image are also stored in the Y-th storage queue in the first order, and illustratively, the first sub-queue may be continuously set in the Y-th storage queue to store images in the first order, and the second sub-queue may be set to store preview images of the images in the first order. Thus, the second sub-queue of the Y-th storage queue also continues to store the preview images of the Y-th image, the preview images of the Y Q images, and the preview images of the Y Q+1 images in the first order.
Such that switching to the Y Q+1 th image is triggered in response to the sequential direction of the first order for the Y Q th image, switching to the Y image is triggered in response to the reverse direction of the first order for the Y Q th image, and/or switching to the preview image of the Y Q+1 th image is triggered in response to the sequential direction of the first order for the preview image of the Y Q th image, switching to the preview image of the Y image is triggered in response to the preview image of the Y Q th image in the reverse direction of the first order;
as shown in interface 6B of fig. 3, a storage association relationship between image 93 and image 91 may be established, specifically, storing image 9 in a first sub-queue of a Y-th storage queue is continued, storing a preview image of image 9 in a second sub-queue of the Y-th storage queue, after executing step S1, obtaining an image 91 processed by command 1, storing image 91 in the first sub-queue of the Y-th storage queue, storing a preview image of image 91 in the second sub-queue of the Y-th storage queue, after executing step C, after obtaining an image 92 processed by command 2, storing image 92 in the first sub-queue of the Y-th storage queue, and storing a preview image of image 32 in the second sub-queue of the Y-th storage queue.
Such that the number of preview images stored in the second memory sequence is one more than the number of commands in the command string. The order of m+1 preview images stored in the second storage sequence and the order of a command string made up of M commands are arranged in the first order.
So that switching to image 92 is triggered in response to the sequential direction of image 91 in said first order and switching to image 9 is triggered in response to the reverse sequential direction of image 91 in said first order.
Meanwhile, the number of preview images stored in the second sub-queue of the second storage sequence is one more than the number of commands in the command string. The order of the m+1 preview images and the order of the command string made up of M commands stored in the second sub-queue of the second storage sequence are arranged in the first order.
So that switching to the preview image of image 92 is triggered in response to the preview image of image 91 being in the order of the first order, and switching to the preview image of image 9 is triggered in response to the preview image of image 91 being in the reverse order of the first order. In particular, as shown in the user interface presentation of interface 6B of fig. 2.
Further, at a T-th time instant, in response to the P-th image set, there are an X-th image and an x+1-th image arranged in a second order,
After the execution of the step B by the X-th image, obtaining an X Q -th image, wherein the X Q -th image is an image in the P Q -th image set; and
After the (X+1) th image completes the step B, obtaining an (X+1) Q th image, wherein the (X+1) Q th image is an image in the P Q th image set;
Establishing an association between the X Q th image and the X+ Q th image, switching to the X+ Q th image in response to a sequential direction trigger switch of the X Q th image in the second order, switching to the X-1 Q th image in response to a reverse sequential direction trigger switch of the X Q th image in the second order, and/or switching to the X+ Q th image in response to a sequential direction trigger switch of a preview image of the X Q th image in the second order, switching to the X-1 Q th image in response to a preview image of the X Q th image in the reverse sequential direction trigger switch of the second order;
Illustratively, at time T, in response to the presence of the X-th image (illustratively, image 3 in interface 1 of FIG. 4) and the P+1st image (illustratively, image 4 in interface 1 of FIG. 4) in the second order in the P-th image set,
After the X-th image has performed the step B, an X Q -th image (an X Q -th image, illustratively, an image 31 in the interface 1 in fig. 4) is acquired, where the X Q -th image is an image in the P Q -th image set; and
After the p+1st image has performed the step B, an x+1st Q image (illustratively, an image 41 in the interface 1 in fig. 4) is acquired, where the x+1st Q image is an image in the P Q th image set;
Illustratively, in the N images in the P-th image set, there is a storage association relationship between the X-1 th image, the X-th image, and the x+1 th image, specifically, at the T-th time, when the X-1 th image, the X-th image, and the x+1 th image may be added to the image editing area 201 in the interface 1 of fig. 2 in a selected manner by clicking, dragging, or the like in the second order, illustratively, a first storage queue may be established, in which a first sub-queue of the first storage queue is set to store images in the second order, and a second sub-queue of the first storage queue is set to store preview images of the images in the second order. The image editing area is provided with a first sub-queue of a first storage queue for storing an X-1 image, an X-th image and the X+1-th image in a second sequence, and a second sub-queue of the first storage queue is also provided with a preview image of the X-1-th image, a preview image of the X-th image and a preview image of the X+1-th image in the second sequence.
Further, a storage association relationship between the xth image, the xth image Q image, and the xth image+1 Q may be established for the images in the P Q th image set, specifically, a qth storage queue may be established for the images in the P Q th image set, the first sub-queue of the qth storage queue set in the qth storage queue stores images in the second order, and the second sub-queue of the qth storage queue set stores preview images of the images in the second order. The method may further comprise the steps of obtaining the X-1 Q th image (the X-1 Q th image, illustratively, the image 21 of the interface 1 in FIG. 4) after the X-1 th image is executed in the step B, storing the X-1 Q th image in the first sub-queue of the Q-th storage queue, storing the preview image of the X-1 Q th image in the second sub-queue of the Q-th storage queue, obtaining the X Q th image (the X Q th image, illustratively, the image 31 of the interface 1 in FIG. 4) after the X-1 th image is executed in the step B, storing the X Q th image in the first sub-queue of the Q-th storage queue, storing the preview image of the X Q th image in the second sub-queue of the Q-th storage queue, obtaining the X+1 Q th image (illustratively, the image 41 of the interface 1 in FIG. 4) after the X+1 th image is executed in the step B, storing the X+1+1 th image in the first sub-queue of the Q-th storage queue, and storing the X+1+4234 th image in the second sub-queue.
Thus, the first sub-queue in the Q-th store queue also stores the X-1 Q th image, the X Q th image, and the X+ Q th image in a second order such that switching to the X+ Q th image is triggered in response to the sequence direction of the second order for the X Q th image, and switching to the X-1 Q th image is triggered in response to the reverse sequence direction of the second order for the X Q th image;
And, the second sub-queue in the Q store queue also stores preview images of the X-1 Q th image, preview images of the X Q th image, and preview images of the X+ Q th image in the second order. So that the preview image of the X Q th image is switched to the preview image of the X+ Q th image in response to the triggering of the switching in the sequence direction of the second sequence, and the preview image of the X Q th image is switched to the preview image of the X-1 Q th image in response to the triggering of the switching in the reverse sequence direction of the second sequence.
Further, at a t+1th time instant, in response to the p+1th image set, there are a Y-th image and a Y+1th image arranged in the second order,
After the execution of the step B by the Y-th image, obtaining a Y Q -th image, wherein the Y Q -th image is an image in the P+ Q -th image set; and
After the step B is performed on the Y+1st image, obtaining a Y+1st Q th image, wherein the Y+1st Q th image is an image in the P+1st Q th image set;
illustratively, at time T+1st, in response to the set of P+1st images, there is a Y-th image (illustratively, image 9 in interface 1 in FIG. 4) and a P+1st image (illustratively, image 10 in interface 1 in FIG. 4) arranged in a second order,
After the Y image has performed step B, a Y Q th image (Y Q th image, illustratively, image 91 in interface 1 in fig. 4) is obtained, where Y Q th image is an image in the P Q th image set; and
After the p+1st image has performed the step B, a y+1st Q image (illustratively, an image 101 in the interface 1 in fig. 4) is acquired, where the y+1st Q image is an image in the P Q th image set;
Illustratively, in the R images in the p+1st image set, there is a storage association relationship between the Y-1 st image, the Y-th image, and the y+1st image, specifically, at the time of t+1st, the Y-1 st image, the Y-th image, and the y+1st image may be added to the image editing area 201 in the interface 1 of fig. 2 in a selected manner such as pointing, dragging, or the like in the second order, illustratively, the above-described first storage queue may be continuously employed, the first sub-queue in which the first storage queue is set stores images in the second order, and the second sub-queue in which the first storage queue is set stores preview images of images in the second order. The image editing area has a first storage queue storing a Y-1 th image, a Y-th image, and the Y+1 th image in a second order, and thus, a preview image of the Y-1 th image, a preview image of the Y-th image, and a preview image of the Y+1 th image are also stored in the first storage queue in the second order.
Further, a storage association relationship between the Y-1 Q th image, the Y Q th image and the y+1 Q th image may be established for the images in the p+1 Q th image set, and specifically, the Q storage queue may be continuously used for the images in the p+1 Q th image set, the images may be stored in the first sub-queue of the Q storage queue according to the second order, and the second sub-queue of the Q storage queue may be set to store preview images of the images in the second order. The Y-1 Q th image (the Y-1 Q th image, illustratively shown as image 81 of interface 1 in fig. 4) may be obtained after the Y-1 st image has been performed in step B, the Y-1 st Q th image may be stored in the first sub-queue of the Q-th storage queue, the preview image of the Y-1 Q th image may be stored in the second sub-queue of the Q-th storage queue, the Y Q th image (the Y Q th image, illustratively shown as image 91 of interface 1 in fig. 4) may be obtained after the Y-1 th image has been performed in step B, the Y Q th image may be stored in the first sub-queue of the Q-th storage queue, the Y Q th image may be stored in the second sub-queue of the Q-th storage queue, after the Y +1 th image has been performed in step B, a y+1 Q th image (illustratively, image 101 of interface 1 in fig. 4) is acquired, a y+1 Q th image is stored in a first sub-queue of a Q-th storage queue, a y+1 Q th image is stored in a second sub-queue of the Q-th storage queue, and therefore, the first sub-queue in the Q-th storage queue also stores a Y-1 Q th image, a Y Q th image, and a y+1 Q th image in a second order, such that in response to triggering a switch for the Y Q th image in an order direction of the second order, a switch is triggered to the y+1 Q th image in response to triggering a switch for the Y Q th image in an opposite order direction of the second order, switching to the Y-1 Q th image;
And, the second sub-queue in the Q-th storage queue also stores the preview images of the Y-1 Q th image, the Y Q th image and the Y+1 Q th image in a second order such that switching is triggered in response to the preview images of the Y Q th image being in the order direction of the second order, switching is triggered in response to the preview images of the Y+1 Q th image being in the reverse order direction of the second order, switching is triggered in response to the preview images of the Y Q th image being in the reverse order direction of the second order, switching is triggered in response to the preview images of the Y-1 Q th image being in the reverse order direction of the second order.
Illustratively, N images to be edited may be received at the T-th time in the image editing area, and steps a to C are performed;
as shown in the interface illustration of FIG. 5, after command 1 is performed on each of the N images in the P-th image set, a P Q -th image set is obtained, where both image 31 and image 41 are stored in a first sub-queue of the Q-th storage queue, and the preview image of image 31 and the preview image of image 41 are also stored in a second sub-queue of the Q-th storage queue in a second order. So that switching to the preview image of image 41 is triggered in response to the preview image of image 31 being in the sequential direction of said second order and switching to the preview image of image 21 is triggered in response to the preview image of image 31 being in the reverse direction of said second order. In particular as shown in the user interface presentation of interface 2 of fig. 5.
Illustratively, as shown in interface 1 illustration of FIG. 5, the P (3 rd), P Q (31 st) and P Q+1 (32 nd) images may also be stored in a first order in a first sub-queue of a P (3 rd) store queue, and the P-1 (2 nd), P (3 rd) and P+1 (4 th) images may also be stored in a second order in a first sub-queue of the first store queue;
Storing preview images of a P-th image (3 rd image), a P Q th image (31 st image) and a P Q+1 th image (32 nd image) in a first sub-queue of a P-th storage queue (3 rd storage queue) in a first order, and storing preview images of a P-1 st image (2 nd image), a P-th image (3 rd image) and a p+1th image (4 th image) in a second order in a first sub-queue of the first storage queue;
Such that switching to the preview image of image 32 is triggered in response to the preview image of image 31 being in the order of the first order, switching to the preview image of image 3 is triggered in response to the preview image of image 31 being in the reverse order of the first order, and switching to the preview image of image 41 is triggered in response to the preview image of image 31 being in the order of the second order, switching to the preview image of image 21 is triggered in response to the preview image of image 31 being in the reverse order of the second order.
And the image editing area receives R images to be edited at the T+1st moment and executes the step E; further, as shown in interface 1 of fig. 5, after command 1 is performed on each of R images in the p+1st image set, the p+ Q th image set is obtained, where both image 91 and image 101 continue to be stored in the first sub-queue of the Q-th storage queue, and the preview image of image 91 and the preview image of image 101 also are stored in the second sub-queue of the Q-th storage queue in the second order. So that switching to the preview image of image 101 is triggered in response to the preview image of image 91 being in the order of the second order, and switching to the preview image of image 81 is triggered in response to the preview image of image 91 being in the reverse order of the second order. In particular as shown in the user interface presentation of interface 2 of fig. 6.
Illustratively, as shown in interface 1 illustration of FIG. 6, a P-th image (9-th image), a P Q -th image (91-th image), and a P Q+1 -th image (92-th image) may also be stored in a first order in a first sub-queue of a P-th store queue (9-th store queue), and a P-1-th image (8-th image), a P-th image (9-th image), and the P+1-th image (10-th image) may also be stored in a second order in a first sub-queue of the first store queue;
Storing preview images of a P-th image (9 th image), a P Q -th image (91 st image) and a P Q+1 -th image (92 th image) in a first sub-queue of a P-th storage queue (9 th storage queue) in a first order, and storing preview images of a P-1-th image (8 th image), a P-th image (9 th image) and a p+1-th image (10 th image) in a second order in a first sub-queue of the first storage queue;
Such that switching to the preview image of image 92 is triggered in response to the preview image of image 91 being triggered in the order direction of the first order, switching to the preview image of image 9 is triggered in response to the preview image of image 91 being triggered in the reverse order direction of the first order, and
In response to triggering the switching of the preview images of the image 91 in the order direction of the second order, switching to the preview images of the image 101, and in response to triggering the switching of the preview images of the image 91 in the reverse order direction of the second order, switching to the preview images of the image 81, as shown in the user interface presentation of the interface 2 of fig. 6.
The scheme provided in the embodiment can facilitate the user to check the change of the current image before and after each command processing and the change of the adjacent image of the current image.
An image processing apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these means may be configured by the steps taught by the present solution using commercially available hardware components.
Fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes: a first execution module 11 and a second execution module 12, wherein,
The first execution module 11 is configured to execute step a in response to receiving N images to be edited at the T-th moment in the image editing area:
Step A, acquiring N images to be edited as a P-th image set, and executing a Q-th command on each image in the P-th image set, wherein the Q-th command is any command in a command string formed by M processing commands, and generating a P Q -th image set processed by the Q-th command, and the command string is acquired according to the command editing area; and (C) executing the step B;
B, judging whether the Q-th command is the last executing command in the command string, and if not, executing the step C; if yes, executing the step D;
C, acquiring a Q+1st command, executing the Q+1st processing command on the P Q th image, and generating a P Q+1 th image set processed by the Q command;
Step D, monitoring whether the image editing area receives any image to be edited at the T+1th moment, wherein the time difference between the T+1th moment and the T moment is smaller than a preset time threshold; to jump to the second execution module to execute the step E or the step F;
the second execution module 12 is configured to execute step e. Acquire R images to be edited as a p+1th image set in response to receiving R images to be edited at the t+1th time in the image editing area; taking the P+1st image set as the P image set, assigning R as N, and returning to the execution step A so that the P+1st image executes the Q command to generate the P+ Q th image set after the Q command is processed;
The second execution module is further used for executing the step F, ending the processing in response to the fact that the image editing area does not receive any image to be edited at the T+1th moment; wherein Q is more than or equal to 1 and less than or equal to M, M, N, P, Q, R, T are all positive integers.
The first execution module 11 is further configured to update the P-th image set in response to an operation of deleting any image in the P-th image set, reassign the number of total images in the P-th image set after deletion to N, and execute the step a; and
Responding to the operation of adding any image in the P-th image set, updating the P-th image set, reassigning the total number of images in the newly added P-th image set to N, and executing the step A;
The second execution module 12 is further configured to update the p+1st image set in response to an operation of deleting any image in the p+1st image set, reassign the total number of images in the deleted p+1st image set to R, and execute step E; and
And E, in response to the operation of adding any image in the P+1st image set, updating the P+1st image set, reassigning the total number of images in the P+1st image set after the new image set to R, and executing the step E.
The first execution module 11, when executing the step a, specifically includes: respectively executing a Q-th command on each image in a P-th image set formed by N images to be edited, generating a P Q -th image set formed by N images processed by the Q-th command, and marking the P Q image processed by each Q-th command by adopting a first identifier after acquiring the P Q image processed by each Q-th command, wherein the Q-th command is any command in the M commands;
In response to acquiring the N first identifiers, determining that the P Q th image set is acquired, and marking the Q-th command by adopting a second identifier; and
The first executing module 11, when executing the step B, JUT includes: judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing the step C if the Q-th command is determined not to be the last execution command in the command string in response to the acquired number of the second identifiers being smaller than M; and in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last executing command in the command string, and executing the step D.
The first execution module 11 is specifically configured to display, at a T-th time, at least a preview image of each image in the P-th image set on the image user interface of the editing terminal, and display, at a t+1st time, a preview image of each image in the p+1st image set;
at time T, for the P-th image set, after generating the P Q file after each Q-th command processing, overlaying the preview image of each image in the corresponding P-th image set with the preview image of each P Q image in the P-th Q image set on the image user interface of the editing terminal, and
The second execution module 12 is specifically configured to, at the t+1st time, for the p+1st image set, after generating the p+1 Q file after each Q-th command processing, cover, on the image user interface of the editing terminal, the preview image of each p+1 Q image in the p+1st image set with the preview image of each image in the corresponding p+1st image set.
The first execution module 11 is specifically configured to display, at a T-th time, at least a preview image of each image in the P-th image set on the image user interface of the editing terminal, and display, at a t+1st time, a preview image of each image in the p+1st image set;
At a T-th moment, for a P-th image set, after determining that the Q-th command is a last execution command in the command string in response to the acquired number of the second identifiers being equal to M, overlaying, on a graphical user interface of an editing terminal, a preview image of each P Q image in the P-th image set with a preview image of each image in the corresponding P-th image set;
The second execution module 12 is specifically configured to, at a t+1st time, for a p+1st image set, after determining that the Q-th command is a last execution command in the command string in response to the acquired number of the second identifiers being equal to M, overlay, on a graphical user interface of an editing terminal, a preview image of each p+1 Q image in the p+1st image set with a preview image of each p+1st image in the corresponding p+1st image set.
The image user interface of the editing terminal also displays the command editing area, and the command string composed of the M mutually connected commands and a command library for editing are displayed in the command editing area;
In response to obtaining an addition command to any serial position of the command string from the command library, updating the command string, and reassigning the number of added commands to M;
Updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
Updating the first order of the command string in response to a modification to any command permutation order of the command string;
In response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
The first execution module 11 is specifically configured to, in response to the presence of an xth image in the pph image set,
After the execution of the step B by the X-th image, obtaining an X Q -th image, wherein the X Q -th image is an image in the P Q -th image set; and
After the execution of the step D by the xth image, acquiring an xth Q+1 image, wherein the xth Q+1 image is an image in the P Q+1 image set;
Establishing a storage association relationship between the X Q th image and the X Q+1 th image, so that switching to the X Q+1 th image is triggered in response to the sequence direction of the first sequence being performed on the X Q th image, switching to the X image is triggered in response to the reverse sequence direction of the first sequence being performed on the X Q th image, and/or switching to the X Q+1 th image is triggered in response to the sequence direction of the first sequence being performed on the preview image of the X Q th image, and switching to the preview image of the X Q th image is triggered in response to the reverse sequence direction of the first sequence being performed on the preview image of the X Q th image; and
The second execution module 12 is specifically configured to, in response to the presence of a Y-th image in the p+1st image set,
After the execution of the step B by the Y-th image, obtaining a Y Q -th image, wherein the Y Q -th image is an image in the P Q -th image set; and
After the execution of the step C by the Y-th image, obtaining a Y Q+1 -th image, wherein the Y Q+1 -th image is an image in the P Q+1 -image set;
Establishing a storage association relationship between the Y Q th image and the Y Q+1 th image, so that switching to the Y Q+1 th image is triggered in response to the triggering of the Y Q th image in the sequence direction of the first sequence, and switching to the Y image is triggered in response to the triggering of the Y Q th image in the reverse sequence direction of the first sequence; and/or switching to the Y Q+1 th image and/or the Y Q+1 th preview image in response to triggering switching to the preview image of the Y Q th image in the sequence direction of the first sequence, and switching to the preview image of the Y Q th image in response to triggering switching to the preview image of the Y Q th image in the reverse sequence direction of the first sequence.
The first execution module 11 is specifically configured to, at a T-th moment, respond to the presence of an xth image and an xth+1th image in the P-th image set, which are arranged according to a second order,
After the execution of the step B by the X-th image, obtaining an X Q -th image, wherein the X Q -th image is an image in the P Q -th image set; and
After the (X+1) th image completes the step B, obtaining an (X+1) Q th image, wherein the (X+1) Q th image is an image in the P Q th image set;
Establishing an association between the X Q th image and the X+ Q th image, switching to the X+ Q th image in response to a sequential direction trigger switch of the X Q th image in the second order, switching to the X-1 Q th image in response to a reverse sequential direction trigger switch of the X Q th image in the second order, and/or switching to the X+ Q th image in response to a sequential direction trigger switch of a preview image of the X Q th image in the second order, switching to the X-1 Q th image in response to a preview image of the X Q th image in the reverse sequential direction trigger switch of the second order; and
The second execution module 12 is specifically configured to, at a time t+1st, respond to the p+1st image set that there are a Y-th image and a y+1st image arranged in the second order,
After the execution of the step B by the Y-th image, obtaining a Y Q -th image, wherein the Y Q -th image is an image in the P+ Q -th image set; and
After the step B is performed on the Y+1st image, obtaining a Y+1st Q th image, wherein the Y+1st Q th image is an image in the P+1st Q th image set;
Establishing an association between the Y Q th image and the Y+ Q th image so as to trigger switching to the Y Q th image according to the sequence direction of the second sequence, switch to the Y+ Q th image according to the triggering switching to the Y Q th image according to the reverse sequence direction of the second sequence, switch to the Y-1 Q th image according to the triggering switching to the preview image of the Y Q th image according to the sequence direction of the second sequence, switch to the preview image of the Y+ Q th image, switch to the preview image of the Y-1 Q th image according to the triggering switching to the preview image of the Y Q th image according to the reverse sequence direction of the second sequence.
The apparatus shown in fig. 8 may perform the steps described in the foregoing embodiments, and detailed execution and technical effects are referred to in the foregoing embodiments and are not described herein.
In one possible design, the structure of the image processing apparatus shown in fig. 7 may be implemented as an electronic device, as shown in fig. 8, which may include: memory 21, processor 22, communication interface 23. Wherein the memory 21 has stored thereon executable code which, when executed by the processor 22, causes the processor 22 to at least implement the image processing method as provided in the previous embodiments.
In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to at least implement an image processing method as provided in the previous embodiments.
The apparatus embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by adding necessary general purpose hardware platforms, or may be implemented by a combination of hardware and software. Based on such understanding, the foregoing aspects, in essence and portions contributing to the art, may be embodied in the form of a computer program product, which may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. An image processing method applied to an editing terminal, wherein an image user interface of the editing terminal at least comprises an image editing area and a command editing area, the image editing area is used for receiving any newly added image to be edited, the command editing area is used for storing a command set, and the command set comprises a command string composed of M commands connected in series according to a first sequence, and the method is characterized by comprising the following steps:
In response to receiving N images to be edited at the image editing area at the T-th time, executing step a:
Step A, acquiring N images to be edited as a P-th image set, and executing a Q-th command on each image in the P-th image set, wherein the Q-th command is any command in a command string formed by M processing commands, and generating a P Q -th image set processed by the Q-th command, and the command string is acquired according to the command editing area; wherein, the step A comprises the following steps: respectively executing a Q-th command on each image in a P-th image set formed by N images to be edited, generating a P Q -th image set formed by N images processed by the Q-th command, and marking the P Q image processed by each Q-th command by adopting a first identifier after acquiring the P Q image processed by each Q-th command, wherein the Q-th command is any command in the M commands; in response to acquiring the N first identifiers, determining that the P Q th image set is acquired, and marking the Q-th command by adopting a second identifier; and (C) executing the step B;
B, judging whether the Q-th command is the last executing command in the command string, and if not, executing the step C; if yes, executing the step D; wherein, the step B comprises the following steps: judging whether the Q-th command is the last execution command in the command string according to the acquired number of the second identifiers, and executing the step C if the Q-th command is determined not to be the last execution command in the command string in response to the acquired number of the second identifiers being smaller than M; d, in response to the acquired number of the second identifiers being equal to M, determining that the Q-th command is the last execution command in the command string, and executing the step D;
C, acquiring a Q+1st command, executing the Q+1st processing command on the P Q th image, and generating a P Q+1 th image set processed by the Q command;
step D, monitoring whether the image editing area receives any image to be edited at the T+1th moment, wherein the time difference between the T+1th moment and the T moment is smaller than a preset time threshold; to perform step E or step F;
E, in response to receiving R images to be edited in the image editing area at the T+1th moment, executing the step E, and acquiring the R images to be edited as a P+1th image set; taking the P+1st image set as the P image set, assigning R as N, and returning to the execution step A so that the P+1st image executes the Q command to generate the P+ Q th image set after the Q command is processed;
In response to the image editing area not receiving any image to be edited at time t+1st, executing step f; wherein Q is more than or equal to 1 and less than or equal to M, M, N, P, Q, R, T are all positive integers.
2. The image processing method according to claim 1, comprising:
B, in response to the operation of deleting any image in the P-th image set, updating the P-th image set, reassigning the total number of images in the deleted P-th image set to N, and executing the step A; and
Responding to the operation of adding any image in the P-th image set, updating the P-th image set, reassigning the total number of images in the newly added P-th image set to N, and executing the step A; and
In response to the operation of deleting any image in the P+1st image set, updating the P+1st image set, reassigning the total number of images in the deleted P+1st image set to R, and executing the step E;
And E, in response to the operation of adding any image in the P+1st image set, updating the P+1st image set, reassigning the total number of images in the P+1st image set after the new image set to R, and executing the step E.
3. The image processing method according to claim 1, comprising:
At the T moment, the image user interface of the editing terminal at least displays a preview image of each image in the P-th image set, and at the T+1st moment, displays a preview image of each image in the P+1st image set;
at time T, for the P-th image set, after generating the P Q file after each Q-th command processing, overlaying the preview image of each image in the corresponding P-th image set with the preview image of each P Q image in the P-th Q image set on the image user interface of the editing terminal, and
At the T+1st moment, aiming at the P+1st image set, after generating the P+ Q file processed by each Q-th command, covering the preview image of each image in the corresponding P+1st image set by adopting the preview image of each P+ Q image in the P+ Q -th image set on the image user interface of the editing terminal.
4. The image processing method according to claim 1, comprising:
At the T moment, the image user interface of the editing terminal at least displays a preview image of each image in the P-th image set, and at the T+1st moment, displays a preview image of each image in the P+1st image set;
At a T-th moment, for a P-th image set, after determining that the Q-th command is a last execution command in the command string in response to the acquired number of the second identifiers being equal to M, overlaying, on a graphical user interface of an editing terminal, a preview image of each P Q image in the P-th image set with a preview image of each image in the corresponding P-th image set;
At the t+1th moment, for the p+1th image set, after determining that the Q-th command is the last execution command in the command string in response to the acquired number of the second identifiers being equal to M, overlaying the preview image of each image in the corresponding p+1th image set with the preview image of each p+1 Q image in the p+1th image set on the image user interface of the editing terminal.
5. The image processing method according to claim 1, comprising:
The image user interface of the editing terminal also displays the command editing area, and the command string composed of the M mutually connected commands and a command library for editing are displayed in the command editing area;
In response to obtaining an addition command to any serial position of the command string from the command library, updating the command string, and reassigning the number of added commands to M;
Updating the command string in response to acquiring any command for deleting the command string, and reassigning the number of deleted commands to M;
Updating the first order of the command string in response to a modification to any command permutation order of the command string;
In response to acquiring a processing parameter of any command that modifies the command string, the any command is correspondingly updated to update the command string.
6. The image processing method of claim 1 wherein, in response to the presence of an X-th image in the P-th image set,
After the execution of the step B by the X-th image, obtaining an X Q -th image, wherein the X Q -th image is an image in the P Q -th image set; and
After the execution of the step D by the xth image, acquiring an xth Q+1 image, wherein the xth Q+1 image is an image in the P Q+1 image set;
Establishing a storage association relationship between the X Q th image and the X Q+1 th image, so that switching to the X Q+1 th image is triggered in response to the sequence direction of the first sequence being performed on the X Q th image, switching to the X image is triggered in response to the reverse sequence direction of the first sequence being performed on the X Q th image, and/or switching to the X Q+1 th image is triggered in response to the sequence direction of the first sequence being performed on the preview image of the X Q th image, and switching to the preview image of the X Q th image is triggered in response to the reverse sequence direction of the first sequence being performed on the preview image of the X Q th image; and
In response to the P +1 th set of images, there being a Y-th image,
After the execution of the step B by the Y-th image, obtaining a Y Q -th image, wherein the Y Q -th image is an image in the P Q -th image set; and
After the execution of the step C by the Y-th image, obtaining a Y Q+1 -th image, wherein the Y Q+1 -th image is an image in the P Q+1 -image set;
Establishing a storage association relationship between the Y Q th image and the Y Q+1 th image, so that switching to the Y Q+1 th image is triggered in response to the triggering of the Y Q th image in the sequence direction of the first sequence, and switching to the Y image is triggered in response to the triggering of the Y Q th image in the reverse sequence direction of the first sequence; and/or switching to the Y Q+1 th image and/or the Y Q+1 th preview image in response to triggering switching to the preview image of the Y Q th image in the sequence direction of the first sequence, and switching to the preview image of the Y Q th image in response to triggering switching to the preview image of the Y Q th image in the reverse sequence direction of the first sequence.
7. The image processing method according to claim 1, wherein at a time T, in response to the presence of an xth image and an Xth+1th image arranged in the second order in the sth image set,
After the execution of the step B by the X-th image, obtaining an X Q -th image, wherein the X Q -th image is an image in the P Q -th image set; and
After the (X+1) th image completes the step B, obtaining an (X+1) Q th image, wherein the (X+1) Q th image is an image in the P Q th image set;
Establishing an association between the X Q th image and the X+ Q th image, switching to the X+ Q th image in response to a sequential direction trigger switch of the X Q th image in the second order, switching to the X-1 Q th image in response to a reverse sequential direction trigger switch of the X Q th image in the second order, and/or switching to the X+ Q th image in response to a sequential direction trigger switch of a preview image of the X Q th image in the second order, switching to the X-1 Q th image in response to a preview image of the X Q th image in the reverse sequential direction trigger switch of the second order; and
In response to the p+1st image set, there being a Y-th image and a y+1st image arranged in a second order,
After the execution of the step B by the Y-th image, obtaining a Y Q -th image, wherein the Y Q -th image is an image in the P+ Q -th image set; and
After the step B is performed on the Y+1st image, obtaining a Y+1st Q th image, wherein the Y+1st Q th image is an image in the P+1st Q th image set;
Establishing an association between the Y Q th image and the Y+ Q th image so as to trigger switching to the Y Q th image according to the sequence direction of the second sequence, switch to the Y+ Q th image according to the triggering switching to the Y Q th image according to the reverse sequence direction of the second sequence, switch to the Y-1 Q th image according to the triggering switching to the preview image of the Y Q th image according to the sequence direction of the second sequence, switch to the preview image of the Y+ Q th image, switch to the preview image of the Y-1 Q th image according to the triggering switching to the preview image of the Y Q th image according to the reverse sequence direction of the second sequence.
8. An electronic device, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the image processing method of any of claims 1 to 7.
9. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, performs the image processing method of any of claims 1 to 7.
CN202310592129.5A 2023-05-23 2023-05-23 Image processing method, electronic device, and storage medium Active CN116611988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310592129.5A CN116611988B (en) 2023-05-23 2023-05-23 Image processing method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310592129.5A CN116611988B (en) 2023-05-23 2023-05-23 Image processing method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN116611988A CN116611988A (en) 2023-08-18
CN116611988B true CN116611988B (en) 2024-04-26

Family

ID=87684993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310592129.5A Active CN116611988B (en) 2023-05-23 2023-05-23 Image processing method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN116611988B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3132019A1 (en) * 2013-11-11 2015-05-14 Amazon Technologies, Inc. Document management and collaboration system
CA3139159A1 (en) * 2019-05-22 2020-11-26 Myota, Inc. Method and system for distributed data storage with enhanced security, resilience, and control
WO2021128892A1 (en) * 2019-12-28 2021-07-01 浪潮电子信息产业股份有限公司 Method and apparatus for creating files in batches, device, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210216502A1 (en) * 2020-01-09 2021-07-15 Salesforce.Com, Inc. System and method for synchronizing delete operations between primary and secondary databases

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3132019A1 (en) * 2013-11-11 2015-05-14 Amazon Technologies, Inc. Document management and collaboration system
CA3139159A1 (en) * 2019-05-22 2020-11-26 Myota, Inc. Method and system for distributed data storage with enhanced security, resilience, and control
WO2021128892A1 (en) * 2019-12-28 2021-07-01 浪潮电子信息产业股份有限公司 Method and apparatus for creating files in batches, device, and storage medium

Also Published As

Publication number Publication date
CN116611988A (en) 2023-08-18

Similar Documents

Publication Publication Date Title
EP3647949B1 (en) Application program processing method, device and storage medium
CN108829314B (en) Screenshot selecting interface selection method, device, equipment and storage medium
JP2016502184A (en) Icon arrangement method, apparatus, device, program, and recording medium
US9678632B2 (en) Data processing method and apparatus
CN112954210A (en) Photographing method and device, electronic equipment and medium
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN112774192A (en) Game scene jumping method and device, electronic equipment and storage medium
US10607384B2 (en) Page image display control system, page image display control method, and program therefor
CN105426232A (en) Interface processing method and apparatus
US10089001B2 (en) Operating system level management of application display
CN116611988B (en) Image processing method, electronic device, and storage medium
CN109240678B (en) Code generation method and device
CN113051018A (en) Control method, device, equipment and medium of conference system
WO2019042403A1 (en) Mobile terminal and mobile terminal-based image selection method, and storage medium
JP2014085814A (en) Information processing device, control method therefor, and program
CN115857751A (en) Icon management method and device and electronic equipment
CN113010059B (en) Application icon management method and device and electronic equipment
CN112162805B (en) Screenshot method and device and electronic equipment
CN112578961B (en) Application identifier display method and device
CN111796733B (en) Image display method, image display device and electronic equipment
CN114500844A (en) Shooting method and device and electronic equipment
KR102179370B1 (en) System for executing copy and paste of contents of computer program, method thereof and recording medium stored program executable by computer the method
CN116594973A (en) File processing method, device, equipment and storage medium
CN111666124A (en) Image acquisition equipment calling method and device, computer equipment and storage medium
CN116708945B (en) Media editing method, device, equipment and storage medium

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: 20240311

Address after: Room 901, No. 2, Lane 288, Qianfan Road, Xinqiao Town, Songjiang District, Shanghai 201612

Applicant after: Shikong (Shanghai) brand planning Co.,Ltd.

Country or region after: China

Address before: 102100 North 708 Dayushu Village, Dayushu Town, Yanqing District, Beijing

Applicant before: Beijing Youbeika Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240402

Address after: 201501, 1st Floor, Building 12, No. 915 Qianming East Road, Fengjing Town, Jinshan District, Shanghai

Applicant after: Shikong (Shanghai) Exhibition Production Co.,Ltd.

Country or region after: China

Address before: Room 901, No. 2, Lane 288, Qianfan Road, Xinqiao Town, Songjiang District, Shanghai 201612

Applicant before: Shikong (Shanghai) brand planning Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant