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

The image processing method dynamically changes the color of one object based on an SFX trigger, addressing the monotony of current display methods by enhancing object interactions and user engagement.

JP7810826B2Active Publication Date: 2026-02-03BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024560500
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-04-12
Filing Date
2023-03-07
Publication Date
2026-02-03
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

Current image display methods for short videos or images are monotonous and fail to meet the diverse needs of users, as they lack the ability to dynamically change and interact with multiple display objects based on their color attributes.

Method used

An image processing method that allows for the display of a first target object's color on a second target object in response to a special effect (SFX) trigger operation, utilizing various acquisition and display techniques to enhance color interaction between objects.

Benefits of technology

Enriches the display experience by allowing dynamic color changes between objects, improving user engagement and meeting varied user needs through enhanced visual effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007810826000001
    Figure 0007810826000001
  • Figure 0007810826000002
    Figure 0007810826000002
  • Figure 0007810826000003
    Figure 0007810826000003
Patent Text Reader

Abstract

An embodiment of the present disclosure discloses an image processing method, apparatus, electronic device, and storage medium, the method including: in response to an SFX trigger operation for initiating SFX of the target image, acquiring a processing target image corresponding to the SFX of the target image; and in response to detecting that the processing target image includes a first target object and a second target object, displaying a color of the first target object on the second target object.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority from Chinese Patent Application No. 202210382300.5, filed with the China Patent Office on April 12, 2022, the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD The embodiments of the present disclosure relate to the technical field of image processing, for example, to an image processing method, device, electronic device, and storage medium. [Background technology]

[0003] With the rapid development of new media technology on the Internet, short videos or images are highly appreciated by many users as a way of disseminating Internet content.

[0004] Currently, the content of a short video or image presentation (presentation, display) may include multiple display objects such as people, objects, and backgrounds, each of which has a corresponding color attribute and is displayed independently of the other. However, the display method of the related technology is single and cannot meet the diverse needs of users. Summary of the Invention [Means for solving the problem]

[0005] In a first aspect, embodiments of the present disclosure provide an image processing method, comprising: In response to an SFX trigger operation for activating the SFX of the target image, acquiring a processing target image corresponding to the SFX of the target image; In response to detecting that the image to be processed includes a first target object and a second target object, displaying a color of the first target object on the second target object.

[0006] In a second aspect, an embodiment of the present disclosure further provides an image processing device, the device comprising: a target image acquisition module configured to acquire a target image corresponding to the SFX of the target image in response to an SFX trigger operation for initiating the SFX of the target image; and a color display module configured to, in response to detecting that the image to be processed includes a first target object and a second target object, display a color of the first target object on the second target object.

[0007] In a third aspect, embodiments of the present disclosure further provide an electronic device, the electronic device comprising: one or more processors; a storage device configured to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more programs cause the one or more processors to perform an image processing method according to any embodiment of the present disclosure.

[0008] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing an image processing method according to any embodiment of the present disclosure. [Brief explanation of the drawings]

[0009] The drawings that need to be used to explain the embodiments are briefly described below. [Figure 1] 1 is a flowchart of an image processing method according to a first embodiment of the present disclosure. [Figure 2] 10 is a flowchart of an image processing method according to a second embodiment of the present disclosure. [Figure 3] 10 is a flowchart of an image processing method according to a third embodiment of the present disclosure. [Figure 4] 10A and 10B are schematic diagrams comparing effects before and after processing of a processing target image according to the present disclosure. [Figure 5] FIG. 10 is a structural schematic diagram of an image processing device according to a fourth embodiment of the present disclosure. [Figure 6]FIG. 10 is a structural schematic diagram of an electronic device according to a fifth embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0010] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. Although the drawings show certain embodiments of the present disclosure, it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are merely illustrative and are not intended to limit the scope of protection of the present disclosure.

[0011] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in a different order and / or simultaneously, and that the method embodiments may include additional steps and / or omit performing steps as described, and the scope of the present disclosure is not limited in this respect.

[0012] As used herein, the term "comprises" and variations thereof are open inclusive, i.e., "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" refers to "at least one embodiment," the term "in another embodiment" refers to "at least one other embodiment," and the term "in some embodiments" refers to "at least some embodiments." Relevant definitions of other terms are provided in the description below.

[0013] It should be noted that the concepts of "first," "second," etc. mentioned in the present disclosure are merely intended to distinguish between different devices, modules, or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules, or units. It should be noted that the modifiers "one" and "multiple" mentioned in the present disclosure are not limiting but exemplary, and should be understood as "at least one" unless otherwise clearly indicated by the context, as can be understood by a person skilled in the art.

[0014] The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only and are not used to limit the scope of these messages or information.

[0015] Example 1

[0016] FIG. 1 is a flowchart of an image processing method according to a first embodiment of the present disclosure, in which the present embodiment can display the colors of the target object in the processed image in a colorful manner based on the SFX of the responded target image before the image is displayed. The method can be performed by an image processing device, which can be realized by software and / or hardware, and can be arranged on a terminal and / or a server to implement the image processing method according to the embodiment of the present disclosure.

[0017] As shown in FIG. 1, the method of this embodiment includes step S110 and step S120.

[0018] S110: In response to an SFX trigger operation for activating the SFX of the target image, a processing target image corresponding to the SFX of the target image is obtained.

[0019] SFX of the target image can achieve the effect of displaying the color of the target object in the target image in a more diverse way. For example, SFX of the target image can change the display color of the target object to a color customized by the user, change the display color of the target object to a color randomly selected from a pre-defined color library, or change the display color of the target object to the color of other objects included in the image, thereby improving the variety and freedom of the color of the target object in the target image.

[0020] In this embodiment, the SFX trigger operation is an operation for triggering the SFX of the target image, and the SFX trigger operation includes two types: a contact operation and a non-contact operation.

