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

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

Info

Publication number
CN116611988A
CN116611988A CN202310592129.5A CN202310592129A CN116611988A CN 116611988 A CN116611988 A CN 116611988A CN 202310592129 A CN202310592129 A CN 202310592129A CN 116611988 A CN116611988 A CN 116611988A
Authority
CN
China
Prior art keywords
image
images
command
preview
response
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.)
Granted
Application number
CN202310592129.5A
Other languages
Chinese (zh)
Other versions
CN116611988B (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
Beijing Youbeika 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 Beijing Youbeika Technology Co ltd filed Critical Beijing Youbeika Technology 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 the Q command on each image in the N images to be edited to generate the P after the processing of the Q command Q A set of images; when the Q command is not the last execution command, the Q+1st command is acquired for the P Q The Q+1st processing command is executed by the image to generate the P after the processing of the Q command Q+1 A set of images; 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 the P+1th image after the Q command is processed Q A collection of images.

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-th command processed by the Q-th command Q The command strings are 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;
step C, obtaining the Q+1st command, for the P Q The Q+1st processing command is executed by the image to generate the Q-th commandLet the processed P Q+1 A set of images;
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-th 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+1st image after the Q command is processed Q A set of images;
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, and M, N, P, Q, R, T are 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-th command processed by the Q-th command Q The command strings are 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;
step C, obtaining the Q+1st command, for the P Q The Q+1st processing command is executed by the image to generate the P after the processing of the Q command Q+1 A set of images;
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-th 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+1st image after the Q command is processed Q A set of images;
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, and M, N, P, Q, R, T are 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) for adding commands selected in the command library in a first order to 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, and 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 in the first order to form a command string under the action of the command connection line. 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-th command processed by the Q-th command Q The command strings are acquired according to the command editing area; and (C) executing the step B;
wherein in executing step a, further comprising:
executing the Q command on each image in the P-th image set composed of the N images to be edited respectively to generate the P-th image composed of the N images processed by the Q command Q A set of images, P after each Q-th command processing is acquired Q After the image, the first identifier is adopted for processing P after each Q-th command Q Marking an image, wherein the Q-th command is any one command of the M commands;
responsive to acquiring N of the first identifiers, determining that the P-th identifier is acquired Q A second identifier is adopted to mark the Q command;
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;
Step C, obtaining the Q+1st command, for the P Q The Q+1st processing command is executed by the image to generate the P after the processing of the Q command Q+1 A set of images;
further, it is possible to directly obtainThe Q+1st command, and then to the P Q The q+1st processing command is executed by the image;
further, the get Q+1st command, for P Q The q+1th process command may be executed by the image, and may include:
acquiring a Q+1st command, assigning the Q+1st command as the Q-th command, and assigning the P-th command Q Assigning the P-th image set to the P-th image set, and returning to the step A so that N P are obtained Q Executing the Q+1st command by each image in the images to generate N P after the Q+1st command is processed Q+1 P of file composition Q+1 A file collection;
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-th 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+1st image after the Q command is processed Q A set of images;
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-th 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+1st image after the Q command is processed Q A set of images;
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 executing step E, interface 6B retains the P-th image generation showing the N-th image additions at time T Q A set of images, further exhibiting a P+1 th image generated by the R images added at the T+1 th time Q A collection of images. 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-th generated by the N images added at the T-th time is not shown in the interface 6B either Q A collection of images.
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, and M, N, P, Q, R, T are 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, P after each Q command processing is generated for the P-th image set Q After the file, the P-th user interface of the editing terminal is adopted Q Each P in the image set Q A preview of an image overlays a preview of each image in the corresponding set of P-th images, an
At the T+1st time, P+1 after each Q-th command processing is generated for the P+1st image set Q After the file, the P+1th is adopted on the image user interface of the editing terminal Q Each P+1 in the image set Q The preview image of an image overlays the preview image of each image in the corresponding p+1st image set.
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 time, for a P-th image set, employing the P-th image on a graphical user interface of an editing terminal 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 Q Each P in the image set Q The preview image of the image covers the preview image of each image in the corresponding P-th image set;
at time t+1st, for a p+1st image set, employing the p+1st image set on a graphical user interface of an editing terminal 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 Q Each P+1 in the image set Q The preview image of the image overlays the preview image of each image in the corresponding p+1st image set. In the present embodiment, the above at the T-th time is to be understood as a period of time after the start of the T-th time, and the above at the t+1th time is to be understood asFor a period of time after the start of time 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 completed the step B, obtaining an X-th image Q An image (illustratively, image 31 in interface 6A of FIG. 2), the X-th image Q The P-th image is Q Images in the set of images; and
after the X-th image has completed the step C, obtaining an X-th image Q+1 An image (illustratively, image 32 in interface 6A of FIG. 2), the X-th image Q+1 The individual pictures are the P Q+1 Images in the set of images;
illustratively, the X-th image, and X-th image are established Q Image of the X Q+1 The storage association relation of the images, specifically, an X-th storage queue can be established, the X-th image is stored in the X-th storage queue, and after the step A is executed, the X-th image after being processed by the Q-th command is obtained Q Image, X Q The image is stored in the X-th storage queue, and after the step C is executed, the X-th image after the Q+1th command is processed is obtained Q+1 After the image, the X-th Q+1 The images are stored in an X-th storage queue.
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. X-th image, X-th Q Image and X Q+1 The images are stored in a first order in an X-th storage queue, and illustratively, a first sub-queue may be provided in the X-th 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. Therefore, the second sub-queue of the Xth storage queue also stores preview images of the Xth image and the Xth image in the first order Q Preview image and X-th image of individual images Q+1 Preview image of the individual images.
So as to respond to the X-th Q Triggering switching of the images according to the sequence direction of the first sequence, and switching to the X-th image Q+1 An image responsive to the X-th Q Triggering a switch of the images in a reverse direction of the first order, switching to the X-th image, and/or in response to a change to the X-th image Q The preview images of the images are switched to the X-th image according to the sequence direction of the first sequence Q+1 A preview image of the individual image responsive to the X-th image Q Triggering switching of preview images of the images according to the reverse sequence direction of the first sequence, and switching to the preview image of the X-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 completed the step B, obtaining a Y-th image Q An image (illustratively as image 91 in interface 6B of FIG. 3), the Y-th Q The P-th image is Q Images in the set of images; and
after the Y-th image is executed in the step C, obtaining a Y-th image Q+1 An image (illustratively as image 92 in interface 6B of FIG. 3), the Y-th Q+1 The individual pictures are the P Q+1 Images in the set of images;
establishing the Y-th image and Y-th image Q A picture of the Y Q+1 Storage of individual imagesStoring the association relation, specifically, a Y-th storage queue can be established, the Y-th image is stored in the Y-th storage queue, and after executing the step A, the Y-th image after being processed by the Q-th command is obtained Q Image, Y Q The image is stored in a Y-th storage queue, and after the step C is executed, the Y-th image after being processed by the Q+1st command is obtained Q+1 After the image, the Y-th Q+1 The images are stored in a Y-th storage queue.
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, Y-th Q Image and Y Q+1 The images 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. Therefore, the second sub-queue of the Y-th storage queue also stores preview images of the Y-th image in the first order Q Preview image and Y-th of individual images Q+1 Preview image of the individual images.
So as to respond to the Y-th Q Triggering switching of the images according to the sequence direction of the first sequence to switch to the Y-th image Q+1 A picture responsive to the Y-th Q Triggering a switch of the images in a reverse direction of the first order, switching to the Y-th image, and/or in response to a change to the Y-th image Q The preview images of the images are triggered to switch to the Y-th image according to the sequence direction of the first sequence Q+1 A preview image of the individual image responsive to the Y-th image Q Triggering switching of preview images of the images according to the reverse sequence direction of the first sequence, and switching to the preview image of the Y-th image;
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 X-th image has completed the step B, obtaining an X-th image Q An image of the X th Q The P-th image is Q Images in the set of images; and
after the X+1th image has completed the step B, obtaining the X+1th image Q Personal drawingsImage, the X+1 th Q The P-th image is Q Images in the set of images;
establishing the X-th Q The image and the X+1 th Q The association relation of the images is responsive to the X-th image Q Triggering switching of the images according to the sequence direction of the second sequence, and switching to the (X+1) th image Q An image responsive to the X-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the X-1 Q Images, and/or in response to the X-th image Q The preview images of the images are triggered to be switched to the X+1 th according to the sequence direction of the second sequence Q A preview image of the individual image responsive to the X-th image Q The preview images of the images are triggered to be switched to the X-1 according to the reverse sequence direction of the second sequence Q Preview images of the individual images;
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 is executed in the step B, obtaining the X-th image Q Image (X-th Q An image, such as image 31 in interface 1 of fig. 4, for example), the X-th Q The picture is P Q Images in the set of images; and
after the P+1st image has completed the step B, obtaining the X+1st image Q An image (illustratively, image 41 in interface 1 of FIG. 4), the X+1 th Q The picture is P Q Images in the set of images;
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, can be to the P Q The image in the image set is established to be the X-1 Q Image of X Q Image and X+1 Q The storage association relationship of the individual images, in particular, the P-th image Q The method comprises the steps of establishing a Q-th storage queue for storing images of an image set, wherein a first sub-queue of the Q-th storage queue is arranged in the Q-th storage queue to store images according to a second sequence, and a second sub-queue of the Q-th storage queue is arranged to store preview images of the images according to the second sequence. The X-1 image can be obtained after the X-1 image has completed the step B Q Images (X-1) Q An image, such as image 21 of interface 1 in FIG. 4, for example), will be X-1 Q The first sub-queue of the Q-th storage queue stores the image and the X-1 th sub-queue stores the image Q The preview image of the image is stored in the second sub-queue of the Q-th storage queue, and the X-th image can be obtained after the X-th image has executed the step B Q Image (X-th Q An image, such as exemplary image 31 of interface 1 in FIG. 4), will be X Q The first sub-queue of the Q-th storage queue stores the image and the X-th sub-queue stores the image Q The preview image of the image is stored in a second sub-queue of the Q storage queue, and after the X+1st image is executed in the step B, the X+1st image is obtained Q Image (e.g., image 41 of interface 1 in fig. 4, for example), will be x+1 Q The first sub-queue of the Q-th storage queue stores the image (X+1) Q The images are stored to a second sub-queue of the Q store queue.
Thus, the first child in the Q store queueThe queue also stores the X-1 in the second order Q Image of X Q Image and X+1 Q Images such that in response to said X-th Q Triggering switching of the images according to the sequence direction of the second sequence, and switching to the (X+1) th image Q An image responsive to the X-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the X-1 Q An image;
and, a second sub-queue in the Q store queue also stores the X-1 in a second order Q Preview image of individual image, X-th Q Preview image and x+1th of individual image Q Preview image of the individual images. So as to respond to the X-th Q The preview images of the images are triggered to be switched to the X+1 th according to the sequence direction of the second sequence Q A preview image of the individual image responsive to the X-th image Q The preview images of the images are triggered to be switched to the X-1 according to the reverse sequence direction of the second sequence Q Preview image of the individual images.
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 Y-th image has completed the step B, obtaining a Y-th image Q A Y-th image Q The P+1th image Q Images in the set of images; and
after the Y+1st image has executed the step B, obtaining the Y+1st image Q A (Y+1) th image Q The P+1th image Q Images in the set of images;
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-th image is executed in the step B, obtaining the Y-th image Q Image (Y) Q An image, showFor example, as in image 91 in interface 1 of fig. 4), said Y Q The picture is P Q Images in the set of images; and
after the P+1st image has completed the step B, obtaining the Y+1st image Q An image (illustratively as image 101 in interface 1 of FIG. 4), the Y+1 th Q The picture is P Q Images in the set of images;
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, the P+1 th Q The images in the image set are established to be Y-1 Q Image of Y Q Image and Y+1 Q The storage association relationship of the individual images, in particular, the P+1th Q And continuously adopting the Q-th storage queue for storing images of the image set according to a second sequence in a first sub-queue of the Q-th storage queue, and setting a second sub-queue of the Q-th storage queue to store preview images of the images according to the second sequence. The Y-1 image can be obtained after the Y-1 image is executed in the step B Q Image (Y-1) Q An image, such as image 81 of interface 1 of FIG. 4, for example), will be Y-1 Q The first sub-queue of the Q-th storage queue stores the image and the Y-1 th sub-queue stores the image Q The preview image of the image is stored in the second sub-queue of the Q-th storage queue, and after the execution of the step B by the Y-th image, the Y-th image can be obtained Q Image (Y) Q An image, such as image 91 of interface 1 of FIG. 4, for example), will be Y Q The first sub-queue of the Q-th storage queue stores the images and the Y-th storage queue stores the images Q The images are stored in a second sub-queue of the Q storage queue, and after the step B is executed by the Y+1st image, the Y+1st image is obtained Q Image (e.g., image 101 of interface 1 in fig. 4, for example), will be y+1 Q The first sub-queue of the Q-th storage queue stores the image, and the Y+1 is stored in the first sub-queue Q The images are stored in the second sub-queue of the Q-th storage queue, so that the first sub-queue in the Q-th storage queue stores the Y-1 in the second order Q Image of Y Q Image and Y+1 Q An image such that in response to said Y-th Q Triggering switching of the images according to the sequence direction of the second sequence to be switched to the Y+1 Q A picture responsive to the Y-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the Y-1 Q An image;
and, a second sub-queue in the Q store queue also stores Y-1 in a second order Q Preview image of individual image, Y Q Preview image and Y+1th of each image Q Preview images of the images such that in response to said Y-th Q The preview images of the images are triggered to be switched to the Y+1-th image according to the sequence direction of the second sequence Q A preview image of the individual image responsive to the Y-th image Q The preview images of the images are triggered to be switched to the Y-1 according to the reverse sequence direction of the second sequence Q Preview image of the individual images.
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, the P-th image is obtained Q The preview image of image 31 and the preview image of image 41 are also 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 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 of FIG. 5, the P-th image (3 rd image), P-th image may also be stored in a first order in a first sub-queue of the P-th store queue (3 rd store queue) Q The (31 st) and P (th) images Q+1 A (32) th image, and storing a (P-1) th image (2 nd image), a (P) th image (3 rd image) and the (P+1) th image (4 th image) in a second order in a first sub-queue of a first storage queue;
Then the preview image of the P-th image (3 rd image) and the P-th image are stored in the first sub-queue of the P-th storage queue (3 rd storage queue) according to the first order Q Preview image and P of the individual image (31 st image) Q+1 A preview image of a (32) th image, and storing a preview image of a (P-1) th image (2 nd image), a preview image of a (P-3 rd image) and a preview image of the (P+1) th image (4 th image) in a second order in a first sub-queue of a 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 the interface 1 of fig. 5, after executing the command 1 on each of the R images in the p+1st image set, the p+1st image is obtained Q The image 91 and the image 101 are continuously stored in the first sub-queue of the Q-th storage queue, and the preview image of the image 91 and the preview image of the image 101 are also 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 of FIG. 6, the P-th image (9-th image), P-th image may also be stored in a first order in a first sub-queue of the P-th store queue (9-th store queue) Q Image 91 and P Q+1 A P-1 st image (8 th image), a P-th image (9 th image) and the p+1 th image (10 th image) are stored in the second order in a first sub-queue of the first storage queue;
then the preview image of the P-th image (9 th image) and the P-th image are stored in the first sub-queue of the P-th storage queue (9 th storage queue) according to the first order Q Preview image and P of individual image (91 st image) Q+1 A preview image of a (92 th image), and storing a preview image of a (P-1) th image (8 th image), a preview image of a (P) th image (9 th image), and a preview image of the (P+1) th image (10 th image) in a second order in a first sub-queue of a 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-th command processed by the Q-th command Q The command strings are 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;
step C, obtaining the Q+1st command, for the P Q The Q+1st processing command is executed by the image to generate the P after the processing of the Q command Q+1 A set of images;
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-th 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+1st image after the Q command is processed Q A set of images;
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, and M, N, P, Q, R, T are 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 performs the steps ofIn the step A, the method specifically comprises the following steps: executing the Q command on each image in the P-th image set composed of the N images to be edited respectively to generate the P-th image composed of the N images processed by the Q command Q A set of images, P after each Q-th command processing is acquired Q After the image, the first identifier is adopted for processing P after each Q-th command Q Marking an image, wherein the Q-th command is any one command of the M commands;
responsive to acquiring N of the first identifiers, determining that the P-th identifier is acquired Q A second identifier is adopted to mark the Q command; and
the first execution 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, P after each Q command processing is generated for the P-th image set Q After the file, the P-th user interface of the editing terminal is adopted Q Each P in the image set Q A preview of an image overlays a preview of each image in the corresponding set of P-th images, an
The second execution module 12 is specifically configured to generate p+1 after each Q-th command processing for the p+1-th image set at the t+1-th time Q After the file, the user interface of the image of the terminal is editedThe P+1 is adopted Q Each P+1 in the image set Q The preview image of an image overlays 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 time, for a P-th image set, employing the P-th image on a graphical user interface of an editing terminal 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 Q Each P in the image set Q The preview image of the image covers the preview image of each image in the corresponding P-th image set;
the second execution module 12 is specifically configured to employ, at a time t+1st, the p+1st image set on a graphical user interface of an editing terminal 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 Q Each P+1 in the image set Q The preview image of the image overlays the preview image of each 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 X-th image has completed the step B, obtaining an X-th image Q An image of the X th Q The P-th image is Q Images in the set of images; and
after the X-th image has completed the step D, obtaining an X-th image Q+1 An image of the X th Q+1 The individual pictures are the P Q+1 Images in the set of images;
establishing the X-th Q Image and the X Q+1 Storing the association of the images such that in response to the X-th image Q Triggering switching of the images according to the sequence direction of the first sequence, and switching to the X-th image Q+1 An image responsive to the X-th Q Triggering a switch of the images in a reverse direction of the first order, switching to the X-th image, and/or in response to a change to the X-th image Q The preview images of the images are switched to the X-th image according to the sequence direction of the first sequence Q+1 A preview image of the individual image responsive to the X-th image Q Triggering switching of preview images of the images according to the reverse sequence direction of the first sequence, and switching to the preview image of the X-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 Y-th image has completed the step B, obtaining a Y-th image Q A Y-th image Q The P-th image is Q Images in the set of images; and
after the Y-th image is executed in the step C, obtaining a Y-th image Q+1 A Y-th image Q+1 The individual images are theP Q+1 Images in the set of images;
establishing the Y-th Q Image and the Y Q+1 Storing the association of the images such that in response to the Y-th image Q Triggering switching of the images according to the sequence direction of the first sequence to switch to the Y-th image Q+1 A picture responsive to the Y-th Q Triggering switching of the images according to the reverse sequence direction of the first sequence, and switching to the Y-th image; and/or in response to said Y-th Q The preview images of the images are triggered to switch to the Y-th image according to the sequence direction of the first sequence Q+1 Individual images and/or Y-th Q+1 A preview image responsive to the Y-th image Q And triggering switching of preview images of the images according to the reverse sequence direction of the first sequence, and switching to the preview image of the Y-th image.
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 X-th image has completed the step B, obtaining an X-th image Q An image of the X th Q The P-th image is Q Images in the set of images; and
after the X+1th image has completed the step B, obtaining the X+1th image Q An image of the (X+1) th Q The P-th image is Q Images in the set of images;
establishing the X-th Q The image and the X+1 th Q The association relation of the images is responsive to the X-th image Q Triggering switching of the images according to the sequence direction of the second sequence, and switching to the (X+1) th image Q An image responsive to the X-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the X-1 Q Images, and/or in response to the X-th image Q The preview images of the images are triggered to be switched to the X+1 th according to the sequence direction of the second sequence Q Preview image of individual image, responseFor the X th Q The preview images of the images are triggered to be switched to the X-1 according to the reverse sequence direction of the second sequence Q Preview images of the individual images; 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 Y-th image has completed the step B, obtaining a Y-th image Q A Y-th image Q The P+1th image Q Images in the set of images; and
after the Y+1st image has executed the step B, obtaining the Y+1st image Q A (Y+1) th image Q The P+1th image Q Images in the set of images;
establishing the Y-th Q Image and the Y+1 th Q Association of the images such that in response to the Y-th image Q Triggering switching of the images according to the sequence direction of the second sequence to be switched to the Y+1 Q A picture responsive to the Y-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the Y-1 Q A picture, and/or in response to a picture of the Y-th picture Q The preview images of the images are triggered to be switched to the Y+1-th image according to the sequence direction of the second sequence Q A preview image of the individual image responsive to the Y-th image Q The preview images of the images are triggered to be switched to the Y-1 according to the reverse sequence direction of the second sequence Q Preview image of the individual images.
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 (10)

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-th command processed by the Q-th command Q The command strings are 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;
step C, obtaining the Q+1st command, for the P Q The Q+1st processing command is executed by the image to generate the P after the processing of the Q command Q+1 A set of images;
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-th 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+1st image after the Q command is processed Q A set of images;
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, and M, N, P, Q, R, T are 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, wherein,
the step A comprises the following steps: executing the Q command on each image in the P-th image set composed of the N images to be edited respectively to generate the P-th image composed of the N images processed by the Q command Q A set of images, P after each Q-th command processing is acquired Q After the image, the first identifier is adopted for processing P after each Q-th command Q Marking an image, wherein the Q-th command is any one command of the M commands;
Responsive to acquiring N of the first identifiers, determining that the P-th identifier is acquired Q Image collectionMarking the Q command with a second identifier; and
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; 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.
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 time T, P after each Q command processing is generated for the P-th image set Q After the file, the P-th user interface of the editing terminal is adopted Q Each P in the image set Q A preview of an image overlays a preview of each image in the corresponding set of P-th images, an
At the T+1st time, P+1 after each Q-th command processing is generated for the P+1st image set Q After the file, the P+1th is adopted on the image user interface of the editing terminal Q Each P+1 in the image set Q The preview image of an image overlays the preview image of each image in the corresponding p+1st image set.
5. An image processing method according to claim 3, 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 time, for a P-th image set, employing the P-th image on a graphical user interface of an editing terminal 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 Q Each P in the image set Q The preview image of the image covers the preview image of each image in the corresponding P-th image set;
At time t+1st, for a p+1st image set, employing the p+1st image set on a graphical user interface of an editing terminal 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 Q Each P+1 in the image set Q The preview image of the image overlays the preview image of each image in the corresponding p+1st image set.
6. 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.
7. 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 X-th image has completed the step B, obtaining an X-th image Q An image of the X th Q The P-th image is Q Images in the set of images; and
after the X-th image has completed the step D, obtaining an X-th image Q+1 An image of the X th Q+1 The individual pictures are the P Q+1 Images in the set of images;
establishing the X-th Q Image and the X Q+1 Storing the association of the images such that in response to the X-th image Q Triggering switching of the images according to the sequence direction of the first sequence, and switching to the X-th image Q+1 An image responsive to the X-th Q Triggering a switch of the images in a reverse direction of the first order, switching to the X-th image, and/or in response to a change to the X-th image Q The preview images of the images are switched to the X-th image according to the sequence direction of the first sequence Q+1 A preview image of the individual image responsive to the X-th image Q Triggering switching of preview images of the images according to the reverse sequence direction of the first sequence, and switching to the preview image of the X-th image; and
in response to the P +1 th set of images, there being a Y-th image,
after the Y-th image has completed the step B, obtaining a Y-th image Q A Y-th image Q The P-th image is Q Images in the set of images; and
after the Y-th image is executed in the step C, obtaining a Y-th image Q+1 A Y-th image Q+1 The individual pictures are the P Q+1 Images in the set of images;
establishing the Y-th Q Image and the Y Q+1 Storing the association of the images such that in response to the Y-th image Q Triggering switching of the images according to the sequence direction of the first sequence, and switching to the first sequenceY (th) Q+1 A picture responsive to the Y-th Q Triggering switching of the images according to the reverse sequence direction of the first sequence, and switching to the Y-th image; and/or in response to said Y-th Q The preview images of the images are triggered to switch to the Y-th image according to the sequence direction of the first sequence Q+1 Individual images and/or Y-th Q+1 A preview image responsive to the Y-th image Q And triggering switching of preview images of the images according to the reverse sequence direction of the first sequence, and switching to the preview image of the Y-th image.
8. 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 X-th image has completed the step B, obtaining an X-th image Q An image of the X th Q The P-th image is Q Images in the set of images; and
after the X+1th image has completed the step B, obtaining the X+1th image Q An image of the (X+1) th Q The P-th image is Q Images in the set of images;
establishing the X-th Q The image and the X+1 th Q The association relation of the images is responsive to the X-th image Q Triggering switching of the images according to the sequence direction of the second sequence, and switching to the (X+1) th image Q An image responsive to the X-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the X-1 Q Images, and/or in response to the X-th image Q The preview images of the images are triggered to be switched to the X+1 th according to the sequence direction of the second sequence Q A preview image of the individual image responsive to the X-th image Q The preview images of the images are triggered to be switched to the X-1 according to the reverse sequence direction of the second sequence Q Preview images of the individual images; 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 Y-th image has completed the step B, obtaining a Y-th image Q A Y-th image Q The P+1th image Q Images in the set of images; and
after the Y+1st image has executed the step B, obtaining the Y+1st image Q A (Y+1) th image Q The P+1th image Q Images in the set of images;
establishing the Y-th Q Image and the Y+1 th Q Association of the images such that in response to the Y-th image Q Triggering switching of the images according to the sequence direction of the second sequence to be switched to the Y+1 Q A picture responsive to the Y-th Q Triggering switching of the images according to the reverse sequence direction of the second sequence, and switching to the Y-1 Q A picture, and/or in response to a picture of the Y-th picture Q The preview images of the images are triggered to be switched to the Y+1-th image according to the sequence direction of the second sequence Q A preview image of the individual image responsive to the Y-th image Q The preview images of the images are triggered to be switched to the Y-1 according to the reverse sequence direction of the second sequence Q Preview image of the individual images.
9. 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 8.
10. 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 8.
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 true CN116611988A (en) 2023-08-18
CN116611988B 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 (4)

