+

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

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

Info

Publication number
CN113781341B
CN113781341B CN202111034609.7A CN202111034609A CN113781341B CN 113781341 B CN113781341 B CN 113781341B CN 202111034609 A CN202111034609 A CN 202111034609A CN 113781341 B CN113781341 B CN 113781341B
Authority
CN
China
Prior art keywords
image
definition
target
original image
target terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111034609.7A
Other languages
Chinese (zh)
Other versions
CN113781341A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111034609.7A priority Critical patent/CN113781341B/en
Publication of CN113781341A publication Critical patent/CN113781341A/en
Application granted granted Critical
Publication of CN113781341B publication Critical patent/CN113781341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to an image processing method, an image processing device, an electronic device and a storage medium. The method comprises the following steps: acquiring configuration information of a target terminal, wherein the configuration information is used for indicating whether the target terminal allows acquisition of a high-definition image, the high-definition image is an image with definition greater than or equal to a definition threshold, responding to target interaction operation, acquiring an original image, wherein the target interaction operation is used for indicating that the acquisition of the image is started on the target terminal, uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow acquisition of the high-definition image, and receiving the target image returned after image processing by the server, wherein the definition of the target image is higher than that of the original image. The method and the device can improve the definition of the acquired image and solve the technical problem of lower definition of the acquired image caused by the limitation of the image acquisition capacity of the terminal in the related technology.

Description