[0021] (1) If the SFX trigger operation is a touch-based operation, an SFX trigger control such as a button or slider can be displayed on the application display interface of the user terminal. The SFX trigger control corresponds to the SFX name of the SFX of the target image, and when the user performs a touch operation on the SFX trigger control, such as clicking a button or sliding a slider, the SFX trigger operation is completed and the SFX of the target image is launched. For example, if the user terminal is a touchscreen terminal, the user can simply click or slide their finger directly on the position corresponding to the SFX trigger control on the screen to select it; if the user terminal is a non-touchscreen terminal, an external input device such as a mouse or keyboard can be used to send an operation command to the user terminal to select the SFX trigger control and realize the SFX trigger operation.

[0022] To display the image SFX more vividly, the SFX trigger control corresponding to the image SFX can be displayed in the form of an effect animation, thereby showing the change in the image before and after using the image SFX. For example, each displayed image SFX may include an SFX that switches the color of a second object with the color of a first object. For example, if the color of the first object is white and the color of the second object is red, displaying the SFX trigger control using an effect animation can display the change process of the first object changing from white to the red of the second object, while the color of the second object remains unchanged. Alternatively, each image SFX may include an SFX in which two objects exchange colors. Displaying the SFX trigger control using an effect animation can display the change process of the first object and the second object exchanging colors, allowing users to intuitively and clearly understand the function of the image SFX.

[0023] In one example, a basic operation control displayed in an application display interface can be associated with the SFX of a target image, and when the basic operation control is triggered, the SFX of the target image can be launched. Exemplarily, the basic operation control may include at least one of an image capture control, an image upload control, and an image call control, and when the basic operation control associated with the SFX of the target image is operated, it corresponds to completing an SFX trigger operation and can launch the SFX of the target image. For example, if a floating button labeled "Capture" is displayed in the application display interface and associated with the SFX of a target image, when an image is captured by clicking the floating button labeled "Capture," the captured image must be determined as an image to be processed, and the SFX of the target image must be launched and displayed after image processing.

[0024] (2) When the SFX trigger operation is a non-contact operation, it can be divided into a gesture recognition operation and / or a voice control operation. The user can perform an action according to the gesture indicated on the application display interface. When the user terminal detects the action, it completes the SFX trigger operation. The user can also control the user terminal by voice to achieve the SFX trigger operation. For example, when it detects that the user has issued a voice command to "launch SFX for the target image," it completes the SFX trigger operation.

[0025] For example, if the image to be processed is an image that needs to be manipulated by applying the SFX of the target image, the image to be processed may be directly acquired by an image collector, and the image collector may include devices such as security cameras, cameras, mobile phones with image capture functions, computers, etc. Furthermore, the image to be processed may be obtained by uploading an image stored in a user terminal, or a communication connection may be established with another device to share an image stored in the other device as the image to be processed.

[0026] In one embodiment, the implementation of obtaining the processing target image corresponding to the SFX of the target image is: Acquiring a corresponding image for applying the SFX of the target image, which is uploaded by a user or captured by a predetermined imaging method, as a processing target image corresponding to the SFX of the target image; or A step of obtaining an image of each frame in a video uploaded by a user or recorded in real time for applying the SFX of the target image as a processing target image corresponding to the SFX of the target image; or The method includes a step of acquiring an image containing the first target object and / or the second target object in a video uploaded by a user or recorded in real time to which the SFX of the target image is to be applied, as an image to be processed corresponding to the SFX of the target image.

[0027] In the first type of method, the preset imaging method is a method for collecting images to be processed, and a different imaging method may be selected by a user by performing custom settings in advance, or a preset default imaging method may be used. For example, when classified based on the collection time, the preset imaging method may be divided into timing imaging and real-time imaging, when classified based on the image collection mode, the preset imaging method may be divided into at least one of panoramic imaging, portrait imaging, and night scene imaging, and when classified based on the trigger type, the preset imaging method may be divided into at least one of click imaging, voice-controlled imaging, and motion recognition imaging.

[0028] For example, after launching the target image SFX, an image uploaded by a user or captured using a preset imaging method can be determined as the image to be processed. When uploading or capturing an image, a user may capture the image multiple times, upload it multiple times, etc., thereby providing multiple images to be processed. To avoid missing images when acquiring the target images, images uploaded by a user or captured using a preset imaging method that meet preset conditions can be acquired. For example, the preset conditions may be images acquired after launching the target image SFX and before executing the upload or capture termination operation, or images acquired within a preset time period after launching the target image SFX. Acquiring images that meet the preset conditions ensures that the target images are acquired accurately and comprehensively.

[0029] In one example, the number of images to be processed may be at least one. If only one image is uploaded or captured by the user, the image can be determined as the image to be processed. If multiple images are acquired, each image can be processed as the image to be processed, and the similarity between the images can be determined. If the similarity is greater than a preset similarity threshold, the images uploaded by the user can be recognized as images of the same scene, and the image with the highest resolution and the best color display effect can be selected as the image to be processed.

[0030] In the second method, a video uploaded by a user or recorded in real time for applying the SFX of the target image is obtained, and each frame image in the video is extracted as the processing target image corresponding to the SFX of the target image.

[0031] For example, an image of a portion of frames in a video may be determined and set as the image to be processed. For example, the image to be processed may be determined according to an image of a specific frame in the video designated in advance by the user. Alternatively, one or more images may be extracted from the video and set as the image to be processed based on a preset extraction rule. The preset extraction rule may be extraction at equal time intervals, for example, extracting one frame image every second. The preset extraction rule may be extraction at equal intervals of a number of frames, for example, extracting one image every five frames, or random extraction may be performed. By extracting images of a portion of frames, the amount of data processing can be reduced.

[0032] In one example, the method for determining a portion of frames in a video as target images further includes acquiring, as target images corresponding to the SFX of the target image, images containing a first target object and / or a second target object in a video uploaded by a user or recorded in real time to which the SFX of the target image is to be applied. This method requires that the target objects be preset, and the target objects are components of the target image to which the SFX of the target image is to be applied. The number of target objects may be one or more, and may be at least one of plants, animals, people, and objects in the target image, or local components of animals, people, and objects.

[0033] In one embodiment, the target object may include a first target object and a second target object, and the first target object and the second target object may be different components in the processing target image. The color of the first target object can be displayed in the second target object through SFX of the target image. Based on the preset first target object and second target object, an image including the first target object and / or the second target object in a captured video uploaded by a user or recorded in real time can be used as the processing target image.