* 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
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 (4)

* 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
US20210216502A1 (en) * 2020-01-09 2021-07-15 Salesforce.Com, Inc. System and method for synchronizing delete operations between primary and secondary databases

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CODING-PIGGY: "MATLAB监控文件夹,当有新文件就进行处理", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/qq_21288703/article/details/104925220> *
言川寻: "【ImageJ】使用批处理功能批量处理图片", pages 1 - 4, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/349208763> *

Also Published As

Publication number Publication date
CN116611988B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN111858522B (en) File sharing method, device, terminal and storage medium
JP6029767B2 (en) Icon arrangement method, apparatus, device, program, and recording medium
KR101725887B1 (en) Method and apparatus for searching contents in touch screen device
EP3647949B1 (en) Application program processing method, device and storage medium
EP3674868A1 (en) Multimedia resource management method and apparatus, and storage medium
CN115097981B (en) Method for processing content and electronic device thereof
CN108829314B (en) Screenshot selecting interface selection method, device, equipment and storage medium
CN107463310A (en) Method, apparatus, mobile terminal and the computer-readable recording medium that a kind of picture is shared
CN105144058A (en) Deferred placement prompt
CN113093968A (en) Shooting interface display method and device, electronic equipment and medium
CN109284034B (en) Method, system, storage medium and mobile phone for previewing terminal wallpaper
CN110162353A (en) Multi-page switching method and equipment, storage medium, terminal
EP2824566A1 (en) Data processing method and device
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN106354378B (en) A kind of method and apparatus for quickly choosing multiple targets
US20180089873A1 (en) Page image display control system, page image display control method, and program therefor
CN105426232A (en) Interface processing method and apparatus
CN114693827A (en) Expression generation method and device, computer equipment and storage medium
CN116611988B (en) Image processing method, electronic device, and storage medium
WO2019042403A1 (en) Mobile terminal and mobile terminal-based image selection method, and storage medium
WO2023239468A1 (en) Cross-application componentized document generation
JP2014085814A (en) Information processing device, control method therefor, and program
CN109213980B (en) Method and device for editing presentation file and computer readable storage medium
US11574001B2 (en) Method and apparatus for generating unordered list, method for managing images and terminal device
CN104267875A (en) Photo mode display method and device

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