CN116627543A - Picture processing method, device, terminal equipment and storage medium - Google Patents

Picture processing method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN116627543A
CN116627543A CN202310892426.1A CN202310892426A CN116627543A CN 116627543 A CN116627543 A CN 116627543A CN 202310892426 A CN202310892426 A CN 202310892426A CN 116627543 A CN116627543 A CN 116627543A
Authority
CN
China
Prior art keywords
picture
processed
picture processing
processing program
task number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310892426.1A
Other languages
Chinese (zh)
Inventor
陈增和
吕振
刁奇标
赖浩哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Housley Technology Co ltd
Original Assignee
Shenzhen Housley 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 Shenzhen Housley Technology Co ltd filed Critical Shenzhen Housley Technology Co ltd
Priority to CN202310892426.1A priority Critical patent/CN116627543A/en
Publication of CN116627543A publication Critical patent/CN116627543A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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
    • 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

Abstract

The application discloses a picture processing method, a device, terminal equipment and a storage medium, wherein the picture processing method comprises the following steps: responding to a picture processing request of a user side, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. The application solves the problems that the operation of the picture processing program is complicated and the time consumption is excessive, and the picture processing efficiency is reduced.

Description

Picture processing method, device, terminal equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for processing a picture, a terminal device, and a storage medium.
Background
Currently, the AI picture processing program requires a user to run a manually prepared directory, such as a manually input picture input address, a manually output picture address, etc., through a command line in a locally configured environment, and the AI picture processing program reduces picture processing efficiency due to complicated and time-consuming operations.
Therefore, it is necessary to propose a solution for the inefficiency of picture processing.
Disclosure of Invention
The application mainly aims to provide a picture processing method, a picture processing device, terminal equipment and a storage medium, and aims to solve the problem of low picture processing efficiency of a picture processing program.
To achieve the above object, an embodiment of the present application provides a picture processing method, including:
responding to a picture processing request of a user side, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request;
generating a task number according to the picture to be processed and correlating with the picture to be processed;
invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture;
and returning the result picture to the user side according to the task number.
Optionally, before the step of obtaining the to-be-processed picture and the picture processing program configuration according to the picture processing request, the method further includes:
acquiring a configuration file;
configuring and starting a corresponding number of queue message processors according to the number of running tasks in the configuration file and monitoring a working channel;
and monitoring the picture processing request according to the monitoring address and the monitoring port in the configuration file.
Optionally, after the step of generating the task number according to the to-be-processed picture and associating with the to-be-processed picture, the method further includes:
and moving the picture to be processed, the picture processing program configuration and the task number into the working channel.
Optionally, the step of generating a task number according to the to-be-processed picture includes:
acquiring one or more of a user ID, a password hash value MD5 of the picture, a current millisecond time stamp and a CPU atom self-increment number according to the picture to be processed;
splicing one or more of the user ID, the MD5 of the picture, the current millisecond time stamp and the CPU atomic self-increment number to obtain a character string of a task;
and processing according to the character string of the task and the MD5 information abstract algorithm to obtain the task number.
Optionally, after the step of calling the picture processing program according to the picture processing program configuration to process the to-be-processed picture to obtain the result picture, the method further includes:
associating the result picture with the task number;
uploading the result picture to an operation support system OSS and generating a uniform resource locator URL;
and moving the URL and the task number into a result channel.
Optionally, the step of returning the result picture to the user side according to the task number includes:
acquiring the result picture from the OSS according to the task number and the URL;
inquiring according to the task number to obtain the picture processing request;
and returning the result picture to the user side according to the picture processing request.
Optionally, after the step of obtaining the to-be-processed picture and the picture processing program configuration according to the picture processing request, the method further includes:
performing format check on the picture to be processed according to picture format configuration in the configuration file;
in the case of a picture format check, the steps are performed: and generating a task number according to the picture to be processed, and associating with the picture to be processed.
The embodiment of the application also provides a picture processing device, which comprises:
the acquisition module is used for responding to a picture processing request of a user side and acquiring a picture to be processed and picture processing program configuration according to the picture processing request;
the numbering module is used for generating a task number according to the picture to be processed and correlating with the picture to be processed;
the processing module is used for calling a picture processing program according to the picture processing program configuration so as to process the picture to be processed, and obtaining a result picture;
and the return module is used for returning the result picture to the user side according to the task number.
The embodiment of the application also provides a terminal device, which comprises a memory, a processor and a picture processing program stored in the memory and capable of running on the processor, wherein the picture processing program realizes the steps of the picture processing method when being executed by the processor.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a picture processing program, and the picture processing program realizes the steps of the picture processing method when being executed by a processor.
The picture processing method, the picture processing device, the terminal equipment and the storage medium provided by the embodiment of the application acquire a picture to be processed and picture processing program configuration according to a picture processing request by responding to the picture processing request of a user side; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. According to the method, a picture to be processed and picture processing program configuration are obtained according to the picture processing request sent by a user, receiving data can be transmitted and received based on a network, the picture to be processed is processed by generating an associated task number according to the picture to be processed, calling a corresponding picture processing program according to the picture processing program configuration, and returning a processed result picture to a user side according to the associated task number, so that the calling of the picture processing program is realized, and the result picture is returned to the user through the unique corresponding task number. Based on the scheme of the application, the corresponding catalogue does not need to be manually input through a command line, the problem of low processing efficiency of the existing picture is solved, and the processing efficiency of the picture is effectively improved.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a picture processing apparatus of the present application belongs;
fig. 2 is a flowchart of a first exemplary embodiment of a picture processing method according to the present application;
FIG. 3 is a flowchart illustrating a second exemplary embodiment of a picture processing method according to the present application;
FIG. 4 is a flowchart illustrating a third exemplary embodiment of a picture processing method according to the present application;
fig. 5 is a schematic flow chart of a third exemplary embodiment of a picture processing method according to the present application, which is implemented after a picture to be processed is processed to obtain a result picture;
fig. 6 is a schematic flow chart of returning the result picture to the user side according to the task number according to the third exemplary embodiment of the picture processing method of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The main solutions of the embodiments of the present application are: responding to a picture processing request of a user side, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. According to the method, a picture to be processed and picture processing program configuration are obtained according to the picture processing request sent by a user, receiving data can be transmitted and received based on a network, the picture to be processed is processed by generating an associated task number according to the picture to be processed, calling a corresponding picture processing program according to the picture processing program configuration, and returning a processed result picture to a user side according to the associated task number, so that the calling of the picture processing program is realized, and the result picture is returned to the user through the unique corresponding task number. Based on the scheme of the application, the corresponding catalogue does not need to be manually input through a command line, the problem of low processing efficiency of the existing picture is solved, and the processing efficiency of the picture is effectively improved.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional modules of a terminal device to which the image processing apparatus of the present application belongs. The picture processing device may be a device independent of the terminal device, capable of performing picture uploading, picture processing and picture returning, and may be carried on the terminal device in a form of hardware or software. The terminal equipment can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed terminal equipment or a server with a data processing function.
In this embodiment, the terminal device to which the image processing apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a picture processing program, the picture processing device can process a picture processing request of a user side, configure a to-be-processed picture and the picture processing program obtained according to the picture processing request, and store a result picture obtained by processing the to-be-processed picture through the picture processing program according to an association relationship between the to-be-processed picture and the task number and information such as the result picture obtained according to the task number in the memory 130; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the picture processing program in the memory 130 when executed by the processor implements the steps of:
responding to a picture processing request of a user side, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request;
generating a task number according to the picture to be processed and correlating with the picture to be processed;
invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture;
and returning the result picture to the user side according to the task number.
Further, the picture processing program in the memory 130 when executed by the processor also implements the following steps:
acquiring a configuration file;
configuring and starting a corresponding number of queue message processors according to the number of running tasks in the configuration file and monitoring a working channel;
and monitoring the picture processing request according to the monitoring address and the monitoring port in the configuration file.
Further, the picture processing program in the memory 130 when executed by the processor also implements the following steps:
and moving the picture to be processed, the picture processing program configuration and the task number into the working channel.
Further, the picture processing program in the memory 130 when executed by the processor also implements the following steps:
acquiring one or more of a user ID, a password hash value MD5 of the picture, a current millisecond time stamp and a CPU atom self-increment number according to the picture to be processed;
splicing one or more of the user ID, the MD5 of the picture, the current millisecond time stamp and the CPU atomic self-increment number to obtain a character string of a task;
and processing according to the character string of the task and the MD5 information abstract algorithm to obtain the task number.
Further, the picture processing program in the memory 130 when executed by the processor also implements the following steps:
associating the result picture with the task number;
uploading the result picture to an operation support system OSS and generating a uniform resource locator URL;
and moving the URL and the task number into a result channel.
Further, the picture processing program in the memory 130 when executed by the processor also implements the following steps:
acquiring the result picture from the OSS according to the task number and the URL;
inquiring according to the task number to obtain the picture processing request;
and returning the result picture to the user side according to the picture processing request.
Further, the picture processing program in the memory 130 when executed by the processor also implements the following steps:
performing format check on the picture to be processed according to picture format configuration in the configuration file;
in the case of a picture format check, the steps are performed: and generating a task number according to the picture to be processed, and associating with the picture to be processed.
According to the scheme, specifically, a picture processing request of a user side is responded, and a picture to be processed and picture processing program configuration are obtained according to the picture processing request; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. According to the method, a picture to be processed and picture processing program configuration are obtained according to the picture processing request sent by a user, receiving data can be transmitted and received based on a network, the picture to be processed is processed by generating an associated task number according to the picture to be processed, calling a corresponding picture processing program according to the picture processing program configuration, and returning a processed result picture to a user side according to the associated task number, so that the calling of the picture processing program is realized, and the result picture is returned to the user through the unique corresponding task number. Based on the scheme of the application, the corresponding catalogue does not need to be manually input through a command line, the problem of low processing efficiency of the existing picture is solved, and the processing efficiency of the picture is effectively improved.
The first embodiment of the method of the present application is presented based on the above-described architecture of the terminal device, but not limited to the above-described architecture.
Referring to fig. 2, fig. 2 is a flowchart of a first exemplary embodiment of a picture processing method according to the present application. The main execution body of the method of the embodiment may be a picture processing device, or may be a picture processing terminal device or a server, and the embodiment uses the picture processing device as an example, where the picture processing device may be integrated on a terminal device such as a smart phone, a tablet computer, etc. with a data processing function. In this embodiment, the picture processing method includes:
step S11, responding to a picture processing request of a user side, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request.
Specifically, when a user sends a picture processing request through a user terminal, responding to the picture processing request, wherein the picture processing request can include, but is not limited to, contents such as user terminal information, picture processing program configuration, protocol information and the like; the type of picture processing request may include an HTTP request or other protocol type request. Optionally, the manner of sending the picture processing request through the user side may include, but is not limited to, sending the picture processing request through a front-end page or applet.
And then, acquiring the to-be-processed picture and the picture processing program configuration according to the received picture processing request. The number of the acquired pictures to be processed may be one or more, and in this embodiment, the specific number and types of the pictures are not limited. The acquired picture processing program configuration may include, but is not limited to, a selected picture processing program and its operating parameter configuration, etc.
And step S12, generating a task number according to the picture to be processed, and associating with the picture to be processed.
Specifically, after the to-be-processed picture is obtained, generating a task number according to the to-be-processed picture, wherein the task number is used for uniquely identifying the corresponding to-be-processed picture. And then, correlating the generated task number with the corresponding picture to be processed.
And step S13, invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, and obtaining a result picture.
Specifically, a corresponding picture processing program is called according to the obtained picture processing program configuration, and a picture to be processed is processed through the picture processing program, so that a result picture is obtained.
And step S14, returning the result picture to the user side according to the task number.
Specifically, according to the task number generated based on the picture to be processed, the result picture obtained after the picture processing is returned to the corresponding user side.
According to the scheme, specifically, a picture processing request of a user side is responded, and a picture to be processed and picture processing program configuration are obtained according to the picture processing request; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. According to the method, a picture to be processed and picture processing program configuration are obtained according to the picture processing request sent by a user, receiving data can be transmitted and received based on a network, the picture to be processed is processed by generating an associated task number according to the picture to be processed, calling a corresponding picture processing program according to the picture processing program configuration, and returning a processed result picture to a user side according to the associated task number, so that the calling of the picture processing program is realized, and the result picture is returned to the user through the unique corresponding task number. Based on the scheme of the application, the corresponding catalogue does not need to be manually input through a command line, the problem of low processing efficiency of the existing picture is solved, and the processing efficiency of the picture is effectively improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second exemplary embodiment of a picture processing method according to the present application. Based on the embodiment shown in fig. 2, in this embodiment, before obtaining the to-be-processed picture and the picture processing program configuration according to the picture processing request in step S11, the method may further include:
step S101, a configuration file is acquired.
In this embodiment, a configuration file is first obtained for starting a corresponding program based on the configuration file, where the content of the configuration file may include, but is not limited to, running task number configuration, a listening address, a listening port, and the like; the file format of the configuration file may include, but is not limited to, a TOML format or a YAML format.
Step S102, configuring and starting a corresponding number of queue message processors according to the number of running tasks in the configuration file and monitoring a working channel;
step S103, monitoring the picture processing request according to the monitoring address and the monitoring port in the configuration file.
Specifically, after the configuration file is acquired, a corresponding program is started according to the configuration file. And configuring and starting a corresponding number of queue message processors workbench according to the number of running tasks in the configuration file and monitoring the working channel. By configuring the running task data, parallel execution threads can be flexibly set according to the condition of sufficient local resources, so that simultaneous execution of multiple users and multiple tasks is facilitated, the aim of utilizing the machine performance to the maximum is achieved, and the picture processing efficiency is further improved. And monitoring the picture processing request sent by the user terminal according to the monitoring address and the monitoring port in the configuration file so as to respond to the picture processing request in time after monitoring the picture processing request sent by the user terminal.
And then, when the user sends a picture processing request through the user terminal, responding to the picture processing request, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request.
And after the to-be-processed picture is obtained, generating a task number according to the to-be-processed picture, wherein the task number is used for uniquely identifying the corresponding to-be-processed picture. And then, correlating the generated task number with the corresponding picture to be processed.
Further, in this embodiment, after the step of generating the task number according to the to-be-processed picture and associating with the to-be-processed picture, the method may further include:
step S1201, moving the to-be-processed picture, the picture processing program configuration and the task number into the working channel.
Specifically, the picture to be processed, the picture processing program configuration and the task number are moved into a working channel, so that a Worker obtains the picture to be processed, the picture processing program configuration and the task number from the working channel, calls a corresponding picture processing program according to the obtained picture processing program configuration, and processes the picture to be processed through the picture processing program to obtain a result picture; and returning the result picture obtained after the picture processing to the corresponding user terminal according to the task number generated based on the picture to be processed.
Optionally, after the step of moving the to-be-processed picture, the picture processing program configuration, and the task number into the working channel, the method may further include: inquiring whether a result channel moves into the task number according to a predefined time interval; and returning an error prompt to the user side under the condition that the task number is not shifted beyond a predefined time interval threshold.
For example, after moving the picture to be processed, the picture processing program configuration and the task number into the working channel, the channel queries whether to move into the task number every 500ms according to a predefined time interval of 500 ms. And after the time interval threshold of 10s is exceeded, returning an error prompt to the corresponding user terminal when the shift-in of the task number is not queried yet.
According to the scheme, specifically, a picture processing request of a user side is responded, and a picture to be processed and picture processing program configuration are obtained according to the picture processing request; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. According to the method, a picture to be processed and picture processing program configuration are obtained according to the picture processing request sent by a user, receiving data can be transmitted and received based on a network, the picture to be processed is processed by generating an associated task number according to the picture to be processed, calling a corresponding picture processing program according to the picture processing program configuration, and returning a processed result picture to a user side according to the associated task number, so that the calling of the picture processing program is realized, and the result picture is returned to the user through the unique corresponding task number. Based on the scheme of the application, the corresponding catalogue does not need to be manually input through a command line, the problem of low processing efficiency of the existing picture is solved, and the processing efficiency of the picture is effectively improved.
Referring to fig. 4, fig. 4 is a flowchart of a third exemplary embodiment of a picture processing method according to the present application. Based on the embodiment shown in fig. 2 or fig. 3, in this embodiment, the step of generating the task number according to the to-be-processed picture may include:
step S121, obtaining one or more of a user ID, a password hash value MD5 of the picture, a current millisecond time stamp, and a CPU atom self-increment number according to the picture to be processed;
step S122, a character string of a task is obtained by splicing one or more of the user ID, the MD5 of the picture, the current millisecond time stamp and the CPU atomic number self-increment;
and step S123, processing according to the character string of the task and the MD5 information summary algorithm to obtain the task number.
Specifically, after obtaining a to-be-processed picture according to a received picture processing request, obtaining one or more of a user ID, a password hash value MD5 of the picture, a current millisecond time stamp and a CPU atomic self-increment number according to the to-be-processed picture; splicing according to one or more of the acquired user ID, the password hash value MD5 of the picture, the current millisecond time stamp and the CPU atomic self-increment number to obtain a character string of the spliced task; and then, processing the task by combining an MD5 information abstract algorithm based on the character type of the spliced task to obtain a task number.
According to the embodiment, the task number is generated through the scheme, so that the uniqueness of the task number is better ensured.
Further, referring to fig. 5, fig. 5 is a schematic flow chart of a third exemplary embodiment of the picture processing method according to the present application, wherein in the embodiment, after the picture processing program is configured to call a picture processing program according to the picture processing program to process the picture to be processed to obtain a result picture, the method may further include:
step S1301, associating the result picture with the task number;
step S1302, uploading the result picture to an operation support system OSS and generating a uniform resource locator URL;
step S1303, the URL and the task number are moved into a result channel.
Specifically, after the to-be-processed picture is processed to obtain the result picture, the result picture is associated with the task number. And then uploading the result picture to an operation support system OSS, generating a uniform resource locator URL, and moving the generated URL and a task number associated with the result picture into a result channel.
Further, referring to fig. 6, fig. 6 is a flow chart illustrating a process of returning the result picture to the user terminal according to the task number according to a third exemplary embodiment of the picture processing method of the present application, in this embodiment, the step S14 of returning the result picture to the user terminal according to the task number may include:
step S141, obtaining the result picture from the OSS according to the task number and the URL;
step S142, inquiring according to the task number to obtain the picture processing request;
and step S143, returning the result picture to the user side according to the picture processing request.
Specifically, according to the task number and the uniform resource locator URL in the result channel, a corresponding result picture is obtained from an operation support system OSS; inquiring according to the task number to obtain a corresponding picture processing request; and returning the result picture to the corresponding user terminal according to the inquired picture processing request.
According to the method, the result picture can be accurately returned to the corresponding user side based on the uniqueness of the task number; meanwhile, according to the scheme of the embodiment, the picture input address and the picture output address do not need to be manually input through a command line, so that the operation of a user is facilitated, and the use experience of the user is improved.
Further, in this embodiment, after obtaining the to-be-processed picture and the picture processing program configuration according to the picture processing request in step S11, the method may further include:
step S1101, performing format check on the to-be-processed picture according to the picture format configuration in the configuration file;
in the case of a picture format check, the steps are performed: and generating a task number according to the picture to be processed, and associating with the picture to be processed.
Optionally, after the to-be-processed picture is obtained according to the picture processing request, performing format check on the to-be-processed picture according to the picture format configuration in the configuration file. Under the condition of checking the picture format without errors, generating a task number according to the picture to be processed, and associating the generated task number with the corresponding picture to be processed.
According to the embodiment, the format detection is carried out on the picture to be processed, so that the picture format can be ensured to meet the processing requirement, and the picture processing effect is further ensured.
In addition, an embodiment of the present application further provides a picture processing apparatus, where the picture processing apparatus includes:
the acquisition module is used for responding to a picture processing request of a user side and acquiring a picture to be processed and picture processing program configuration according to the picture processing request;
the numbering module is used for generating a task number according to the picture to be processed and correlating with the picture to be processed;
the processing module is used for calling a picture processing program according to the picture processing program configuration so as to process the picture to be processed, and obtaining a result picture;
and the return module is used for returning the result picture to the user side according to the task number.
The principle and implementation process of the image processing in this embodiment are referred to the above embodiments, and will not be described in detail herein.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a picture processing program stored on the memory and capable of running on the processor, wherein the picture processing program realizes the steps of the picture processing method when being executed by the processor.
Because the image processing program is executed by the processor and adopts all the technical schemes of all the embodiments, the image processing program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a picture processing program, and the picture processing program realizes the steps of the picture processing method when being executed by a processor.
Because the image processing program is executed by the processor and adopts all the technical schemes of all the embodiments, the image processing program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Compared with the prior art, the picture processing method, the device, the terminal equipment and the storage medium provided by the embodiment of the application have the advantages that the picture processing method is used for responding to the picture processing request of the user side and obtaining the picture to be processed and the picture processing program configuration according to the picture processing request; generating a task number according to the picture to be processed and correlating with the picture to be processed; invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture; and returning the result picture to the user side according to the task number. According to the method, a picture to be processed and picture processing program configuration are obtained according to the picture processing request sent by a user, receiving data can be transmitted and received based on a network, the picture to be processed is processed by generating an associated task number according to the picture to be processed, calling a corresponding picture processing program according to the picture processing program configuration, and returning a processed result picture to a user side according to the associated task number, so that the calling of the picture processing program is realized, and the result picture is returned to the user through the unique corresponding task number. Based on the scheme of the application, the corresponding catalogue does not need to be manually input through a command line, the problem of low processing efficiency of the existing picture is solved, and the processing efficiency of the picture is effectively improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, 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 process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A picture processing method, characterized in that the picture processing method comprises:
responding to a picture processing request of a user side, and acquiring a picture to be processed and picture processing program configuration according to the picture processing request;
generating a task number according to the picture to be processed and correlating with the picture to be processed;
invoking a picture processing program according to the picture processing program configuration to process the picture to be processed, so as to obtain a result picture;
and returning the result picture to the user side according to the task number.
2. The picture processing method as claimed in claim 1, wherein before the step of obtaining the to-be-processed picture and the picture processing program configuration according to the picture processing request, further comprising:
acquiring a configuration file;
configuring and starting a corresponding number of queue message processors according to the number of running tasks in the configuration file and monitoring a working channel;
and monitoring the picture processing request according to the monitoring address and the monitoring port in the configuration file.
3. The picture processing method as claimed in claim 2, wherein after the step of generating a task number from the picture to be processed and associating with the picture to be processed, further comprising:
and moving the picture to be processed, the picture processing program configuration and the task number into the working channel.
4. The picture processing method as claimed in claim 1, wherein the step of generating a task number from the picture to be processed comprises:
acquiring one or more of a user ID, a password hash value MD5 of the picture, a current millisecond time stamp and a CPU atom self-increment number according to the picture to be processed;
splicing one or more of the user ID, the MD5 of the picture, the current millisecond time stamp and the CPU atomic self-increment number to obtain a character string of a task;
and processing according to the character string of the task and the MD5 information abstract algorithm to obtain the task number.
5. The picture processing method as claimed in claim 1, wherein after the step of calling a picture processing program according to the picture processing program configuration to process the picture to be processed to obtain a result picture, the method further comprises:
associating the result picture with the task number;
uploading the result picture to an operation support system OSS and generating a uniform resource locator URL;
and moving the URL and the task number into a result channel.
6. The picture processing method as claimed in claim 5, wherein the step of returning the result picture to the user terminal according to the task number includes:
acquiring the result picture from the OSS according to the task number and the URL;
inquiring according to the task number to obtain the picture processing request;
and returning the result picture to the user side according to the picture processing request.
7. A picture processing method as claimed in any one of claims 2 or 3, wherein after the step of obtaining a picture to be processed and a picture processing program configuration in accordance with the picture processing request, further comprising:
performing format check on the picture to be processed according to picture format configuration in the configuration file;
in the case of a picture format check, the steps are performed: and generating a task number according to the picture to be processed, and associating with the picture to be processed.
8. A picture processing apparatus, characterized in that the picture processing apparatus comprises:
the acquisition module is used for responding to a picture processing request of a user side and acquiring a picture to be processed and picture processing program configuration according to the picture processing request;
the numbering module is used for generating a task number according to the picture to be processed and correlating with the picture to be processed;
the processing module is used for calling a picture processing program according to the picture processing program configuration so as to process the picture to be processed, and obtaining a result picture;
and the return module is used for returning the result picture to the user side according to the task number.
9. A terminal device comprising a memory, a processor and a picture processing program stored on the memory and executable on the processor, which picture processing program when executed by the processor implements the steps of the picture processing method according to any of claims 1-7.
10. A computer readable storage medium, wherein a picture processing program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the picture processing method according to any of claims 1-7.
CN202310892426.1A 2023-07-20 2023-07-20 Picture processing method, device, terminal equipment and storage medium Pending CN116627543A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310892426.1A CN116627543A (en) 2023-07-20 2023-07-20 Picture processing method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310892426.1A CN116627543A (en) 2023-07-20 2023-07-20 Picture processing method, device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116627543A true CN116627543A (en) 2023-08-22