[0034] S120: if it is detected that the image to be processed contains a first target object and a second target object, the color of the first target object is displayed on the second target object;

[0035] In this embodiment, the specific content of the first target object and the second target object can be set in advance, and the setting method may include the user setting the specific content of the first target object and the second target object in advance, and / or the user setting selection conditions for the first target object and the second target object in advance and determining the first target object and the second target object based on the selection conditions.

[0036] For example, a user may directly input the specific content and / or selection conditions of the target into the user terminal through the application setting function, or may complete the pre-setting of the selection conditions or the specific content of the target through the candidate target information and / or candidate selection conditions displayed on the application interface.

[0037] For example, when responding to an SFX trigger operation of the SFX of the target image, candidate information such as candidate names and candidate types of the first target object and the second target object is displayed on the application display interface, and the candidate information corresponding to the first target object selected by the user is the first target object, and the candidate information corresponding to the second target object selected by the user is the second target object. The candidate type may include at least one of an animal type, a plant type, a person type, and an object type, the candidate name may include a face, a tree, a sky, etc., and the candidate information may include information such as the area, shape, size, color, etc. of the candidate object. In response to an SFX trigger operation of the SFX of the target image, candidate selection conditions for the first target object and the second target object may be displayed on the application display interface, for example, the candidate selection conditions may include that a plant in the image to be processed is the first target object and a part with the largest area in the image to be processed is the second target object, and the candidate selection conditions may include that the decision rule may further include that a circular item in the image to be processed is the first target object and a square item in the image to be processed is the second target object, etc.

[0038] It should be noted that the first target object may be an image body included in the image to be processed, or at least one predetermined candidate object corresponding to the SFX of the target image. When the first target object may be an image body included in the image to be processed, after acquiring the image to be processed, the user may select the first target object from the displayed image to be processed, or the first target object may be determined according to predetermined selection criteria. When the predetermined candidate objects corresponding to the SFX of the target image are two or more objects with different colors, the first target object may be determined in a manner customized by the user. For example, the application display interface may display at least one candidate object control for each candidate object, such as the name, identifier, image, and color. When it is detected that one of the candidate object controls is triggered, the corresponding candidate object is determined as the first target object. To increase the variety and flexibility of the first target object color, an input frame may be directly displayed in the application display interface, allowing the user to directly input information such as the name and identifier of the first target object. The RGB color values ​​of the desired first target object may be input into the input frame, and the object corresponding to the RGB color values ​​may be determined as the first target object.

[0039] To illustrate the selection of multiple types of first and second target objects, in this embodiment, the first target object may include at least one of a handheld object, a salient object, and an image body belonging to a first preset body type in the image to be processed.

[0040] The handheld object is an object that comes into contact with the user's hand, and when the user's hand comes into contact with multiple objects, one of the objects may be selected as the first target object, for example, the object with the largest area may be selected as the target object. The salient object may include an object whose area is larger than a preset area threshold, such as a wall, ground, lawn, desk, window, or bed, and the preset area threshold may be determined based on the area of ​​the acquired image to be processed, and the larger the area of ​​the image to be processed, the larger the preset area threshold.

[0041] For example, an image body belonging to a first preset body type may be determined as the first target object. The first preset body type may be classified in multiple ways. For example, when classified in terms of the external shape of the target object, the image body belonging to the first preset body type may include image bodies having shape elements such as a square, a circle, a star, or a ring. When classified in terms of the color of the target object, the image body belonging to the first preset body type may include image bodies containing cool-colored and / or warm-colored elements. When classified in terms of the object attributes of the target object, the image body belonging to the first preset body type may include image bodies belonging to fruits, clothing, or buildings. For example, any object that belongs to the first preset body type and is an image body in the processing target image may be set as the first target object.

[0042] In one example, the second target object includes at least one of the target user's body parts in the image to be processed, the target user's clothing, the background region of the image to be processed, and an image body belonging to a second preset body type. The target user's body parts may include hair, face, senses, neck, hands, etc., the clothing may include items such as a jacket, pants, necklace, bag, etc., and the background region may be an area other than the target user, such as a wall, building, ground, or scenery. The second target object may be an image body belonging to a second preset body type, and the second preset body type may be the same as or different from the first preset body type.

[0043] For example, after acquiring a processing target image, image detection is performed on the processing target image using a preset recognition algorithm based on the specific contents of the predetermined first target object and second target object, thereby determining whether the processing target image contains the set first target object and second target object. A neural network model may be trained by performing sample processing on the image in advance, and the trained neural network model may be able to recognize the first target object and the second target object in the sample-processed image. The processing target image is input to a neural network model for image recognition that has been trained in advance, and whether the processing target image contains the first target object and the second target object is determined based on the output result of the neural network model.

[0044] If it is detected that the image to be processed contains a first target object and a second target object, the first target object and the second target object can be segmented using a preset segmentation algorithm or a segmentation model that has been trained in advance, and the color of the first target object can be extracted and displayed on the second target object.

[0045] For example, when extracting the color of the first target object, it can be determined whether the first target object contains only one color, and if so, the only color can be determined as the color of the first target object. If the first target object contains two or more colors, in order to reduce the amount of calculation and improve the efficiency of color switching, it can determine one pixel point in the first target object, and the color corresponding to the pixel point can be determined as the color of the first target object.

[0046] For example, a pixel point may be randomly determined, or a pixel point in the first target object that satisfies a preset condition may be determined, and a color corresponding to the pixel point may be determined as the color of the first target object. For example, the preset condition may be a pixel point corresponding to a color that has the largest difference from the color value of the second target object, or a pixel point in the second target object that is the furthest from the first target object. A color corresponding to a pixel position of the first target object specified by a user may be determined as the color of the first target object, and the color may be extracted and displayed on the second target object.

[0047] To more comprehensively consider the color characteristics of the first target object and extract the characteristics of the first target object, all colors contained in the first target object may be displayed on the second target object. For example, color values ​​at corresponding pixel positions may be determined in sequence based on the pixel arrangement order of the first target object, and colors corresponding to the color values ​​may be displayed on corresponding pixel positions of the second target object. In one example, the color values ​​may be RGB color mode values. If the area of ​​the first target object is larger than that of the second target object, the color of the second target object may simply be filled in without further extraction. If the area of ​​the first target object is smaller than that of the second target object, after traversing all pixels of the first target object, the colors at pixel positions of the first target object may be repeatedly extracted and displayed on pixel positions in the second target object where no color has been added.

