Image processing method and device, electronic equipment and storage medium
By using an automatic image processing method, the problems of complexity and slow speed in creating creative special effects in existing technologies are solved, achieving efficient special effects generation without manual adjustments and a good user experience.
Patent Information
- Application Number
- CN202210316840.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-28
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2042-03-28
AI Technical Summary
In existing technologies, creating images or videos with creative special effects requires manual operation by professional users. The process is complex and the effects are slow to display, which affects the user experience.
By responding to the user's preset special effects trigger operation, the system obtains the special effects application image and displays the initial and target areas of the object transfer in the image. Upon receiving the object transfer trigger operation, the system automatically realizes the object transfer display and automatically generates scene special effects.
It enables the generation of special effects without the need for manual adjustments by professional users, improving the efficiency of special effects generation and user experience, and supports real-time special effects generation.
Smart Images

Figure CN114708290B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to the technical field of image processing, and particularly relate to an image processing method and device, an electronic device, and a storage medium. BACKGROUND
[0002] Currently, if a user wants to make a creative special effect image or video, the user can usually only use a specific making software such as Adobe AfterEffects, and manually performs post-processing on the image or video to generate a creative special effect.
[0003] However, this manual post-processing method requires a professional user to constantly interact with the making software, has a requirement for the user's professionalism, is complex in operation steps, is inconvenient to use, and needs to be manually processed again once the image or video changes, which relatively lags the special effect display speed and affects the user experience. SUMMARY
[0004] Embodiments of the present disclosure provide an image processing method and device, an electronic device, and a storage medium to automatically generate a scene special effect and improve the generation efficiency of the scene special effect.
[0005] In a first aspect, embodiments of the present disclosure provide an image processing method, comprising:
[0006] In response to a preset special effect trigger operation for triggering a target scene special effect of a target transfer object, a special effect application image corresponding to the target scene special effect is obtained.
[0007] An object transfer initial area and an object transfer target area for transferring the target transfer object are displayed in the special effect application image.
[0008] An object transfer trigger operation input based on the object transfer initial area is received, and the target transfer object is displayed by being transferred from the object transfer initial area to the object transfer target area based on the object transfer trigger operation.
[0009] In a second aspect, embodiments of the present disclosure further provide an image processing device, comprising:
[0010] A special effect application image acquisition module is configured to, in response to a preset special effect trigger operation for triggering a target scene special effect of a target transfer object, acquire a special effect application image corresponding to the target scene special effect.
[0011] A transfer area display module is configured to display an object transfer initial area and an object transfer target area for transferring the target transfer object in the special effect application image.
[0012] The transfer object transfer module is configured to receive an object transfer trigger operation based on the object transfer initial region input, and display the target transfer object transferred from the object transfer initial region to the object transfer target region based on the object transfer trigger operation.
[0013] In a third aspect, the present disclosure also provides an electronic device, which comprises:
[0014] one or more processors;
[0015] a storage device configured to store one or more programs,
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method provided by any of the embodiments of the present disclosure.
[0017] In a fourth aspect, the present disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the image processing method provided by any of the embodiments of the present disclosure.
[0018] The technical solution of the embodiments of the present disclosure responds to a preset special effect trigger operation of a user, acquires a special effect application image corresponding to a target scene special effect for triggering a target transfer object, displays an object transfer initial region and an object transfer target region for transferring the target transfer object in the special effect application image, and then displays the target transfer object transferred from the object transfer initial region to the object transfer target region according to an object transfer trigger operation received based on the object transfer initial region input, thereby automatically generating a scene special effect of a specific object in a transferred image. This method can be used to automatically generate a special effect of transferring a certain object, and solves the technical problems of complex operation steps and slow special effect display caused by manual processing of images in software in the prior art. Without manual adjustment of the special effect application image by the user, the effect of object transfer can be displayed in response to the object transfer trigger operation, the special effect can be automatically generated, the generation efficiency of the special effect is improved, and the method is universal for non-professional users, simple to operate, and improves the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present disclosure, the drawings needed in the description of the embodiments are briefly introduced below. Obviously, the drawings introduced are only a part of the drawings of the present disclosure to be described, and not all the drawings. For those skilled in the art, other drawings can be obtained without creative labor on the basis of these drawings.
[0020] Figure 1AA flowchart of an image processing method provided by Embodiment One of the present disclosure;
[0021] Figure 1B A schematic diagram of a target scene special effect provided by Embodiment One of the present disclosure;
[0022] Figure 1C A schematic diagram of another target scene special effect provided by Embodiment One of the present disclosure;
[0023] Figure 1D A schematic diagram of a target scene special effect of a three-dimensional image provided by Embodiment One of the present disclosure;
[0024] Figure 2 A flowchart of an image processing method provided by Embodiment Two of the present disclosure;
[0025] Figure 3 A flowchart of an image processing method provided by Embodiment Three of the present disclosure;
[0026] Figure 4 A flowchart of an image processing method provided by Embodiment Four of the present disclosure;
[0027] Figure 5 A structural schematic diagram of an image processing device provided by Embodiment Five of the present disclosure;
[0028] Figure 6 A structural schematic diagram of an electronic device provided by Embodiment Six of the present disclosure. DETAILED DESCRIPTION
[0029] Embodiments of the present disclosure will be described in more detail by referring to the attached drawings. Although certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be interpreted as being limited to the embodiments set forth herein, but rather these embodiments are provided to make the present disclosure more thorough and complete. It is understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not intended to limit the scope of protection of the present disclosure.
[0030] It is understood that each step recited in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0031] As used herein, the term "includes" and its variants are to be read to be analogous to "comprises," "comprising," "includes," "including," and "has," "having," "contains" or "containing." The term "based on" is to be interpreted as "based, at least in part, on." The term "one embodiment" means "at least one embodiment." The term "another embodiment" means "at least one additional embodiment." The term "some embodiments" means "at least some embodiments." Related terms have analogous meanings.
[0032] It should be noted that the terms "first", "second", and the like in the present disclosure are merely intended to distinguish different devices, modules, or units, and do not imply the sequence of functions performed by these devices, modules, or units. It should be noted that the terms "one", "multiple" in the present disclosure are illustrative and not limiting, and those skilled in the art should understand that "one" or "multiple" should be understood as "one or more" unless the context clearly indicates otherwise.
[0033] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0034] Embodiment one
[0035] FIG. 1 is a flowchart of an image processing method provided by an embodiment of the present disclosure. The present embodiment can be applied to automatically generating an image with a target scene effect based on a current image captured by a user, a current video captured by a user, a historical image uploaded by a user, or a historical video uploaded by a user. The method can be executed by an image processing device, which can be implemented by software and / or hardware, and can be configured in a terminal and / or a server to implement the image processing method in the present disclosure.
[0036] As shown in FIG. 1, the method of the present embodiment can specifically include:
[0037] S110, in response to a preset effect triggering operation for triggering a target scene effect of a target transfer object, an effect application image corresponding to the target scene effect is obtained.
[0038] The target scene effect can be a scene effect of transferring one or more target transfer objects in an image. Specifically, it can be to transfer one or more objects or part of the content of the objects displayed in a certain region of the image to another region of the image for display. For example, the target scene effect can be an entrance and exit object transfer effect, that is, an entrance display region and an exit display region can be set in the image, and objects or part of the content of the objects located in the entrance display region of the image are transferred to the exit display region of the image for display.
[0039] Of course, the target scene effect is not limited to the above-mentioned entrance and exit object transfer effect. For example, it can also be an object placement effect, that is, the display position of a specific object, facility or text in an image is replaced. For example, a user wants to change the position of furniture in a live broadcast image during live broadcast, and the method can be used to transfer the furniture in the live broadcast image to another area for display.
[0040] The target transfer object can be an object in the effect application image that needs to be transferred, including but not limited to objects, characters, text, part of the content in the object, and part of the part in the character in the effect application image. The target transfer object can be any object in the effect application image; it can also be a prominent object in the effect application image, such as a ship in a sea image and a cup on a table; or it can also be a specific object in the effect application image, such as a user's hand or head.
[0041] In the embodiments of the present disclosure, the preset effect trigger operation can be an operation performed by the user to trigger the generation of the target scene effect. Among them, the preset effect trigger operation can be an operation of triggering the preset effect generation control, such as displaying the preset effect generation control corresponding to each scene effect on the user display interface, and listening to whether the user triggers the preset effect generation control corresponding to the target scene effect. Alternatively, the preset effect trigger operation can also be an operation with a specific execution action, such as double-clicking the display interface, inputting a preset effect trigger trajectory on the display interface, etc. Alternatively, the preset effect trigger operation can also be an operation of uploading an image or a video by the user.
[0042] Specifically, the present embodiment can acquire an effect application image corresponding to the preset effect trigger operation in response to the preset effect trigger operation of the user. Among them, the effect application image can be an image currently captured by the user, or each video frame currently recorded by the user, or a picture in the live broadcast of the user, or a historical captured image uploaded by the user, or each video frame in the historical captured video uploaded by the user.
[0043] Taking the effect short video recording as an example, the preset effect generation control corresponding to the target scene effect can be displayed on the client used by the user. If it is detected that the user triggers the control, that is, the user performs the preset effect trigger operation, the current video frame in the user recording process is determined as the effect application image.
[0044] It can be understood that if the effect application image is the current video frame in the user recording process, the present embodiment can continuously acquire the current video frame in the user recording process to dynamically generate the target scene effect in the user recording process.
[0045] S120, display an object transfer initial area and an object transfer target area for transferring the target transfer object in the effect application image.
[0046] Specifically, after obtaining the special effect application image, the embodiment can display the object transfer initial region and the object transfer target region in the special effect application image. The object transfer initial region can be an initial region of the target transfer object in the special effect application image, that is, a transfer region corresponding to the target transfer object before transfer. Alternatively, the object transfer initial region can be a region adjacent to the display region where the target transfer object is located. The object transfer target region can be a region in the special effect application image where the target transfer object after transfer needs to be displayed.
[0047] The number of object transfer initial regions can be one or more, and the number of object transfer target regions can also be one or more. The correspondence between the object transfer initial region and the object transfer target region can be one-to-one, one-to-many, or many-to-one.
[0048] Exemplarily, when the number of object transfer initial regions and the number of object transfer target regions are both one, the target scene special effect can be to transfer the target transfer object from one object transfer initial region to one object transfer target region. As shown in Figure 1B , a schematic diagram of a target scene special effect is shown, and there is one object transfer initial region and one object transfer target region in the diagram.
[0049] When the number of object transfer initial regions is one and the number of object transfer target regions is multiple, the target scene special effect can be to simultaneously transfer the target transfer object from one object transfer initial region to multiple object transfer target regions. As shown in Figure 1C , another schematic diagram of a target scene special effect is shown, and there is one object transfer initial region and multiple object transfer target regions in the diagram.
[0050] When the number of object transfer initial regions is multiple and the number of object transfer target regions is one, the target scene special effect can be to simultaneously transfer each target transfer object from multiple object transfer initial regions to one object transfer target region.
[0051] When the number of object transfer initial regions is multiple and the number of object transfer target regions is multiple, and the number of the two is equal, the target scene special effect can be to simultaneously transfer each target transfer object from multiple object transfer initial regions to multiple object transfer target regions one-to-one. If the number of the two is not equal, first, each target transfer object can be simultaneously transferred from multiple object transfer initial regions to multiple object transfer target regions one-to-one, and then, a target transfer object can be randomly selected from one object transfer initial region to multiple object transfer target regions, or multiple target transfer objects can be randomly selected from multiple object transfer initial regions to one object transfer target region.
[0052] In the embodiments of the present disclosure, the region shape, region size, region color and the like of the object transfer initial region and the object transfer target region can be set according to the target scene special effect. For example, if the target scene special effect is an entrance and exit object transfer special effect, the object transfer initial region is a display region simulating an entrance shape and an entrance light effect, and the object transfer target region can be a display region simulating an exit shape and an exit light effect, such as an elliptical region with a light ring display effect. For another example, if the target scene special effect is an object placement special effect, the object transfer initial region and the object transfer target region can be display regions with a certain transparency.
[0053] It should be noted that in the embodiments of the present disclosure, the special effect application image can be a two-dimensional image or a three-dimensional image. Alternatively, when the special effect application image is a three-dimensional image, the object transfer initial region and the object transfer target region can be three-dimensional transfer spaces in the special effect application image. For example, the object transfer initial region can be a three-dimensional space containing a target transfer object, and the object transfer target region can be a three-dimensional space displaying the target transfer object after transfer.
[0054] Specifically, the present embodiment can be pre-set to set a fixed position for the object transfer initial region and the object transfer target region, and display the object transfer initial region and the object transfer target region at the fixed position in the special effect application image. Alternatively, the object transfer initial region and the object transfer target region can also be displayed according to a region selected or set by a user, and the like.
[0055] In an alternative embodiment, a salient object in the special effect application image can also be identified, and the object transfer initial region and / or the object transfer target region can be displayed based on the location of the salient object. For example, the location of the salient object and the object transfer initial region can satisfy a first preset spatial relationship; or the location of the salient object and the object transfer target region can satisfy a second preset control relationship; or the location of the salient object and the object transfer initial region can satisfy the first preset spatial relationship, and the object transfer initial region and the object transfer target region can satisfy a third preset control relationship.
[0056] For example, the object transfer initial region can be displayed according to the location of the salient object and the first preset spatial relationship, and the object transfer target region can be displayed according to a preset fixed position. Alternatively, the object transfer initial region can be displayed according to the location of the salient object and the first preset spatial relationship, and the object transfer target region can be displayed according to the object transfer initial region and the third preset spatial relationship, and the like.
[0057] For example, if the special effect application image is a two-dimensional image, the first preset spatial relationship can be covering the salient object, directly below the salient object, right of the salient object, and the like. If the special effect application image is a three-dimensional image, the first preset spatial relationship can be a plane on which the salient object is placed, or a space in which the salient object is covered, and the like.
[0058] Optionally, the method provided by the embodiments of the present disclosure can further include: receiving a first region adjustment operation for the object transfer initial region, adjusting the object transfer initial region or adjusting the object transfer initial region and the object transfer target region based on the first region adjustment operation; and / or receiving a second region adjustment operation for the object transfer target region, adjusting the object transfer target region or adjusting the object transfer initial region and the object transfer target region based on the second region adjustment operation.
[0059] The first region adjustment operation or the second region adjustment operation can be an operation of triggering a one-key adjustment control by a user. That is, if it is detected that a one-key adjustment control corresponding to the object transfer initial region or a one-key adjustment control of the object transfer target region is triggered by a user, it can be determined that the first region adjustment operation or the second region adjustment operation is received.
[0060] The first region adjustment operation or the second region adjustment operation can also be an operation of inputting or selecting a parameter by a user. That is, if it is detected that an adjustment parameter is inputted or selected by a user in a toolbar, it can be determined that the first region adjustment operation or the second region adjustment operation is received.
[0061] In the embodiments of the present disclosure, the first region adjustment operation or the second region adjustment operation can also be a manual adjustment operation of a user on a display interface of the special effect application image. For example, the first region adjustment operation or the second region adjustment operation can include at least one of a region rotation operation, a region scaling operation, and a region moving operation.
[0062] Specifically, taking the first region adjustment operation as an example, the first region adjustment operation can be determined to be received when a rotation operation of the object transfer initial region by a user on the display interface is acquired; or the first region adjustment operation can be determined to be received when a scaling operation of the object transfer initial region by a user on the display interface is acquired; or the first region adjustment operation can also be determined to be received when a drag operation (moving operation) of the object transfer initial region by a user on the display interface is acquired. In this way, the object transfer initial region or the object transfer target region can be adjusted based on the rotation, scaling, or moving operation of the user on the display interface, the individual needs of the user are met, and the user experience is further improved.
[0063] In the embodiments of the present disclosure, if the first region adjustment operation of the user is received, the object transfer initial region can be adjusted only according to the first region adjustment operation; or the object transfer initial region and the object transfer target region can also be adjusted according to the first region adjustment operation.
[0064] The object transfer initial region and the object transfer target region can be adjusted based on the first region adjustment operation, which can include determining a to-be-adjusted amount corresponding to the object transfer initial region based on the first region adjustment operation, the to-be-adjusted amount including at least one of a rotation angle, a scaling ratio, and a movement distance; and adjusting the object transfer initial region and the object transfer target region based on the to-be-adjusted amount.
[0065] Alternatively, a to-be-adjusted amount corresponding to the object transfer target region can be determined based on the to-be-adjusted amount corresponding to the object transfer initial region and a third preset spatial relationship between the object transfer initial region and the object transfer target region; the object transfer initial region can be adjusted based on the to-be-adjusted amount corresponding to the object transfer initial region, and the object transfer target region can be adjusted based on the to-be-adjusted amount corresponding to the object transfer target region.
[0066] In the embodiments of the present disclosure, if the second region adjustment operation of the user is received, the object transfer target region can be adjusted only according to the second region adjustment operation; or the object transfer initial region and the object transfer target region can also be adjusted according to the second region adjustment operation. The object transfer initial region and the object transfer target region can be adjusted based on the second region adjustment operation, which can include adjusting the object transfer initial region and the object transfer target region based on a to-be-adjusted amount corresponding to the object transfer target region in the second region adjustment operation; or adjusting the object transfer target region based on the to-be-adjusted amount corresponding to the object transfer target region in the second region adjustment operation, and determining a to-be-adjusted amount corresponding to the object transfer initial region based on the to-be-adjusted amount corresponding to the object transfer target region, and adjusting the object transfer initial region and the object transfer target region based on the to-be-adjusted amount corresponding to the object transfer initial region and the to-be-adjusted amount corresponding to the object transfer target region, respectively.
[0067] In this optional implementation, the automatic adjustment of the object transfer initial region and / or the object transfer target region according to the adjustment operation of the user is achieved, the individual needs of the user are met, and the use experience of the user is further improved.
[0068] It should be noted that the above receiving the user's adjustment operation on the object transfer initial area and / or the object transfer target area can also be performed after generating the target scene effect, that is, after generating the target scene effect, the object transfer initial area can be adjusted in real time according to the first area adjustment operation of the user, or the object transfer initial area and the object transfer target area can be adjusted; and / or, the object transfer target area is adjusted according to the second area adjustment operation of the user, or the object transfer initial area and the object transfer target area are adjusted, and the target scene effect is regenerated according to the adjusted object transfer initial area or object transfer target area.
[0069] S130, receiving an object transfer trigger operation input based on the object transfer initial area, and displaying the target transfer object from the object transfer initial area to the object transfer target area based on the object transfer trigger operation.
[0070] Wherein, the object transfer trigger operation can be that the target transfer object in the special effect application image is input to the object transfer initial area, or the target transfer object is input to the preset core area in the object transfer initial area, or the user triggers the corresponding transfer control.
[0071] Specifically, the object transfer trigger operation can be determined according to the operation performed by the user on the display interface, or can be automatically determined according to the target transfer object in the special effect application image. For example, if it is detected that the user drags the target transfer object in the special effect application image to the middle area of the object transfer initial area, it can be determined that the object transfer trigger operation is received. Alternatively, if it is detected that the target transfer object in the special effect application image moves to the middle area of the object transfer initial area, such as the user placing his hand in the middle area of the object transfer initial area during live streaming, it can be determined that the object transfer trigger operation is received. Alternatively, if the target transfer object is detected in the object transfer initial area, it can be determined that the object transfer trigger operation is received.
[0072] Specifically, after receiving the object transfer trigger operation, the target transfer object in the special effect application image can be displayed from the object transfer initial area to the object transfer target area based on the object transfer trigger operation.
[0073] Wherein, the pixel value of the target transfer object in the special effect application image can be copied to the object transfer target area to realize the transfer of the target transfer object from the object transfer initial area to the object transfer target area. Of course, the pixel value of the target transfer object in the object transfer initial area can also be deleted at the same time.
[0074] Optionally, if the special effect application image is a three-dimensional image, a SLAM (Simultaneous Localization and Mapping) method can be used to cut out the target transfer object; further, the target transfer object is transferred from the object transfer initial region to the object transfer target region. The cutting of the target transfer object can be understood as determining the three-dimensional spatial coordinates of the target transfer object, and cutting the target transfer object from the special effect application image according to the three-dimensional spatial coordinates.
[0075] It should be noted that the target transfer object is displayed by being transferred from the object transfer initial region to the object transfer target region, which can be displayed according to the initial display information such as the initial display size and the initial display color of the target transfer object in the object transfer target region. The display adjustment information of the target transfer object can also be determined according to the spatial relationship between the object transfer initial region and the object transfer target region, and the target transfer object is displayed in the object transfer target region based on the initial display information and the display adjustment information.
[0076] For example, if the special effect application image is a three-dimensional image and there is a visual depth difference between the object transfer initial region and the object transfer target region, the display size scaling amount of the target transfer object can be determined according to the visual depth difference, so that the transferred target transfer object is more consistent with the actual visual effect. For example, the object transfer initial region is in front and the object transfer target region is behind, so that the display size of the target transfer object can be reduced during the display of the transferred target transfer object, so that the display effect of the target transfer object in the three-dimensional image is more consistent with the actual visual effect, and the user experience is further improved.
[0077] For example, referring to Figure 1D , Figure 1D a schematic diagram of a target scene special effect of a three-dimensional image is shown, and it can be seen from the diagram that the display size of the target transfer object in the object transfer initial region is larger than the display size in the object transfer target region after being transferred.
[0078] In the embodiments of the present disclosure, when the size of the object transfer initial region is inconsistent with the size of the object transfer target region, the transferred target transfer object can be adaptively filled in the object transfer target region.
[0079] The technical solution of the embodiment, in response to a preset special effect trigger operation of a user, acquires a special effect application image corresponding to a target scene special effect for triggering a transfer target object, displays an object transfer initial area and an object transfer target area for the transfer target object in the special effect application image, and then displays the target transfer object from the object transfer initial area to the object transfer target area according to an object transfer trigger operation input based on the object transfer initial area, thereby realizing automatic generation of the scene special effect of a specific object in a transferred image. The method can be used to automatically generate a special effect for transferring an object, solves the technical problem that the prior art requires manual processing of an image in software to generate a special effect, improves the generation efficiency of the special effect, and does not require manual adjustment of the user, thereby reducing the complexity of the generation of the special effect.
[0080] In addition, compared with the method in the prior art in which a user can only perform post-processing on an image, the method can generate a target scene special effect in real time based on an image currently captured by the user, that is, the method can realize automatic generation of a special effect during real-time shooting of the user.
[0081] Embodiment Two
[0082] Figure 2 For the flowchart of the image processing method provided in Embodiment Two of the present disclosure, on the basis of any optional technical solution in the embodiments of the present disclosure, optionally, displaying the object transfer initial area and the object transfer target area of the target scene special effect in the special effect application image includes: when a transfer position display trigger operation for the special effect application image is received, displaying the object transfer initial area and the object transfer target area of the target scene special effect in the special effect application image.
[0083] Wherein, the explanations of the same or corresponding terms in the above embodiments are not repeated here.
[0084] As Figure 2 shown, the method of the embodiment can specifically include:
[0085] S210, in response to a preset special effect trigger operation for triggering a target scene special effect of a transfer target object, acquiring a special effect application image corresponding to the target scene special effect.
[0086] S220, when a transfer position display trigger operation for the special effect application image is received, displaying an object transfer initial area and an object transfer target area of the target scene special effect in the special effect application image.
[0087] The transfer position display trigger operation can be an operation of setting an object transfer initial area and / or an object transfer target area by a user. The transfer position display trigger operation can be an operation of inputting or selecting parameters in a given selection box by a user, or an operation of checking an area in the special effect application image by a user.
[0088] Specifically, a parameter toolbar for setting the object transfer initial area or a parameter toolbar for setting the object transfer target area can be displayed on a display interface of the special effect application image. The display position of the object transfer initial area or the object transfer target area can be determined according to parameters input or selected by a user in the parameter toolbar, and the object transfer initial area or the object transfer target area can be displayed based on the display position. Of course, a check operation of a user on the display interface of the special effect application image can also be listened to, and the area checked by the user can be determined as the object transfer initial area or the object transfer target area.
[0089] For example, when the transfer position display trigger operation for the special effect application image is received, the object transfer initial area and the object transfer target area of the target scene special effect are displayed in the special effect application image. For example, when a first position input operation of the object transfer initial area input for the special effect application image is received, the object transfer initial area of the target scene special effect is displayed in the special effect application image. For example, when a second position input operation of the object transfer target area input for the special effect application image is received, the object transfer target area of the target scene special effect is displayed in the special effect application image.
[0090] The first position input operation includes but is not limited to a parameter input operation, a parameter selection operation or an area check operation. The second position input operation includes but is not limited to a parameter input operation, a parameter selection operation or an area check operation. It should be noted that when only the first position input operation is received, the object transfer target area can be displayed according to a fixed position set in advance, or according to a third preset spatial relationship with the object transfer initial area. Correspondingly, when only the second position input operation is received, the object transfer initial area can be a fixed position or can be determined according to the third preset spatial relationship.
[0091] In this example embodiment, the object transfer initial area is displayed by acquiring the input first position input operation of the object transfer initial area, and / or the object transfer target area is displayed by acquiring the input second position input operation of the object transfer target area. The flexible display of the object transfer initial area and the object transfer target area is realized, the needs of different users can be met, and the generation of the target scene special effect meeting the individual needs is realized.
[0092] Optionally, the transfer position display trigger operation can also be automatically generated. For example, the transfer position display trigger operation can be automatically generated in the following ways: if the time length for obtaining the special effect application image exceeds a preset time threshold, the transfer position display trigger operation is generated; or, if it is determined that a preset special effect application subject exists in the special effect application image, the transfer position display trigger operation is generated; or, if it is determined that a preset special effect application subject exists in the special effect application image and the display time length of the special effect application subject in the special effect application image exceeds a preset time length, the transfer position display trigger operation is generated; or, if it is determined that a special effect application subject exists in a preset display region in the special effect application image, the transfer position display trigger operation is generated; or, if it is determined that a first preset positional relationship is met between the special effect application subject in the special effect application image and the object transfer initial region, the transfer position display trigger operation is generated; or, if it is determined that a second preset positional relationship is met between the special effect application subject in the special effect application image and the object transfer target region, the transfer position display trigger operation is generated, and the like.
[0093] Of course, the first position input operation and the second position input operation can also be automatically generated. For example, if it is determined that a first preset positional relationship is met between the special effect application subject in the special effect application image and the object transfer initial region, the first position input operation is generated; or, if it is determined that a second preset positional relationship is met between the special effect application subject in the special effect application image and the object transfer target region, the second position input operation is generated, and the like. The generation of the first position input operation and the second position input operation can refer to the examples of the transfer position display trigger operation described above.
[0094] S230, receiving an object transfer trigger operation input based on the object transfer initial region, and displaying the target transfer object in the object transfer target region based on the object transfer trigger operation.
[0095] The technical solution of the embodiment can display the object transfer initial region and the object transfer target region in the special effect application image based on the received transfer position display trigger operation for the special effect application image, so that the object transfer initial region and the object transfer target region can be displayed according to user needs, thereby achieving diversified display of the target scene special effect, meeting the personalized needs of users, and improving the user experience.
[0096] Embodiment Three
[0097] Figure 3This is a flowchart illustrating the image processing method provided in Embodiment 3 of this disclosure. Based on any optional technical solution in the embodiments of this disclosure, optionally, displaying the initial object transfer region and the target object transfer region of the target scene effect in the special effect image includes: displaying a pre-set initial object transfer region and the target object transfer region of the target scene effect in the special effect image.
[0098] The explanations of terms that are the same as or corresponding to those in the above embodiments will not be repeated here.
[0099] like Figure 3 As shown, the method in this embodiment may specifically include:
[0100] S310. In response to a preset effect triggering operation for triggering target scene effects of the target object, obtain an effect application image corresponding to the target scene effects.
[0101] S320. Display the pre-set object transfer initial area and object transfer target area of the target scene effect in the special effect image.
[0102] In this embodiment, the display positions of the initial object transfer area and the target object transfer area can be fixed, that is, they can be preset for the target scene effects. Specifically, the display positions of the initial object transfer area and the target object transfer area in the effect image can be preset, or the display size, display color, or display effect in the effect image can also be preset.
[0103] For example, the method provided in this embodiment may further include: pre-setting the display x-coordinate percentage and display y-coordinate percentage of the object transfer initial region and the object transfer target region in the image. For instance, the object transfer initial region may be pre-set to be displayed at 20% x-coordinate and 30% y-coordinate of an image, and the object transfer target region may be displayed at 60% x-coordinate and 30% y-coordinate of an image. Based on the pre-set display x-coordinate percentage and display y-coordinate percentage, the pre-set object transfer initial region and object transfer target region of the target scene effect are displayed in the effect application image.
[0104] The method provided in the embodiment can further include: setting the proportion of the object transfer initial area and the object transfer target area in the image in advance. For example, the proportion of the object transfer initial area in the image can be set to 10%, and the proportion of the object transfer target area in the image can be set to 8%. According to the proportions in the image set in advance, the display size of the object transfer initial area and the object transfer target area can be determined. Therefore, in the embodiment of the disclosure, the object transfer initial area and the object transfer target area of the target scene effect set in advance can be displayed in the special effect application image based on the preset display horizontal coordinate proportion, the display vertical coordinate proportion, and the proportion in the image.
[0105] S330, receiving an object transfer trigger operation input based on the object transfer initial area, and displaying the target transfer object from the object transfer initial area to the object transfer target area based on the object transfer trigger operation.
[0106] The technical solution of the embodiment can display the object transfer initial area and the object transfer target area of the target scene effect set in advance in the special effect application image after the special effect application image is acquired. The user does not need to manually configure the object transfer initial area and the object transfer target area, which reduces the user operation and further improves the generation efficiency of the target scene effect.
[0107] Embodiment Four
[0108] Figure 4 For the flowchart of the image processing method provided in the fourth embodiment of the disclosure, on the basis of any optional technical solution in the embodiments of the disclosure, optionally, the receiving an object transfer trigger operation input based on the object transfer initial area, and displaying the target transfer object from the object transfer initial area to the object transfer target area based on the object transfer trigger operation includes: receiving a movement operation of moving a special effect application subject in the special effect application image into the object transfer initial area; taking the special effect application subject moved into the object transfer initial area as the target transfer object, and displaying the target transfer object from the object transfer initial area to the object transfer target area.
[0109] Wherein, the explanations of the same or corresponding terms in the above embodiments are not repeated here.
[0110] As Figure 4 shown, the method of the embodiment can specifically include:
[0111] S410, in response to a preset special effect trigger operation for triggering the transfer of the target scene effect, acquiring a special effect application image corresponding to the target scene effect.
[0112] S420, display an object transfer initial region and an object transfer target region for transferring the target transfer object in the special effect application image.
[0113] S430, receive a movement operation of a special effect application subject in the special effect application image moving into the object transfer initial region, move the special effect application subject to a part in the object transfer initial region as a target transfer object, and display the target transfer object transferred from the object transfer initial region to the object transfer target region.
[0114] The special effect application subject can be an object that can be transferred in the special effect application image, including but not limited to a person, an object, a part of the person, or a part of the object. The embodiment can identify each subject in the special effect application image, and then filter the special effect application subject from each subject.
[0115] Specifically, the special effect application subject can be filtered from each subject by: taking a subject closest to the object transfer initial region in each subject as the special effect application subject. Alternatively, taking a subject meeting a preset subject feature in each subject as the special effect application subject; for example, a hand of a user. Alternatively, taking a salient subject in each subject as the special effect application subject; for example, a water cup on the ground. Alternatively, a reference subject is first determined in each subject, and then a subject meeting a preset spatial position relationship with the reference subject is taken as the special effect application subject; for example, the reference subject is the hand of the user, and the special effect application subject is a water cup held by the hand of the user.
[0116] In the embodiment of the present disclosure, the target transfer object can be determined according to a relative position relationship between each special effect application subject in the special effect application image and the object transfer initial region. Specifically, the special effect application subject in the object transfer initial region can be taken as the target transfer object.
[0117] Specifically, the movement operation of the special effect application subject moving into the object transfer initial region can be received. The movement operation can be a drag operation of the user for controlling the special effect application subject to move. The movement operation can also be automatically determined according to a motion trajectory of the special effect application subject in each special effect application image. For example, if the motion trajectory of the special effect application subject is to move into the object transfer initial region, it can be determined that the movement operation is received.
[0118] Further, after the movement operation is received, the special effect application subject can be moved to a part in the object transfer initial region as the target transfer object. It can be understood that the target transfer object can be the entire special effect application subject, or can be part of the special effect application subject, which can be determined according to the special effect application subject contained in the object transfer initial region.
[0119] Of course, the special effect application subject can also be moved to a part of the preset core area in the object transfer initial area as the target transfer object. For example, the object transfer initial area can be displayed in the form of multiple circles, the outer circle can represent the special effect of the entrance, and the inner circle can represent the inside of the entrance. Therefore, the special effect application subject can be moved to a part of the innermost circle as the target transfer object.
[0120] In an optional embodiment, the moving of the special effect application subject to a part in the object transfer initial area as the target transfer object comprises: segmenting the special effect application subject in the special effect application image that moves to the object transfer initial area, and taking the segmented special effect application subject as the target transfer object.
[0121] That is, the special effect application image can be subjected to image segmentation processing to segment the special effect application subject in the object transfer initial area, and further, the segmented special effect application subject is taken as the target transfer object. Further, after the target transfer object is segmented, the target transfer object can be directly moved to the object transfer target area, without using the pixel value copying method to realize the automatic transfer of the target transfer object. Alternatively, the entire object transfer initial area can be segmented, or only the special effect application subject in the object transfer initial area can be segmented.
[0122] Through the optional embodiment, the target transfer object can be quickly determined, and based on the segmented target transfer object, the transfer of the target scene special effect is facilitated, and the generation efficiency of the target scene special effect is further improved.
[0123] Of course, considering that directly segmenting the special effect application subject will cause a blank area in the special effect application image, therefore, in order to further improve the image display effect, the blank area can also be filled.
[0124] For example, in an embodiment, after the segmentation of the special effect application subject in the special effect application image that moves to the object transfer initial area, the method further comprises: performing background completion on the segmented area in the special effect application image.
[0125] The segmented area can be the transferred area in the object transfer initial area, that is, the initial area where the target transfer object is located. The background completion can be to fill the pixel values of the segmented area according to the pixel mean of the adjacent area of the segmented area, so that the pixel values of the segmented area are equal to the pixel mean of the adjacent area.
[0126] Of course, the segmented region in the special effect application image can also be directly filled based on preset pixel values. In another embodiment, the segmented region in the special effect application image can also be filled based on preset fill objects, where the preset fill objects can be objects that are preset for placement in the segmented region, such as a mosaic, a stick figure corresponding to the target transfer object, and the like.
[0127] In the above optional embodiment, by performing background completion on the segmented region in the special effect application image after segmenting the special effect application subject that moves into the object transfer initial region in the special effect application image, the blank region in the segmented object transfer initial region is filled, avoiding the existence of a blank in the target scene special effect generated image, and further improving the generation effect of the target scene special effect.
[0128] The technical scheme of the embodiment, by receiving a movement operation of a special effect application subject in a special effect application image moving into an object transfer initial region, and then taking the part of the special effect application subject moving into the object transfer initial region as a target transfer object, displaying the target transfer object moving from the object transfer initial region to an object transfer target region, realizes dynamic and real-time determination of the target transfer object, and further realizes automatic generation of a transfer special effect for the target transfer object, improving the generation efficiency of the target scene special effect.
[0129] Embodiment five
[0130] Figure 5 The structure schematic diagram of the image processing apparatus provided by the embodiment five of the present disclosure, the image processing apparatus provided by the embodiment can be realized by software and / or hardware, and can be configured in a terminal and / or a server to realize the image processing method in the embodiment of the present disclosure. The apparatus can specifically include: a special effect application image acquisition module 510, a transfer region display module 520, and a transfer object transfer module 530.
[0131] The special effect application image acquisition module 510 is configured to acquire a special effect application image corresponding to a target scene special effect in response to a preset special effect trigger operation for triggering the target scene special effect.
[0132] The transfer region display module 520 is configured to display an object transfer initial region and an object transfer target region for transferring the target transfer object in the special effect application image.
[0133] The transfer object transfer module 530 is configured to receive an object transfer trigger operation input based on the object transfer initial region, and display the target transfer object transferred from the object transfer initial region to the object transfer target region based on the object transfer trigger operation.
[0134] The technical solution of the embodiment responds to a preset special effect triggering operation of a user, acquires a special effect application image corresponding to a target scene special effect for triggering a transfer target transfer object, displays an object transfer initial area and an object transfer target area for the transfer target transfer object in the special effect application image, and then displays the target transfer object from the object transfer initial area to the object transfer target area according to an object transfer triggering operation input based on the object transfer initial area, to automatically generate a scene special effect of a specific object in a transfer image. The method can be used to automatically generate a special effect of a certain object, solves the technical problems of complex operation steps and slow special effect display caused by manual processing of an image in software in the prior art, can display the effect of object transfer and automatically generate a special effect in response to an object transfer triggering operation without manual adjustment of the special effect application image by the user, improves the generation efficiency of the special effect, is not limited to professional users, is universal, is simple to operate, and improves the user experience.
[0135] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the transfer area display module 520 includes a first display unit, and the first display unit is configured to display an object transfer initial area and an object transfer target area of the target scene special effect in the special effect application image when receiving a transfer position display triggering operation input for the special effect application image.
[0136] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the first display unit is specifically configured to:
[0137] display an object transfer initial area of the target scene special effect in the special effect application image when receiving a first position input operation of the object transfer initial area input for the special effect application image, and / or display an object transfer target area of the target scene special effect in the special effect application image when receiving a second position input operation of the object transfer target area input for the special effect application image.
[0138] On the basis of any optional technical solution in the embodiments of the present disclosure, optionally, the transfer area display module 520 includes a second display unit, and the second display unit is configured to display an object transfer initial area and an object transfer target area of the target scene special effect in the special effect application image.
[0139] Optionally, based on any of the optional technical solutions in the embodiments of the present disclosure, the object transfer module 530 comprises an operation receiving unit and an object transfer unit, the operation receiving unit is configured to receive a movement operation of a special effect application subject in the special effect application image moving into the object transfer initial region; and the object transfer unit is configured to move the special effect application subject into a part of the object transfer initial region as a target transfer object, and display the target transfer object from the object transfer initial region to the object transfer target region.
[0140] Optionally, based on any of the optional technical solutions in the embodiments of the present disclosure, the object transfer unit is further configured to segment the special effect application subject in the special effect application image moving into the object transfer initial region, and segment the special effect application subject as the target transfer object.
[0141] Optionally, based on any of the optional technical solutions in the embodiments of the present disclosure, the object transfer unit is further configured to, after segmenting the special effect application subject in the special effect application image moving into the object transfer initial region, perform background completion on the segmented region in the special effect application image.
[0142] Optionally, based on any of the optional technical solutions in the embodiments of the present disclosure, the apparatus further comprises a region adjustment module, the region adjustment module is configured to receive a first region adjustment operation for the object transfer initial region, adjust the object transfer initial region or adjust the object transfer initial region and the object transfer target region based on the first region adjustment operation; and / or receive a second region adjustment operation for the object transfer target region, adjust the object transfer target region or adjust the object transfer initial region and the object transfer target region based on the second region adjustment operation.
[0143] Optionally, based on any of the optional technical solutions in the embodiments of the present disclosure, the first region adjustment operation and / or the second region adjustment operation comprises at least one of a region rotation operation, a region scaling operation, and a region movement operation.
[0144] Optionally, based on any of the optional technical solutions in the embodiments of the present disclosure, when the special effect application image is a three-dimensional image, the object transfer initial region and the object transfer target region are three-dimensional transfer spaces in the special effect application image.
[0145] The apparatus described above can perform the method provided by any of the embodiments of the present disclosure, and has the corresponding function modules and beneficial effects of performing the method.
[0146] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.
[0147] Example 6
[0148] Figure 6 This is a schematic diagram of an electronic device provided in Embodiment Six of the present disclosure. Referring now to FIG6, an electronic device suitable for implementing embodiments of the present disclosure (e.g., [example device]) is shown. Figure 6 The diagram below shows the structure of the terminal device or server 600. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0149] like Figure 6 As shown, electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing unit 601, ROM 602, and RAM 603 are interconnected via bus 605. Edit / output (I / O) interface 604 is also connected to bus 605.
[0150] Typically, the following devices can be connected to I / O interface 604: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0151] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication apparatus 609, or installed from the storage apparatus 608, or installed from the ROM 602. When the computer program is executed by the processing apparatus 601, the above-mentioned functions defined in the methods of embodiments of the present disclosure are executed.
[0152] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.
[0153] The electronic device provided by the embodiments of the present disclosure and the image processing method provided by the above-mentioned embodiments belong to the same inventive concept, and the technical details not described in detail in the embodiments of the present disclosure can be referred to the above-mentioned embodiments, and the present embodiments have the same beneficial effects as the above-mentioned embodiments.
[0154] Embodiment Seven
[0155] The embodiments of the present disclosure provide a computer storage medium, which stores a computer program, and the program is executed by a processor to implement the image processing method provided by the above-mentioned embodiments.
[0156] It should be noted that the computer-readable medium described above can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the foregoing. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In the disclosure, the computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, in which the computer-readable program code is contained. Such a propagated data signal can take any of a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. The computer-readable signal medium can also be any computer-readable medium that is not a storage medium and that can communicate, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including, but not limited to, wire, cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
[0157] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.
[0158] The computer-readable medium described above can be included in the electronic device; or can exist separately from the electronic device, and can be accessed via the electronic device.
[0159] The computer-readable medium described above carries one or more programs, which when executed by the electronic device, cause the electronic device to:
[0160] In response to a preset special effect triggering operation for triggering a target special effect of a target transfer object, a special effect application image corresponding to the target special effect is acquired;
[0161] An object transfer initial area and an object transfer target area for transferring the target transfer object are displayed in the special effect application image;
[0162] An object transfer triggering operation based on the object transfer initial area is received, and the target transfer object is displayed by being transferred from the object transfer initial area to the object transfer target area based on the object transfer triggering operation.
[0163] Computer program code for carrying out operations of the present disclosure can be written in one or more programming languages or combinations of languages including object oriented programming languages such as Java, Smalltalk, C++ as well as conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0164] The flow and block diagrams in the drawings show architectural, functional, and operational representations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow and block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0165] The units described in the embodiments of the present disclosure can be implemented in the form of software, or can be implemented in the form of hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself, for example, the first acquisition unit can also be described as "a unit for acquiring at least two Internet protocol addresses".
[0166] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0167] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0168] According to one or more embodiments of the present disclosure, Example One provides an image processing method, which comprises:
[0169] In response to a preset special effect trigger operation for triggering a target scene special effect of a transfer target object, a special effect application image corresponding to the target scene special effect is acquired;
[0170] An object transfer initial area and an object transfer target area for transferring the target transfer object are displayed in the special effect application image;
[0171] An object transfer trigger operation input based on the object transfer initial area is received, and the target transfer object is displayed by being transferred from the object transfer initial area to the object transfer target area based on the object transfer trigger operation
[0172] According to one or more embodiments of the present disclosure, Example Two provides an image processing method, which further comprises:
[0173] Optionally, the displaying the object transfer initial region and the object transfer target region of the target scene effect in the special effect application image comprises:
[0174] When a transfer position display triggering operation for the special effect application image is received, the object transfer initial region and the object transfer target region of the target scene effect are displayed in the special effect application image.
[0175] According to one or more embodiments of the present disclosure, Example Three provides an image processing method, which further comprises:
[0176] Optionally, the displaying the object transfer initial region and the object transfer target region of the target scene effect in the special effect application image comprises:
[0177] When a first position input operation for the object transfer initial region input in the special effect application image is received, the object transfer initial region of the target scene effect is displayed in the special effect application image.
[0178] and / or,
[0179] When a second position input operation for the object transfer target region input in the special effect application image is received, the object transfer target region of the target scene effect is displayed in the special effect application image.
[0180] According to one or more embodiments of the present disclosure, Example Four provides an image processing method, which further comprises:
[0181] Optionally, the displaying the object transfer initial region and the object transfer target region of the target scene effect in the special effect application image comprises:
[0182] The object transfer initial region and the object transfer target region of the target scene effect are displayed in the special effect application image.
[0183] According to one or more embodiments of the present disclosure, Example Five provides an image processing method, which further comprises:
[0184] Optionally, the receiving an object transfer triggering operation input based on the object transfer initial region, and displaying the target transfer object from the object transfer initial region to the object transfer target region based on the object transfer triggering operation, comprises:
[0185] Receiving a movement operation of a special effect application subject in the special effect application image moving into the object transfer initial region;
[0186] Move the part of the special effect application subject in the object transfer initial area as a target transfer object, and display the target transfer object transferred from the object transfer initial area to the object transfer target area.
[0187] According to one or more embodiments of the present disclosure, Example Six provides an image processing method, the method further comprising:
[0188] Optionally, the moving the part of the special effect application subject in the object transfer initial area as a target transfer object comprises:
[0189] Segmenting the special effect application subject in the special effect application image moving into the object transfer initial area, and taking the segmented special effect application subject as the target transfer object.
[0190] According to one or more embodiments of the present disclosure, Example Seven provides an image processing method, the method further comprising:
[0191] Optionally, after the segmenting the special effect application subject in the special effect application image moving into the object transfer initial area, the method further comprises:
[0192] Performing background completion on the segmented area in the special effect application image.
[0193] According to one or more embodiments of the present disclosure, Example Eight provides an image processing method, the method further comprising:
[0194] Optionally, the method further comprises:
[0195] Receiving a first area adjustment operation for the object transfer initial area, and adjusting the object transfer initial area or adjusting the object transfer initial area and the object transfer target area based on the first area adjustment operation;
[0196] and / or,
[0197] Receiving a second area adjustment operation for the object transfer target area, and adjusting the object transfer target area or adjusting the object transfer initial area and the object transfer target area based on the second area adjustment operation.
[0198] According to one or more embodiments of the present disclosure, Example Nine provides an image processing method, the method further comprising:
[0199] Optionally, the first area adjustment operation and / or the second area adjustment operation comprises at least one of a region rotation operation, a region scaling operation, and a region moving operation.
[0200] According to one or more embodiments of this disclosure, [Example 10] provides an image processing method, which further includes:
[0201] Optionally, when the special effect image is a three-dimensional image, the initial region of object transfer and the target region of object transfer are the three-dimensional transfer space in the special effect image.
[0202] According to one or more embodiments of this disclosure, [Example 11] provides an image processing apparatus, the apparatus comprising:
[0203] The special effects application image acquisition module is used to acquire a special effects application image corresponding to the target scene special effects in response to a preset special effects triggering operation for triggering the target scene special effects of the transfer object.
[0204] The transfer area display module is used to display the initial object transfer area and the target object transfer area for transferring the target object in the special effect image;
[0205] The object transfer module is used to receive an object transfer trigger operation input based on the object transfer initial region, and transfer the target object from the object transfer initial region to the object transfer target region for display based on the object transfer trigger operation.
[0206] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0207] Furthermore, although the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0208] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. An image processing method, characterized by, The method comprises: in response to a preset special effect trigger operation for triggering a target scene special effect of a transfer target object, obtaining a special effect application image corresponding to the target scene special effect; the preset special effect trigger operation is an operation for triggering generation of a target scene special effect; displaying an object transfer initial area and an object transfer target area of the target scene special effect in the special effect application image; display information of the object transfer initial area and the object transfer target area is set according to the target scene special effect; the display information includes at least one of the following: area shape, area size, area color, area display effect and transparency; receiving an object transfer trigger operation input based on the object transfer initial area, displaying the target transfer object from the object transfer initial area to the object transfer target area based on the object transfer trigger operation, and performing a background completion operation on the area in the object transfer initial area where the target transfer object is located; wherein the background completion operation includes: filling the pixel value of the area where the target transfer object is located according to at least one of the following: a preset pixel value, a preset filling object, and a pixel mean value of an adjacent area of the area where the target transfer object is located.
2. The method of claim 1, wherein, The method comprises: when receiving a transfer position display trigger operation for the special effect application image, displaying the object transfer initial area and the object transfer target area of the target scene special effect in the special effect application image.
3. The method of claim 2, wherein, The method comprises: when receiving a first position input operation of the object transfer initial area input for the special effect application image, displaying the object transfer initial area of the target scene special effect in the special effect application image; and / or, when receiving a second position input operation of the object transfer target area input for the special effect application image, displaying the object transfer target area of the target scene special effect in the special effect application image.
4. The method of claim 1, wherein, The method comprises: displaying the object transfer initial area and the object transfer target area of the target scene special effect in the special effect application image.
5. The method of claim 1, wherein, The method comprises: displaying the object transfer initial area and the object transfer target area of the target scene special effect in the special effect application image. The method comprises: receiving a movement operation of a special effect application subject in the special effect application image moving into the object transfer initial area; moving the special effect application subject to a part in the object transfer initial area as a target transfer object, and displaying the target transfer object from the object transfer initial area to the object transfer target area.
6. The method of claim 5, wherein, The part of moving the special effect application subject into the object transfer initial region is taken as a target transfer object, comprising: Segmenting the special effect application subject in the special effect application image moving into the object transfer initial region, and taking the segmented special effect application subject as the target transfer object.
7. The method of claim 6, wherein, After the segmentation of the special effect application subject in the special effect application image moving into the object transfer initial region, further comprising: Performing background completion on the segmented region in the special effect application image.
8. The method of claim 1, wherein, Further comprising: Receiving a first region adjustment operation for the object transfer initial region, and adjusting the object transfer initial region or adjusting the object transfer initial region and the object transfer target region based on the first region adjustment operation; And / or, Receiving a second region adjustment operation for the object transfer target region, and adjusting the object transfer target region or adjusting the object transfer initial region and the object transfer target region based on the second region adjustment operation.
9. The method of claim 8, wherein, The first region adjustment operation and / or the second region adjustment operation comprises at least one of region rotation operation, region scaling operation and region moving operation.
10. The method of claim 1, wherein, When the special effect application image is a three-dimensional image, the object transfer initial region and the object transfer target region are three-dimensional transfer spaces in the special effect application image.
11. An image processing apparatus characterized by comprising: Comprising: An special effect application image acquisition module, configured to acquire a special effect application image corresponding to a target scene special effect in response to a preset special effect trigger operation for triggering the target scene special effect; the preset special effect trigger operation is an operation for triggering generation of a target scene special effect; A transfer region display module, configured to display an object transfer initial region and an object transfer target region for transferring a target transfer object in the special effect application image; display information of the object transfer initial region and the object transfer target region is set correspondingly according to the target scene special effect; the display information comprises at least one of the following: region shape, region size, region color, region display effect and transparency; A transfer object transfer module, configured to receive an object transfer trigger operation input based on the object transfer initial region, and display the target transfer object by transferring the target transfer object from the object transfer initial region to the object transfer target region based on the object transfer trigger operation; A background completion module, configured to perform a background completion operation on a region where the target transfer object is located in the object transfer initial region; wherein the background completion operation comprises: filling pixel values of the region where the target transfer object is located according to at least one of the following: a preset pixel value, a preset filling object and a pixel mean value of an adjacent region of the region where the target transfer object is located.
12. An electronic device, comprising: The electronic device comprises: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the image processing method as claimed in any one of claims 1-10.
13. A computer readable storage medium having stored thereon a computer program, characterized in that, The program, when executed by the processor, implements the image processing method according to any one of claims 1-10.
Citation Information
Patent Citations
Image processing method and device, electronic equipment and computer readable storage medium
CN112199016A
Image processing method and device and electronic equipment
CN113706553A
Cited By
Image processing method and apparatus, electronic device, and storage medium
WO2023185455A1