WO2023185455A1 - 图像处理方法、装置、电子设备及存储介质 - Google Patents

图像处理方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023185455A1
WO2023185455A1 PCT/CN2023/081371 CN2023081371W WO2023185455A1 WO 2023185455 A1 WO2023185455 A1 WO 2023185455A1 CN 2023081371 W CN2023081371 W CN 2023081371W WO 2023185455 A1 WO2023185455 A1 WO 2023185455A1
Authority
WO
WIPO (PCT)
Prior art keywords
transfer
area
special effect
target
object transfer
Prior art date
Application number
PCT/CN2023/081371
Other languages
English (en)
French (fr)
Inventor
卢智雄
谢一杰
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2023185455A1 publication Critical patent/WO2023185455A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Definitions

  • Embodiments of the present disclosure relate to the field of image processing technology, such as an image processing method, device, electronic device, and storage medium.
  • Embodiments of the present disclosure provide an image processing method, device, electronic device and storage medium to realize automatic generation of scene special effects and improve the generation efficiency of scene special effects.
  • an embodiment of the present disclosure provides an image processing method, including:
  • obtaining a special effect application image corresponding to the target scene special effect In response to a preset special effects triggering operation for triggering a target scene special effect, obtaining a special effect application image corresponding to the target scene special effect, wherein the target scene special effect is a special effect for transferring a target transfer object;
  • embodiments of the present disclosure also provide an image processing device, including:
  • a special effect application image acquisition module configured to obtain a special effect application image corresponding to the target scene special effect in response to a preset special effect triggering operation for triggering a target scene special effect, wherein the target scene special effect is to transfer a target transfer object special effects;
  • a transfer area display module 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
  • a transfer object transfer module configured to receive an object transfer trigger operation based on the object transfer initial area input, and transfer the target transfer object from the object transfer initial area to the object transfer target area based on the object transfer trigger operation. display.
  • embodiments of the present disclosure also provide an electronic device, which includes:
  • a storage device arranged to store at least one program
  • the at least one processor When the at least one program is executed by the at least one processor, the at least one processor is caused to implement the image processing method provided by any embodiment of the present disclosure.
  • embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the image processing method provided by any embodiment of the present disclosure is implemented.
  • Figure 1A is a schematic flowchart of an image processing method provided by Embodiment 1 of the present disclosure
  • Figure 1B is a schematic diagram of a target scene special effect provided by Embodiment 1 of the present disclosure
  • Figure 1C is a schematic diagram of another target scene special effect provided by Embodiment 1 of the present disclosure.
  • Figure 1D is a schematic diagram of a target scene special effect of a three-dimensional image provided by Embodiment 1 of the present disclosure
  • FIG. 2 is a schematic flowchart of an image processing method provided in Embodiment 2 of the present disclosure
  • Figure 3 is a schematic flow chart of an image processing method provided in Embodiment 3 of the present disclosure.
  • FIG. 4 is a schematic flowchart of an image processing method provided in Embodiment 4 of the present disclosure.
  • Figure 5 is a schematic structural diagram of an image processing device provided in Embodiment 5 of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 6 of the present disclosure.
  • the term “include” and its variations are open-ended, ie, “including but not limited to.”
  • the term “based on” means “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”; and the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • Figure 1 is a schematic flowchart of an image processing method provided by Embodiment 1 of the present disclosure.
  • This embodiment can be applied to images currently captured by the user, videos currently captured, historical images uploaded by the user, or historical videos uploaded by the 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 server to implement the embodiments of the present disclosure.
  • Image processing methods can be implemented by software and/or hardware, and can be configured in a terminal and/or server to implement the embodiments of the present disclosure.
  • the method in this embodiment may include:
  • the target scene special effect may be a scene special effect that transfers at least one target transfer object in the image.
  • at least one object displayed in a certain area in the image, or part of the content in the object may be transferred to another area in the image for display.
  • the target scene special effect can be an entrance and exit object transfer special effect, that is, the entrance display area and the exit display area can be set in the image, and the object or part of the object located in the entrance display area in the image can be transferred to the image. Displayed in the exit display area.
  • the target scene special effects are not limited to the above-mentioned entrance and exit object transfer special effects.
  • it can also be an object positioning effect, that is, position replacement, which changes the display position of specific items, facilities or text in the image.
  • position replacement which changes the display position of specific items, facilities or text in the image.
  • this method can be used to move the furniture in the live broadcast to another area for display.
  • the target transfer object may be an object that needs to be transferred in the special effect application image, including but not limited to objects, characters, text, part of the content of the object, and part of the character in the special effect application image.
  • the target transfer object can be any object in the special effect application image; it can also be a salient object in the special effect application image, such as the ship in the sea surface image and the cup on the table; or it can also be a specific object in the special effect application image. Objects, such as the user's hands or head, etc.
  • the preset special effect triggering operation may be an operation performed by the user to trigger the generation of the target scene special effect.
  • the preset special effects triggering operation may be an operation that triggers the preset special effects generation control, for example, displaying the preset special effects generation controls corresponding to each scene special effect on the user display interface, and detecting whether the user triggers the preset special effects corresponding to the target scene special effects.
  • Special effects generation control or, the preset special effects triggering operation can also be an operation with a specific execution action, such as double-clicking the display interface, inputting the preset special effects triggering trajectory on the display interface, etc.
  • the preset special effect triggering operation can also be an operation of the user uploading an image or video.
  • this embodiment can respond to a user's preset special effects triggering operation and obtain a special effect application image corresponding to the preset special effects triggering operation.
  • the special effect application image may be an image currently captured by the user, or each video frame in the video currently recorded by the user, or a picture in the user's live broadcast, or a historical captured image uploaded by the user, or a historical captured video uploaded by the user. of each video frame.
  • the preset special effects generation control corresponding to the target scene special effects 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 special effects triggering operation, the user The current video frame during recording is determined as the special effect application image.
  • this embodiment can continuously obtain the current video frame during user recording to dynamically generate target scene special effects during user recording.
  • this embodiment may display the object transfer initial area and the object transfer target area in the special effect application image.
  • the object transfer initial area may be the initial area where the target transfer object is located in the special effect application image, that is, the area corresponding to the target transfer object before transfer.
  • the object transfer initial area may be an area adjacent to the display area where the target transfer object is located before transfer.
  • the object transfer target area may be an area in the special effect application image that needs to display the transferred target transfer object.
  • the number of object transfer initial regions may be at least one, and the number of object transfer target regions may also be at least one.
  • the corresponding relationship between the object transfer initial area and the object transfer target area may be one-to-one, one-to-many, or many-to-one.
  • the target scene special effect may be to transfer the target transfer object from an object transfer initial area to an object transfer target area.
  • Figure 1B a schematic diagram of a target scene special effect is shown. In the figure, there is an object transfer initial area and an object transfer target area.
  • the target area The target scene special effect can be to transfer the target transfer object from an object transfer initial area to multiple object transfer target areas at the same time.
  • Figure 1C a schematic diagram of another target scene special effect is shown. In the figure, there is an object transfer initial area and multiple object transfer target areas.
  • the target scene special effect may be to transfer each target transfer object from multiple object transfer initial areas to one object transfer target area at the same time.
  • the target scene special effect can be to transfer each target transfer object from multiple objects to the initial area one-to-one. Simultaneously transfer to multiple object transfer target areas. If the numbers of the two are not equal, you can first transfer each target transfer object one-to-one from multiple object transfer initial areas to multiple object transfer target areas at the same time, and then randomly select a target transfer object from an object transfer initial area. Transfer to multiple object transfer target areas, or randomly select multiple target transfer objects to transfer from multiple object transfer initial areas to one object transfer target area.
  • the area shape, area size, area color and other information of the object transfer initial area and the object transfer target area can be set correspondingly according to the target scene special effects.
  • the target scene special effect is an entrance or exit object transfer special effect
  • the object transfer initial area can be a display area that simulates the entrance shape and entrance light effects
  • the object transfer target area can be a display area that simulates the exit shape and exit light effects, such as, An elliptical area with aperture display effects.
  • the target scene special effect is an object positioning special effect
  • the object transfer initial area and the object transfer target area can be display areas with a certain degree of transparency.
  • the special effect application image may be a two-dimensional image or a three-dimensional image.
  • the object transfer initial area and the object transfer target area may be a three-dimensional transfer space in the special effect application image.
  • the object transfer initial area may be a three-dimensional space containing the target transfer object
  • the object transfer target area may be a three-dimensional space displaying the transferred target transfer object.
  • the object transfer initial area and the object transfer target area may be set in advance. Set a fixed position, and display the object transfer initial area and object transfer target area at the fixed position in the special effect application image.
  • the object transfer initial area, the object transfer target area, etc. can also be displayed based on the area selected or set by the user.
  • salient objects in the special effect application image can also be identified, and the object transfer initial area and/or the object transfer target area are displayed based on the location of the salient objects.
  • the location of the salient object and the object transfer initial area can satisfy the first preset spatial relationship; or, the location of the salient object and the object transfer target area can satisfy the second preset spatial relationship; or, the salient object can satisfy the second preset spatial relationship.
  • the first preset spatial relationship can be satisfied between the location of the object transfer initial area and the object transfer initial area
  • the third preset spatial relationship can be satisfied between the object transfer initial area and the object transfer target area.
  • the object transfer initial area can be displayed according to the location of the salient object and the first preset spatial relationship, and the object transfer target area can be displayed according to the preset fixed position.
  • the object transfer initial area is displayed according to the location of the salient object and the first preset spatial relationship
  • the object transfer target area is displayed according to the object transfer initial area and the third preset spatial relationship, etc.
  • the first preset spatial relationship may be covering the salient object, directly below the salient object, to the right of the salient object, etc. If the special effect application image is a three-dimensional image, the first preset spatial relationship may be a plane on which the salient object is placed, or a space covering the salient object, etc.
  • the method provided by the embodiment of the present disclosure may further include: receiving a first area adjustment operation for the object transfer initial area, adjusting the object transfer initial area based on the first area adjustment operation or adjusting the object Transfer the initial area and the object transfer target area; and/or receive a second area adjustment operation for the object transfer target area, adjust the object transfer target area or adjust the object based on the second area adjustment operation Transfer initial area and transfer target area of the object.
  • the first area adjustment operation or the second area adjustment operation may be an operation in which the user triggers the one-click adjustment control. That is, if it is detected that the user triggers the one-click adjustment control corresponding to the object transfer initial area or the one-click adjustment control of the object transfer target area, it can be determined that the first area adjustment operation or Second area adjustment operation.
  • the first area adjustment operation or the second area adjustment operation may also be an operation in which the user enters or selects parameters; that is, if it is detected that the user enters adjustment parameters or selects adjustment parameters in the toolbar, it can be determined that the first area adjustment operation is received or second zone adjustment operation.
  • the first area adjustment operation or the second area adjustment operation may also be a manual adjustment operation performed by the user on the display interface of the special effect application image.
  • the first area adjustment operation and/or the second area adjustment operation may include at least one of an area rotation operation, an area scaling operation, and an area moving operation.
  • the first area adjustment operation it may be determined that the first area adjustment operation is received when the user's rotation operation for object transfer initial area on the display interface is obtained; or, it may be determined that the user's rotation operation on the display interface is obtained.
  • the zoom operation is performed on the initial area for object transfer
  • this method it is possible to adjust the object movement initial area or the object movement target area accordingly based on the user's rotation, scaling or movement operations on the display interface, thereby meeting the user's personalized needs and improving the user experience.
  • the initial area for object transfer can be adjusted only according to the first area adjustment operation; or, the initial area for object transfer can also be adjusted simultaneously according to the first area adjustment operation. Region and object transfer target region.
  • adjusting the object transfer initial area and the object transfer target area based on the first area adjustment operation may be: determining the amount to be adjusted corresponding to the object transfer initial area based on the first area adjustment operation, where the amount to be adjusted includes a rotation angle and a scaling ratio. and moving distance; adjusting the object transfer initial area and the object transfer target area based on the amount to be adjusted.
  • the amount to be adjusted corresponding to the object transfer target area determines the amount to be adjusted corresponding to the object transfer target area; based on the object transfer initial area
  • the adjustment object corresponding to the area to be adjusted is transferred to the initial area.
  • the object transfer target area is adjusted based on the amount to be adjusted corresponding to the object transfer target area.
  • the object transfer target area can be adjusted only according to the second area adjustment operation; or, the object transfer initialization area can also be adjusted simultaneously according to the second area adjustment operation. Region and object transfer target region.
  • simultaneously adjusting the object transfer initial area and the object transfer target area based on the second area adjustment operation may be based on the adjustment amount corresponding to the object transfer target area in the second area adjustment operation; or adjusting the object transfer initial area and the object transfer target area; or The object transfer target area may be adjusted based on the amount to be adjusted corresponding to the object transfer target area in the second area adjustment operation, and the amount to be adjusted corresponding to the object transfer initial area is determined based on the amount to be adjusted corresponding to the object transfer target area, based on the object transfer The adjustment object of the amount to be adjusted corresponding to the initial area is transferred to the initial area.
  • the object transfer initial area and/or the object transfer target area are automatically adjusted according to the user's adjustment operation, thereby meeting the user's personalized needs and improving the user's experience.
  • the above adjustment operation of receiving the user's object transfer initial area and/or object transfer target area can also be performed after the target scene special effects are generated. That is, after the target scene special effects are generated, the adjustment operation can be performed in real time according to the user's first
  • the first area adjustment operation adjusts the object transfer initial area, or adjusts the object transfer initial area and the object transfer target area; and/or adjusts the object transfer target area, or adjusts the object transfer initial area according to the user's second area adjustment operation. and object transfer target area, and regenerate the target scene special effects based on the adjusted object transfer initial area or object transfer target area.
  • the object transfer triggering operation may 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 a preset core area in the object transfer initial area, or the user triggers the corresponding transfer control.
  • the object transfer triggering operation may be determined based on the operation performed by the user on the display interface, or may be automatically determined based on 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 triggering operation is received. Or, 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 the live broadcast, it can be determined that the object transfer trigger has been received operate. Alternatively, if the target transfer object is detected in the object transfer initial area, it can be determined that the object transfer triggering operation is received.
  • the target transfer object in the special effect application image can be transferred from the object transfer initial area to the object transfer target area for display based on the object transfer trigger operation.
  • 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.
  • the target transfer can also be copied At the same time as the pixel value of the object, delete the pixel value of the target transfer object in the initial area of object transfer.
  • the SLAM Simultaneous Localization and Mapping
  • the SLAM Simultaneous Localization and Mapping method can be used to cut out the target transfer object; and transfer the target transfer object from the object transfer initial area to the object Transfer target area.
  • cutting the target transfer object can be understood as determining the three-dimensional space coordinates of the target transfer object, and segmenting the target transfer object from the special effect application image according to the three-dimensional space coordinates.
  • the target transfer object may be displayed in the object transfer target area according to the initial display size, initial display color and other initial display information of the target transfer object.
  • the display adjustment information of the target transfer object may also be determined based on the spatial relationship between the object transfer initial area and the object transfer target area, and the target transfer object may be displayed at the object transfer target area based on the initial display information and the display adjustment information.
  • the display size scaling amount of the target transfer object can be determined based on the visual depth difference, so that the transferred target Transferring objects is more consistent with actual visual effects. For example, if the object transfer initial area is in the front and the object transfer target area is in the back, then the display size of the target transfer object can be reduced during the process of displaying the transferred target transfer object, so that the display effect of the target transfer object in the three-dimensional image is better. It more satisfies the actual visual effects and improves the user experience.
  • Figure 1D shows a schematic diagram of a target scene special effect of a three-dimensional image. It can be seen from the figure that the display size of the target transfer object in the initial area of object transfer is larger than that in the object transfer target area after being transferred. display size in .
  • the transferred target transfer object may adaptively cover the object transfer target area.
  • the technical solution of this embodiment is to, in response to the user's preset special effect triggering operation, obtain the special effect application image corresponding to the target scene special effect used to trigger the transfer of the target transfer object, and display the object transfer used to transfer the target transfer object in the special effect application image.
  • the initial area and the object transfer target area and then according to the received object transfer trigger operation based on the object transfer initial area input, the target transfer object is transferred from the object transfer initial area to the object transfer target area for display, realizing the transfer of specific objects in the image.
  • Automatic generation of scene special effects This method can be used to automatically generate special effects for transferring an object. It solves the technical problem in related technologies that requires manual processing of images in software to generate special effects, improves the efficiency of special effects generation, and does not require users. Manual adjustment reduces the complexity of special effects generation.
  • this method can generate target scene special effects in real time based on the image currently taken by the user. That is, this method can realize the automatic generation of special effects during the user's real-time shooting process.
  • Figure 2 is a schematic flowchart of an image processing method provided in Embodiment 2 of the present disclosure. This embodiment is based on any optional technical solution in the embodiment of the present disclosure.
  • the special effect application diagram is described in Displaying the object transfer initial area and the object transfer target area of the target scene special effect in the image includes: when receiving a transfer position display trigger operation for the special effect application image, displaying the target scene in the special effect application image The object transfer initial area and object transfer target area of the special effect.
  • the method in this embodiment may include:
  • S220 When receiving a transfer position display triggering operation for the special effect application image, display the object transfer initial area and the object transfer target area of the target scene special effect in the special effect application image.
  • the transfer position display triggering operation may be an operation by the user to set the object transfer initial area and/or the object transfer target area.
  • the transfer position display trigger operation can be the user's operation of inputting or selecting parameters in a given selection box, or the user's operation of checking an area in the special effect application image.
  • a parameter toolbar for setting the initial area for object transfer can be displayed on the display interface of the special effect application image, or a parameter toolbar for setting the target area for object transfer can be displayed; according to the user's input in the parameter toolbar or The selected parameters determine the display position of the object transfer initial area or the object transfer target area, and the object transfer initial area or object transfer target area is displayed based on the display position.
  • the user's check operation on the display interface of the special effect application image can also be detected, and the area checked by the user can be determined as the object transfer initial area or the object transfer target area.
  • 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 Receive the first position input operation for the object transfer initial area input by the special effects application image, display the object transfer initial area of the target scene special effect in the special effects application image; and/or, when receiving the object transfer initial area for the special effects application image, When the second position input operation of the object transfer target area input by the special effect application image is performed, the corresponding target scene special effect is displayed in the special effect application image.
  • Image transfer target area 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 includes: when Receive the first position input operation for the object transfer initial area input by the special effects application image, display the object transfer initial area of the target scene special effect in the special effects application image; and/or, when receiving the object transfer initial area for the special effects application image, When the second position input operation of the object transfer target area input by the special effect application image is performed, the
  • the first position input operation includes but is not limited to parameter input operation, parameter selection operation or area check operation
  • the second position input operation includes but is not limited to parameter input operation, parameter selection operation or area check operation.
  • the object transfer target area can be displayed according to a preset fixed position, or displayed according to a third preset spatial relationship with the object transfer initial area.
  • the object transfer initial area may be a fixed position, or may be determined according to the third preset spatial relationship.
  • the object transfer initial area by obtaining the first position input operation of the input object transfer initial area, the object transfer initial area is displayed; and/or by obtaining the input second position input operation of the object transfer target area, the object transfer initial area is displayed.
  • the object transfer target area realizes the flexible display of the object transfer initial area and the object transfer target area, which can meet the needs of different users, thereby achieving the generation of target scene special effects that meet personalized needs.
  • the transfer location display triggering operation may also be automatically generated.
  • the transfer position display triggering operation can be automatically generated in the following manner: if the duration of acquiring the special effect application image exceeds a preset time threshold, the transfer position display triggering operation is generated; or, if it is determined that the special effect application image is If there is a preset special effect application subject, a transfer position display trigger operation is generated; or, if it is determined that there is a preset special effect application subject in the special effect application image, and the special effect application subject is displayed in the special effect application image
  • the duration exceeds the preset duration
  • a transfer position display trigger operation is generated; or, if it is determined that the special effect application subject exists in the preset display area in the special effect application image, a transfer position display trigger operation is generated; or, if the special effect application is determined If the first preset position relationship is satisfied between the special effect application subject in the image and the preset object transfer initial area, a transfer position display triggering operation is generated; or if it is determined that the special
  • the first position input operation and the second position input operation may also be automatically generated. For example, if it is determined that the special effect application subject in the special effect application image and the object transfer initial area satisfy the first preset position relationship, a first position input operation is generated; or if it is determined that the special effect application body in the special effect application image satisfies the first preset position relationship If the second preset position relationship between the subject and the object transfer target area is satisfied, the second position input operation is generated, etc.
  • the generation of the first position input operation and the second position input operation can be seen in the above example of the transfer position display trigger operation. .
  • the technical solution of this embodiment is to display the object transfer initial area and the object transfer target area in the special effect application image through the received transfer position display trigger operation for the special effect application image, so that the object transfer initial area and object transfer can be performed according to user needs.
  • the diversified display of the special effects of the target scene is realized to meet the user's personalized needs and improve the user experience.
  • Figure 3 is a schematic flowchart of an image processing method provided in Embodiment 3 of the present disclosure. This embodiment is based on any optional technical solution in the embodiment of the present disclosure.
  • the special effect application image is described in Displaying the object transfer initial area and object transfer target area of the target scene special effect includes: displaying the preset object transfer initial area and object transfer target area of the target scene special effect in the special effect application image.
  • the method in this embodiment may include:
  • S320 Display the preset object transfer initial area and object transfer target area of the target scene special effect in the special effect application image.
  • the display positions of the object transfer initial area and the object transfer target area may be fixed, that is, they may be preset for the target scene special effects.
  • the display positions of the object transfer initial area and the object transfer target area in the special effect application image may be preset, or, You can also preset the display size, display color or display effect of the object transfer initial area and the object transfer target area in the special effect application image.
  • the method provided by this embodiment may further include: presetting the display abscissa proportion and the display ordinate proportion of the object transfer initial area and the object transfer target area in the image.
  • the object transfer initial area can be preset to be displayed at 20% of the abscissa and 30% of the ordinate of an image, and the object transfer target area is displayed at 60% of the abscissa and 30% of the ordinate of an image.
  • the object transfer initial area and the object transfer target area of the preset target scene special effect are displayed in the special effect application image.
  • the method provided in this embodiment may also include: presetting the proportion of the object transfer initial area and the object transfer target area in the image. For example. You can preset the initial area for object transfer to account for 10% of the image, and the target area for object transfer to account for 8% of the image. Based on the preset proportions in the image, you can determine the initial area for object transfer and the object transfer area. The display size of the target area. Therefore, in the embodiment of the present disclosure, the object transfer initial area of the preset target scene special effect can be displayed in the special effect application image based on the preset display abscissa proportion, display ordinate proportion and proportion in the image. and object transfer target area.
  • S330 Receive an object transfer trigger operation based on the object transfer initial area input, and transfer the target transfer object from the object transfer initial area to the object transfer target area for display based on the object transfer trigger operation.
  • the technical solution of this embodiment can display the preset object transfer initial area and object transfer target area of the target scene special effect in the special effect application image after acquiring the special effect application image.
  • the user does not need to manually configure the object transfer initial area and object transfer area.
  • the target area reduces user operations and improves the efficiency of generating special effects for the target scene.
  • Figure 4 is a schematic flowchart of an image processing method provided in Embodiment 4 of the present disclosure.
  • This embodiment is based on any optional technical solution in the embodiment of the present disclosure.
  • the reception is based on the object transfer initialization.
  • the object transfer trigger operation input by the area, based on the object transfer trigger operation, the target
  • the target transfer object is transferred from the object transfer initial area to the object transfer target area for display, including: receiving a movement operation of the special effect application subject in the special effect application image to move into the object transfer initial area;
  • the special effect application body in the object transfer initial area is used as a target transfer object, and the target transfer object is transferred from the object transfer initial area to the object transfer target area for display.
  • the method in this embodiment may include:
  • the special effect application subject may be a transferable object in the special effect application image, including but not limited to characters, objects, parts of characters, or parts of objects.
  • This embodiment can identify each subject in the special effect application image, and then filter the special effect application subject from each subject.
  • filtering the special effect application subjects from each subject may be: taking the subject among each subject that is closest to the initial area of object transfer as the special effect application subject. Or, use the subject that meets the preset subject characteristics among the subjects as the special effect application subject; for example, the user's hand. Or, use the salient subjects among the subjects as special effect subjects; for example, the water glass on the ground. Or, first determine the reference subject among each subject, and then use the subject that satisfies the preset spatial position relationship with the reference subject as the special effect application subject; for example, the reference subject is the user's hand, and the special effect application subject is the water cup held by the user's hand. .
  • the target transfer object can apply various special effects in the image according to the special effects. It is determined by the relative positional relationship between the main body and the object transfer initial area.
  • the special effect application body located within the object transfer initial area may be used as the target transfer object.
  • a movement operation for the special effect application body to move within the object transfer initial area may be received.
  • the movement operation may be a drag operation used by the user to control the movement of the special effect application body; the movement operation may also be automatically determined based on the movement trajectory of the special effect application subject in each special effect application image.
  • the movement trajectory of the special effect application subject is the special effect application body. If the application body moves within the object transfer initial area, it can be determined that the move operation has been received.
  • the special effect application body can be moved to a part within the object transfer initial area as the target transfer object.
  • the target transfer object may be the entire special effect application body, or part of the special effect application body, and may be determined based on the special effect application body included in the initial area of object transfer.
  • the part of the special effect application body that is moved to the preset core area within the object transfer initial area can be used as the target transfer object.
  • the object transfer initial area can be displayed in the form of multiple apertures.
  • the outer aperture can represent the special effects of the entrance
  • the inner aperture can represent the inside of the entrance. Therefore, the part where the special effect application subject is moved to the innermost aperture can be used as a target transfer. object.
  • the moving the special effect application body to the part within the object transfer initial area as the target transfer object includes: moving the special effect application image to the object transfer initial area.
  • the special effect application body inside is divided, and the divided special effect application body is used as the target transfer object.
  • image segmentation processing can be performed on the special effect application image to segment the special effect application body within the object transfer initial area, and use the segmented special effect application body as the target transfer object.
  • the target transfer object can be directly moved to the object transfer target area, and automatic transfer of the target transfer object can be achieved without copying pixel values.
  • the entire object transfer initial area may be divided, or only the special effect application body within the object transfer initial area may be divided.
  • the target transfer object can be quickly determined, and based on The segmented target transfer object facilitates the transfer of target scene special effects and improves the generation efficiency of target scene special effects.
  • the blank area can also be filled.
  • the method further includes: performing segmentation on the segmented area in the special effect application image. Background completion.
  • the segmented area may be a transferred area in the object transfer initial area, that is, the initial area where the target transfer object is located.
  • the background completion may be to fill the pixel value of the segmented area according to the pixel mean value of the adjacent area of the segmented area, so that the pixel value of the segmented area is equal to the pixel mean value of its adjacent area.
  • the segmented area in the special effect application image can also be filled based on a preset filling object, where the preset filling object can be an object preset to be placed in the segmented area, such as , mosaic, simple drawing corresponding to the target transfer object, etc.
  • the technical solution of this embodiment is to receive the movement operation of the special effect application body in the special effect application image to move into the object transfer initial area, and then use the part where the special effect application body moves to the object transfer initial area as the target transfer object, and transfer the target
  • the transfer object is moved from the object transfer initial area to the object transfer target area for display, which realizes the dynamic and real-time determination of the target transfer object, and then realizes the automatic generation of transfer special effects for the target transfer object, improving the generation efficiency of the target scene special effects.
  • FIG. 5 is a schematic structural diagram of an image processing device provided in Embodiment 5 of the present disclosure.
  • the image processing device provided in this embodiment can be implemented by software and/or hardware, and can be configured in a terminal and/or server to implement the disclosure.
  • the device may include: a special effect application image acquisition module 510, a transfer area display module 520, and a transfer object transfer module 530.
  • the special effect application image acquisition module 510 is configured to obtain a special effect application image corresponding to the target scene special effect in response to a preset special effect triggering operation for triggering the target scene special effect, wherein the target scene special effect is performed on the target transfer object. Transfer special effects;
  • the transfer area display module 520 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;
  • the transfer object transfer module 530 is configured to receive an object transfer trigger operation based on the object transfer initial area input, and transfer the target transfer object from the object transfer initial area to the object transfer target based on the object transfer trigger operation. area is displayed.
  • the technical solution of this embodiment is to obtain a special effect application image corresponding to the target scene special effect in response to the user's preset special effects triggering operation for triggering the target scene special effect, and display the object transfer for transferring the target transfer object in the special effect application image.
  • the initial area and the object transfer target area and then according to the received object transfer trigger operation based on the object transfer initial area input, the target transfer object is transferred from the object transfer initial area to the object transfer target area for display, realizing the transfer of specific objects in the image.
  • Automatic generation of scene special effects This method can be used to automatically generate special effects for transferring an object. It solves the technical problems in related technologies that require humans to process images in software, resulting in complex operation steps and slow speed of special effects display, without the need for users.
  • the transfer area display module 520 includes a first display unit, and the first display unit is configured to When the transfer position display of the image triggers the operation, 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.
  • the first display unit is set to:
  • the transfer area display module 520 includes a second display unit, and the second display unit is configured to display in the special effect application image.
  • the object transfer initial area and the object transfer target area of the target scene special effects are preset.
  • the transfer object transfer module 530 includes an operation receiving unit and an object transfer unit, wherein the operation receiving unit is configured to receive the special effect The movement operation of moving the special effect application body in the application image to the object transfer initial area; the object transfer unit is configured to move the special effect application body to the object transfer initial area as the target transfer object , the target transfer object is transferred from the object transfer initial area to the object transfer target area for display.
  • the object transfer unit is also configured to segment the special effect application subject in the special effect application image that moves to the object transfer initial area. , using the segmented special effect application body as the target transfer object.
  • the object transfer unit is further configured to move the special effect application within the object transfer initial area in the special effect application image. After the subject is segmented, background completion is performed on the segmented area in the special effect application image.
  • the device further includes a region adjustment module configured to receive a first region adjustment for the object transfer initial region. operation, adjusting the object transfer initial area based on the first area adjustment operation or or adjust the object transfer initial area and the object transfer target area; and/or receive a second area adjustment operation for the object transfer target area, and adjust the object transfer target area based on the second area adjustment operation Or adjust the object transfer initial area and the object transfer target area.
  • a region adjustment module configured to receive a first region adjustment for the object transfer initial region. operation, adjusting the object transfer initial area based on the first area adjustment operation or or adjust the object transfer initial area and the object transfer target area; and/or receive a second area adjustment operation for the object transfer target area, and adjust the object transfer target area based on the second area adjustment operation Or adjust the object transfer initial area and the object transfer target area.
  • the first area adjustment operation and/or the second area adjustment operation includes an area rotation operation, an area scaling operation, and an area moving operation. at least one of.
  • the object transfer initial area and the object transfer target area are the special effect application image. in the three-dimensional transfer space.
  • the above-mentioned device can execute the method provided by any embodiment of the present disclosure, and has corresponding functional modules for executing the method.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by Embodiment 6 of the present disclosure.
  • Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), PAD (tablet computers), portable multimedia players (Portable Media Player , PMP), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (Television, TV), desktop computers, etc.
  • PDA Personal Digital Assistant
  • PAD tablet computers
  • PMP portable multimedia players
  • mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals)
  • fixed terminals such as digital televisions (Television, TV), desktop computers, etc.
  • the electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601, which may be stored in a read-only memory (Read-Only Memory, ROM) 602. or a program loaded from the storage device 608 into the random access memory (Random Access Memory, RAM) 603 to execute various appropriate actions and processes.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, the ROM 602 and the RAM 603 are connected to each other via a bus 605.
  • An editing/output (I/O) interface 604 is also connected to bus 605.
  • the following devices can be connected to the I/O interface 604: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD) , an output device 607 such as a speaker, a vibrator, etc.; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602.
  • the processing device 601 When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.
  • 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.
  • Technical details that are not described in detail in the embodiments of the present disclosure can be referred to the above-mentioned embodiments.
  • Embodiments of the present disclosure provide a computer storage medium on which a computer program is stored.
  • the program is executed by a processor, the image processing method provided by the above embodiments is implemented.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof.
  • Computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmable read-only memory ((Erasable Programmable Read-Only Memory, EPROM) or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or the above any suitable combination.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communications e.g., communications network
  • Examples of communication networks include Local Area Networks (LANs), Wide Area Networks (WANs), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any current network for knowledge or future research and development.
  • LANs Local Area Networks
  • WANs Wide Area Networks
  • the Internet e.g., the Internet
  • end-to-end networks e.g., ad hoc end-to-end networks
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries at least one program.
  • the electronic device executes the above-mentioned at least one program.
  • obtaining a special effect application image corresponding to the target scene special effect In response to a preset special effects triggering operation for triggering a target scene special effect, obtaining a special effect application image corresponding to the target scene special effect, wherein the target scene special effect is a special effect for transferring a target transfer object;
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C” or similar programming languages.
  • the program code may 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.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as an Internet service provider through Internet connection
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or can be implemented by Achieved by a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware.
  • the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first acquisition unit can also be described as "the unit that acquires at least two Internet Protocol addresses.”
  • exemplary types of hardware logic components include: field programmable gate array (Field Programmable Gate Array, FPGA), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), application specific standard product (Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • Example 1 provides an image processing method, which includes:
  • a special effect application image corresponding to the target scene special effect is obtained, wherein the target scene special effect is to transform the target transfer object.
  • Example 2 provides an image processing method, which further includes:
  • 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:
  • Example 3 provides an image processing method, which further includes:
  • 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:
  • the object transfer target area of the target scene special effect is displayed in the special effects application image.
  • Example 4 provides an image processing method, which further includes:
  • 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:
  • the preset object transfer initial area and object transfer target area of the target scene special effect are displayed in the special effect application image.
  • Example 5 provides an image processing method, which further includes:
  • the object transfer triggering operation input based on the object transfer initial area is received, and the target transfer object is transferred from the object transfer initial area to the object transfer target area based on the object transfer trigger operation.
  • Display including:
  • the part of the special effect application body moved into the object transfer initial area is used as a target transfer object, and the target transfer object is transferred from the object transfer initial area to the object transfer target area for display.
  • Example 6 provides an image processing method, which further includes:
  • moving the special effect application body to the part within the object transfer initial area as the target transfer object includes:
  • the special effect application subject in the special effect application image that moves into the object transfer initial area is segmented, and the segmented special effect application subject is used as the target transfer object.
  • Example 7 provides an image processing method, which further includes:
  • the method further includes:
  • Example 8 provides an image processing method, which further includes:
  • Optional also includes:
  • a second area adjustment operation for the object transfer target area is received, and the object transfer target area is adjusted based on the second area adjustment operation or the object transfer initial area and the object transfer target area are adjusted.
  • Example 9 provides an image processing method, which further includes:
  • the first area adjustment operation and/or the second area adjustment operation includes at least one of an area rotation operation, an area scaling operation, and an area moving operation.
  • Example 10 provides an image processing method, which further includes:
  • the object transfer initial area and the object transfer target area are the three-dimensional transfer space in the special effect application image.
  • Example 11 provides an image processing device, which includes:
  • a special effect application image acquisition module configured to obtain a special effect application image corresponding to the target scene special effect in response to a preset special effect triggering operation for triggering a target scene special effect, wherein the target scene special effect is to transfer a target transfer object special effects;
  • a transfer area display module 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
  • a transfer object transfer module configured to receive an object transfer trigger operation based on the object transfer initial area input, and transfer the target transfer object from the object transfer initial area to the object transfer target area based on the object transfer trigger operation. display.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本公开实施例公开了一种图像处理方法、装置、电子设备及存储介质,其中,该方法包括:响应于用于触发目标场景特效的预设特效触发操作,获取与目标场景特效对应的特效应用图像,其中,目标场景特效为对目标转移对象进行转移的特效;在特效应用图像中显示用于转移目标转移对象的对象转移初始区域和对象转移目标区域,进而根据接收到的基于对象转移初始区域输入的对象转移触发操作,将目标转移对象由对象转移初始区域转移至对象转移目标区域进行显示。

Description

图像处理方法、装置、电子设备及存储介质
本公开要求在2022年3月28日提交中国专利局、申请号为202210316840.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本公开中。
技术领域
本公开实施例涉及图像处理技术领域,例如涉及一种图像处理方法、装置、电子设备及存储介质。
背景技术
目前,用户若想制作创意特效的图像或视频,通常只能使用诸如Adobe After Effects等特定的制作软件,手动对图像或视频进行后期处理,生成创意特效。
然而,这种手动后处理的方式需要专业用户不断与制作软件进行交互,对用户专业性有要求,操作步骤复杂,使用不便,而且一旦图像或视频发生变化时,需要重新手动处理,特效展示速度相对滞后,影响用户体验。
发明内容
本公开实施例提供了一种图像处理方法、装置、电子设备及存储介质,以实现场景特效的自动生成,提高场景特效的生成效率。
第一方面,本公开实施例提供了一种图像处理方法,包括:
响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转 移目标区域进行显示。
第二方面,本公开实施例还提供了一种图像处理装置,包括:
特效应用图像获取模块,设置为响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
转移区域显示模块,设置为于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
转移对象转移模块,设置为接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
第三方面,本公开实施例还提供了一种电子设备,该电子设备包括:
至少一个处理器;
存储装置,设置为存储至少一个程序,
当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现本公开任意实施例所提供的图像处理方法。
第四方面,本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现本公开任意实施例所提供的图像处理方法。
附图说明
图1A为本公开实施例一所提供的一种图像处理方法的流程示意图;
图1B为本公开实施例一所提供的一种目标场景特效的示意图;
图1C为本公开实施例一所提供的另一种目标场景特效的示意图;
图1D为本公开实施例一所提供的一种三维图像的目标场景特效的示意图;
图2是为本公开实施例二所提供的一种图像处理方法的流程示意图;
图3是为本公开实施例三所提供的一种图像处理方法的流程示意图;
图4是为本公开实施例四所提供的一种图像处理方法的流程示意图;
图5是为本公开实施例五所提供的一种图像处理装置的结构示意图;
图6是为本公开实施例六所提供的一种电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“至少一个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
实施例一
图1为本公开实施例一所提供的一种图像处理方法的流程示意图,本实施例可适用于根据用户当前拍摄的图像、当前拍摄的视频、用户上传的历史图像或用户上传的历史视频,自动生成具备目标场景特效的图像的情况,该方法可以由图像处理装置来执行,该装置可以通过软件和/或硬件来实现,可配置于终端和/或服务器中来实现本公开实施例中的图像处理方法。
如图1所示,本实施例的方法可包括:
S110、响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效。
其中,目标场景特效可以是对图像中的至少一个目标转移对象进行转移的场景特效。例如,可以是将图像中的某个区域中显示的至少一个对象,或对象中的部分内容转移到图像中的另一个区域进行显示。示例性的,目标场景特效可以是入口出口对象转移特效,即可以在图像中设置入口显示区域和出口显示区域,将图像中位于入口显示区域处的对象或对象中的部分内容,转移到图像中的出口显示区域处进行显示。
当然,目标场景特效并不局限于上述入口出口对象转移特效。例如,还可以是物体置位特效,即置换位置,对图像中特定物品、设施或文字的显示位置进行更换。示例性的,用户在直播过程中想更换直播画面中的家具摆设位置,则可以采用本方法将直播画面中的家具转移到另一区域进行显示。
目标转移对象可以是特效应用图像中需要转移的对象,其包括但不限于特效应用图像中的物体、人物、文字、物体中的部分内容和人物中的部分部位。目标转移对象可以是特效应用图像中的任一对象;还可以是特效应用图像中的显著对象,如,海面图像中的船只以及桌子上的杯子等;或者,也可以是特效应用图像中的特定对象,如,用户的手部或头部等。
在本公开实施例中,预设特效触发操作可以是用户执行的用于触发目标场景特效的生成的操作。其中,预设特效触发操作可以是触发预设特效生成控件的操作,如,在用户显示界面上展示与各场景特效对应的预设特效生成控件,检测用户是否触发与目标场景特效对应的预设特效生成控件。又或者,预设特效触发操作还可以是具备特定执行动作的操作,如,双击显示界面、在显示界面上输入预设特效触发轨迹等。又或者,预设特效触发操作还可以是用户上传图像或视频的操作。
示例性的,本实施例可以响应于用户的预设特效触发操作,获取与该预设特效触发操作对应的特效应用图像。其中,特效应用图像可以是用户当前拍摄的图像,或,用户当前录制的视频中各视频帧,或用户直播中的画面,或,用户上传的历史拍摄图像,或,用户上传的历史拍摄视频中的各个视频帧。
以特效短视频录制为例,可以是在用户所使用的客户端上显示目标场景特效对应的预设特效生成控件,若检测到用户触发该控件,即用户执行预设特效触发操作,则将用户录制过程中的当前视频帧确定为特效应用图像。
可以理解的是,若特效应用图像为用户录制过程中的当前视频帧,则本实施例可以连续获取用户录制过程中的当前视频帧,以在用户录制过程中动态生成目标场景特效。
S120、于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域。
在获取到特效应用图像后,本实施例可以在特效应用图像中显示对象转移初始区域和对象转移目标区域。其中,对象转移初始区域可以是特效应用图像中目标转移对象所在的初始区域,即,转移前的目标转移对象对应的区域。可选地,对象转移初始区域可以是转移前目标转移对象所在的显示区域的临近区域。对象转移目标区域可以是特效应用图像中需要显示转移后的目标转移对象的区域。
其中,对象转移初始区域的数量可以为至少一个,对象转移目标区域的数量也可以为至少一个。对象转移初始区域与对象转移目标区域之间的对应关系可以为一对一,也可以为一对多或者多对一。
示例性地,当对象转移初始区域和对象转移目标区域的数量均为一个时,目标场景特效可以是将目标转移对象从一个对象转移初始区域转移到一个对象转移目标区域。如图1B所示,展示了一种目标场景特效的示意图,图中存在一个对象转移初始区域和一个对象转移目标区域。
当对象转移初始区域的数量为一个,对象转移目标区域的数量为多个,目 标场景特效可以是将目标转移对象从一个对象转移初始区域同时转移到多个对象转移目标区域。如图1C所示,展示了另一种目标场景特效的示意图,图中存在一个对象转移初始区域和多个对象转移目标区域。
当对象转移初始区域的数量为多个,对象转移目标区域的数量为一个,目标场景特效可以是将各个目标转移对象从多个对象转移初始区域同时转移到一个对象转移目标区域。
当对象转移初始区域的数量为多个,对象转移目标区域的数量为多个时,且二者数量相等时,目标场景特效可以是将各个目标转移对象一对一地从多个对象转移初始区域同时转移到多个对象转移目标区域。若二者数量不相等,则可以在先将各个目标转移对象一对一地从多个对象转移初始区域同时转移到多个对象转移目标区域之后,随机选择一个目标转移对象从一个对象转移初始区域转移到多个对象转移目标区域,或者,随机选择多个目标转移对象从多个对象转移初始区域转移到一个对象转移目标区域。
在本公开实施例中,对象转移初始区域和对象转移目标区域的区域形状、区域大小、区域颜色等信息可以根据目标场景特效进行对应设置。例如,若目标场景特效为入口出口对象转移特效,则对象转移初始区域可以是模拟入口形状、入口光效的显示区域,对象转移目标区域可以是模拟出口形状、出口光效的显示区域,如,具备光圈显示效果的椭圆形区域。又比如,若目标场景特效为物体置位特效,则对象转移初始区域和对象转移目标区域可以是具备一定透明度的显示区域。
需要说明的是,在本公开实施例中,特效应用图像可以是二维图像,也可以是三维图像。可选地,当所述特效应用图像为三维图像时,所述对象转移初始区域和所述对象转移目标区域可以为所述特效应用图像中的三维转移空间。例如,对象转移初始区域可以是包含目标转移对象的三维空间,对象转移目标区域可以是显示转移后的目标转移对象的三维空间。
示例性的,本实施例可以预先为对象转移初始区域和对象转移目标区域设 置固定位置,在特效应用图像中的固定位置处显示对象转移初始区域和对象转移目标区域。或者,还可以根据用户选取或设定的区域,显示对象转移初始区域和对象转移目标区域,等。
在一种可选的实施方式中,还可以对特效应用图像中的显著物体进行识别,基于显著物体的所在位置显示对象转移初始区域和/或对象转移目标区域。如,显著物体的所在位置和对象转移初始区域之间可以满足第一预设空间关系;或,显著物体的所在位置和对象转移目标区域之间可以满足第二预设空间关系;或,显著物体的所在位置和对象转移初始区域之间可以满足第一预设空间关系,且对象转移初始区域与对象转移目标区域之间满足第三预设空间关系。
示例性的,可以根据显著物体的所在位置以及第一预设空间关系显示对象转移初始区域,根据预设的固定位置显示对象转移目标区域。或者,根据显著物体的所在位置以及第一预设空间关系显示对象转移初始区域,根据对象转移初始区域以及第三预设空间关系显示对象转移目标区域,等。
举例来说,若特效应用图像为二维图像,则第一预设空间关系可以是覆盖显著对象、显著对象的正下方、显著对象的右方等。若特效应用图像为三维图像,则第一预设空间关系可以是放置显著对象的平面,或者,覆盖显著对象的空间等。
可选的,本公开实施例提供的方法还可以包括:接收针对所述对象转移初始区域的第一区域调整操作,基于所述第一区域调整操作调整所述对象转移初始区域或者调整所述对象转移初始区域和所述对象转移目标区域;和/或,接收针对所述对象转移目标区域的第二区域调整操作,基于所述第二区域调整操作调整所述对象转移目标区域或者调整所述对象转移初始区域和所述对象转移目标区域。
其中,第一区域调整操作或第二区域调整操作可以是用户触发一键调整控件的操作。即,若检测到用户触发对象转移初始区域对应的一键调整控件或对象转移目标区域对象的一键调整控件,则可以确定接收到第一区域调整操作或 第二区域调整操作。
第一区域调整操作或第二区域调整操作也可以是用户录入或选取参数的操作;即,若检测到用户在工具栏中录入调整参数或选择调整参数,则可以确定接收到第一区域调整操作或第二区域调整操作。
在本公开实施例中,第一区域调整操作或第二区域调整操作还可以是用户在特效应用图像的显示界面上的手动调整操作。如,第一区域调整操作和/或第二区域调整操作可以包括区域旋转操作、区域缩放操作以及区域移动操作中的至少一项。
以第一区域调整操作为例,可以是在获取到用户在显示界面上针对对象转移初始区域的旋转操作时,确定接收到第一区域调整操作;或者,可以是在获取到用户在显示界面上针对对象转移初始区域的缩放操作时,确定接收到第一区域调整操作;又或者,还可以是在获取到用户在显示界面上针对对象转移初始区域的拖拽操作(移动操作)时,确定接收到第一区域调整操作。通过该方式,可以实现基于用户在显示界面上的旋转、缩放或移动操作,对对象移动初始区域或对象移动目标区域进行相应的调整,满足了用户的个性化需求,提高了用户使用体验。
在本公开实施例中,若接收到用户的第一区域调整操作,则可以仅根据该第一区域调整操作调整对象转移初始区域;或者,还可以根据该第一区域调整操作同时调整对象转移初始区域和对象转移目标区域。
其中,基于第一区域调整操作调整对象转移初始区域和对象转移目标区域,可以是:基于第一区域调整操作确定对象转移初始区域对应的待调整量,所述待调整量包括旋转角度、缩放比例和移动距离中的至少一项;基于所述待调整量对对象转移初始区域和对象转移目标区域进行调整。
或者,基于对象转移初始区域对应的待调整量,以及对象转移初始区域与对象转移目标区域之间的第三预设空间关系,确定所述对象转移目标区域对应的待调整量;基于对象转移初始区域对应的待调整量调整对象转移初始区域, 基于对象转移目标区域对应的待调整量调整对象转移目标区域。
在本公开实施例中,若接收到用户的第二区域调整操作,则可以仅根据该第二区域调整操作调整对象转移目标区域;或者,还可以根据该第二区域调整操作同时调整对象转移初始区域和对象转移目标区域。其中,基于第二区域调整操作同时调整对象转移初始区域和对象转移目标区域,可以是基于第二区域调整操作中对象转移目标区域对应的待调整量调整对象转移初始区域和对象转移目标区域;也可以是基于第二区域调整操作中对象转移目标区域对应的待调整量调整对象转移目标区域,并且,根据对象转移目标区域对应的待调整量确定对象转移初始区域对应的待调整量,基于对象转移初始区域对应的待调整量调整对象转移初始区域。
在该可选的实施方式中,实现了根据用户的调整操作对对象转移初始区域和/或对象转移目标区域的自动调整,满足用户的个性化需求,提高了用户的使用体验。
需要说明的是,上述接收用户针对对象转移初始区域和/或对象转移目标区域的调整操作,还可以在生成目标场景特效后执行,即,还可以在生成目标场景特效后,实时根据用户的第一区域调整操作对对象转移初始区域进行调整,或对对象转移初始区域和对象转移目标区域进行调整;和/或,根据用户的第二区域调整操作调整对象转移目标区域,或调整对象转移初始区域和对象转移目标区域,并根据调整后的对象转移初始区域或对象转移目标区域重新生成目标场景特效。
S130、接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
其中,对象转移触发操作可以是特效应用图像中的目标转移对象输入至对象转移初始区域,或者,目标转移对象输入至对象转移初始区域中的预设核心区域,或者,用户触发对应的转移控件。
对象转移触发操作可以是根据用户在显示界面上执行的操作确定的,也可以是根据特效应用图像中目标转移对象自动确定的。示例性的,若检测到用户拖拽特效应用图像中的目标转移对象至对象转移初始区域的中间区域,则可以确定接收到对象转移触发操作。又或者,若检测到特效应用图像中的目标转移对象运动至对象转移初始区域的中间区域,如用户直播过程中将手部放置于对象转移初始区域的中间区域,则可以确定接收到对象转移触发操作。或者,若在对象转移初始区域中检测到目标转移对象,则可以确定接收到对象转移触发操作。
示例性的,在接收到对象转移触发操作后,可以基于该对象转移触发操作,将特效应用图像中的目标转移对象从对象转移初始区域转移至对象转移目标区域进行显示。
其中,可以是将目标转移对象在特效应用图像中的像素值,复制到对象转移目标区域,以实现将目标转移对象从对象转移初始区域转移至对象转移目标区域,当然,还可以在复制目标转移对象的像素值的同时,删除目标转移对象在对象转移初始区域内的像素值。
可选地,若特效应用图像为三维图像,则可以采用SLAM(Simultaneous Localization and Mapping,同步定位与地图构建)方法,将目标转移对象切割出来;并将目标转移对象从对象转移初始区域转移至对象转移目标区域。其中,对目标转移对象的切割可以理解为确定目标转移对象的三维空间坐标,并根据三维空间坐标从特效应用图像中分割目标转移对象。
需要说明的是,将目标转移对象由对象转移初始区域转移至对象转移目标区域进行显示,可以是根据目标转移对象的初始显示大小、初始显示颜色等初始显示信息,在对象转移目标区域处显示该目标转移对象。还可以根据对象转移初始区域与对象转移目标区域之间的空间关系,确定目标转移对象的显示调整信息,基于初始显示信息以及显示调整信息在对象转移目标区域处显示该目标转移对象。
示例性的,若特效应用图像为三维图像,对象转移初始区域与对象转移目标区域之间存在视觉深度差异,则可以根据视觉深度差异确定目标转移对象的显示大小缩放量,以使转移后的目标转移对象更加符合实际视觉效果。如,对象转移初始区域在前,对象转移目标区域在后,则可以在显示转移后的目标转移对象的过程中,减小目标转移对象的显示大小,使得目标转移对象在三维图像中的显示效果更加满足实际视觉效果,提高了用户体验。
例如,参见图1D,图1D展示了一种三维图像的目标场景特效的示意图,从图中可以看出,目标转移对象在对象转移初始区域中的显示大小,大于被转移后在对象转移目标区域中的显示大小。
在本公开实施例中,可选地,当对象转移初始区域的尺寸与所述对象转移目标区域的尺寸不一致时,被转移的目标转移对象可以自适应地铺满所述对象转移目标区域。
本实施例的技术方案,响应于用户的预设特效触发操作,获取用于触发转移目标转移对象的目标场景特效对应的特效应用图像,在特效应用图像中显示用于转移目标转移对象的对象转移初始区域和对象转移目标区域,进而根据接收到的基于对象转移初始区域输入的对象转移触发操作,将目标转移对象由对象转移初始区域转移至对象转移目标区域进行显示,实现了转移图像中特定对象的场景特效的自动生成,该方法可以用于自动生成转移某对象的特效,解决了相关技术中需要人为在软件中处理图像以生成特效的技术问题,提高了特效的生成效率,并且,无需用户手动调整,降低了特效生成的复杂度。
此外,相比于相关技术中用户只能对图像进行后处理的方法,本方法可以基于用户当前拍摄的图像实时生成目标场景特效,即本方法可以在用户实时拍摄过程中实现特效的自动化生成。
实施例二
图2为本公开实施例二所提供的图像处理方法的流程示意图,本实施例在本公开实施例中任一可选技术方案的基础上,可选地,所述于所述特效应用图 像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域,包括:当接收到针对所述特效应用图像的转移位置显示触发操作时,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域。
其中,与上述各实施例相同或相应的术语的解释在此不再赘述。
如图2所示,本实施例的方法可包括:
S210、响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效。
S220、当接收到针对所述特效应用图像的转移位置显示触发操作时,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域。
其中,转移位置显示触发操作可以是用户设置对象转移初始区域和/或对象转移目标区域的操作。转移位置显示触发操作可以是用户在给定的选择框中输入或选择参数的操作,或者,用户在特效应用图像中勾选区域的操作。
示例性的,可以在特效应用图像的显示界面上展示用于设置对象转移初始区域的参数工具栏,或者,展示用于设置对象转移目标区域的参数工具栏;根据用户在参数工具栏中录入或选择的参数确定对象转移初始区域或对象转移目标区域的显示位置,基于显示位置对对象转移初始区域或对象转移目标区域进行显示。当然,也可以检测用户在特效应用图像的显示界面上的勾选操作,将用户所勾选的区域确定为对象转移初始区域或对象转移目标区域。
示例性的,所述当接收到针对所述特效应用图像的转移位置显示触发操作时,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域,包括:当接收到针对所述特效应用图像输入的对象转移初始区域的第一位置输入操作,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域;和/或,当接收到针对所述特效应用图像输入的对象转移目标区域的第二位置输入操作时,于所述特效应用图像中显示所述目标场景特效的对 象转移目标区域。
其中,第一位置输入操作包括但不限于参数录入操作、参数选取操作或区域勾选操作;第二位置输入操作包括但不限于参数录入操作、参数选取操作或区域勾选操作。需要说明的是,当仅接收到第一位置输入操作时,对象转移目标区域可以根据预设设置的固定位置进行显示,或者,根据与对象转移初始区域之间的第三预设空间关系进行显示;相应的,当仅接收到第二位置输入操作时,对象转移初始区域可以是固定位置,也可以根据第三预设空间关系确定。
在该示例性的实施方式中,通过获取输入的对象转移初始区域的第一位置输入操作,显示对象转移初始区域;和/或,通过获取输入的对象转移目标区域的第二位置输入操作,显示对象转移目标区域,实现了对象转移初始区域和对象转移目标区域的灵活展示,可以满足不同用户的需求,进而实现满足个性化需求的目标场景特效的生成。
可选地,转移位置显示触发操作还可以是自动生成的。示例性的,转移位置显示触发操作可以通过如下方式自动生成:若获取所述特效应用图像的时长超过预设时间阈值,则生成转移位置显示触发操作;或者,若确定出所述特效应用图像中存在预设的特效应用主体,则生成转移位置显示触发操作;或者,若确定出所述特效应用图像中存在预设的特效应用主体,且所述特效应用主体在所述特效应用图像中的显示时长超过预设时长,则生成转移位置显示触发操作;或者,若确定所述特效应用图像中预设显示区域中存在特效应用主体,则生成转移位置显示触发操作;或者,若确定所述特效应用图像中的特效应用主体与预设的对象转移初始区域之间满足第一预设位置关系,则生成转移位置显示触发操作;或者,若确定所述特效应用图像中的特效应用主体与预设的对象转移目标区域之间满足第二预设位置关系,则生成转移位置显示触发操作,等。
当然,第一位置输入操作和第二位置输入操作也可以是自动生成的。如,若确定特效应用图像中的特效应用主体与对象转移初始区域之间满足第一预设位置关系,则生成第一位置输入操作;或者,若确定特效应用图像中的特效应 用主体与对象转移目标区域之间满足第二预设位置关系,则生成第二位置输入操作,等,第一位置输入操作和第二位置输入操作的生成可以参见上述转移位置显示触发操作的示例。
S230、接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
本实施例的技术方案,通过接收到的针对特效应用图像的转移位置显示触发操作,在特效应用图像中显示对象转移初始区域和对象转移目标区域,使得可以根据用户需求进行对象转移初始区域和对象转移目标区域的展示,进而实现了目标场景特效的多样化展示,用户的个性化需求,提高了用户的使用体验。
实施例三
图3为本公开实施例三所提供的图像处理方法的流程示意图,本实施例在本公开实施例中任一可选技术方案的基础上,可选地,所述于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域,包括:于所述特效应用图像中显示预先设置的所述目标场景特效的对象转移初始区域和对象转移目标区域。
其中,与上述各实施例相同或相应的术语的解释在此不再赘述。
如图3所示,本实施例的方法可包括:
S310、响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效。
S320、于所述特效应用图像中显示预先设置的所述目标场景特效的对象转移初始区域和对象转移目标区域。
在本公开实施例中,对象转移初始区域和对象转移目标区域的显示位置可以是固定的,即可以是针对目标场景特效所预先设置的。例如,可以是预先设置对象转移初始区域和对象转移目标区域在特效应用图像中的显示位置,或者, 还可以预先设置对象转移初始区域和对象转移目标区域在特效应用图像中的显示大小、显示颜色或显示效果。
示例性的,本实施例提供的方法还可以包括:预先设置对象转移初始区域和对象转移目标区域在图像中的显示横坐标占比和显示纵坐标占比。例如,可以预先设置对象转移初始区域在一幅图像的20%横坐标和30%纵坐标处显示,对象转移目标区域在一幅图像的60%横坐标和30%纵坐标处显示。基于预先设置的显示横坐标占比和显示纵坐标占比,于特效应用图像中显示预先设置的目标场景特效的对象转移初始区域和对象转移目标区域。
本实施例提供的方法还可以包括:预先设置对象转移初始区域和对象转移目标区域在图像中的占比。例如。可以预先设置对象转移初始区域在图像的占比为10%,对象转移目标区域在图像中的占比为8%,根据预先设置的在图像中的占比,可以确定对象转移初始区域和对象转移目标区域的显示大小。因此,在本公开实施例中,可以基于预先设置的显示横坐标占比、显示纵坐标占比以及在图像中的占比,于特效应用图像中显示预先设置的目标场景特效的对象转移初始区域和对象转移目标区域。
S330、接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
本实施例的技术方案,可以在获取到特效应用图像后,在特效应用图像中显示预先设置的目标场景特效的对象转移初始区域和对象转移目标区域,用户无需手动配置对象转移初始区域和对象转移目标区域,减少了用户操作,提高了目标场景特效的生成效率。
实施例四
图4为本公开实施例四所提供的图像处理方法的流程示意图,本实施例在本公开实施例中任一可选技术方案的基础上,可选地,所述接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目 标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示,包括:接收所述特效应用图像中的特效应用主体向所述对象转移初始区域内进行移动的移动操作;将移动至所述对象转移初始区域内的特效应用主体作为目标转移对象,将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
其中,与上述各实施例相同或相应的术语的解释在此不再赘述。
如图4所示,本实施例的方法可包括:
S410、响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效。
S420、于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域。
S430、接收所述特效应用图像中的特效应用主体向所述对象转移初始区域内进行移动的移动操作,将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
其中,特效应用主体可以是特效应用图像中可转移的对象,包括但不限于人物、物体、人物中的部位或物体中的部位。本实施例可以识别特效应用图像中的各个主体,进而从各个主体中筛选特效应用主体。
示例性的,从各个主体中筛选特效应用主体,可以是:将各个主体中与对象转移初始区域最接近的主体作为特效应用主体。或者,将各个主体中符合预设主体特征的主体作为特效应用主体;如,用户的手部。或者,将各个主体中的显著主体作为特效应用主体;如,地面上的水杯。或者,先在各个主体中确定参考主体,进而将与参考主体满足预设空间位置关系的主体作为特效应用主体;如,参考主体为用户的手部,特效应用主体为用户手部托举的水杯。
在本公开实施例中,目标转移对象可以根据特效应用图像中的各个特效应 用主体与对象转移初始区域的相对位置关系确定。示例性地,可将处于对象转移初始区域内的特效应用主体作为目标转移对象。
示例性地,可以接收特效应用主体向对象转移初始区域内进行移动的移动操作。其中,移动操作可以是用户用于控制特效应用主体移动的拖拽操作;移动操作还可以是根据各特效应用图像中的特效应用主体的运动轨迹自动确定的,如特效应用主体的运动轨迹为特效应用主体向对象转移初始区域内进行移动,则可以确定接收到移动操作。
示例性的,在接收到移动操作后,可以将特效应用主体移动至对象转移初始区域内的部分作为目标转移对象。可以理解的是,目标转移对象可以是整个特效应用主体,还可以是特效应用主体中的部分内容,可以根据对象转移初始区域所包含的特效应用主体来确定。
当然,也可以将特效应用主体移动至对象转移初始区域内的预设核心区域的部分作为目标转移对象。例如,对象转移初始区域可以以多重光圈的形式进行展示,外层光圈可以表示入口的特效,内层光圈可以表示入口内部,因此,可以将特效应用主体移动至最内层光圈的部分作为目标转移对象。
在一种可选的实施方式中,所述将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,包括:对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割,将分割出的特效应用主体作为所述目标转移对象。
即,可以对特效应用图像进行图像分割处理,以将对象转移初始区域内的特效应用主体分割出来,将分割出来的特效应用主体作为目标转移对象。在分割出目标转移对象后,可以直接将该目标转移对象移动至对象转移目标区域,无需采用像素值复制的方式即可实现目标转移对象的自动转移。可选地,可以是将整个对象转移初始区域分割出来,也可以是仅将对象转移初始区域内的特效应用主体分割出来。
通过该可选的实施方式,可以实现目标转移对象的快速确定,并且,基于 分割得到的目标转移对象便于实现目标场景特效的转移,提高了目标场景特效的生成效率。
当然,考虑到若直接分割特效应用主体,则会使得特效应用图像中存在空白区域,因此,为了提高图像显示效果,还可以对该空白区域进行填补。
例如,在一种实施方式中,在所述对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割之后,还包括:对所述特效应用图像中已分割的区域进行背景补全。
其中,已分割的区域可以是对象转移初始区域中被转移的区域,即目标转移对象所在的初始区域。背景补全可以是根据已分割的区域的相邻区域的像素均值,对已分割的区域的像素值进行填充,以使已分割的区域的像素值等于其相邻区域的像素均值。
当然,也可以直接基于预设像素值填充特效应用图像中已分割的区域。在另一种实施方式中,还可以基于预设填充对象对特效应用图像中已分割的区域进行填充,其中,预设填充对象可以是预先设置的用于放置在已分割的区域的对象,如,马赛克、与目标转移对象对应的简笔画等。
在上述可选的实施方式中,通过在对特效应用图像中移动至对象转移初始区域内的特效应用主体进行分割之后,对特效应用图像中已分割的区域进行背景补全,使得分割后的对象转移初始区域中的空白区域被填充,避免了生成目标场景特效后图像中存在空白,提高了目标场景特效的生成效果。
本实施例的技术方案,通过接收特效应用图像中的特效应用主体向对象转移初始区域内进行移动的移动操作,进而将特效应用主体移动至对象转移初始区域内的部分作为目标转移对象,将目标转移对象由对象转移初始区域移动至对象转移目标区域进行显示,实现了目标转移对象的动态、实时确定,进而实现了针对目标转移对象的转移特效的自动生成,提高了目标场景特效的生成效率。
实施例五
图5为本公开实施例五提供的图像处理装置的结构示意图,本实施例所提供的图像处理装置可以通过软件和/或硬件来实现,可配置于终端和/或服务器中来实现本公开实施例中的图像处理方法。该装置可包括:特效应用图像获取模块510、转移区域显示模块520以及转移对象转移模块530。
特效应用图像获取模块510,设置为响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
转移区域显示模块520,设置为于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
转移对象转移模块530,设置为接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
本实施例的技术方案,响应于用户的用于触发目标场景特效的预设特效触发操作,获取与目标场景特效对应的特效应用图像,在特效应用图像中显示用于转移目标转移对象的对象转移初始区域和对象转移目标区域,进而根据接收到的基于对象转移初始区域输入的对象转移触发操作,将目标转移对象由对象转移初始区域转移至对象转移目标区域进行显示,实现了转移图像中特定对象的场景特效的自动生成,该方法可以用于自动生成转移某对象的特效,解决了相关技术中需要人为在软件中处理图像而导致的操作步骤复杂以及特效显示的速度慢的技术问题,无需用户对特效应用图像进行手动调整,即可响应于对象转移触发操作,显示对象转移的效果,自动生成特效,提高了特效的生成效率,并且,不受限于专业用户,具有普适性,操作简单,提升了用户体验。
在本公开实施例中任一可选技术方案的基础上,可选地,所述转移区域显示模块520包括第一显示单元,所述第一显示单元,设置为当接收到针对所述特效应用图像的转移位置显示触发操作时,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域。
在本公开实施例中任一可选技术方案的基础上,可选地,所述第一显示单元,设置为:
当接收到针对所述特效应用图像输入的对象转移初始区域的第一位置输入操作,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域;和/或,当接收到针对所述特效应用图像输入的对象转移目标区域的第二位置输入操作时,于所述特效应用图像中显示所述目标场景特效的对象转移目标区域。
在本公开实施例中任一可选技术方案的基础上,可选地,所述转移区域显示模块520包括第二显示单元,所述第二显示单元,设置为于所述特效应用图像中显示预先设置的所述目标场景特效的对象转移初始区域和对象转移目标区域。
在本公开实施例中任一可选技术方案的基础上,可选地,所述转移对象转移模块530包括操作接收单元和对象转移单元,其中,所述操作接收单元,设置为接收所述特效应用图像中的特效应用主体向所述对象转移初始区域内进行移动的移动操作;所述对象转移单元,设置为将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
在本公开实施例中任一可选技术方案的基础上,可选地,所述对象转移单元,还设置为对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割,将分割出的特效应用主体作为所述目标转移对象。
在本公开实施例中任一可选技术方案的基础上,可选地,所述对象转移单元,还设置为在所述对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割之后,对所述特效应用图像中已分割的区域进行背景补全。
在本公开实施例中任一可选技术方案的基础上,可选地,所述装置还包括区域调整模块,所述区域调整模块,设置为接收针对所述对象转移初始区域的第一区域调整操作,基于所述第一区域调整操作调整所述对象转移初始区域或 者调整所述对象转移初始区域和所述对象转移目标区域;和/或,接收针对所述对象转移目标区域的第二区域调整操作,基于所述第二区域调整操作调整所述对象转移目标区域或者调整所述对象转移初始区域和所述对象转移目标区域。
在本公开实施例中任一可选技术方案的基础上,可选地,所述第一区域调整操作和/或所述第二区域调整操作包括区域旋转操作、区域缩放操作以及区域移动操作中的至少一项。
在本公开实施例中任一可选技术方案的基础上,可选地,当所述特效应用图像为三维图像时,所述对象转移初始区域和所述对象转移目标区域为所述特效应用图像中的三维转移空间。
上述装置可执行本公开任意实施例所提供的方法,具备执行方法相应的功能模块。
值得注意的是,上述装置所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。
实施例六
图6为本公开实施例六所提供的一种电子设备的结构示意图。下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图6中的终端设备或服务器)600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、PAD(平板电脑)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(Read-Only Memory,ROM)602 中的程序或者从存储装置608加载到随机访问存储器(Random Access Memory,RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线605彼此相连。编辑/输出(Input/Output,I/O)接口604也连接至总线605。
通常,以下装置可以连接至I/O接口604:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
本公开实施例提供的电子设备与上述实施例提供的图像处理方法属于同一发明构思,未在本公开实施例中详尽描述的技术细节可参见上述实施例。
实施例七
本公开实施例提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的图像处理方法。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器((Erasable Programmable Read-Only Memory,EPROM)或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(Local Area Network,LAN),广域网(Wide Area Network,WAN),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有至少一个程序,当上述至少一个程序被该电子设备执行时,使得该电子设备:
响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的 是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
根据本公开的至少一个实施例,【示例一】提供了一种图像处理方法,该方法包括:
响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转 移的特效;
于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
根据本公开的至少一个实施例,【示例二】提供了一种图像处理方法,该方法,还包括:
可选的,所述于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域,包括:
当接收到针对所述特效应用图像的转移位置显示触发操作时,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域。
根据本公开的至少一个实施例,【示例三】提供了一种图像处理方法,该方法,还包括:
可选的,所述当接收到针对所述特效应用图像的转移位置显示触发操作时,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域,包括:
当接收到针对所述特效应用图像输入的对象转移初始区域的第一位置输入操作,于所述特效应用图像中显示所述目标场景特效的对象转移初始区域;
和/或,
当接收到针对所述特效应用图像输入的对象转移目标区域的第二位置输入操作时,于所述特效应用图像中显示所述目标场景特效的对象转移目标区域。
根据本公开的至少一个实施例,【示例四】提供了一种图像处理方法,该方法,还包括:
可选的,所述于所述特效应用图像中显示所述目标场景特效的对象转移初始区域和对象转移目标区域,包括:
于所述特效应用图像中显示预先设置的所述目标场景特效的对象转移初始区域和对象转移目标区域。
根据本公开的至少一个实施例,【示例五】提供了一种图像处理方法,该方法,还包括:
可选的,所述接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示,包括:
接收所述特效应用图像中的特效应用主体向所述对象转移初始区域内进行移动的移动操作;
将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
根据本公开的至少一个实施例,【示例六】提供了一种图像处理方法,该方法,还包括:
可选的,所述将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,包括:
对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割,将分割出的特效应用主体作为所述目标转移对象。
根据本公开的至少一个实施例,【示例七】提供了一种图像处理方法,该方法,还包括:
可选的,在所述对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割之后,还包括:
对所述特效应用图像中已分割的区域进行背景补全。
根据本公开的至少一个实施例,【示例八】提供了一种图像处理方法,该方法,还包括:
可选的,还包括:
接收针对所述对象转移初始区域的第一区域调整操作,基于所述第一区域调整操作调整所述对象转移初始区域或者调整所述对象转移初始区域和所述对象转移目标区域;
和/或,
接收针对所述对象转移目标区域的第二区域调整操作,基于所述第二区域调整操作调整所述对象转移目标区域或者调整所述对象转移初始区域和所述对象转移目标区域。
根据本公开的至少一个实施例,【示例九】提供了一种图像处理方法,该方法,还包括:
可选的,所述第一区域调整操作和/或所述第二区域调整操作包括区域旋转操作、区域缩放操作以及区域移动操作中的至少一项。
根据本公开的至少一个实施例,【示例十】提供了一种图像处理方法,该方法,还包括:
可选的,当所述特效应用图像为三维图像时,所述对象转移初始区域和所述对象转移目标区域为所述特效应用图像中的三维转移空间。
根据本公开的至少一个实施例,【示例十一】提供了一种图像处理装置,该装置,包括:
特效应用图像获取模块,设置为响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
转移区域显示模块,设置为于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
转移对象转移模块,设置为接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操 作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了如果干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。

Claims (13)

  1. 一种图像处理方法,包括:
    响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
    于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
    接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
  2. 根据权利要求1所述的方法,其中,所述于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域,包括:
    响应于接收到针对所述特效应用图像的转移位置显示触发操作,于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域。
  3. 根据权利要求2所述的方法,其中,所述响应于接收到针对所述特效应用图像的转移位置显示触发操作,于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域,包括以下至少之一:
    响应于接收到针对所述特效应用图像输入的对象转移初始区域的第一位置输入操作,于所述特效应用图像中显示所述对象转移初始区域;
    响应于接收到针对所述特效应用图像输入的对象转移目标区域的第二位置输入操作时,于所述特效应用图像中显示所述对象转移目标区域。
  4. 根据权利要求1所述的方法,其中,所述于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域,包括:
    于所述特效应用图像中显示预先设置的用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域。
  5. 根据权利要求1所述的方法,其中,所述接收基于所述对象转移初始区 域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示,包括:
    接收所述特效应用图像中的特效应用主体向所述对象转移初始区域内进行移动的移动操作;
    将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
  6. 根据权利要求5所述的方法,其中,所述将所述特效应用主体移动至所述对象转移初始区域内的部分作为目标转移对象,包括:
    对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割,将分割出的特效应用主体作为所述目标转移对象。
  7. 根据权利要求6所述的方法,在所述对所述特效应用图像中移动至所述对象转移初始区域内的特效应用主体进行分割之后,还包括:
    对所述特效应用图像中已分割的区域进行背景补全。
  8. 根据权利要求1所述的方法,还包括以下至少之一:
    接收针对所述对象转移初始区域的第一区域调整操作,基于所述第一区域调整操作调整所述对象转移初始区域或者调整所述对象转移初始区域和所述对象转移目标区域;
    接收针对所述对象转移目标区域的第二区域调整操作,基于所述第二区域调整操作调整所述对象转移目标区域或者调整所述对象转移初始区域和所述对象转移目标区域。
  9. 根据权利要求8所述的方法,其中,所述方法包括以下至少之一:
    所述第一区域调整操作包括区域旋转操作、区域缩放操作以及区域移动操作中的至少一项;
    所述第二区域调整操作包括区域旋转操作、区域缩放操作以及区域移动操作中的至少一项。
  10. 根据权利要求1所述的方法,其中,当所述特效应用图像为三维图像时,所述对象转移初始区域和所述对象转移目标区域为所述特效应用图像中的三维转移空间。
  11. 一种图像处理装置,包括:
    特效应用图像获取模块,设置为响应于用于触发目标场景特效的预设特效触发操作,获取与所述目标场景特效对应的特效应用图像,其中,所述目标场景特效为对目标转移对象进行转移的特效;
    转移区域显示模块,设置为于所述特效应用图像中显示用于转移所述目标转移对象的对象转移初始区域和对象转移目标区域;
    转移对象转移模块,设置为接收基于所述对象转移初始区域输入的对象转移触发操作,基于所述对象转移触发操作将所述目标转移对象由所述对象转移初始区域转移至所述对象转移目标区域进行显示。
  12. 一种电子设备,包括:
    至少一个处理器;
    存储装置,设置为存储至少一个程序,
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-10中任一所述的图像处理方法。
  13. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-10中任一所述的图像处理方法。
PCT/CN2023/081371 2022-03-28 2023-03-14 图像处理方法、装置、电子设备及存储介质 WO2023185455A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210316840.3 2022-03-28
CN202210316840.3A CN114708290A (zh) 2022-03-28 2022-03-28 图像处理方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023185455A1 true WO2023185455A1 (zh) 2023-10-05

Family

ID=82170116

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081371 WO2023185455A1 (zh) 2022-03-28 2023-03-14 图像处理方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN114708290A (zh)
WO (1) WO2023185455A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114708290A (zh) * 2022-03-28 2022-07-05 北京字跳网络技术有限公司 图像处理方法、装置、电子设备及存储介质
CN116126182A (zh) * 2022-09-08 2023-05-16 北京字跳网络技术有限公司 特效处理方法、装置、电子设备及存储介质
CN115760553A (zh) * 2022-11-04 2023-03-07 北京字跳网络技术有限公司 特效处理方法、装置、设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108379841A (zh) * 2018-03-15 2018-08-10 网易(杭州)网络有限公司 游戏特效的处理方法、装置和终端
CN109947312A (zh) * 2019-01-30 2019-06-28 维沃移动通信有限公司 一种控制方法及终端设备
CN110619615A (zh) * 2018-12-29 2019-12-27 北京时光荏苒科技有限公司 用于处理图像方法和装置
CN112199016A (zh) * 2020-09-30 2021-01-08 北京字节跳动网络技术有限公司 图像处理方法、装置、电子设备及计算机可读存储介质
CN112347395A (zh) * 2019-08-07 2021-02-09 阿里巴巴集团控股有限公司 特效展示方法、装置、电子设备及计算机存储介质
CN113096225A (zh) * 2021-03-19 2021-07-09 北京达佳互联信息技术有限公司 一种图像特效的生成方法、装置、电子设备及存储介质
CN114708290A (zh) * 2022-03-28 2022-07-05 北京字跳网络技术有限公司 图像处理方法、装置、电子设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108379841A (zh) * 2018-03-15 2018-08-10 网易(杭州)网络有限公司 游戏特效的处理方法、装置和终端
CN110619615A (zh) * 2018-12-29 2019-12-27 北京时光荏苒科技有限公司 用于处理图像方法和装置
CN109947312A (zh) * 2019-01-30 2019-06-28 维沃移动通信有限公司 一种控制方法及终端设备
CN112347395A (zh) * 2019-08-07 2021-02-09 阿里巴巴集团控股有限公司 特效展示方法、装置、电子设备及计算机存储介质
CN112199016A (zh) * 2020-09-30 2021-01-08 北京字节跳动网络技术有限公司 图像处理方法、装置、电子设备及计算机可读存储介质
CN113096225A (zh) * 2021-03-19 2021-07-09 北京达佳互联信息技术有限公司 一种图像特效的生成方法、装置、电子设备及存储介质
CN114708290A (zh) * 2022-03-28 2022-07-05 北京字跳网络技术有限公司 图像处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN114708290A (zh) 2022-07-05

Similar Documents

Publication Publication Date Title
WO2023185455A1 (zh) 图像处理方法、装置、电子设备及存储介质
KR20220130197A (ko) 촬영 방법, 장치, 전자설비 및 저장매체
WO2023051185A1 (zh) 图像处理方法、装置、电子设备及存储介质
US11288871B2 (en) Web-based remote assistance system with context and content-aware 3D hand gesture visualization
WO2022042290A1 (zh) 一种虚拟模型处理方法、装置、电子设备和存储介质
US10984568B2 (en) Methods, devices, and computer-readable media for sharing image effects
WO2023179346A1 (zh) 特效图像处理方法、装置、电子设备及存储介质
WO2023020239A1 (zh) 特效生成方法、装置、电子设备及存储介质
US11924393B2 (en) Shared viewing of video among multiple users
CN113806306B (zh) 媒体文件处理方法、装置、设备、可读存储介质及产品
WO2022183887A1 (zh) 视频编辑及播放方法、装置、设备、介质
WO2023138559A1 (zh) 虚拟现实交互方法、装置、设备和存储介质
WO2023071707A1 (zh) 视频图像处理方法、装置、电子设备及存储介质
WO2023169305A1 (zh) 特效视频生成方法、装置、电子设备及存储介质
WO2022242497A1 (zh) 视频拍摄方法、装置、电子设备和存储介质
JP7471510B2 (ja) ピクチャのビデオへの変換の方法、装置、機器および記憶媒体
CN110928509A (zh) 显示控制方法、显示控制装置、存储介质、通信终端
GB2516161A (en) Image effect extraction
WO2024051540A1 (zh) 特效处理方法、装置、电子设备及存储介质
WO2023169287A1 (zh) 美妆特效的生成方法、装置、设备、存储介质和程序产品
WO2023109564A1 (zh) 视频图像处理方法、装置、电子设备及存储介质
CN110070617B (zh) 数据同步方法、装置、硬件装置
WO2023088104A1 (zh) 视频的处理方法、装置、电子设备和存储介质
RU2802724C1 (ru) Способ и устройство обработки изображений, электронное устройство и машиночитаемый носитель информации
KR102534449B1 (ko) 이미지 처리 방법, 장치, 전자 장치 및 컴퓨터 판독 가능 저장 매체

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23777831

Country of ref document: EP

Kind code of ref document: A1