[0048] If the first target object and / or the second target object is not detected in the image to be processed, there is insufficient object for the SFX of the target image to operate on, and the SFX operation cannot be realized. To notify the user in real time that the SFX of the target image cannot be completed, notification information can be displayed on the application display interface, or an audio message can be played to notify the user that the SFX operation of the target image has failed. In one example, the reason for the SFX failure can be displayed or announced audibly. For example, the application display interface can display a message such as "No actionable object detected, suggesting replacing the image."

[0049] In this embodiment, when the SFX trigger operation that activates the SFX of the target image is triggered, the processing target image corresponding to the SFX of the target image is obtained, and if it is detected that the processing target image contains a first target object and a second target object, the color of the first target object is displayed on the second target object, thereby completing the conversion operation of the display color of the second target object. This avoids the situation in related technologies where the image display method is bland and monotonous, and achieves the purpose of enriching (enhancing) the display color of the target object based on the SFX of the target image, improves the fun of image display, and meets the diversified needs of users.

[0050] Example 2

[0051] 2 is a flowchart of an image processing method according to a second embodiment of the present disclosure. In this embodiment, based on any of the embodiments of the present disclosure, the step of displaying the color of the first target object on the second target object includes a step of switching the color of the second target object to the color of the first target object or blending the color of the first target object with the color of the second target object. The interpretation of the same or corresponding terms in the above embodiments will not be described in detail here.

[0052] As shown in FIG. 2, the method of this embodiment includes step S210 and step S220.

[0053] S210: In response to an SFX trigger operation for activating the SFX of the target image, an image to be processed corresponding to the SFX of the target image is obtained.

[0054] S220: if it is detected that the image to be processed contains a first target object and a second target object, the color of the second target object is switched to the color of the first target object, or the color of the first target object is merged with the color of the second target object.

[0055] In this embodiment, a color can be determined for a first target object and displayed on a second target object. For example, the central pixel of the first target object can be determined, and the color of the central pixel can be set as the color of the first target object. The advantage of using the color of the central pixel of the first target object as the color of the first target object is that it reduces the amount of calculation required for color determination and also avoids the interference of colors of objects adjacent to the first target object, which prevents the SFX of the target image from being achieved or the color of the adjacent object from being displayed on the second target object.

[0056] For a first target object having a regular shape, such as a circle, rectangle, trapezoid, or the like, the central pixel point may be a pixel point on the first target object that is equidistant from the periphery of the first target object. For example, if the first target object is a circle, the central pixel point is the circle center of the first target object. Furthermore, those skilled in the art may further determine the color of the first target object to be a color corresponding to pixel points such as the centroid, orthocenter, and incenter of the first target object according to the actual application situation, but this embodiment is not limited to this. For a first target object having an irregular shape, a regular frame may be used to surround the first target object. For example, a frame such as an inscribed circle or an inscribed rectangle may be used to surround the first target object, and pixel points such as the centroid, orthocenter, and incenter of the regular frame may be determined as the central pixel point. Alternatively, an equal-area dividing line may be determined for the first target object, and the first target object may be divided into two equal-area parts, and the midpoint of the equal-area dividing line may be determined as the central pixel point.

[0057] In this embodiment, a series of examples of determining the central pixel point of the first target object includes segmenting the first target object from the processing target image, obtaining a target segmented image, and determining the central pixel point of the first target object based on the target segmented image.

[0058] The target segmented image includes an image obtained after the first target object is segmented, and the central pixel point of the target segmented image is determined as the central pixel point of the first target object. For example, an image segmentation algorithm or a pre-trained neural network model can be used to perform image segmentation on the target image. Exemplarily, the image segmentation algorithm may include an image edge segmentation algorithm, a region-based segmentation algorithm, an image threshold segmentation algorithm, etc. For example, the segmentation of the first target object can be completed using an image edge segmentation algorithm such as Canny edge detection or Sobel edge detection.

[0059] In one embodiment, the method for determining the color of the first target object further includes traversing and reading the color values ​​of each pixel point in the target area of ​​the first target object, calculating the average value of the color values ​​of all pixel points in the target area, and setting the color corresponding to the average value as the color of the first target object.

[0060] The target area can be preset according to actual application needs, and can be an area corresponding to any shape located at any position on the first target object. For example, the target area can be a rectangular area, a trapezoidal area, a circular area, or an irregular area with a preset area value on the first target object. The number of pixels included in the target area is less than or equal to the number of pixels on the first target object.

[0061] For example, the target area may be a range consisting of a predetermined number of pixels closest to the central pixel point of the first target object, for example, the target area may be set to a square area consisting of eight pixel points closest to the central pixel point, and the target area may be an area consisting of two pixel points adjacent to the central pixel point in the horizontal ordinate direction and two pixel points adjacent to the central pixel point in the vertical ordinate direction, for a total of five pixel points.

[0062] For example, in order to more accurately and comprehensively reflect the color of the target area, the average value of the color values ​​of all pixel points in the target area can be set as the color value of the first target object. For example, the average value of the color values ​​of the eight pixel points closest to the central pixel point and a square area consisting of the central pixel point can be determined, and the average value can be determined as the color of the first target object.

[0063] In this embodiment, after determining the color of the first target object, the color of the first target object can be displayed as the color of the second target object using two methods: color switching or color fusion. The steps of the two display methods are as follows:

[0064] When using the color switching method, one implementation is to clear the color of the second target object, add it back to the second target object according to the color of the first target object, and switch the color of the first target object.

[0065] When using the color blending method, one implementation is to determine a first color value of a first target object, traverse each pixel point of a second target object, respectively determine a second color value of each pixel point, and blend the first and second color values ​​to obtain a blended color value of the pixel point of the second target object. For example, blending the first and second color values ​​may involve performing a multiplication, addition, or multiplication-addition blending operation on the first and second color values. Weights may be assigned to the first and second color values, and the blended color value may be obtained by a weighted sum or weighted product method. Adjusting the weights of the first and second color values ​​can enrich the color effects displayed on the second target object.