Image processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to an image processing method, an image processing apparatus, an electronic device, and a storage medium.
Background
In the prior art, when a terminal collects a high-definition image, the terminal generally collects the high-definition image based on image collection equipment such as a high-definition camera carried by the terminal, but part of terminals do not carry the image collection equipment allowing the collection of the high-definition image, so that the resolution ratio of the image collected in the process of image collection is low, the definition is insufficient, the image is seemingly burnt, the definition of the collected image is difficult to guarantee due to the fact that the original camera is used for obtaining the image, and the experience of high-definition image quality cannot be brought.
Therefore, the related art has a technical problem that the acquired image definition is low due to the limitation of the image acquisition capability of the terminal.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The disclosure provides an image processing method, an image processing device, an electronic device and a storage medium, so as to at least solve the technical problem that the acquired image has low definition due to the fact that the image acquisition capability of a terminal is limited in the related technology. The technical scheme of the present disclosure is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided an image processing method including: acquiring configuration information of a target terminal, wherein the configuration information is used for indicating whether the target terminal allows acquisition of a high-definition image, and the high-definition image is an image with definition greater than or equal to a definition threshold; acquiring an original image in response to a target interaction operation, wherein the target interaction operation is used for indicating that the image acquisition is started on the target terminal; uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image; and receiving a target image returned after the server performs image processing, wherein the definition of the target image is higher than that of the original image.
In an exemplary embodiment, the method further comprises: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; and adding the rendering effect to the target image according to the configuration parameters.
In an exemplary embodiment, the method further comprises: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; uploading the original image and the configuration parameters to the server respectively; and receiving the target image after the server performs image processing on the original image and adds the rendering effect according to the configuration parameters.
In an exemplary embodiment, the method further comprises: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; adding the rendering effect to the original image according to the configuration parameters to obtain a rendered original image; uploading the rendered original image to the server; and receiving the target image returned after the server performs image processing on the rendered original image.
In an exemplary embodiment, the rendering effect includes at least one of: filter, beauty and sticker.
In an exemplary embodiment, the obtaining the configuration information of the target terminal includes: obtaining model information of the target terminal; and determining the configuration information of the target terminal from a mapping form based on the model information, wherein the mapping form comprises definition of mapping between the model information and the model information, and the definition is determined according to the maximum resolution of the target terminal allowed to collect images.
In an exemplary embodiment, the determining, based on the model information, configuration information of the target terminal from a mapping table includes: under the condition that a first indication message returned by the server is received, determining that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image; and under the condition that a second indication message returned by the server is received, determining that the configuration information indicates that the target terminal allows the acquisition of the high-definition image.
According to a second aspect of the embodiments of the present disclosure, there is provided an image processing apparatus including: the acquisition module is used for acquiring configuration information of a target terminal, wherein the configuration information is used for indicating whether the target terminal allows acquisition of high-definition images, and the high-definition images are images with definition being greater than or equal to a definition threshold; the acquisition module is used for responding to target interaction operation, and acquiring an original image, wherein the target interaction operation is used for indicating the start of image acquisition on the target terminal; the uploading module is used for uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image; and the receiving module is used for receiving the target image returned after the image processing by the server, wherein the definition of the target image is higher than that of the original image.
In an exemplary embodiment, the apparatus is further for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; and adding the rendering effect to the target image according to the configuration parameters.
In an exemplary embodiment, the apparatus is further for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; uploading the original image and the configuration parameters to the server respectively; and receiving the target image after the server performs image processing on the original image and adds the rendering effect according to the configuration parameters.
In an exemplary embodiment, the apparatus is further for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; adding the rendering effect to the original image according to the configuration parameters to obtain a rendered original image; uploading the rendered original image to the server; and receiving the target image returned after the server performs image processing on the rendered original image.
In an exemplary embodiment, the rendering effect includes at least one of: filter, beauty and sticker.
In an exemplary embodiment, the apparatus is configured to obtain configuration information of a target terminal by: obtaining model information of the target terminal; and determining the configuration information of the target terminal from a mapping form based on the model information, wherein the mapping form comprises definition of mapping between the model information and the model information, and the definition is determined according to the maximum resolution of the target terminal allowed to collect images.
In an exemplary embodiment, the apparatus is configured to determine the configuration information of the target terminal from a mapping table based on the model information by: under the condition that a first indication message returned by the server is received, determining that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image; and under the condition that a second indication message returned by the server is received, determining that the configuration information indicates that the target terminal allows the acquisition of the high-definition image.
According to still another aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement an image processing method as described above.
According to a further aspect of the disclosed embodiments, there is provided a computer program product comprising a computer program which, when executed by a processor, implements an image processing method as described above.
According to still another aspect of the embodiments of the present disclosure, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described image processing method when run.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: by acquiring the image acquisition capability of the target terminal, under the condition that the configuration information indicates that the image acquisition capability of the target terminal meets the preset condition, uploading the original image to the server, and receiving the mode that the definition returned by the server after image processing is higher than that of the target image of the original image, the technical effect of improving the definition of the acquired image is achieved, and the technical problem that the acquired image definition is lower due to the fact that the image acquisition capability of the terminal is limited in the related technology is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a schematic view of an application environment of an image processing method according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of image processing according to an exemplary embodiment;
FIG. 3 is a schematic view of an application scenario of an image processing method according to an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating an image processing method according to an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating another image processing method according to an exemplary embodiment;
fig. 6 is a block diagram of an image processing apparatus according to an exemplary embodiment;
fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
First, partial terms or terminology appearing in describing embodiments of the present disclosure are applicable to the following explanation:
EHDP (Enable High Definition Photography), starting high-definition photographing is a technology for enhancing photographing effect on an Android low-resolution mobile phone. Processing the original photo shot by the camera, and obtaining high-definition effect experience by the photo. High definition effects can also be obtained for photographs where special effects are applied.
The disclosure is illustrated below in connection with the following examples:
according to an aspect of the embodiment of the present disclosure, there is provided an image processing method, alternatively, in the present embodiment, the above-described image processing method may be applied to a hardware environment constituted by the server 101 and the user terminal 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 through a network, and may be used to provide services to a user terminal or a client installed on the user terminal, which may be a video client, an instant messaging client, a browser client, an educational client, a game client, etc. The database 105 may be provided on or independent of the server for providing data storage services for the server 101, such as a multimedia data storage server, which may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI, and other wireless communication enabled networks, the user terminal 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of: the mobile phone (such as an Android mobile phone, an iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc., where the server may be a single server, a server cluster formed by a plurality of servers, or a cloud server.
As shown in fig. 1, the above image processing method may be implemented in the user terminal 103 by:
acquiring configuration information of a target terminal at a user terminal 103, wherein the configuration information is used for indicating whether the target terminal allows acquisition of a high-definition image, and the high-definition image is an image with definition greater than or equal to a definition threshold;
acquiring an original image at the user terminal 103 in response to a target interaction operation, wherein the target interaction operation is used for indicating that the acquisition of the image is started on the target terminal;
uploading the original image to a server under the condition that the user terminal 103 indicates that the target terminal does not allow acquisition of the high-definition image in the configuration information;
and receiving a target image returned after the server performs image processing at the user terminal 103, wherein the definition of the target image is higher than that of the original image.
Alternatively, in the present embodiment, the above-described image processing method may be implemented on the server 101 in a similar manner, or may be implemented asynchronously by the server 101 and the user terminal 103.
The above is merely an example, and the present embodiment is not particularly limited.
Optionally, as an optional embodiment, as shown in fig. 2, the image processing method includes:
S202, acquiring configuration information of a target terminal, wherein the configuration information is used for indicating whether the target terminal allows acquisition of high-definition images, and the high-definition images are images with definition greater than or equal to a definition threshold;
s204, acquiring an original image in response to a target interaction operation, wherein the target interaction operation is used for indicating that the image acquisition is started on a target terminal;
s206, uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow acquisition of the high-definition image;
s208, receiving a target image returned by the server after the image processing, wherein the definition of the target image is higher than that of the original image.
Optionally, in this embodiment, the target terminal may include, but is not limited to, a mobile phone (such as an Android mobile phone, iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart tv, a wearable smart device, etc.
Alternatively, in the present embodiment, the configuration information may include, but is not limited to, parameters of the photographing accessory of the target terminal, for example, a camera resolution, and the like, and may also include, but is not limited to, a model of the target terminal, and the like.
Optionally, in this embodiment, the target interaction operation may include, but is not limited to, an interaction operation for controlling the target terminal to collect the original image, may include, but is not limited to, one or more interaction modes including clicking, long pressing, double clicking, releasing, and the like, and may also include, but is not limited to, an interaction input mode including voice input, gesture input, and the like.
Alternatively, in this embodiment, the above-mentioned capturing of the original image may include, but is not limited to, starting the capturing device of the target terminal, and triggering an indication message for starting capturing the image, so as to control the capturing device to capture the original image.
Alternatively, in this embodiment, the configuration information may include, but is not limited to, classifying the target terminal into different levels of image capturing terminals, and configuring different subsequent image processing manners for the different levels of terminals.
For example, in the case that the image acquisition capability of the target terminal is relatively poor and belongs to a terminal that cannot directly capture a high-definition image, it may be determined that the target terminal is not allowed to capture the high-definition image, and then the original image captured by the terminal is sent to the server, and the server performs subsequent processing and returns the processed target image to the terminal. Under the condition that the image acquisition capability of the target terminal is relatively strong and belongs to a terminal allowing high-definition pictures to be directly shot, the target image is directly acquired through the terminal.
Optionally, in this embodiment, the application scenario of the image processing method may include, but is not limited to, image processing in a plurality of application scenarios including medical, finance, credit, banking, government, energy, education, security, building, game, traffic, internet of things, industry, and the like.
Fig. 3 is a schematic view of an application scenario of an image processing method according to an exemplary embodiment, as shown in fig. 3, which may include, but is not limited to, implementation in the following network architecture:
s1, acquiring interactive operation on a virtual button 'photo' of a target terminal 302, and acquiring configuration information of the target terminal 302;
s2, sending configuration information of the target terminal 302 to the target server 304, and sending an original image to the target server 304 at the target terminal 302 under the condition that the target server 304 returns an instruction that the configuration of the target terminal 302 does not allow acquisition of high-definition images;
s3, after the target server 304 performs image processing on the original image, for example, image algorithm processing such as image sharpening and image smoothing, a target image is obtained;
s4, returning the target image from the target server 304 to the target terminal 302;
and S5, adding the recorded shooting effect on the target image on the target terminal 302, and rendering and displaying.
The above is merely an example, and the present embodiment is not limited in any way.
In the embodiment of the disclosure, by acquiring configuration information of whether the target terminal allows acquisition of an image with definition greater than or equal to a definition threshold, acquiring an original image in response to target interaction operation, and uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow acquisition of a high-definition image; the method comprises the steps that a mode of receiving a target image returned after image processing is carried out by a server, under the condition that a terminal does not allow acquisition of a high-definition image, an original image is sent to the server, so that the server processes the acquired low-definition image to obtain a target image with higher definition and returns the target image to a target terminal, further, the definition of the image acquired by the target terminal is improved, the technical effect that the terminal which does not allow acquisition of the high-definition image can acquire the high-definition image is achieved, and the technical problem that the image definition is lower due to the fact that the image acquisition capability of the terminal is limited in the related technology is solved.
In an exemplary embodiment, in response to a target interaction, capturing an original image includes:
responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image;
And adding the rendering effect to the target image according to the configuration parameters.
Optionally, in this embodiment, the configuration parameters may include, but are not limited to, rendering effects on an original image, for example, filter, beauty, sticker, etc. configuration parameters applied at the current photographing time, and may also include, but are not limited to: shutter, aperture, ISO, EV value, whether to turn on flash, etc.
The above is merely an example, and the embodiment is not limited in any way.
Optionally, in this embodiment, the current acquisition time may include, but is not limited to, a time when the "shutter" is pressed, and may also include, but is not limited to, a time when the target terminal receives an interaction instruction corresponding to the target interaction operation.
In the embodiment of the disclosure, the configuration parameters of the rendering effect required by the original image acquisition are recorded while the original image is acquired, so that the subsequent rendering of the target image according to the configuration parameters is facilitated, the technical purpose of improving the resolution of the acquired image and simultaneously maintaining the rendering effect of the image is achieved, and the technical effect of optimizing the image rendering effect is achieved.
In an exemplary embodiment, the method further comprises:
responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image;
uploading the original image and the configuration parameters to the server respectively;
and receiving the target image after the server performs image processing on the original image and adds the rendering effect according to the configuration parameters.
Alternatively, in this embodiment, it may include, but is not limited to, determining, in advance, a rendering effect to be added from the configuration parameters, and after determining a specific rendering effect and receiving the target image, adding the corresponding rendering effect to the target image.
Optionally, in this embodiment, the method may include, but is not limited to, determining, in advance, a rendering effect to be added from configuration parameters, uploading an original image and the configuration parameters to a server, then receiving a target image after the server performs image processing on the original image and adds a corresponding rendering effect, and further, after collecting the original image and recording the configuration parameters of the current collecting time, adjusting the target image according to the configuration parameters to achieve restoration of the rendering effect.
In the embodiment of the disclosure, after the original image is acquired and the configuration parameters of the current acquisition time are recorded, the original image and the configuration parameters can be uploaded to the server, the processing of the original image and the addition of the rendering effect are realized at the server side, the technical problem that the rendering of the image is insufficient due to the limitation of the terminal performance, or the terminal is blocked due to the rendering of the image due to the limitation of the terminal performance is avoided, the resource cost of acquiring the high-definition image and adding the rendering effect by the terminal with poor performance is reduced, and the target image is adjusted on the server according to the configuration parameters and returned to the target terminal, so that the technical effect of restoring the rendering effect is realized.
In an exemplary embodiment, the method further comprises:
responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image;
adding the rendering effect to the original image according to the configuration parameters to obtain a rendered original image;
uploading the rendered original image to the server;
and receiving the target image returned after the server performs image processing on the rendered original image.
Optionally, in this embodiment, the method may include, but is not limited to, determining, in advance, a rendering effect to be added from the configuration parameters, rendering the original image according to the configuration parameters to obtain a rendered image, uploading the rendered image to the server, and then receiving a target image after the server performs image processing on the original image.
In the embodiment of the disclosure, after the original image is acquired and the configuration parameters of the current acquisition time are recorded, the rendering effect can be added to the original image, the rendered original image is sent to the server, the server processes the rendered image, the resource cost of acquiring the high-definition image and adding the rendering effect by the terminal with poor performance is reduced, and the target image is adjusted on the server according to the configuration parameters and returned to the target terminal, so that the technical effect of restoring the rendering effect is realized.
In an exemplary embodiment, the rendering effect includes at least one of: filter, beauty and sticker.
In an exemplary embodiment, acquiring configuration information of a target terminal includes:
obtaining model information of the target terminal;
and determining the configuration information of the target terminal from a mapping form based on the model information, wherein the mapping form comprises definition of mapping between the model information and the model information, and the definition is determined according to the maximum resolution of the target terminal allowed to collect images.
Alternatively, in this embodiment, a mapping form of the terminal model and the terminal performance may be stored in advance in a server, and the mapping form is divided into a low-definition image acquisition terminal and a high-definition image acquisition terminal according to configuration parameters of the image acquisition device. After the model information of the target terminal is acquired, searching the mapping form stored in the server for content corresponding to the model information to determine whether the target terminal meets preset conditions (for example, whether the target terminal is a low-definition image acquisition terminal).
Optionally, in this embodiment, the foregoing meeting the preset condition may further include, but is not limited to, whether the terminal corresponding to the model information allows to collect the high-definition picture, whether the terminal allows to send other parameters such as the collected original image, and may further include, but is not limited to, whether the target terminal allows to collect the image with the definition greater than or equal to the preset definition threshold.
Alternatively, in this embodiment, the definition may include, but is not limited to, a resolution, where the determination of the definition according to the maximum resolution allowed by the target terminal to collect the image may include, but is not limited to, determining that the target terminal allows the target terminal to collect the high-definition image when the maximum resolution is greater than or equal to a preset definition threshold, and determining that the target terminal does not allow the target terminal to collect the high-definition image when the maximum resolution is less than the preset definition threshold.
In an exemplary embodiment, determining the configuration information of the target terminal from the mapping table based on the model information includes:
under the condition that a first indication message returned by the server is received, determining that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image;
and under the condition that a second indication message returned by the server is received, determining that the configuration information indicates that the target terminal allows the acquisition of the high-definition image.
Optionally, in this embodiment, the first indication message is used to indicate that the target terminal does not allow the acquisition of the high-definition image, and the second indication message is used to indicate that the target terminal allows the acquisition of the high-definition image.
In the embodiment of the disclosure, different subsequent operations are performed by the target terminal by receiving different indication messages, when the terminal allows the acquisition of the high-definition image, the terminal is directly controlled to acquire the high-definition image and perform rendering, when the terminal does not allow the acquisition of the high-definition image, the terminal is controlled to acquire the low-definition image, the configuration parameters of rendering are recorded, the low-definition image is transmitted to the server, and then the server processes the low-definition image into the high-definition image according to an image processing algorithm, so that the technical effect of improving the definition of the image acquired by the target terminal is achieved, the terminal which does not allow the acquisition of the high-definition image can acquire the high-definition image, and the technical problem of lower definition of the image caused by the image acquisition capability of the terminal limited in the related technology is solved.
In an exemplary embodiment, receiving the target image returned after the server performs image processing includes:
pre-configuring a group of image processing algorithms at the server;
processing the original picture at the server based on the group of image processing algorithms to obtain the target image;
and receiving the target image.
Alternatively, in this embodiment, the set of image processing algorithms may include, but is not limited to, image sharpness enhancement, sharpening, and image inverse blurring non-edge region operation, where the sharpness of the original image can be improved by the image processing algorithms, so as to obtain the target image with sharpness higher than that of the original image.
The following further explains the present disclosure with reference to a specific example, taking the target terminal as a mobile phone as an example:
on a low-definition camera mobile phone, uploading an original image acquired by a camera to a server, processing the original image at the server to obtain a high-definition image, returning the high-definition image to the mobile phone, rendering and displaying the obtained high-definition image by the mobile phone, and fig. 4 is a schematic diagram of an image processing method according to an exemplary embodiment, as shown in fig. 4, specifically, including but not limited to the following steps:
S1, acquiring configuration information of a terminal;
s2, the server judges whether the terminal is a low-end mobile phone according to the configuration information;
s3-1, under the condition that the judgment result is yes, acquiring an original low-definition image, and then executing a step S4;
s3-2, under the condition that the judgment result is yes, acquiring an original high-definition image, and executing a step S6;
s4, obtaining a high-definition target image processed by an algorithm from a server;
s5, adding the effects of a filter, a beautifying face, a sticker and the like cited during photographing to the high-definition target image;
and S6, previewing and storing the high-definition images.
The method comprises the following specific steps:
and judging whether the mobile phone is a low-definition camera mobile phone according to the mobile phone performance, and opening a high-definition function inlet (corresponding to the preset condition) for the low-definition camera mobile phone.
The method comprises the following steps: uploading the mobile phone model to a server, wherein the server stores a mapping table of the mobile phone model and the mobile phone performance, and whether the mobile phone belongs to a low-definition camera mobile phone is classified according to the resolution of the camera and the basic configuration condition (corresponding to the image acquisition capability) of the camera. The mapping table can be used for returning whether the mobile phone is a low-definition camera mobile phone or not.
When the photographing button is pressed, configuration parameters (corresponding to the configuration parameters) of the effects such as a filter, a beauty, a sticker and the like applied at the current photographing moment are recorded.
Obtaining a photographed low-definition original image from a camera module, uploading the image to a server through an uploading interface, presetting graphic image algorithms such as image definition enhancement, sharpening, image reverse-phase fuzzy non-edge region operation and the like on the server, obtaining a high-definition effect image through algorithm processing, and returning the high-definition effect image to a mobile phone terminal;
the recorded effects are restored and applied to the high-definition artwork to obtain a high-definition artwork (corresponding to the target image) of the synthesized application effect.
The high-definition image obtained from the server side carries out enhancement technology processing on details, so that hairlines, eyelashes and the like can be seen clearly, and the condition of image blurring is improved.
Fig. 5 is a schematic diagram illustrating another image processing method according to an exemplary embodiment, as shown in fig. 5, the obtained high-definition image is an original image without applying the effects of beauty, stickers, and filters, so that the effects need to be completely restored, including but not limited to the following steps:
s1, when a picture is taken through a camera, recording all rendering effects (corresponding to the configuration parameters) applied during the picture taking;
s2, constructing a high-definition image frame (corresponding to the target image) corresponding to the original image according to the target image returned by the server and configuration parameters during photographing;
S3, adding the rendering effect to the Gao Qingtu frame according to the configuration parameters;
and S4, displaying the high-definition image frames added with the rendering effect.
According to the embodiment of the disclosure, a photo shot by the camera can be sent to the server to be replaced by a high-definition large image, the defect of insufficient resolution of mobile phone hardware is overcome, various application effects during shooting can be recorded, and the camera can be completely restored, so that a mobile phone user of the low-definition mobile phone can also feel experience of high-definition shooting.
Fig. 6 is a block diagram of an image processing apparatus according to an exemplary embodiment. Referring to fig. 6, the apparatus includes an acquisition module 602, an acquisition module 604 and an upload module 606, and a receive module 608.
According to a second aspect of the embodiments of the present disclosure, there is provided an image processing apparatus including:
the acquiring module 602 is configured to acquire configuration information of a target terminal, where the configuration information is used to indicate whether the target terminal allows acquisition of a high-definition image, and the high-definition image is an image with a definition greater than or equal to a definition threshold;
the acquisition module 604 is configured to acquire an original image in response to a target interaction, wherein the target interaction is used for indicating to start acquiring the image on the target terminal;
The uploading module 606 is configured to upload the original image to a server if the configuration information indicates that the target terminal is not allowed to collect the high-definition image;
the receiving module 608 is configured to receive a target image returned after the server performs image processing, where the sharpness of the target image is higher than that of the original image.
In an exemplary embodiment, the apparatus is further for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; and adding the rendering effect to the target image according to the configuration parameters.
In an exemplary embodiment, the apparatus is further for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; uploading the original image and the configuration parameters to the server respectively; and receiving the target image after the server performs image processing on the original image and adds the rendering effect according to the configuration parameters.
In an exemplary embodiment, the apparatus is further for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image; adding the rendering effect to the original image according to the configuration parameters to obtain a rendered original image; uploading the rendered original image to the server; and receiving the target image returned after the server performs image processing on the rendered original image.
In an exemplary embodiment, the rendering effect includes at least one of: filter, beauty and sticker.
In an exemplary embodiment, the apparatus is configured to obtain configuration information of a target terminal by: obtaining model information of the target terminal; and determining the configuration information of the target terminal from a mapping form based on the model information, wherein the mapping form comprises definition of mapping between the model information and the model information, and the definition is determined according to the maximum resolution of the target terminal allowed to collect images.
In an exemplary embodiment, the apparatus is configured to determine the configuration information of the target terminal from a mapping table based on the model information by: under the condition that a first indication message returned by the server is received, determining that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image; and under the condition that a second indication message returned by the server is received, determining that the configuration information indicates that the target terminal allows the acquisition of the high-definition image.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the above image processing method, which may be a terminal device or a server shown in fig. 1. The present embodiment is described taking the electronic device as a server as an example. As shown in fig. 7, the electronic device comprises a memory 702 and a processor 704, the memory 702 storing a computer program, the processor 704 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring configuration information of a target terminal, wherein the configuration information is used for determining the image acquisition capability of the target terminal;
s2, responding to target interaction operation of the target terminal, and controlling the target terminal to acquire an original image;
s3, uploading the original image to a server under the condition that the configuration information indicates that the image acquisition capability of the target terminal meets the preset condition;
S4, receiving a target image returned after the server performs image processing, wherein the definition of the target image is higher than that of the original image.
Optionally, in this embodiment, the above processor may be further configured to execute the following steps by a computer program:
s1, acquiring configuration information of a target terminal, wherein the configuration information is used for determining the image acquisition capability of the target terminal;
s2, responding to target interaction operation of the target terminal, and controlling the target terminal to acquire an original image;
s3, uploading the original image to a server under the condition that the configuration information indicates that the image acquisition capability of the target terminal meets the preset condition;
s4, receiving a target image returned after the server performs image processing, wherein the definition of the target image is higher than that of the original image.
Alternatively, as will be appreciated by those skilled in the art, the structure shown in fig. 7 is merely illustrative, and the electronic device may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig. 7 is not limited to the structure of the electronic device and the electronic apparatus described above. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in fig. 7, or have a different configuration than shown in fig. 7.
The memory 702 may be used to store software programs and modules, such as program instructions/modules corresponding to the image processing methods and apparatuses in the embodiments of the present invention, and the processor 704 executes the software programs and modules stored in the memory 702, thereby performing various functional applications and data processing, that is, implementing the image processing methods described above. The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 702 may further include memory remotely located relative to the processor 704, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 702 may be used for storing information such as historical user data, among other things. As an example, as shown in fig. 7, the memory 702 may include, but is not limited to, the acquisition module 602, the acquisition module 604, the uploading module 606, and the receiving module 608 in the image processing apparatus. In addition, other module units in the image processing apparatus may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 706 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 706 is a Radio Frequency (RF) module that is configured to communicate wirelessly with the internet.
In addition, the electronic device further includes: a display 708 for displaying user data of the target service; and a connection bus for connecting the respective module parts in the electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which, when executed by a processor, implements the above-described image processing method.
In an exemplary embodiment, a computer-readable storage medium is also provided, from which a processor of a computer device reads computer instructions that are executed by the processor to cause the computer device to perform the methods provided in the various alternative implementations of the image processing aspects described above. Wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. An image processing method, comprising:
acquiring configuration information of a target terminal, wherein the configuration information is used for indicating whether the target terminal allows acquisition of a high-definition image, and the high-definition image is an image with definition greater than or equal to a definition threshold;
acquiring an original image in response to a target interaction operation, wherein the target interaction operation is used for indicating that the image acquisition is started on the target terminal;
uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image;
receiving a target image returned after the server performs image processing, wherein the definition of the target image is higher than that of the original image;
the method further comprises the steps of: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image, and the target terminal adds the rendering effect to the target image according to the configuration parameters;
The method further comprises the steps of: the server adds the rendering effect to the target image according to the configuration parameters;
the obtaining the configuration information of the target terminal includes: the method comprises the steps of obtaining model information of a target terminal, and determining configuration information of the target terminal from a mapping form based on the model information, wherein the mapping form comprises definition of mapping of the model information and the model information, the definition is determined according to the maximum resolution of an image which is allowed to be acquired by the target terminal, and the mapping form is used for indicating whether the original image is allowed to be uploaded to a server or not and or whether the target terminal is allowed to acquire the original image with the definition being greater than or equal to a preset definition threshold or not.
2. The method according to claim 1, wherein the method further comprises:
responding to target interaction operation, collecting the original image and recording the configuration parameters at the current collection time;
uploading the original image and the configuration parameters to the server respectively;
and receiving the target image after the server performs image processing on the original image and adds the rendering effect according to the configuration parameters.
3. The method according to claim 1, wherein the method further comprises:
responding to target interaction operation, collecting the original image and recording the configuration parameters at the current collection time;
adding the rendering effect to the original image according to the configuration parameters to obtain a rendered original image;
uploading the rendered original image to the server;
and receiving the target image returned after the server performs image processing on the rendered original image.
4. A method according to any one of claims 1 to 3, wherein the rendering effect comprises at least one of: filter, beauty and sticker.
5. The method according to claim 1, wherein the determining the configuration information of the target terminal from the mapping table based on the model information includes:
under the condition that a first indication message returned by the server is received, determining that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image;
and under the condition that a second indication message returned by the server is received, determining that the configuration information indicates that the target terminal allows the acquisition of the high-definition image.
6. An image processing apparatus, comprising:
the acquisition module is used for acquiring configuration information of a target terminal, wherein the configuration information is used for indicating whether the target terminal allows acquisition of high-definition images, and the high-definition images are images with definition being greater than or equal to a definition threshold;
the acquisition module is used for responding to target interaction operation, and acquiring an original image, wherein the target interaction operation is used for indicating the start of image acquisition on the target terminal;
the uploading module is used for uploading the original image to a server under the condition that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image;
the receiving module is used for receiving a target image returned after the server performs image processing, wherein the definition of the target image is higher than that of the original image;
the device is also for: responding to target interaction operation, collecting the original image and recording configuration parameters of the current collection time, wherein the configuration parameters are used for indicating the rendering effect added to the original image, and the target terminal adds the rendering effect to the target image according to the configuration parameters;
The device is also for: the server adds the rendering effect to the target image according to the configuration parameters;
the device is used for acquiring the configuration information of the target terminal by the following modes: the method comprises the steps of obtaining model information of a target terminal, and determining configuration information of the target terminal from a mapping form based on the model information, wherein the mapping form comprises definition of mapping of the model information and the model information, the definition is determined according to the maximum resolution of an image which is allowed to be acquired by the target terminal, and the mapping form is used for indicating whether the original image is allowed to be uploaded to a server or not and or whether the target terminal is allowed to acquire the original image with the definition being greater than or equal to a preset definition threshold or not.
7. The apparatus of claim 6, wherein the apparatus is further configured to:
responding to target interaction operation, collecting the original image and recording the configuration parameters at the current collection time;
uploading the original image and the configuration parameters to the server respectively;
and receiving the target image after the server performs image processing on the original image and adds the rendering effect according to the configuration parameters.
8. The apparatus of claim 6, wherein the apparatus is further configured to:
responding to target interaction operation, collecting the original image and recording the configuration parameters at the current collection time;
adding the rendering effect to the original image according to the configuration parameters to obtain a rendered original image;
uploading the rendered original image to the server;
and receiving the target image returned after the server performs image processing on the rendered original image.
9. The apparatus according to any one of claims 6 to 8, wherein the rendering effect comprises at least one of: filter, beauty and sticker.
10. The apparatus of claim 6, wherein the apparatus is configured to determine the configuration information of the target terminal from a mapping table based on the model information by:
under the condition that a first indication message returned by the server is received, determining that the configuration information indicates that the target terminal does not allow the acquisition of the high-definition image;
and under the condition that a second indication message returned by the server is received, determining that the configuration information indicates that the target terminal allows the acquisition of the high-definition image.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the image processing method of any one of claims 1 to 5.
12. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the image processing method of any one of claims 1 to 5.
13. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the image processing method of any of claims 1 to 5.
CN202111034609.7A 2021-09-03 2021-09-03 Image processing method, device, electronic equipment and storage medium Active CN113781341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111034609.7A CN113781341B (en) 2021-09-03 2021-09-03 Image processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111034609.7A CN113781341B (en) 2021-09-03 2021-09-03 Image processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113781341A CN113781341A (en) 2021-12-10
CN113781341B true CN113781341B (en) 2024-02-27

Family

ID=78841229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111034609.7A Active CN113781341B (en) 2021-09-03 2021-09-03 Image processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113781341B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118803295A (en) * 2023-04-11 2024-10-18 华为技术有限公司 End-cloud collaborative image enhancement method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024266A (en) * 2012-11-15 2013-04-03 北京百度网讯科技有限公司 Shooting optimization method, system and device of mobile terminal
CN110933307A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Electronic equipment and image processing method
CN111083359A (en) * 2019-12-06 2020-04-28 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
CN111833234A (en) * 2020-07-10 2020-10-27 京东方科技集团股份有限公司 Image display method, image processing device, and computer-readable storage medium
CN111953904A (en) * 2020-08-13 2020-11-17 北京达佳互联信息技术有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN111984278A (en) * 2020-08-28 2020-11-24 北京达佳互联信息技术有限公司 Method and device for acquiring animation image
CN112565884A (en) * 2020-11-27 2021-03-26 北京达佳互联信息技术有限公司 Image processing method, image processing device, terminal, server and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024266A (en) * 2012-11-15 2013-04-03 北京百度网讯科技有限公司 Shooting optimization method, system and device of mobile terminal
CN110933307A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Electronic equipment and image processing method
CN111083359A (en) * 2019-12-06 2020-04-28 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
CN111833234A (en) * 2020-07-10 2020-10-27 京东方科技集团股份有限公司 Image display method, image processing device, and computer-readable storage medium
CN111953904A (en) * 2020-08-13 2020-11-17 北京达佳互联信息技术有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN111984278A (en) * 2020-08-28 2020-11-24 北京达佳互联信息技术有限公司 Method and device for acquiring animation image
CN112565884A (en) * 2020-11-27 2021-03-26 北京达佳互联信息技术有限公司 Image processing method, image processing device, terminal, server and storage medium

Also Published As

Publication number Publication date
CN113781341A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN111131698B (en) Image processing method and device, computer readable medium and electronic equipment
CN103024266B (en) Shooting optimization method, system and device for mobile terminal
RU2504004C2 (en) Method and apparatus for performing user video authentication
EP2892205B1 (en) Method and device for determining a sharing terminal
EP3707895B1 (en) Static video recognition
CN113055709B (en) Video publishing method, device, equipment, storage medium and program product
CN116437222B (en) Image processing method and electronic device
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN113542909A (en) Video processing method and device, electronic equipment and computer storage medium
CN113781341B (en) Image processing method, device, electronic equipment and storage medium
KR102664027B1 (en) Camera to analyze video based on artificial intelligence and method of operating thereof
WO2019227620A1 (en) Image compression display method and device, computer device and storage medium
CN114143429B (en) Image shooting method, device, electronic equipment and computer readable storage medium
CN114885073B (en) Video denoising method and device, storage medium and electronic equipment
US20160088225A1 (en) Method and technical equipment for imaging
CN117764812A (en) Image generation method, device, electronic equipment and medium
CN113938597A (en) Face recognition method and device, computer equipment and storage medium
CN117474926B (en) Image detection method and device
CN111601108A (en) Monitoring video processing method and device and video monitoring terminal
CN118474513B (en) Image processing method and related equipment
CN113115109B (en) Video processing method, device, electronic equipment and storage medium
CN113837925B (en) Face material fusion method and device, storage medium and electronic equipment
CN114095641A (en) An image display method and device
CN120602770A (en) Image generation method, device, electronic equipment and readable storage medium
CN113706429A (en) Image processing method, image processing device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载