Image special effect processing method and apparatus
Abstract
The present disclosure discloses an image special effect processing method and apparatus, an electronic device and a computer-readable storage medium. The method includes: in response to an instruction for adding a special effect object on an initial image, determining a target display region of the special effect object on the initial image, where the target display region is a foreground region or a background region of the initial image, the foreground region is an image region where a target object is located in the initial image, and the background region is an image region other than the foreground region in the initial image; and displaying a part of the special effect object located in the target display region on the initial image to obtain a target image.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 59 · Forward citations: 0.
Claims (8 — 3 Independent, 5 Dependent)
- Claim 1Independent Claim
An image special effect processing method, comprising: in response to an operation by a user on a special effect parameter setting option on a special effect setting interface, generating an instruction for adding one special effect object on an initial image, wherein the special effect parameter setting option comprises at least two of a special effect option for displaying on a foreground region, a special effect option for displaying on a background region, or a special effect option for marking an edge of the foreground region; in response to the instruction for adding the one special effect object on the initial image, and in response to a switch operation by the user on a switch option on a special effect setting interface provided for the user to choose whether to distinguish between the foreground region and the background region when the one special effect object is added: in a disabling switch operation, displaying the one special effect object on the initial image; and in an enabling switch operation: determining a target display region of the one special effect object on the initial image, wherein the target display region is the foreground region or the background region of the initial image, the foreground region is an image region where a target object is located in the initial image, and the background region is an image region other than the foreground region in the initial image; and displaying a first part of the one special effect object located in the target display region on the initial image to obtain a target image, wherein the one special effect object comprises the first part and a second part, wherein the second part of the one special effect object is located outside the target display region and is not displayed; wherein displaying the first part of the one special effect object located in the target display region on the initial image to obtain the target image comprises: determining an overlapping region of a position region of the one special effect object on the initial image and the target display region; cutting the first part located in the overlapping region from the one special effect object as a target display object; and displaying the target display object on an upper layer of the initial image to obtain the target image; wherein determining the target display region of the one special effect object on the initial image comprises: when the one special effect object comprises a plurality of sub-effect objects, determining a target display region of each of the sub-effect objects in the one special effect object respectively; correspondingly, wherein displaying the first part of the one special effect object located in the target display region on the initial image to obtain the target image comprises: determining a display order of a respective sub-effect object in the one special effect object respectively; and displaying a first part of the respective sub-effect object in the one special effect object located in a respective target display region of the respective sub-effect object on the initial image in sequence according to the display sequence of the respective sub-effect object in the one special effect object, to obtain the target image.
- Claim 2Depends on #1
The method according to claim 1, wherein in response to the operation by the user on the special effect parameter setting option on the special effect setting interface, generating the instruction for adding the one special effect object on the initial image comprises: in response to a selecting operation on a special effect navigation tree on a first interface, determining the one special effect object; in response to a selecting operation on a display region setting option on a second interface, determining the target display region; and generating the instruction according to the one special effect object and the target display region.
- Claim 3Depends on #1
The method according to claim 1, wherein the one special effect object is at least one of a sticker and a frame marking the target display region.
- Claim 4Independent Claim
An image special effect processing apparatus, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor is configured to: in response to an operation by a user on a special effect parameter setting option on a special effect setting interface, generating an instruction for adding one special effect object on an initial image, wherein the special effect parameter setting option comprises at least two of a special effect option for displaying on a foreground region, a special effect option for displaying on a background region, or a special effect option for marking an edge of the foreground region; in response to the instruction for adding one the special effect object on the initial image, and in response to a switch operation by the user on a switch option on a special effect setting interface provided for the user to choose whether to distinguish between the foreground region and the background region when the one special effect object is added: in a disabling switch operation, display the one special effect object on the initial image; and in an enabling switch operation, determine a target display region of the one special effect object on the initial image, wherein the target display region is the foreground region or the background region of the initial image, the foreground region is an image region where a target object is located in the initial image, and the background region is an image region other than the foreground region in the initial image; and display a first part of the one special effect object located in the target display region on the initial image to obtain a target image, wherein the one special effect object comprises the first part and a second part, wherein the second part of the one special effect object is located outside the target display region and is not displayed; wherein the at least one processor is configured to: determine an overlapping region of a position region of the one special effect object on the initial image and the target display region; cut the first part located in the overlapping region from the one special effect object as a target display object; display the target display object on an upper layer of the initial image to obtain the target image; when the one special effect object to be added includes a plurality of sub-effect objects, determine a target display region of each of the sub-effect objects respectively; and correspondingly, the at least one processor is specifically configured to: determine a display order of a respective sub-effect object in the one special effect object respectively; display a first part of the respective sub-effect object in the one special effect object located in a respective target display region of the respective sub-effect object on the initial image in sequence according to the display sequence of the respective sub-effect object in the one special effect object, to obtain the target image.
- Claim 5Depends on #4
The apparatus according to claim 4, wherein the at least one processor is configured to: in response to a selecting operation on a special effect navigation tree on a first interface, determine the one special effect object; in response to a selecting operation on a display region setting option on a second interface, determine the target display region; and generate the instruction according to the one special effect object and the target display region.
- Claim 6Depends on #4
The apparatus according to claim 4, wherein the one special effect object is at least one of a sticker and a frame marking the target display region.
- Claim 7Independent Claim
A non-transitory computer-readable storage medium, configured to store non-transitory computer-readable instructions, wherein when the non-transitory computer-readable instructions are executed by a computer, the computer is caused to execute steps of: in response to an operation by a user on a special effect parameter setting option on a special effect setting interface, generate an instruction for adding one special effect object on an initial image, wherein the special effect parameter setting option comprises at least two of a special effect option for displaying on a foreground region, a special effect option for displaying on a background region, or a special effect option for marking an edge of the foreground region; in response to the instruction for adding the one special effect object on the initial image, and in response to a switch operation by the user on a switch option on a special effect setting interface provided for the user to choose whether to distinguish between the foreground region and the background region when the one special effect object is added: in a disabling switch operation, displaying the one special effect object on the initial image; and in an enabling switch operation: determining a target display region of the one special effect object on the initial image, wherein the target display region is the foreground region or the background region of the initial image, the foreground region is an image region where a target object is located in the initial image, and the background region is an image region other than the foreground region in the initial image; and displaying a first part of the one special effect object located in the target display region on the initial image to obtain a target image, wherein the one special effect object comprises the first part and a second part, wherein the second part of the one special effect object is located outside the target display region and is not displayed; wherein the computer instructions are further used to perform the following steps: determining an overlapping region of a position region of the one special effect object on the initial image and the target display region; cutting the first part located in the overlapping region from the one special effect object as a target display object; and displaying the target display object on an upper layer of the initial image to obtain the target image; when the one special effect object comprises a plurality of sub-effect objects, determining a target display region of each of the sub-effect objects in the one special effect object respectively: correspondingly, wherein displaying the first part of the one special effect object located in the target display region on the initial image to obtain the target image comprises: determining a display order of a respective sub-effect object in the one special effect object respectively; and displaying a first part of the respective sub-effect object in the one special effect object located in a respective target display region of the respective sub-effect object on the initial image in sequence according to the display sequence of the respective sub-effect object in the special effect object, to obtain the target image.
- Claim 8Depends on #7
The non-transitory computer-readable storage medium according to claim 7, wherein the computer instructions are further used to perform the following steps: in response to a selecting operation on a special effect navigation tree on a first interface, determining the one special effect object; in response to a selecting operation on a display region setting option on a second interface, determining the target display region; and generating the instruction according to the one special effect object and the target display region.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2021/077737, filed on Feb. 24, 2021, which claims the priority to Chinese patent application No. 202010122421.7 titled “ IMAGE SPECIAL EFFECT PROCESSING METHOD AND APPARATUS ” and filed with the China National Intellectual Property Administration on Feb. 27, 2020. The entire contents of both of the above applications are incorporated into this application by reference in their entities. TECHNICAL FIELD The present disclosure relates to the technical field of image special effect processing, and in particular, to an image special effect processing method and apparatus, and a computer-readable storage medium. BACKGROUND With the development of intellectual terminal technology, functions of intellectual terminals are becoming more and more varied. For example, a user can use a camera in a terminal to take an image (e.g., a photo or a video), which has become a new mode of entertainment for people. However, simply taking images can no longer meet needs of users. How to perform special effect processing on captured images to get more fun and interesting images has become the focus of people's attention. In prior art, the special effect is usually applied to a whole image. In some scenarios, the special effect processing method cannot achieve a good result. For example, a face sticker is usually applied to a face, and if the face sticker is applied to the whole image, which would make the whole image look strange and cannot achieve a good result. SUMMARY The summary is provided to introduce concepts in a simplified form, and the concepts will be described in detail in the following description of embodiments. The summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution. The technical purpose to be achieved by the present disclosur
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (59)
Non-Patent Literature (7)
- International Search Report and Written Opinion issued in International Patent Application No. PCT/CN2021/077737 on May 20, 2021.
- Chinese First Office Action issued in Chinese Patent Application No. 202010122421.7 on Dec. 14, 2021.
- Chinese Second Office Action issued in Chinese Patent Application No. 202010122421.7 on Jun. 14, 2022.
- Extended European Search Report in EP21759634.5, mailed Jul. 7, 2023, 8 pages.
- Office Action in JP2022552171, mailed Oct. 3, 2023, 6 pages.
- Communication pursuant to Article 94(3) EPC in European Patent Application No. 21759634.5, mailed Mar. 21, 2024, 5 pages.
- Notice of Allowance for Korean Patent Application No. 10-2022-7030386, mailed on Oct. 27, 2024, 6 pages.