[0066] In this embodiment, the two color display methods of color switching and color fusion further enrich the color effect displayed on the second target object, improving the interest when displaying the image, and by dividing the first target object, the color of the first target object can be determined more accurately and effectively.

[0067] Example 3

[0068] 3 is a flowchart of an image processing method according to a third embodiment of the present disclosure. This embodiment may further include, based on any of the embodiments of the present disclosure, displaying the color of a first target object on a second target object, obtaining a preset color-adjusted grayscale image, and displaying the color-adjusted grayscale image on the second target object. In one example, to make the second target object appear smoother, a Gaussian blur process may be performed on the second target object after displaying the color of the first target object on the second target object. In one example, a target filter effect may be added to the second target object to enhance the color display effect of the second target object.

[0069] The interpretation of the same or corresponding terms in the above embodiments will not be explained in detail here.

[0070] As shown in FIG. 3, the method of this embodiment includes steps S310 to S350.

[0071] S310, in response to an SFX trigger operation for activating the SFX of the target image, obtain a processing target image corresponding to the SFX of the target image.

[0072] S320, if it is detected that the image to be processed includes a first target object and a second target object, the color of the first target object is displayed on the second target object.

[0073] S330, obtaining a preset color-adjusted grayscale image, and displaying the color-adjusted grayscale image on a second target object.

[0074] To enhance the display effect of the second target object and make the image more hierarchical, a color-adjusted grayscale image can be displayed on the second target object. The color-adjusted grayscale image may include two or more grayscale values, and the grayscale values ​​range from [0, 255]. The color-adjusted grayscale image can be obtained by adjusting the light transmittance of each part of the black picture using a black picture pre-stored with the color-adjusted grayscale image.

[0075] For example, the color-adjusted grayscale image may only include two parts, one with a grayscale value of 255 and the other with a grayscale value of 0, and the color-adjusted grayscale image may be divided into two parts, black and white, and the black and white parts of the color-adjusted grayscale image may be overlaid with the color of the second target object, respectively, to make the second target object appear more layered when displayed. The color-adjusted grayscale image may include two or more grayscale values, and the color-adjusted grayscale image is formed by grayscales.

[0076] In this embodiment, the display shape of the grayscales in the color-adjusted grayscale image can be adjusted to enrich the hierarchical distribution when displaying the second target object. For example, in the color-adjusted grayscale image, each grayscale can include a wave-shaped, bar-shaped, or ring-shaped display form, and the color-adjusted grayscale image can be obtained by combining grayscales of different shapes.

[0077] In this embodiment, the grayscale distribution in the color-adjusted grayscale image can be further adjusted to enrich the hierarchy when displaying the second target object. For example, the grayscale values ​​of the grayscales may be sequentially joined based on the order of largest to smallest to form the color-adjusted grayscale image. After the color-adjusted grayscale images are stacked, the resulting grayscale values ​​of the second target object change regularly. The color-adjusted grayscale values ​​may be formed by joining corresponding grayscales based on the interval order of the grayscale values. After the color-adjusted grayscale images are stacked, the contrast of the second target object is enhanced. In one example, the grayscale distribution can be determined based on the background scene of the image to be processed. For example, if the background scene of the image to be processed is a daytime outdoor scene, the grayscale distribution in the color-adjusted grayscale image can be adjusted based on the distribution mode when sunlight is scattered. For example, if the background scene of the image to be processed is an indoor scene with a lamp, the grayscale distribution in the color-adjusted grayscale image can be adjusted based on the light wave mode formed when light is irradiated, thereby allowing the second target object to be better integrated with the captured scene when displayed.

[0078] S340, performing Gaussian blur processing on the second target object.

[0079] In order to make the image smoother and softer when displaying the second target object and reduce image noise, a Gaussian blur process can be performed on the second target object. For example, the image obtained after performing a Gaussian blur process on the second target object can be obtained by convolving the second target object with a Gaussian distribution.

[0080] S350, adds target filter effect to secondary target.

[0081] The filters are used to achieve various SFX of the image, and the target filter effect may be a user-specified filter effect.

[0082] For example, after displaying the color of a first target object on a second target object, image modification information can be generated in the application display interface to provide various SFX that can affect the second target object for the user to select from, and when a target filter operation for activating a target filter effect is detected, the SFX corresponding to the target filter operation in each SFX can be determined as the target filter effect.

[0083] For example, the target filter effect may include at least one of a noise filter, a distortion filter, an extract filter, a rendering filter, a liquefy filter, and a blur filter. A noise filter is used to correct imperfections in the image processing, such as removing spots or adding noise, a distortion filter is used to distort or transform selected areas of an image to create a three-dimensional effect or other overall changes, an extract filter is used to cut out an image, such as extracting a loose hair from a complex background, a rendering filter is used to create texture fills to produce similar three-dimensional lighting effects, a liquefy filter is used to push, pull, rotate, reflect, fold, and expand any area of ​​an image to modify the image for artistic effects, and a blur filter is used to blur areas of an image that are too sharp or have too much contrast.

[0084] The above describes an embodiment corresponding to the image processing method, and the following provides an exemplary application scenario.

[0085] When a user wants to capture an interesting image using the video capture application, he or she clicks on a circle-shaped identifier displayed on the display interface of the video capture application to indicate the start of capture, and the image to be processed, including the user's face photo and background, provided by the user, can be captured in real time. An image SFX control for performing image processing on the image to be processed can be displayed below the application display interface, and the user can perform an SFX trigger operation on the favorite image SFX control by clicking on the screen, making a gesture in the air, or controlling it with voice, etc., to launch the corresponding SFX. For example, the SFX may include A SFX for converting the color of a target object, B SFX for performing facial transformation on the target object, C SFX for performing gender conversion on a face in the image to be processed, and D SFX for performing age prediction on a person appearing in the image to be processed, and the name identifier controls and / or image identifier controls of A SFX, B SFX, C SFX, and D SFX, respectively, may be displayed below the application display interface, and when it is detected that any of the name identifier controls and / or image identifier controls are triggered, the corresponding SFX is launched.