Family

ID=87617427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310892426.1A Pending CN116627543A (en) 2023-07-20 2023-07-20 Picture processing method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116627543A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170257637A1 (en) * 2014-02-21 2017-09-07 Renesas Electronics Corporation Image processing apparatus and control method for the same
CN110362702A (en) * 2019-05-27 2019-10-22 中国联合网络通信集团有限公司 Picture management method and equipment
CN111274017A (en) * 2020-01-19 2020-06-12 广州虎牙科技有限公司 Resource processing method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170257637A1 (en) * 2014-02-21 2017-09-07 Renesas Electronics Corporation Image processing apparatus and control method for the same
CN110362702A (en) * 2019-05-27 2019-10-22 中国联合网络通信集团有限公司 Picture management method and equipment
CN111274017A (en) * 2020-01-19 2020-06-12 广州虎牙科技有限公司 Resource processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110351283B (en) Data transmission method, device, equipment and storage medium
CN106506433B (en) Login authentication method, authentication server, authentication client and login client
CN110557433B (en) Resource management method, platform, cloud gateway, system and storage medium
CN105335187B (en) Application processing method and device
CN111092877B (en) Data processing method and device, electronic equipment and storage medium
EP3489825A1 (en) Method, apparatus and computer readable storage medium for processing service
CN113032419B (en) Multi-source data aggregation search method, device, equipment and storage medium
CN111124589A (en) Service discovery system, method, device and equipment
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
CN112733001A (en) Method and device for acquiring subscription information and electronic equipment
CN112507005B (en) Method and device for processing message
CN113065054B (en) Request processing method, request processing device, electronic equipment and storage medium
CN100359848C (en) Method of processing a request for a plurality of web services, server and system
CN111008254A (en) Object creating method and device, computer equipment and storage medium
CN110704536A (en) Distributed data processing method, device and system and electronic equipment
CN113688183A (en) Multi-type data source extraction method, system, terminal equipment and storage medium
CN114553762A (en) Method and device for processing flow table items in flow table
CN117041284A (en) External interface management method, system, equipment and medium based on interface cloud
CN111901386B (en) Method, system, equipment and readable storage medium for processing remote files
CN106933932B (en) Data processing method and device and application server
CN113821333A (en) Android application program migration method and device
CN112804301A (en) Method and device for determining equipment state, gateway and storage medium
CN116627543A (en) Picture processing method, device, terminal equipment and storage medium
CN113242313B (en) Data synchronization method, system, device, server and storage medium
CN111488286B (en) Method and device for independently developing Android modules

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