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

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

Info

Publication number
CN112270728A
CN112270728A CN202011166446.3A CN202011166446A CN112270728A CN 112270728 A CN112270728 A CN 112270728A CN 202011166446 A CN202011166446 A CN 202011166446A CN 112270728 A CN112270728 A CN 112270728A
Authority
CN
China
Prior art keywords
image
target
pasted
background
target image
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
CN202011166446.3A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011166446.3A priority Critical patent/CN112270728A/en
Publication of CN112270728A publication Critical patent/CN112270728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The application discloses an image processing method, an image processing device, electronic equipment and a readable storage medium, and belongs to the technical field of image processing. The method comprises the following steps: receiving a first input of a user to the material image, cutting out a target object on the material image in response to the first input, pasting the target object to the target image selected by the user to obtain a pasted target image, and obtaining a background blurring image of a facula effect according to the pasted target image. The target object selected by the user is directly cut out and pasted to the target image to obtain the pasted target image, and the background blurring image of the facula effect is obtained according to the pasted target image, so that the user operation is simplified.

Description

Image processing method and device, electronic equipment and readable storage medium
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, an electronic device, and a readable storage medium.
Background
With the continuous development of electronic technology, electronic devices have long been not limited to a single function of communication, but have integrated functions of communication, photographing and the like. For example, a general mobile phone is provided with a camera for meeting the photographing or photographing requirements of a user.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: at present, if a user needs to shoot a background blurring image with a spot effect, the user needs to consider a background composition, adjust the object distance and the image distance, and adjust parameters such as an aperture and the like. Therefore, there is a problem that the user operation is complicated in the process of obtaining the background blurring image of the flare effect.
Disclosure of Invention
An embodiment of the present application provides an image processing method, an image processing apparatus, an electronic device, and a readable storage medium, which can solve the problem that a user operation is complicated in the current process of obtaining a background blurred image with a speckle effect.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an image processing method, including:
receiving a first input of a user to a material image, and cutting out a target object on the material image in response to the first input;
pasting the target object to the target image selected by the user to obtain a pasted target image;
and obtaining a background blurring image with a facula effect according to the pasted target image.
In a second aspect, an embodiment of the present application provides an image processing apparatus, including;
the cutting module is used for receiving first input of a user to a material image, responding to the first input and cutting out a target object on the material image;
the pasting module is used for pasting the target object to the target image selected by the user so as to obtain the pasted target image;
and the obtaining module is used for obtaining a background blurring image with a facula effect according to the pasted target image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first input of a user to a material image is received, a target object on the material image is cut out in response to the first input, the target object is pasted to the target image selected by the user to obtain the pasted target image, and a background blurring image with a facula effect is obtained according to the pasted target image. The method includes the steps that a user does not need to adjust the size of an object distance and an image distance and adjust an aperture, a target object selected by the user is directly cut out, the cut target object is pasted to a target image selected by the user, the pasted target image is obtained, a background blurring image of a facula effect is obtained according to the pasted target image, namely, the user only needs to select the target object and the target image to obtain the background blurring image of the facula effect, and therefore user operation is simplified.
Drawings
FIG. 1 is a flow chart of steps of an image processing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a material image according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a pasted target image according to an embodiment of the present application;
fig. 4 is a schematic diagram of a background blurring image of a spot effect according to an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating steps of another image processing method according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of another pasted target image provided by an embodiment of the application;
FIG. 7 is a schematic diagram of a background blurring image of another speckle effect provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an image processing apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of another image processing apparatus provided in an embodiment of the present application;
fig. 10 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. Further, in the specification and claims, "and/or" means at least one of the connected objects, the character "/" generally means a relationship in which the front and rear associated objects are one kind of "or".
The image processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an image processing method provided in an embodiment of the present application, where the method may include the steps of:
step 101, receiving a first input of a user to a material image, and cutting out a target object on the material image in response to the first input.
The first input is, for example, an operation of a user to circle a background object in a material image that the user prefers, for example, as shown in fig. 2 below, fig. 2 is a schematic diagram of a material image provided in an embodiment of the present application, a flower is circled in the material image, for example, the flower is used as the background object in the material image, the first input is, for example, an operation of the user to circle a flower, and the electronic device takes the flower on the material image as a target object and cuts out the flower in response to the first input.
And 102, pasting the target object to the target image selected by the user to obtain the pasted target image.
In combination with the above example, the electronic device pastes the flower to the target image selected by the user to obtain the pasted target image. Referring to fig. 3, fig. 3 is a schematic diagram of a pasted target image according to an embodiment of the present application.
And 103, obtaining a background blurring image with a facula effect according to the pasted target image.
With the above example, the background image in the pasted target image may be blurred, where the background image in the pasted target image includes background objects such as mountains, trees, flowers, and the like, and the blurred background image is blurred to obtain a background blurred image with a light spot effect. Referring to fig. 4, fig. 4 is a schematic diagram of a background blurring image with a speckle effect according to an embodiment of the present disclosure.
In the image processing method provided by this embodiment, a first input of a user to a material image is received, a target object on the material image is cut out in response to the first input, the target object is pasted to a target image selected by the user to obtain a pasted target image, and a background blurring image of a light spot effect is obtained according to the pasted target image. The method includes the steps that a user does not need to adjust the size of an object distance and an image distance and adjust an aperture, a target object selected by the user is directly cut out, the cut target object is pasted to a target image selected by the user, the pasted target image is obtained, a background blurring image of a facula effect is obtained according to the pasted target image, namely, the user only needs to select the target object and the target image to obtain the background blurring image of the facula effect, and therefore user operation is simplified.
It should be noted that, in this embodiment, the user is allowed to select the target object and the target image, so that the user can customize the background main body of the blurring light spot, for example, in the above exemplary description, the user uses the flower as the background main body of the blurring light spot, so as to obtain the background blurring image which meets the user requirement and has the light spot effect.
Referring to fig. 5, fig. 5 is a flowchart illustrating steps of another image processing method according to an embodiment of the present application, where the method includes the following steps:
step 501, receiving a first input of a user to a material image, and cutting out a target object on the material image in response to the first input.
Step 502, pasting the target object to the target image selected by the user to obtain the pasted target image.
Wherein, step 502 can be implemented as follows:
under the condition that the target object is a background object on the material image or a blurring facula object, taking the target object as the background object in the target image, and pasting the target object into a background image area in the target image to obtain a pasted target image;
and when the target object is a foreground object on the material image, taking the target object as the foreground object in the target image, and pasting the target object to a target area in the target image to obtain a pasted target image.
In the case where the target object is a background object on the material image, for example, the background object is a flower in fig. 2, no flower exists on the target image selected by the user before the pasted target image shown in fig. 3 is obtained, and in the case where the user presses the target area in fig. 3, the flower is pasted to the target area, so as to obtain the pasted target image shown in fig. 3, where the area where the flower is located is the target area shown in fig. 3.
When the target object is a blurred flare object on the material image, the target object is used as a background object in the target image and is pasted to a background image area in the target image to obtain a pasted target image. In the case where the target object is a blurring flare object on the material image, the pasting process is the same as in the case where the target object is a background object on the material image, and will not be described here by way of example.
And when the target object is a foreground object on the material image, taking the target object as the foreground object in the target image, and pasting the target object to a target area in the target image to obtain a pasted target image. For example, referring to fig. 2, if the target object is a foreground object in fig. 2, for example, a person shown in fig. 2, the person is pasted to the target area in the target image as the foreground object in the target image. The target image can be a relatively ideal overall background style image selected by a user, such as a starry sky image, a treetop image and the like. For example, a person selected from fig. 2 is pasted to, for example, a starry sky image, the person is a girl shown in fig. 2, the obtained pasted target image is as shown in fig. 6, fig. 6 is a schematic diagram of another pasted target image provided in the embodiment of the present application, that is, a starry sky image is selected as the target image, and the obtained pasted target image is as shown in fig. 6.
It should be noted that the target area may be an area selected by the user from the target image, so that the target object may be pasted to the target area of interest to the user. For example, the user may click on an area in the starry sky image, in which case the electronic device receives the user input for the area in the target image and, in response to the input, pastes the target object to the area to obtain the pasted target image. Wherein the input is, for example, a long press operation of the region in the target image by the user. If the user needs to paste the target object to the area, the user can press the area for a long time, and the electronic equipment responds to the operation of pressing the area for the long time by the user to paste the target object to the area, wherein the area is the target area.
When the target object is a foreground object on the material image, the target object may be blurred, and the blurred target object may be used as a background image in the target image and pasted to a background image area of the target image to obtain a pasted target image.
And step 503, receiving a second input of the target object in the pasted target image from the user.
And 504, responding to the second input, and adjusting at least one of the position, the size and the direction of the target object in the pasted target image.
The user can adjust at least one of the position, the size and the direction of the target object in the pasted target image according to the requirement of the user. For example, taking the girl in fig. 6 as an example of the target object, after the pasted target image shown in fig. 6 is obtained, at least one of the position, size, and orientation of the girl in fig. 6 may be adjusted.
It should be noted that, when the target object is a background object or a blurring flare object on the material image and the size of the target object in the pasted target image is adjusted, the distance from each target object to the foreground object in the pasted target image may be determined according to the size of the target object in the pasted target image, and the blurring process may be performed on the background image of the pasted target image according to the distance from each target object to the foreground object in the pasted target image, where the background image includes each target object, so as to obtain a background blurring image with a flare effect.
And 505, obtaining a background blurring image with a light spot effect according to the adjusted target image.
The adjusted target image is an image obtained after the target object in the pasted target image is adjusted.
In step 505, obtaining a background blurring image with a light spot effect according to the pasted target image may be implemented as follows:
when the target object is a blurring light spot object, taking the pasted target image as a background blurring image of a light spot effect, or blurring the background image of the pasted target image to obtain the background blurring image of the light spot effect;
and under the condition that the target object is a foreground object or a background object on the material image, blurring the background image in the pasted target image to obtain a background blurring image with a facula effect.
It should be noted that, when the target object is a background object, the target object is cut out, and after the target object is pasted in the background image area in the target image, it is necessary to perform blurring processing on the background image in the target image, where the blurring processing includes processing on the background image, so that the complexity of the cutting algorithm can be reduced, and the cut-out target image is weakened in the blurring processing even with a flaw. Due to the fact that the complexity of the cutting algorithm is reduced, the efficiency of obtaining the background blurring image with the facula effect can be improved to a certain degree.
In the case that the target object is, for example, a foreground object on the material image shown in fig. 2, and the pasted target image is, for example, the image shown in fig. 6, the background blurring image of the flare effect obtained after blurring the background image in the pasted target image shown in fig. 6 is shown in fig. 7, and fig. 7 is a schematic diagram of another background blurring image of the flare effect provided in this embodiment of the present application.
The image processing method provided by this embodiment allows a user to select a favorite target object and a favorite target image, so that the electronic device can process the target object and the target image selected by the user to obtain a background blurred image with a speckle effect, and the obtained background blurred image with the speckle effect has a more layered effect.
Optionally, before obtaining the background blurring image of the flare effect according to the pasted target image, the method may further include the following steps:
determining the outline shape of the target object under the condition that the target object is a background object;
according to the pasted target image, a background blurring image of a facula effect is obtained, and the method can be realized in the following mode:
and obtaining a background blurring image with a facula effect according to the pasted target image and the outline shape of the target object.
In the prior art, the general spot shape is limited to a circle or a regular polygon. In the embodiment, richer light spot shapes can be provided. For example, the user selects a background object in the material image, and takes the outline shape of the background object as the shape of the blurring light spot, for example, the outline shape of a flower in fig. 2 is taken as the shape of the blurring light spot, or the outline shape of an object such as a leaf or a shell is taken as the shape of the blurring light spot when the object is taken as the background object.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an image processing apparatus provided in an embodiment of the present application, and the window position adjustment apparatus 800 includes:
the cutting module 810 is configured to receive a first input of a user to a material image, and cut out a target object on the material image in response to the first input;
a pasting module 820, configured to paste the target object into the target image selected by the user to obtain a pasted target image;
an obtaining module 830, configured to obtain a background blurring image of a light spot effect according to the pasted target image.
The image processing apparatus provided in this embodiment cuts out the target object on the material image by receiving a first input of a user to the material image, and in response to the first input, pastes the target object to the target image selected by the user to obtain a pasted target image, and obtains a background blurring image of a flare effect according to the pasted target image. The method includes the steps that a user does not need to adjust the size of an object distance and an image distance and adjust an aperture, a target object selected by the user is directly cut out, the cut target object is pasted to a target image selected by the user, the pasted target image is obtained, a background blurring image of a facula effect is obtained according to the pasted target image, namely, the user only needs to select the target object and the target image to obtain the background blurring image of the facula effect, and therefore user operation is simplified.
Optionally, the pasting module 820 is specifically configured to, in a case that the target object is a background object or a blurring light spot object on the material image, respond to the second input, take the target object as a background object in the target image, and paste the target object into a background image area in the target image to obtain a pasted target image, where the target area is the background image area;
and under the condition that the target object is a foreground object on the material image, responding to the second input, taking the target object as a foreground object in the target image, and pasting the target object to a target area in the target image to obtain a pasted target image.
Optionally, the obtaining module 830 is specifically configured to, in a case that the target object is a blurring light spot object, use the pasted target image as a background blurring image of the light spot effect, or perform blurring processing on the background image of the pasted target image, so as to obtain the background blurring image of the light spot effect;
and under the condition that the target object is a foreground object or a background object on the material image, blurring the background image in the pasted target image to obtain a background blurring image of the facula effect.
Optionally, referring to fig. 9, fig. 9 is a schematic structural diagram of another image processing apparatus provided in an embodiment of the present application, where the apparatus 900 includes:
a receiving module 910, configured to receive a second input of the target object in the pasted target image from the user;
an adjusting module 920, configured to adjust at least one of a position, a size, and a direction of the target object in the pasted target image in response to the second input;
the obtaining module 830 is specifically configured to obtain a background blurring image of a light spot effect according to the adjusted target image.
Optionally, the method further includes:
a determining module 930, configured to determine a contour shape of the target object if the target object is a background object;
the obtaining module 830 is specifically configured to obtain a background blurring image of the light spot effect according to the pasted target image and the contour shape of the target object.
The image processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The image processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The image processing apparatus provided in the embodiment of the present application can implement each process implemented by the image processing apparatus in the method embodiments of fig. 1 and fig. 5, and is not described herein again to avoid repetition.
Optionally, an electronic device is further provided in an embodiment of the present application, as shown in fig. 10, fig. 10 is a schematic diagram of a hardware structure of the electronic device provided in the embodiment of the present application. The electronic device 1000 includes a processor 1001, and a memory 1002 stores a program or an instruction that is stored in the memory 1002 and can be executed on the processor 1001, and when the program or the instruction is executed by the processor 1001, the program or the instruction realizes each process of the above-mentioned information processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 11 is a schematic hardware structure diagram of another electronic device for implementing the embodiment of the present application.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 1110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1110 is configured to receive a first input of a material image from a user, and in response to the first input, crop out a target object on the material image;
pasting the target object to the target image selected by the user to obtain a pasted target image;
and obtaining a background blurring image with a facula effect according to the pasted target image.
The method comprises the steps of cutting out a target object on a material image by receiving a first input of a user to the material image and responding to the first input, pasting the target object to a target image selected by the user to obtain a pasted target image, and obtaining a background blurring image of a facula effect according to the pasted target image. The method includes the steps that a user does not need to adjust the size of an object distance and an image distance and adjust an aperture, a target object selected by the user is directly cut out, the cut target object is pasted to a target image selected by the user, the pasted target image is obtained, a background blurring image of a facula effect is obtained according to the pasted target image, namely, the user only needs to select the target object and the target image to obtain the background blurring image of the facula effect, and therefore user operation is simplified.
The processor 1110 is further configured to, in a case that the target object is a background object or a blurring light spot object on the material image, in response to the second input, take the target object as a background object in the target image, and paste the target object into a background image area in the target image to obtain a pasted target image, where the target area is the background image area;
and under the condition that the target object is a foreground object on the material image, responding to the second input, taking the target object as a foreground object in the target image, and pasting the target object to a target area in the target image to obtain a pasted target image.
The processor 1110 is further configured to, when the target object is a blurring light spot object, use the pasted target image as a background blurring image of the light spot effect, or perform blurring processing on the background image of the pasted target image to obtain the background blurring image of the light spot effect;
and under the condition that the target object is a foreground object or a background object on the material image, blurring the background image in the pasted target image to obtain a background blurring image of the facula effect.
A processor 1110, further configured to receive a second input of the target object in the pasted target image from the user;
responding to the second input, and adjusting at least one of the position, the size and the direction of the target object in the pasted target image;
the obtaining of the background blurring image of the light spot effect according to the pasted target image comprises:
and obtaining a background blurring image with a light spot effect according to the adjusted target image.
A processor 1110, further configured to determine a contour shape of the target object if the target object is a background object;
the obtaining of the background blurring image of the light spot effect according to the pasted target image comprises:
and obtaining a background blurring image of the facula effect according to the pasted target image and the outline shape of the target object.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), random-access Memory (RAM), magnetic or optical disks, etc.
It should be understood that in the embodiment of the present application, the input Unit 1104 may include a Graphics Processing Unit (GPU) 11041 and a microphone 11042, and the Graphics processor 11041 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes a touch panel 11071 and other input devices 11072. A touch panel 11071, also called a touch screen. The touch panel 11071 may include two portions of a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 11011 may be used for storing software programs and various data including, but not limited to, application programs and an operating system. Processor 1110 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1110.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the image processing method, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An image processing method, characterized in that the method comprises:
receiving a first input of a user to a material image, and cutting out a target object on the material image in response to the first input;
pasting the target object to the target image selected by the user to obtain a pasted target image;
and obtaining a background blurring image with a facula effect according to the pasted target image.
2. The method according to claim 1, wherein the pasting the target object into the target image selected by the user to obtain a pasted target image comprises:
when the target object is a background object or a blurring light spot object on the material image, taking the target object as a background object in the target image, and pasting the target object to a background image area in the target image to obtain a pasted target image;
and under the condition that the target object is a foreground object on the material image, taking the target object as a foreground object in the target image, and pasting the target object to a target area in the target image to obtain a pasted target image.
3. The method according to claim 1, wherein obtaining a background blurring image of a flare effect from the pasted target image comprises:
when the target object is a blurring light spot object, taking the pasted target image as a background blurring image of the light spot effect, or blurring the background image of the pasted target image to obtain the background blurring image of the light spot effect;
and under the condition that the target object is not a blurring facula object, blurring the background image in the pasted target image to obtain a background blurring image with the facula effect.
4. The method according to claim 1, further comprising, after the pasting the target object into the target image selected by the user to obtain a pasted target image:
receiving a second input of the user to a target object in the pasted target image;
responding to the second input, and adjusting at least one of the position, the size and the direction of the target object in the pasted target image;
the obtaining of the background blurring image of the light spot effect according to the pasted target image comprises:
and obtaining a background blurring image with a light spot effect according to the adjusted target image.
5. An image processing apparatus, characterized in that the apparatus comprises:
the cutting module is used for receiving first input of a user to a material image, responding to the first input and cutting out a target object on the material image;
the pasting module is used for pasting the target object to the target image selected by the user so as to obtain the pasted target image;
and the obtaining module is used for obtaining a background blurring image with a facula effect according to the pasted target image.
6. The apparatus according to claim 5, wherein the pasting module is specifically configured to, in a case that the target object is a background object or a blurring speckle object on the material image, paste the target object as the background object in the target image into a background image area in the target image in response to the second input to obtain the pasted target image, where the target area is the background image area;
and under the condition that the target object is a foreground object on the material image, responding to the second input, taking the target object as a foreground object in the target image, and pasting the target object to a target area in the target image to obtain a pasted target image.
7. The apparatus according to claim 5, wherein the obtaining module is specifically configured to, in a case that the target object is a blurring light spot object, take the pasted target image as a background blurring image of the light spot effect, or perform blurring on the background image of the pasted target image to obtain the background blurring image of the light spot effect;
and under the condition that the target object is not a blurring facula object, blurring the background image in the pasted target image to obtain a background blurring image with the facula effect.
8. The apparatus of claim 5, further comprising:
the receiving module is used for receiving second input of the user to a target object in the pasted target image;
the adjusting module is used for responding to the second input and adjusting at least one of the position, the size and the direction of the target object in the pasted target image;
the obtaining module is specifically configured to obtain a background blurring image of a light spot effect according to the adjusted target image.
9. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the image processing method according to any one of claims 1 to 4.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the image processing method according to any one of claims 1 to 4.
CN202011166446.3A 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and readable storage medium Pending CN112270728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011166446.3A CN112270728A (en) 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011166446.3A CN112270728A (en) 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112270728A true CN112270728A (en) 2021-01-26