[0086] When a user wants to capture an interesting image using the video capture application, he or she clicks on a circle-shaped identifier displayed on the display interface of the video capture application to indicate the start of capture, and the target image provided by the user, including the user's face photo and background, can be captured in real time. An image SFX control for image processing of the target image can be displayed below the application display interface. The user can click on the screen, make a gesture in the air, or control by voice to perform an SFX trigger operation on the favorite image SFX control, thereby launching the corresponding SFX. For example, the SFX can be A SFX for changing the color of the target object, B SFX for performing facial deformation on the target object, etc. Su et al. and below the application display interface, A SFX and B SFX may be included. S A name identifier control and / or an image identifier control may be displayed, and when it is detected that one of the name identifier control and / or the image identifier control is triggered, the corresponding SFX is launched.

[0087] FIG. 4 is a schematic diagram comparing the effects before and after processing of the processing target image according to the present disclosure, where the image on the left side of FIG. 4 is an image when no object is held in the hand, and the image on the right side of FIG. 4 is an effect diagram obtained after the user selects the SFX of the target image and then performs image processing based on the processing target image with different held objects.

[0088] As shown in Figure 4, the image on the right is the result image obtained after SFX of the target image. If the held object displayed in Figure 4 is a tissue bag, the tissue bag can be the first target object, and the person's hair in the target graphic can be the second target object. After SFX of the target image, a held object recognition algorithm is used to segment the tissue bag in the target image and calculate the center coordinate of the tissue bag. If the determined center coordinate of the tissue bag is located in the dark-colored text area, the color of the text corresponding to the center coordinate is determined as the color of the tissue bag. Next, a hair segmentation algorithm is used to segment the person's hair in Figure 4, and the color of the held object is displayed in the person's hair. Finally, after displaying the colors of the items in hand, the image of the hair obtained was subjected to color gradation, filter addition, and Gaussian blur processing, resulting in the image on the right side of Figure 4. As can be seen from Figure 4, the tissue bag contains multiple colors, with dark colors used for the text and the area around the tissue bag and white for the blank space. The text on the tissue bag is dark and dark, while the person's hair in Figure 4 is light and light. After the color of the text on the tissue bag is displayed on the person's hair, the hair color correspondingly becomes darker and the brightness is reduced. In this way, SFX of the target image can create color interactions between objects in the processed image, improving the user's image capture experience and the variety of image display results.

[0089] In this embodiment, by layering a color-adjusted grayscale image on the second target object, the hierarchical distribution when the second target object is displayed is enriched; by performing Gaussian blur processing on the second target object, the image when the second target object is displayed is made smoother and softer, and image noise is reduced; and by adding a target filter effect to the second target object, the image processed by SFX of the target image is made more colorful and interesting.

[0090] Example 4

[0091] 5 is a structural schematic diagram of an image processing device according to a fourth embodiment of the present disclosure, which may be realized by software and / or hardware, and may be disposed in a terminal and / or a server to implement the image processing method of the fourth embodiment of the present disclosure. The device includes a processing target image acquisition module 510 and a color display module 520, the processing target image acquisition module 510 is configured to, in response to an SFX trigger operation for activating SFX of the target image, acquire a processing target image corresponding to the SFX of the target image; The color display module 520 is configured to display the color of the first target object on the second target object when detecting that the image to be processed contains a first target object and a second target object.

[0092] According to any one of the embodiments of the present disclosure, the processing target image acquisition module 510 includes: a first processing target image acquisition unit configured to acquire a corresponding image for applying the SFX of the target image, which is uploaded by a user or captured in a preset imaging manner, as a processing target image corresponding to the SFX of the target image; or a second processing target image acquisition unit configured to acquire each frame image in a video uploaded by a user or recorded in real time for applying the SFX of the target image as a processing target image corresponding to the SFX of the target image; or The video uploaded by the user or recorded in real time to which the SFX of the target image is applied includes a third processed image acquisition unit configured to acquire an image including the first target object and / or the second target object as a processed image corresponding to the SFX of the target image.

[0093] According to any embodiment of the present disclosure, the color display module 520 comprises: a color switching unit configured to switch the color of the second target object to the color of the first target object; or A color fusion unit configured to fuse a color of the first target object with a color of the second target object.

[0094] According to any one of the embodiments of the present disclosure, the image processing device a central pixel point determination module configured to determine a central pixel point of the first target object and set a color of the central pixel to the color of the first target object; or and further comprising an average value calculation module configured to traverse and read color values ​​of each pixel point in a target area of ​​the first target object, calculate an average value of color values ​​of all pixel points in the target area, and set a color corresponding to the average value as the color of the first target object.

[0095] According to any one of the embodiments of the present disclosure, the central pixel point determining module: and a first target object segmentation unit configured to segment the first target object from the target image to obtain a target segmented image, and determine a central pixel point of the first target object based on the target segmented image.

[0096] According to any one of the embodiments of the present disclosure, the image processing device Further included is a color-adjusted grayscale image acquisition module configured to acquire a predetermined color-adjusted grayscale image and display the color-adjusted grayscale image on the second target object after the step of displaying the color-adjusted grayscale image on the second target object.

[0097] According to any one of the embodiments of the present disclosure, the image processing device The method further comprises a second target object Gaussian blurring module configured to perform Gaussian blurring on the second target object after the step of displaying the color of the first target object on the second target object.

[0098] According to any one of the embodiments of the present disclosure, the image processing device The method further includes a second target object filter effect adding module configured to add a target filter effect to the second target object after the step of displaying the color of the first target object on the second target object.

[0099] According to any of the embodiments of the present disclosure, the first target object includes at least one of a handheld object, a salient object, and an image body belonging to a first preset body type in the image to be processed.

[0100] Based on any of the embodiments of the present disclosure, the second target object includes at least one of a body part of the target user in the processing target image, an item worn by the target user, a background region of the processing target image, and an image body belonging to a second preset body type.