Family

ID=74342019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011166446.3A Pending CN112270728A (en) 2020-10-27 2020-10-27 Image processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112270728A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676665A (en) * 2021-08-20 2021-11-19 维沃移动通信有限公司 Image processing method and device and electronic equipment
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9412170B1 (en) * 2015-02-25 2016-08-09 Lite-On Technology Corporation Image processing device and image depth processing method
CN106534689A (en) * 2016-11-22 2017-03-22 珠海格力电器股份有限公司 Multiple cameras-based image synthesis method and apparatus
CN107493440A (en) * 2017-09-14 2017-12-19 光锐恒宇(北京)科技有限公司 A kind of method and apparatus of display image in the application
JP2018028572A (en) * 2016-08-15 2018-02-22 キヤノン株式会社 Image processing device and image processing method
CN109191414A (en) * 2018-08-21 2019-01-11 北京旷视科技有限公司 A kind of image processing method, device, electronic equipment and storage medium
CN109559272A (en) * 2018-10-30 2019-04-02 深圳市商汤科技有限公司 A kind of image processing method and device, electronic equipment, storage medium
CN110853071A (en) * 2018-08-21 2020-02-28 Tcl集团股份有限公司 Image editing method and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9412170B1 (en) * 2015-02-25 2016-08-09 Lite-On Technology Corporation Image processing device and image depth processing method
JP2018028572A (en) * 2016-08-15 2018-02-22 キヤノン株式会社 Image processing device and image processing method
CN106534689A (en) * 2016-11-22 2017-03-22 珠海格力电器股份有限公司 Multiple cameras-based image synthesis method and apparatus
CN107493440A (en) * 2017-09-14 2017-12-19 光锐恒宇(北京)科技有限公司 A kind of method and apparatus of display image in the application
CN109191414A (en) * 2018-08-21 2019-01-11 北京旷视科技有限公司 A kind of image processing method, device, electronic equipment and storage medium
CN110853071A (en) * 2018-08-21 2020-02-28 Tcl集团股份有限公司 Image editing method and terminal equipment
CN109559272A (en) * 2018-10-30 2019-04-02 深圳市商汤科技有限公司 A kind of image processing method and device, electronic equipment, storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information
CN113676665A (en) * 2021-08-20 2021-11-19 维沃移动通信有限公司 Image processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
EP4207737A1 (en) Video shooting method, video shooting apparatus, and electronic device
CN112840376A (en) Image processing method, device and equipment
CN111612873A (en) GIF picture generation method and device and electronic equipment
CN111669507A (en) Photographing method and device and electronic equipment
CN111756995A (en) Image processing method and device
CN107436712B (en) Method, device and terminal for setting skin for calling menu
CN109409235B (en) Image recognition method and device, electronic equipment and computer readable storage medium
CN113794834B (en) Image processing method and device and electronic equipment
CN112954210A (en) Photographing method and device, electronic equipment and medium
CN112911147B (en) Display control method, display control device and electronic equipment
CN112270728A (en) Image processing method and device, electronic equipment and readable storage medium
CN112532885A (en) Anti-shake method and device and electronic equipment
CN112672061A (en) Video shooting method and device, electronic equipment and medium
CN111182211B (en) Shooting method, image processing method and electronic equipment
CN109104633B (en) Video screenshot method and device, storage medium and mobile terminal
CN112738401B (en) Zooming method and device and electronic equipment
CN111885298B (en) Image processing method and device
CN112330728A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112312021B (en) Shooting parameter adjusting method and device
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN108093181B (en) Picture shooting method and device, readable storage medium and mobile terminal
CN113489901B (en) Shooting method and device thereof

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