[0101] In this embodiment, when the SFX trigger operation that activates the SFX of the target image is triggered, the target image corresponding to the SFX of the target image is obtained, and if it is detected that the target image contains a first target object and a second target object, the color of the first target object is displayed on the second target object, thereby completing the conversion operation of the display color of the second target object. This avoids the situation in related technologies where the image display method is bland and monotonous, and achieves the purpose of enriching the display color of the target object based on the SFX of the target image, improves the fun of image display, and meets the diversified needs of users.

[0102] The apparatus can perform the method according to any embodiment of the present disclosure, and includes functional modules and beneficial effects corresponding to the implementation of the method.

[0103] However, each unit and module included in the above device is merely distinguished according to functional logic, and is not limited to the above distinctions, as long as it can realize the corresponding function. Furthermore, the specific names of each functional unit are merely intended to make it easier to distinguish from one another, and are not intended to limit the scope of protection of the embodiments of the present disclosure.

[0104] Example 5

[0105] FIG. 6 is a structural schematic diagram of an electronic device according to a fifth embodiment of the present disclosure. Referring now to FIG. 6, a structural schematic diagram of an electronic device (e.g., a terminal device or server in FIG. 6) 600 suitable for implementing the embodiments of the present disclosure is shown. The terminal devices of the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital televisions (TVs) and desktop computers. The electronic device shown in FIG. 6 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present disclosure.

[0106] 6, the electronic device 600 may include a processing unit (e.g., a central processor, a graphics processor, etc.) 601, which can perform various appropriate operations and processes based on programs stored in a read-only memory (ROM) 602 or programs uploaded from a storage device 608 to a random access memory (RAM) 603. The RAM 603 further stores various programs and data necessary for the operation of the electronic device 600. The processing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 605. An edit / output (I / O) interface 604 is also connected to the bus 605.

[0107] Typically, the following devices can be connected to the I / O interface 604: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 608 including, for example, a magnetic tape, hard disk, etc.; and communication devices 609. The communication devices 609 allow the electronic device 600 to exchange data with other devices via wireless or wired communication. While FIG. 6 illustrates the electronic device 600 with various devices, it should be understood that it is not required to implement or include all of the illustrated devices. More or fewer devices may alternatively be implemented or included.

[0108] In particular, according to embodiments of the present disclosure, the processes described with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program embodied in a non-transitory computer-readable medium, the computer program including program code for performing the methods shown in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of the embodiments of the present disclosure.

[0109] The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0110] The electronic device according to the embodiments of the present disclosure and the image processing method according to the above embodiments belong to the same inventive concept, and the technical details not detailed in the present embodiments may refer to the above embodiments, and the present embodiment has the same beneficial effects as the above embodiments.

[0111] Example 6

[0112] An embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, the program implementing the image processing method according to the embodiment when executed by a processor.

[0113] It should be explained that the computer-readable medium of the present disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above. The computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. Examples of computer-readable storage media include an electrical connection having one or more conductors, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, optical fiber, a portable compact disc read-only memory (CD-ROM), a portable computer hard disk, ... A computer-readable signal medium may include, but is not limited to, a computer-readable memory (e.g., a memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a propagated data signal, either in baseband or as part of a carrier wave, containing computer-readable program code. Such propagated data signals may take various forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which is capable of transmitting, propagating, or transmitting a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including, but not limited to, an electrical wire, an optical cable, a radio frequency (RF), or the like, or any suitable combination of the above.

[0114] In some embodiments, clients and servers may communicate using any now known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any now known or future developed networks.

[0115] The computer readable medium may be included in the electronic device or may exist separately but not assembled into the computing device.

[0116] The computer-readable medium includes one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: In response to an SFX trigger operation for activating the SFX of the target image, acquiring a processing target image corresponding to the SFX of the target image; When it is detected that the image to be processed includes a first target object and a second target object, the step of displaying the color of the first target object on the second target object is executed.

[0117] The storage medium may be a non-transitory storage medium.

[0118] Computer program code for carrying out the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, etc., as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may run entirely on the user computer, partially on the user computer, as a separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. When a remote computer is involved, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).

[0119] The flowcharts and block diagrams in the figures illustrate possible system architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or portion of code, which includes one or more executable instructions for implementing the specified logical function. It should be noted that in some alternative implementations, the functions depicted in the blocks may occur in a different order than that depicted in the figures. For example, two blocks shown one after the other may actually be executed essentially in parallel, or they may be executed in the reverse order, as determined by the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.

[0120] The units according to the embodiments of the present disclosure may be implemented in software or hardware. The names of the units do not limit the units in certain circumstances. For example, the first acquiring unit may be described as a "unit for acquiring at least two Internet Protocol addresses."

[0121] The functionality described herein above may be performed at least in part by one or more hardware logic components. For example, and without limitation, exemplary hardware logic components that may be used include Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs), System on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0122] In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain or store a program used by or in connection with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the above. More specific examples of machine-readable storage media include an electrical connection by one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0123] According to at least one embodiment of the present disclosure, [Example 1] provides an image processing method, the method comprising: In response to an SFX trigger operation for activating the SFX of the target image, acquiring a processing target image corresponding to the SFX of the target image; When it is detected that the image to be processed includes a first target object and a second target object, the color of the first target object is displayed on the second target object.

[0124] According to at least one embodiment of the present disclosure, [Example 2] provides an image processing method, the method comprising: Acquiring a corresponding image for applying the SFX of the target image, which is uploaded by a user or captured in a preset imaging method, as a processing target image corresponding to the SFX of the target image; or A step of obtaining each frame image in a video uploaded by a user or recorded in real time for applying the SFX of the target image as a processing target image corresponding to the SFX of the target image; or The method further includes a step of acquiring an image containing the first target object and / or the second target object in a video uploaded by a user or recorded in real time to which the SFX of the target image is applied, as a processing target image corresponding to the SFX of the target image.

[0125] According to at least one embodiment of the present disclosure, [Example 3] provides an image processing method, the method comprising: The method further includes switching the color of the second target object to the color of the first target object or blending the color of the first target object to the color of the second target object.

[0126] According to at least one embodiment of the present disclosure, [Example 4] provides an image processing method, the method comprising: determining a central pixel point of the first target object and setting the color of the central pixel to the color of the first target object; or The method further includes a step of traversing and reading the color values ​​of each pixel point in a target area of ​​the first target object, calculating an average value of the color values ​​of all pixel points in the target area, and setting the color corresponding to the average value as the color of the first target object.

[0127] According to at least one embodiment of the present disclosure, [Example 5] provides an image processing method, the method comprising: The method further includes the steps of: segmenting the first target object from the target image to obtain a target segmented image; and determining a center pixel point of the first target object based on the target segmented image.

[0128] According to at least one embodiment of the present disclosure, [Example 6] provides an image processing method, the method comprising: The method further includes obtaining a preset color-adjusted grayscale image and displaying the color-adjusted grayscale image on the second target object.

[0129] According to at least one embodiment of the present disclosure, [Example 7] provides an image processing method, the method comprising: The method further includes performing a Gaussian blur process on the second target object.

[0130] According to at least one embodiment of the present disclosure, [Example 8] provides an image processing method, the method comprising: The method further includes adding a target filter effect to the second target object.

[0131] According to at least one embodiment of the present disclosure, [Example 9] provides an image processing method, the method comprising: The method further includes the step of: the first target object includes at least one of a hand-held object, a salient object, and an image body belonging to a first preset body type in the image to be processed.

[0132] According to at least one embodiment of the present disclosure, [Example 10] provides an image processing method, the method comprising: The second target object may further include at least one of a body part of the target user in the processing target image, an item worn by the target user, a background region of the processing target image, and an image body belonging to a second preset body type.

[0133] According to at least one embodiment of the present disclosure, [Example 11] provides an image processing device, the device comprising: a target image acquisition module configured to acquire a target image corresponding to the SFX of the target image in response to an SFX trigger operation for initiating the SFX of the target image; and a color display module configured to display the color of the first target object on the second target object when it is detected that the image to be processed includes a first target object and a second target object.

[0134] Those skilled in the art should understand that the disclosure scope of the present disclosure is not limited to the technical solution constituted by a specific combination of the above technical features, and should also include other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the concept of the above disclosure, such as, for example, technical solutions formed by mutually substituting the above features with technical features having similar functions disclosed in the present disclosure (but not limited to these).

[0135] Also, although operations have been described in a particular sequence, it should not be understood that these operations are required to be performed in the particular sequence or order shown. In certain environments, multitasking and simultaneous processing may be advantageous. Similarly, although the above description includes several specific implementation details, these should not be construed as limiting the scope of the disclosure. Certain features described in the context of a single embodiment may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may be implemented in multiple embodiments independently or in any suitable subcombination manner.

[0136] Although the present subject matter has been described using language specific to structural features and / or methodological operations, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms for implementing the claims.

Claims

1. 1. An image processing method, comprising: In response to an SFX trigger operation for activating the SFX of the target image, acquiring a processing target image corresponding to the SFX of the target image; In response to detecting that the image to be processed includes a first target object and a second target object, displaying a color of the first target object on the second target object; After the step of displaying the color of the first target object on the second target object, The image processing method further includes obtaining a preset color-adjusted grayscale image and displaying the color-adjusted grayscale image on the second target object.

2. The step of obtaining a processing target image corresponding to the SFX of the target image includes: Acquiring a corresponding image for applying the SFX of the target image, which is uploaded by a user or captured using a predetermined imaging method, as a processing target image corresponding to the SFX of the target image; or A step of obtaining an image of each frame in a video uploaded by a user or recorded in real time for applying the SFX of the target image as a processing target image corresponding to the SFX of the target image; or The method of claim 1, further comprising: acquiring an image uploaded by a user or recorded in real time as a processing target image corresponding to the SFX of the target image, the image including at least one of a first target object or a second target object in a video for applying the SFX of the target image.

3. The step of displaying the color of the first target object on the second target object comprises: switching the color of the second target object to the color of the first target object; or The method of claim 1 , further comprising blending the color of the first target object with the color of the second target object.

4. determining a central pixel point of the first target object and setting the color of the central pixel to the color of the first target object; or 4. The method of claim 1 or 3, further comprising the step of traversing and reading the color values ​​of each pixel point in a target area of ​​the first target object, calculating an average value of the color values ​​of all pixel points in the target area, and setting the color corresponding to the average value as the color of the first target object.

5. The step of determining a central pixel point of the first target object comprises:

5. The method of claim 4, further comprising the steps of: segmenting the first target object from the target image to obtain a target segmented image; and determining a center pixel point of the first target object based on the target segmented image.

6. After the step of displaying the color of the first target object on the second target object, The method of claim 1 , further comprising the step of performing a Gaussian blur on the second target object.

7. After the step of displaying the color of the first target object on the second target object, The method of claim 1 , further comprising adding a target filter effect to the second target object.

8. The method of claim 1 , wherein the first target object comprises at least one of a hand-held object, a salient object, and an image body belonging to a first pre-defined body type in the image to be processed.

9. 2. The method of claim 1, wherein the second target object includes at least one of a body part of the target user in the processing target image, an item worn by the target user, a background region of the processing target image, and an image body belonging to a second preset body type.

10. An image processing device, a target image acquisition module configured to acquire a target image corresponding to the SFX of the target image in response to an SFX trigger operation for initiating the SFX of the target image; a color display module configured to, in response to detecting that the processing target image includes a first target object and a second target object, display a color of the first target object on the second target object; After displaying the color of the first target object on the second target object, the color display module further comprises: An image processing device configured to obtain a predetermined color-adjusted grayscale image and display the color-adjusted grayscale image on the second target object.

11. An electronic device, one or more processors; a storage device configured to store one or more programs; An electronic device that, when the one or more programs are executed by the one or more processors, causes the one or more processors to perform the image processing method according to claim 1 .

12. A computer-readable storage medium having a computer program stored thereon, the computer program implementing the image processing method of claim 1 when executed by a processor.

Citation Information

Patent Citations

  • Face image portrait-buffing method and device thereof, computer equipment and storage medium

    CN112150393A

  • Image processing method and device, electronic equipment and storage medium

    CN112184540A

  • Device and method for generating photograph seal

    JP2014131160A

  • Image processing apparatus

    JP2015213232A