WO2024067145A1 - 图像修复方法、装置、设备、计算机可读存储介质及产品 - Google Patents

图像修复方法、装置、设备、计算机可读存储介质及产品 Download PDF

Info

Publication number
WO2024067145A1
WO2024067145A1 PCT/CN2023/118907 CN2023118907W WO2024067145A1 WO 2024067145 A1 WO2024067145 A1 WO 2024067145A1 CN 2023118907 W CN2023118907 W CN 2023118907W WO 2024067145 A1 WO2024067145 A1 WO 2024067145A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
editing
user
image
option
Prior art date
Application number
PCT/CN2023/118907
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 WO2024067145A1 publication Critical patent/WO2024067145A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration

Definitions

  • the embodiments of the present disclosure relate to the field of image processing technology, and in particular, to an image restoration method, device, electronic device, computer-readable storage medium, computer program product, and computer program.
  • APP Application, referred to as image processing software.
  • Users can use image processing software to perform operations such as editing and repairing images.
  • Embodiments of the present disclosure provide an image restoration method, an apparatus, an electronic device, a computer-readable storage medium, a computer program product, and a computer program.
  • an embodiment of the present disclosure provides an image restoration method, comprising:
  • An image restoration operation is performed on the image to be restored according to the second area.
  • an image restoration device comprising:
  • a determination module configured to determine a first target area selected by the user in response to a selection operation of the user on any area in the image to be restored in the image restoration page;
  • a processing module configured to generate a first area associated with the first target area according to the first target area, and display a preset editing page in the image restoration page;
  • An editing module configured to respond to editing content input by a user in the editing page and perform an editing operation on the first area according to the editing content to obtain a second area;
  • a restoration module is used to perform an image restoration operation on the image to be restored according to the second area.
  • an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
  • the memory stores computer-executable instructions
  • the processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image restoration method as described in the first aspect and various possible designs of the first aspect.
  • an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored.
  • a processor executes the computer execution instructions, the image restoration method described in the first aspect and various possible designs of the first aspect is implemented.
  • an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image restoration method described in the first aspect and various possible designs of the first aspect.
  • an embodiment of the present disclosure provides a computer program, which, when executed by a processor, implements the image restoration method described in the first aspect and various possible designs of the first aspect.
  • the image restoration method, apparatus, electronic device, computer-readable storage medium, computer program product, and computer program provided in the present embodiment determine a first target area selected by a user in an image to be restored, and generate a first area corresponding to the first target area, so that a second area can be obtained by editing the first area, and the image to be restored can be restored using the second area.
  • FIG1 is a schematic flow chart of an image restoration method provided in an embodiment of the present disclosure.
  • FIG. 2 is a schematic diagram of an interface interaction provided in an embodiment of the present disclosure.
  • FIG. 3 is another schematic diagram of an interface interaction provided by an embodiment of the present disclosure.
  • FIG4 is a schematic flow chart of an image restoration method provided by yet another embodiment of the present disclosure.
  • FIG. 5 is another schematic diagram of an interface interaction provided by an embodiment of the present disclosure.
  • FIG6 is a flow chart of an image restoration method provided by yet another embodiment of the present disclosure.
  • FIG. 7 is a flow chart of an image restoration method provided by yet another embodiment of the present disclosure.
  • FIG8 is a schematic diagram of the structure of an image restoration device provided in an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
  • the present invention discloses a method for Provided are an image restoration method, an apparatus, an electronic device, a computer-readable storage medium, a computer program product, and a computer program.
  • image restoration method, device, electronic device, computer-readable storage medium, computer program product and computer program provided by the present disclosure can be applied in any image restoration application scenario.
  • the existing image restoration methods generally require the user to manually select the area to be restored and directly perform editing operations on the area to achieve the restoration effect.
  • the restoration effect is often not good.
  • a first region associated with the region selected by the user in the image to be restored can be generated.
  • a second region is obtained.
  • the image restoration operation can be performed based on the second region.
  • the obtained second region can better meet the needs of practical applications, and then image restoration based on the second region can obtain a better restoration effect.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG1 is a flow chart of an image restoration method provided by an embodiment of the present disclosure. As shown in FIG1 , the method includes steps 101 to 104 as described below.
  • Step 101 In response to a user selecting an arbitrary area in an image to be repaired in an image repairing page, a first target area selected by the user is determined.
  • the execution subject of this embodiment is an image restoration device, which can be coupled to a terminal device, so that it can respond to the trigger operation of the user on the terminal device and perform a restoration operation on the image to be restored.
  • the image restoration device can also be coupled to a server, which can be connected to the terminal device in communication, so that it can obtain the user's trigger operation sent by the terminal device, and then perform an image restoration operation based on the trigger operation, and feed back the restoration result to the terminal device for display.
  • the user when the user needs to perform an image restoration operation, the user can enter the image restoration page by triggering a preset restoration control, wherein the image to be restored can be displayed in the image restoration page.
  • the user can select a first target area to be cloned in the image to be restored according to actual needs. Specifically, the user can select any area in the image to be restored in the preset image restoration page to obtain the first target area.
  • the first target area can be obtained by the user performing a smearing operation on any area in the image to be repaired.
  • the first target area can be obtained by the user performing a smearing operation on any area in the image to be repaired and performing an intelligent recognition operation.
  • the first target area can be obtained by intelligently identifying all target objects in the image to be repaired according to a selection operation triggered by the user, and according to the user's selection operation on any target object.
  • the present disclosure does not limit the specific selection method.
  • Step 102 Generate a first area associated with the first target area according to the first target area, and display a preset editing page in the image restoration page.
  • a first region can be generated based on the first target region.
  • the first target region has the same parameters as the first region, such as shape and size.
  • the first region can be a clone region generated based on the first target region.
  • the user can edit the first region according to the repair requirements in the actual application. Therefore, after the first region is generated, a preset editing page can be displayed in the image repair page. The user can edit the first region according to the editing page.
  • the display size of the editing page may be smaller than the image restoration page, and the image restoration page may display the image to be restored, the first target area, and the first area.
  • the editing page may be displayed below the image restoration page.
  • Step 103 In response to the editing content input by the user in the editing page, an editing operation is performed on the first area according to the editing content to obtain a second area.
  • the editing page may specifically include a plurality of editing options, and the user may input editing content for each editing option.
  • the editing options may include a transparency editing option, a feathering option, an erase option, etc.
  • the user may input transparency parameters, feathering parameters, etc. as editing content in the editing page, and then perform editing operations on the first area according to the parameters in the editing content, and obtain the second area after the editing is completed.
  • the second area may be a patch area for repairing the image to be repaired.
  • Step 104 performing an image restoration operation on the image to be restored according to the second area.
  • an image restoration operation may be performed on the image to be restored according to the second region.
  • the second region may be used to cover the region to be repaired in the image to be repaired, or the second region may be used to replace the region to be repaired in the repair image, and so on.
  • FIG2 is a schematic diagram of an interface interaction provided by an embodiment of the present disclosure.
  • a user can perform a selection operation in an image to be repaired 21.
  • a first target region 22 is determined.
  • a first region 23 associated with the first target region 22 is generated.
  • the first region 23 is the same as the first target region 22.
  • the method further includes:
  • the first area In response to a user's movement operation on the first area, the first area is moved.
  • the user may also perform a moving operation on the selected first target area or the first area according to actual needs.
  • the first area when the user performs a moving operation on the first target area, the first area also moves along with the moving operation on the first target area.
  • the first target area does not move along with it.
  • the first target area and the first area are moved.
  • the first area is moved.
  • the image restoration page also includes a comparison control.
  • step 103 the following steps are also included:
  • the second area is redisplayed.
  • the current second area can be compared with the first area for display, so that the user can further edit the second area.
  • the image restoration page also includes a comparison control.
  • the first area corresponding to the second area may be displayed so that the user can view the current editing effect.
  • the second area may be redisplayed so that the user can perform further editing operations on the second area.
  • the image restoration method provided in this embodiment determines a first target area selected by a user in the image to be restored, The first region corresponding to the first target region is formed, so that the second region can be obtained by editing the first region, and the image to be repaired is repaired using the second region.
  • the efficiency of the image repair operation is improved.
  • the second region can be made more in line with actual needs, thereby improving the image repair effect.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the area selected by the user in the image to be repaired can be directly used as the first target area, or the first target area can be determined based on the user's selection operation and intelligent recognition operation, or the first target area can be determined by using intelligent recognition.
  • step 101 includes:
  • the coverage area is determined as the first target area.
  • the area selected by the user in the image to be repaired can be directly used as the first target area.
  • the user can perform a sliding operation in any area of the image to be repaired according to actual needs, and select the first target area through the sliding operation.
  • the number of sliding operations can be at least one. Accordingly, in response to the sliding operation, the coverage area corresponding to the sliding operation can be determined. The coverage area is determined as the first target area.
  • determining the coverage area corresponding to the sliding operation includes:
  • the coverage area is determined according to the sliding track and the brush size.
  • the user can select the brush size information corresponding to the sliding operation according to actual needs. Therefore, in response to the user's sliding operation in any area of the image to be repaired, the sliding track corresponding to the sliding operation is determined. The coverage area corresponding to the sliding operation is determined according to the sliding track and the brush size information corresponding to the sliding operation.
  • the image restoration method provided in this embodiment determines the first target area according to the user's sliding operation on the image to be restored, so that the first target area can be more in line with the user's actual needs, and then the first area that better meets the user's actual needs can be generated based on the first target area, thereby improving the efficiency and accuracy of image restoration.
  • step 101 includes:
  • An area corresponding to the target object is determined as the first target area.
  • the first target area in order to determine the first target area, can be determined according to the user's selection operation and the intelligent recognition operation. Specifically, the user can perform a sliding operation in any area of the image to be repaired according to actual needs, and the number of sliding operations can be at least one. In response to at least one sliding operation of the user on any area of the image to be repaired, the coverage area corresponding to the sliding operation is determined.
  • the coverage area may not accurately cover the target object.
  • the corresponding coverage area is determined, and the target object corresponding to the location of the coverage area is intelligently identified.
  • the target object is determined as the first target area.
  • FIG3 is another interface interaction diagram provided by an embodiment of the present disclosure.
  • a user can perform a sliding operation in an image to be repaired 31.
  • a coverage area 32 corresponding to the sliding operation is determined.
  • a target object 33 corresponding to the location of the coverage area can be determined as the first target area.
  • step 101 includes:
  • An area corresponding to the target object is determined as the first target area.
  • an intelligent recognition method can be used to determine the first target area. Specifically, the user can select a trigger position by triggering any area in the image to be repaired. The target object corresponding to the trigger position is identified. The target object is determined as the first target area.
  • any identification method can be used to implement the identification operation of the target object, and the present disclosure does not limit this.
  • the image restoration method provided in this embodiment can improve the convenience of determining the first target area by intelligently identifying the target object at the user's trigger position and determining the first target area based on the target object.
  • the first target area can be obtained without the user having to paint over the entire target object, thereby improving the efficiency of image restoration.
  • FIG4 is a flow chart of an image restoration method provided by another embodiment of the present disclosure. Based on any of the above embodiments, the editing page includes at least one editing option. As shown in FIG4 , step 103 includes:
  • Step 401 in response to a trigger operation of a user on any editing option, obtaining editing content input by the user for the editing option;
  • Step 402 Perform an editing operation on the first area according to the editing content corresponding to the editing option to obtain a second area.
  • the editing page may specifically include a variety of editing options, and the user may input editing content for each editing option.
  • the editing options may include a transparency editing option, a feathering option, an erase option, and the like.
  • the user may input transparency parameters, feathering parameters, and the like as editing content in the editing page, and then perform editing operations on the first area according to the parameters in the editing content. Accordingly, in response to the user's triggering operation on any editing option, the editing content input by the user for the editing option may be obtained.
  • the first area is edited according to the editing content corresponding to the editing option to obtain the second area.
  • the image restoration method provided in this embodiment sets multiple editing options and performs editing operations on the first area based on the editing contents corresponding to the multiple editing options, thereby obtaining a second area that better meets the actual needs of the user, so that the generated second area has a better restoration effect.
  • step 401 when the editing option is a transparency editing option or a feathering option, step 401 includes:
  • a target adjustment parameter is determined, and the target adjustment parameter is The editing content corresponding to the editing option is determined.
  • Step 402 includes:
  • the transparency or feathering degree of the first region is adjusted according to the target adjustment parameter to obtain the second region.
  • the editing option is a transparency editing option or a feathering option
  • the user can input transparency parameters, feathering parameters and other contents as editing contents in the editing page.
  • a parameter adjustment control corresponding to the transparency editing option or the feathering option is displayed.
  • the user can determine the target adjustment parameter by adjusting the parameter adjustment control, and determine the target adjustment parameter as the editing content corresponding to the editing option. For example, the user can adjust the feathering parameter to 59 by adjusting the parameter adjustment control.
  • the transparency or feathering degree of the first area can be adjusted according to the target adjustment parameters in the editing content to obtain the second area.
  • FIG5 is another interface interaction diagram provided by an embodiment of the present disclosure. As shown in FIG5, when the editing option is a transparency editing option or a feathering option, a parameter adjustment control 53 corresponding to the transparency editing option or the feathering option is displayed in response to a user triggering operation on the transparency editing option 51 or the feathering option 52. The user can adjust the parameter adjustment control 53 to determine the target adjustment parameter.
  • the image restoration method provided in this embodiment adjusts the transparency or feathering degree of the first area so that the second area can achieve a better restoration effect, thereby improving the efficiency and accuracy of image restoration.
  • step 401 when the editing option is an erase option, step 401 includes:
  • a to-be-erased area is determined according to the target stroke size and the erasing trajectory, and the to-be-erased area is determined as the editing content.
  • Step 402 includes:
  • An erasing operation is performed on a position where the first area overlaps with the area to be erased to obtain the second area.
  • the editing option also includes an erasing option.
  • the erasing option can be triggered to perform an erasing operation on the second area.
  • a preset stroke size adjustment control is displayed, and the stroke size adjustment control is adjusted to determine the target stroke size corresponding to the erase operation.
  • the target stroke size input by the user by triggering the stroke size adjustment control is obtained.
  • the erase track triggered by the user in the first area is obtained.
  • the area to be erased is determined according to the target stroke size and the erase track, and the area to be erased is determined as the editing content. Furthermore, the position where the first area overlaps with the area to be erased can be erased to obtain the second area.
  • the image restoration method provided in this embodiment obtains the second area by performing an erasing operation on the first area, so that the second area can be more closely matched with the area to be restored, thereby achieving a better restoration effect.
  • the editing page includes a continue cloning option.
  • the following further includes:
  • a region selection page is displayed, wherein the region selection page includes the image to be repaired and a preset prompt control, wherein the prompt control is used to prompt the user to select a region in the image to be repaired. Select the target area;
  • the first area associated with the first target area and the first area associated with the second target area are determined as current first areas.
  • the editing page after obtaining a first region, the cloning operation can be continued.
  • the editing page also includes a continue cloning option.
  • first regions may be selected according to the Continue Cloning option.
  • a region selection page is displayed, the region selection page including the image to be repaired and a preset prompt control, wherein the prompt control is used to prompt the user to select a target region in the image to be repaired.
  • the user may perform a selection operation on any region in the image to be repaired according to the requirements of image repair, and in response to the selection operation, the second target region selected by the user may be determined, and a first region associated with the second target region may be generated. The first region associated with the first target region and the first region associated with the second target region are determined as the current first region.
  • a first area identical to the first area may be copied by triggering the continue cloning option.
  • the image restoration method provided in this embodiment can add a new first area based on the existing first area by triggering the continue cloning option, which is convenient to operate, improves the efficiency of image restoration, and enhances the user experience.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • FIG6 is a flowchart of an image restoration method provided by another embodiment of the present disclosure. Based on any of the above embodiments, step 104 includes:
  • Step 601 In response to a user's operation of moving the second area, the second area is moved to a position to be restored in the image to be restored;
  • Step 602 Cover the position to be repaired with the second area, and perform an image repair operation on the image to be repaired.
  • the second area can be used to cover the area to be repaired in the image to be repaired to achieve the repair operation of the image to be repaired.
  • the second area can be moved to the position to be repaired in the image to be repaired in response to the user's movement operation on the second area.
  • the user can achieve the moving operation by dragging the second area.
  • the coordinate information of the position to be repaired can be input to achieve the moving operation of the second area.
  • the second area can be moved to the position to be repaired by triggering the position to be repaired, etc. The present disclosure does not limit this.
  • the second area can be covered on the position to be repaired to achieve the repair operation of the image to be repaired.
  • the image restoration method provided in this embodiment can accurately perform a restoration operation on the image to be restored by moving the second area to the position to be restored after obtaining the second area, thereby improving the accuracy of image restoration.
  • the restoration operation of the image to be restored can be achieved through a simple moving operation, which is relatively convenient and improves the efficiency of image restoration.
  • FIG. 7 is a flowchart of an image restoration method provided by another embodiment of the present disclosure. Based on any of the above embodiments, as shown in FIG. 7 , before step 101, the method further includes:
  • Step 701 In response to a user triggering operation on a preset repair control, jump to the image repair page;
  • Step 702 Display the image to be restored and all editable layers associated with the image to be restored in the image restoration page.
  • multiple editing operations may be performed on the image to be repaired, for example, filters, stickers, image beautification, etc.
  • multiple layers may be set, and different editing operations may be performed on different layers.
  • the layers that cannot be edited can be hidden, and the editable layers can be displayed, so that the user can perform image editing operations on the editable layers.
  • a restoration control can be pre-set, and in response to the user's triggering operation on the preset restoration control, the user jumps to the image restoration page.
  • the image to be restored and all editable layers associated with the image to be restored are displayed on the image restoration page.
  • step 802 the method further includes:
  • the image to be restored and all layers associated with the image to be restored are displayed in the image restoration page.
  • the user can also view the currently hidden layers according to actual needs.
  • the image to be restored and all layers associated with the image to be restored can be displayed in the image restoration page.
  • all layers include editable layers and non-editable layers.
  • the preset trigger operation can specifically be a long press operation, a double-click operation, a preset gesture, etc.
  • the image restoration method provided in this embodiment can ensure the effect of image restoration on the one hand, and make the image restoration process more in line with the personalized needs of users on the other hand, by hiding the non-editable parts and redisplaying them according to the user's triggering operation.
  • FIG8 is a schematic diagram of the structure of an image restoration device provided by an embodiment of the present disclosure.
  • the device includes: a determination module 81, a processing module 82, an editing module 83, and a restoration module 84, wherein the determination module 81 is used to determine the first target area selected by the user in response to the user's selection operation on any area in the image to be restored in the image restoration page; the processing module 82 is used to generate a first area associated with the first target area according to the first target area, and display a preset editing page in the image restoration page; the editing module 83 is used to edit the first area according to the editing content input by the user in the editing page to obtain a second area.
  • the restoration module 84 is used to perform an image restoration operation on the image to be restored according to the second area.
  • the device further includes: a first moving module, used to move the first target area and the first area in response to a user's moving operation on the first target area. And/or, a second moving module, used to move the first area in response to a user's moving operation on the first area.
  • the image restoration page further includes a comparison control.
  • the device further includes: a comparison module, which is used to display the first area corresponding to the second area in response to a user triggering the comparison control.
  • the display module is also used to redisplay the second area in response to the user stopping triggering the comparison control.
  • the determination module is used to: in response to at least one sliding operation of the user on any area in the image to be repaired, determine a coverage area corresponding to the sliding operation, and determine the coverage area as the first target area.
  • the determining module is used to:
  • the coverage area is determined according to the sliding track and the brush size.
  • the determination module is used to: in response to at least one sliding operation of a user on any area in the image to be repaired, determine a coverage area corresponding to the sliding operation, identify a target object corresponding to the location of the coverage area, and determine the area corresponding to the target object as the first target area.
  • the determination module is used to: respond to a user's trigger operation on any area in the image to be repaired, determine a trigger position corresponding to the trigger operation, identify a target object corresponding to the trigger position, and determine the area corresponding to the target object as the first target area.
  • the editing page includes at least one editing option.
  • the editing module is used to: in response to a user triggering operation on any editing option, obtain the editing content input by the user for the editing option; and perform an editing operation on the first area according to the editing content corresponding to the editing option to obtain the second area.
  • the at least one editing option includes at least one of a transparency editing option, a feathering option, and an erase option.
  • the editing module when the editing option is a transparency editing option or a feathering option, the editing module is used to: in response to a user triggering operation on the transparency editing option or the feathering option, display a parameter adjustment control corresponding to the transparency editing option or the feathering option; in response to a user adjusting operation on the parameter adjustment control, determine a target adjustment parameter, and determine the target adjustment parameter as the editing content corresponding to the editing option.
  • the editing module is used to: adjust the transparency or feathering degree of the first area according to the target adjustment parameter to obtain the second area.
  • the editing module when the editing option is an erase option, the editing module is used to: in response to the user's triggering operation on the erase option, display a preset stroke size adjustment control; obtain the target stroke size input by the user by triggering the stroke size adjustment control, and obtain the erasing track triggered by the user in the first area; determine the area to be erased according to the target stroke size and the erasing track, and determine the area to be erased as the editing content.
  • the editing module is used to: perform an erasing operation on the position where the first area overlaps with the area to be erased to obtain the second area.
  • the editing page includes a continue cloning option.
  • the device also includes: a display module, which is used to display an area selection page in response to a user triggering operation on the continue cloning option, wherein the area selection page includes the image to be repaired and a preset prompt control, and the prompt control is used to prompt the user to select a target area in the image to be repaired; a selection module, which is used to determine the second target area selected by the user in response to the user's selection operation on any area in the image to be repaired, and generate a first area associated with the second target area; and a determination module, which is also used to determine the first area associated with the first target area and the first area associated with the second target area as the current first area.
  • the repair module is used to: in response to the user's movement operation on the second area, move the second area to the position to be repaired in the image to be repaired; cover the second area at the position to be repaired, and perform an image repair operation on the image to be repaired.
  • the device also includes: a jump module, used to jump to the image repair page in response to the user's triggering operation on a preset repair control; a display module, also used to display the image to be repaired and all editable layers associated with the image to be repaired in the image repair page.
  • a jump module used to jump to the image repair page in response to the user's triggering operation on a preset repair control
  • a display module also used to display the image to be repaired and all editable layers associated with the image to be repaired in the image repair page.
  • the device further comprises: a display module, further configured to display the image to be repaired and the image in the image repair page in response to a trigger operation preset by a user in the image repair page. All layers associated with the image to be repaired.
  • the device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
  • the present disclosure also provides an electronic device, including: a processor and a memory,
  • the memory stores computer executable instructions.
  • FIG9 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
  • the electronic device 900 may be a terminal device or a server.
  • the terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc.
  • PDAs personal digital assistants
  • PADs Portable Android Devices
  • PMPs portable multimedia players
  • vehicle-mounted terminals such as vehicle-mounted navigation terminals
  • fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG9 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 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903.
  • a processing device e.g., a central processing unit, a graphics processing unit, etc.
  • RAM random access memory
  • Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903.
  • the processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904.
  • An input/output (I/O) interface 905 is also connected to the bus 904.
  • the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909.
  • the communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data.
  • FIG. 9 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program can be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902.
  • the processing device 901 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • 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 not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above.
  • Computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer program.
  • the computer readable program code is a program code that can be read by a computer. Such propagated data signals can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device.
  • the program code contained on the computer readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequencies (RF), etc., or any suitable combination of the above.
  • the embodiment of the present disclosure further provides a computer-readable storage medium, in which computer-executable instructions are stored.
  • a processor executes the computer-executable instructions, the image restoration method described in any of the above embodiments is implemented.
  • the embodiments of the present disclosure further provide a computer program product, including a computer program, which implements the image restoration method as described in any of the above embodiments when executed by a processor.
  • the embodiments of the present disclosure also provide a computer program, which, when executed by a processor, implements the image restoration method as described in any of the above embodiments.
  • the computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device executes the method shown in the above embodiment.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages.
  • the program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
  • the remote computer may be connected to the user's computer via any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function.
  • the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
  • each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or hardware.
  • the name of a unit does not limit the unit itself in some cases.
  • the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
  • exemplary types of hardware logic components include: Field-Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Integrated Circuit (ASIC), Products (Application Specific Standard Part, ASSP), System On Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • FPGA Field-Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Part
  • SOC System On Chip
  • CPLD Complex Programmable Logic Device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing.
  • a more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
  • 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
  • CD-ROM compact disk read-only memory
  • magnetic storage device or any suitable combination of the foregoing.
  • an image restoration method comprising:
  • An image restoration operation is performed on the image to be restored according to the second area.
  • determining the first target area selected by the user includes:
  • the coverage area is determined as the first target area.
  • determining a coverage area corresponding to the sliding operation includes:
  • the coverage area is determined according to the sliding track and the brush size.
  • determining the first target area selected by the user includes:
  • An area corresponding to the target object is determined as the first target area.
  • determining the first target area selected by the user includes:
  • An area corresponding to the target object is determined as the first target area.
  • the editing page includes at least one editing option
  • performing an editing operation on the first area according to the editing content to obtain the second area includes:
  • An editing operation is performed on the first area according to the editing content corresponding to the editing option to obtain a second area.
  • the at least one editing option includes at least one of a transparency editing option, a feathering option, and an erasing option.
  • obtaining editing content input by the user for the editing option includes:
  • the step of performing an editing operation on the first region according to the editing content corresponding to the editing option to obtain the second region includes:
  • the transparency or feathering degree of the first region is adjusted according to the target adjustment parameter to obtain the second region.
  • obtaining editing content input by the user for the editing option includes:
  • the step of performing an editing operation on the first region according to the editing content corresponding to the editing option to obtain the second region includes:
  • An erasing operation is performed on a position where the first area overlaps with the area to be erased to obtain the second area.
  • the editing page includes a continue cloning option
  • the method further includes:
  • the first area associated with the first target area and the first area associated with the second target area are determined as current first areas.
  • the image to be repaired is repaired according to the second area.
  • Repeat operations include:
  • the second area is covered at the position to be repaired, and an image repair operation is performed on the image to be repaired.
  • the method further includes:
  • the first area In response to a user's movement operation on the first area, the first area is moved.
  • the image restoration page further includes a comparison control
  • the method further includes:
  • the second area is redisplayed.
  • the method in response to a user selecting an arbitrary area in the image to be repaired in a preset image repair page, before determining the first target area selected by the user, the method further includes:
  • the image to be restored and all editable layers associated with the image to be restored are displayed in the image restoration page.
  • the method further includes:
  • the image to be restored and all layers associated with the image to be restored are displayed in the image restoration page.
  • an image restoration device comprising:
  • a determination module configured to determine a first target area selected by the user in response to a selection operation of the user on any area in the image to be restored in the image restoration page;
  • a processing module configured to generate a first area associated with the first target area according to the first target area, and display a preset editing page in the image restoration page;
  • An editing module configured to respond to editing content input by a user in the editing page and perform an editing operation on the first area according to the editing content to obtain a second area;
  • a restoration module is used to perform an image restoration operation on the image to be restored according to the second area.
  • the determination module is used to:
  • the coverage area is determined as the first target area.
  • the determination module is used to:
  • the coverage area is determined according to the sliding track and the brush size.
  • the determination module is used to:
  • An area corresponding to the target object is determined as the first target area.
  • the determination module is used to:
  • An area corresponding to the target object is determined as the first target area.
  • the editing page includes at least one editing option
  • the editing module is used to:
  • An editing operation is performed on the first area according to the editing content corresponding to the editing option to obtain a second area.
  • the at least one editing option includes at least one of a transparency editing option, a feathering option, and an erasing option.
  • the editing module when the editing option is a transparency editing option or a feathering option, the editing module is used to:
  • the editing module is used to:
  • the transparency or feathering degree of the first region is adjusted according to the target adjustment parameter to obtain the second region.
  • the editing module when the editing option is an erase option, the editing module is configured to:
  • the editing module is used to:
  • An erasing operation is performed on a position where the first area overlaps with the area to be erased to obtain the second area.
  • the editing page includes a continue cloning option
  • the device also includes:
  • a display module configured to display a region selection page in response to a user triggering operation on the continue cloning option, wherein the region selection page includes the image to be repaired and a preset prompt control, and the prompt control is configured to prompt the user to select a target region in the image to be repaired;
  • the selection module is used to determine the user's selected area in response to the user's selection operation of any area in the image to be repaired.
  • a second target area generating a first area associated with the second target area;
  • the determination module is further configured to determine the first area associated with the first target area and the first area associated with the second target area as the current first area.
  • the repair module is used to:
  • the second area is covered at the position to be repaired, and an image repair operation is performed on the image to be repaired.
  • the device further includes:
  • a first moving module configured to move the first target area and the first area in response to a user's moving operation on the first target area
  • the second moving module is used to move the first area in response to a user's moving operation on the first area.
  • the image restoration page further includes a comparison control
  • the device also includes:
  • a comparison module configured to display the first area corresponding to the second area in response to a triggering operation of the comparison control by a user
  • the display module is further configured to redisplay the second area in response to the user stopping triggering the comparison control.
  • the device further includes:
  • a jump module used for jumping to the image restoration page in response to a user triggering operation on a preset restoration control
  • the display module is also used to display the image to be repaired and all editable layers associated with the image to be repaired in the image repair page.
  • the device further includes:
  • the display module is further used to display the image to be repaired and all layers associated with the image to be repaired in the image repair page in response to a trigger operation preset by the user in the image repair page.
  • an electronic device comprising: at least one processor and a memory;
  • the memory stores computer-executable instructions
  • the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the image restoration method as described in the first aspect and various possible designs of the first aspect.
  • a computer-readable storage medium stores computer execution instructions.
  • the image restoration method described in the first aspect and various possible designs of the first aspect is implemented.
  • a computer program product including a computer program, which, when executed by a processor, implements the image restoration method described in the first aspect and various possible designs of the first aspect.
  • a computer program which, when executed by a processor, implements the image restoration method as described in the first aspect and various possible designs of the first aspect.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

本公开实施例提供一种图像修复方法、装置、电子设备、计算机可读存储介质、计算机程序产品和计算机程序,该方法包括:响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;根据所述第二区域对所述待修复图像进行图像修复操作。

Description

图像修复方法、装置、设备、计算机可读存储介质及产品
相关申请的交叉引用
本申请要求于2022年09月30日提交至中国国家知识产权局、申请号为202211215127.6、发明名称为“图像修复方法、装置、设备、计算机可读存储介质及产品”的中国专利申请的优先权,其全部内容通过引用并入本文。
技术领域
本公开实施例涉及图像处理技术领域,尤其涉及一种图像修复方法、装置、电子设备、计算机可读存储介质、计算机程序产品和计算机程序。
背景技术
随着终端设备硬件性能的提高,在终端设备上运行的应用程序(Application,简称APP)也越来越多,例如图像处理软件。用户可以通过图像处理软件实现对图像的编辑、修复等操作。
现有的图像修理软件在进行图像修复时,一般都需要用户手动对需要修复的区域进行调整,往往操作较为繁琐,且修复效果不佳。
发明内容
本公开实施例提供一种图像修复方法、装置、电子设备、计算机可读存储介质、计算机程序产品和计算机程序。
第一方面,本公开实施例提供一种图像修复方法,包括:
响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;
根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;
响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;
根据所述第二区域对所述待修复图像进行图像修复操作。
第二方面,本公开实施例提供一种图像修复装置,包括:
确定模块,用于响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;
处理模块,用于根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;
编辑模块,用于响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;
修复模块,用于根据所述第二区域对所述待修复图像进行图像修复操作。
第三方面,本公开实施例提供一种电子设备,包括:处理器和存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
第六方面,本公开实施例提供一种计算机程序,其被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
本实施例提供的图像修复方法、装置、电子设备、计算机可读存储介质、计算机程序产品和计算机程序,通过确定用户在待修复图像中选择的第一目标区域,生成该第一目标区域对应的第一区域,从而能够通过对该第一区域的编辑操作获得第二区域,使用该第二区域对待修复图像进行修复操作。
附图说明
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的图像修复方法的流程示意图。
图2为本公开实施例提供的界面交互示意图。
图3为本公开实施例提供的又一界面交互示意图。
图4为本公开又一实施例提供的图像修复方法的流程示意图。
图5为本公开实施例提供的又一界面交互示意图。
图6为本公开又一实施例提供的图像修复方法的流程示意图。
图7为本公开又一实施例提供的图像修复方法的流程示意图。
图8为本公开实施例提供的图像修复装置的结构示意图。
图9为本公开实施例提供的电子设备的结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
为了解决现有的图像修复方法往往操作较为繁琐,且修复效果不佳的技术问题,本公开 提供了一种图像修复方法、装置、电子设备、计算机可读存储介质、计算机程序产品和计算机程序。
需要说明的是,本公开提供的图像修复方法、装置、电子设备、计算机可读存储介质、计算机程序产品和计算机程序,可应用在任意一种图像修复的应用场景中。
现有的图像修复方法一般都是由用户手动选择需要修复的区域,并直接对该区域进行编辑操作,已达到修复效果。但是,采用上述方法进行图像修复时,往往修复效果不佳。
在解决上述技术问题的过程中,发明人通过研究发现,为了提高图像修复的修复效果,可以根据用户在待修复图像中选择的区域生成与该区域关联的第一区域。通过对第一区域进行编辑操作,得到第二区域。进而能够根据该第二区域进行图像的修复操作。通过对第一区域进行编辑操作,能够使得获得的第二区域更加满足实际应用中的需求,进而基于该第二区域进行图像修复能够得到更优质的修复效果。
实施例一:
图1为本公开实施例提供的图像修复方法的流程示意图,如图1所示,该方法包括如下所述的步骤101至步骤104。
步骤101、响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域。
本实施例的执行主体为图像修复装置,该图像修复装置可耦合于终端设备中,从而能够响应于用户在终端设备上的触发操作,对待修复图像进行修复操作。可选地,该图像修复装置还可以耦合于服务器中,该服务器可以与终端设备通信连接,从而能够获取终端设备发送的用户的触发操作,进而能够基于该触发操作进行图像修复操作,并将修复后的修复结果反馈至终端设备进行显示。
在本实施方式中,当用户需要进行图像修复操作时,可以通过触发预设的修复控件进入图像修复页面。其中,该图像修复页面内可以显示有待修复图像。
进一步地,在图像修复页面内,用户可以根据实际需求在待修复图像中选择需要克隆的第一目标区域。具体地,用户可以在预设的图像修复页面内对待修复图像中任意区域进行选择操作,得到第一目标区域。
可选地,该第一目标区域可以通过用户对待修复图像中任意区域进行涂抹操作获得。或者,也可以根据用户在待修复图像中任意区域进行涂抹操作以及智能识别操作获得。或者,也可以根据用户触发的选择操作,智能地识别待修复图像中全部的目标对象,根据用户对任一目标对象的选择操作。本公开对具体的选择方式不做限制。
步骤102、根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面。
在本实施方式中,在获取到用户选择的第一目标区域之后,为了方便对图像的修复操作,可以基于该第一目标区域生成第一区域。其中,第一目标区域与第一区域的形状、尺寸等参数相同。该第一区域可以为基于该第一目标区域生成的克隆区域。
在生成第一区域之后,用户可以根据实际应用中的修复需求,对该第一区域进行编辑操作。因此,在生成第一区域之后,可以在图像修复页面内显示预设的编辑页面。用户可以根据该编辑页面对第一区域进行编辑操作。
可选地,该编辑页面的显示尺寸可以小于图像修复页面,该图像修复页面中可以显示有待修复图像、第一目标区域以及第一区域。为了避免对待修复图像的遮挡,该编辑页面可以显示于图像修复页面下侧。
步骤103、响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域。
在本实施方式中,编辑页面中具体可以包括多种编辑选项,用户可以针对每一编辑选项输入编辑内容。其中,该编辑选项可以包括透明度编辑选项、羽化选项、擦除选项等。举例来说,用户可以在编辑页面中输入透明度参数、羽化参数等内容作为编辑内容,进而可以根据该编辑内容中的参数对第一区域进行编辑操作,在编辑完成之后,获得第二区域。其中,第二区域的数量可以为多个。该第二区域可以为用于对待修复图像进行修补的补丁区域。
步骤104、根据所述第二区域对所述待修复图像进行图像修复操作。
在本实施方式中,在获得第二区域之后,可以根据该第二区域对待修复图像进行图像修复操作。
举例来说,可以采用第二区域覆盖待修复图像中的待修复区域,或者,可以采用第二区域替换修复图像中的待修复区域等。
图2为本公开实施例提供的界面交互示意图,如图2所示,用户可以在待修复图像21中进行选择操作。响应于该选择操作确定第一目标区域22。生成与第一目标区域22相关联的第一区域23。其中,第一区域23与第一目标区域22相同。
进一步地,在上述任一实施例的基础上,步骤102之后,还包括:
响应于用户对所述第一目标区域的移动操作,移动所述第一目标区域以及所述第一区域;
和/或,
响应于用户对所述第一区域的移动操作,移动所述第一区域。
在本实施例中,用户还可以根据实际需求对选中的第一目标区域或者第一区域进行移动操作。
可选地,当用户对第一目标区域进行移动操作时,第一区域也随着第一目标区域的移动操作进行移动。当用户对第一区域进行移动操作时,第一目标区域不随之移动。具体地,响应于用户对第一目标区域的移动操作,移动第一目标区域以及第一区域。响应于用户对第一区域的移动操作,移动第一区域。
进一步地,在上述任一实施例的基础上,所述图像修复页面中还包括对比控件。
步骤103之后还包括:
响应于用户对所述对比控件的触发操作,显示所述第二区域对应的第一区域;
响应于用户停止触发所述对比控件,重新显示所述第二区域。
在本实施例中,为了使得编辑后的第二区域能够贴合用户的个性化需求,提高修复效果,在编辑过程中,可以对当前的第二区域与第一区域进行对比显示操作,以便用户对第二区域进行进一步地编辑。
可选地,图像修复页面中还包括对比控件。响应于用户对该对比控件的触发操作,可以显示第二区域对应的第一区域,以使用户查看当前的编辑效果。当检测到用户停止触发该对比控件时,则可以重新显示第二区域,以便用户对第二区域进行进一步地编辑操作。
本实施例提供的图像修复方法,通过确定用户在待修复图像中选择的第一目标区域,生 成该第一目标区域对应的第一区域,从而能够通过对该第一区域的编辑操作获得第二区域,使用该第二区域对待修复图像进行修复操作。提高了图像修复操作的效率。且通过对第一区域进行编辑能够使得第二区域更加贴合实际需求,提高图像修复效果。
实施例二:
在本实施例中,为了实现对第一目标区域的确定,可以直接将用户在待修复图像中选择的区域作为第一目标区域,或者,可以根据用户的选择操作以及智能识别操作实现第一目标区域的确定,或者,可以采用智能识别的方式实现第一目标区域的确定。
可选地,在上述任一实施例的基础上,步骤101包括:
响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
将所述覆盖区域确定为所述第一目标区域。
在本实施例中,为了实现对第一目标区域的确定,可以直接将用户在待修复图像中选择的区域作为第一目标区域。具体地,用户可以根据实际需求在待修复图像中任意区域进行滑动操作,通过该滑动操作进行第一目标区域的选择。其中,该滑动操作的次数可以为至少一次。相应地,响应于该滑动操作,可以确定滑动操作对应的覆盖区域。将所述覆盖区域确定为所述第一目标区域。
进一步地,在上述任一实施例的基础上,所述响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域,包括:
确定所述至少一次滑动操作对应的画笔尺寸信息;
确定所述滑动操作对应的滑动轨迹;
根据所述滑动轨迹以及所述画笔尺寸确定所述覆盖区域。
在本实施例中,用户可以根据实际需求选择滑动操作对应的画笔尺寸信息。因此,响应于用户在待修复图像中任意区域的滑动操作,确定滑动操作对应的滑动轨迹。根据该滑动轨迹以及该滑动操作对应的画笔尺寸信息确定该滑动操作对应的覆盖区域。
本实施例提供的图像修复方法,通过根据用户在待修复图像上的滑动操作来确定第一目标区域,从而能够使得该第一目标区域更加贴合用户的实际需求,进而能够根据该第一目标区域生成更符合用户实际需求的第一区域,提升图像修复的效率以及准确性。
可选地,在上述任一实施例的基础上,步骤101包括:
响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
识别所述覆盖区域所在位置对应的目标对象;
将所述目标对象对应的区域确定为所述第一目标区域。
在本实施例中,为了实现对第一目标区域的确定,可以根据用户的选择操作以及智能识别操作实现第一目标区域的确定。具体地,用户可以根据实际需求在待修复图像中任意区域进行滑动操作,该滑动操作的次数可以为至少一次。响应于用户对待修复图像中任意区域的至少一次滑动操作,确定滑动操作对应的覆盖区域。
由于该待修复图像中可能包括有多个目标对象,其中,目标对象包括但不限于人物、动物、物体、贴纸等内容,该覆盖区域可能无法精准地覆盖目标对象。因此,可以确定滑动操 作对应的覆盖区域,并智能识别该覆盖区域所在位置对应的目标对象。将该目标对象确定为第一目标区域。
图3为本公开实施例提供的又一界面交互示意图,如图3所示,用户可以在待修复图像31中进行滑动操作,响应于该滑动操作,确定滑动操作对应的覆盖区域32。可以将覆盖区域所在位置对应的目标对象33确定为第一目标区域。
可选地,在上述任一实施例的基础上,步骤101包括:
响应于用户对待修复图像中任意区域的触发操作,确定所述触发操作对应的触发位置;
识别所述触发位置对应的目标对象;
将所述目标对象对应的区域确定为所述第一目标区域。
在本实施例中,为了实现对第一目标区域的确定,可以采用智能识别的方式实现第一目标区域的确定。具体地,用户可以通过对待修复图像中任意区域的触发操作选择一触发位置。对该触发位置对应的目标对象进行识别操作。将该目标对象确定为第一目标区域。
需要说明的是,可以采用任意一种识别方式实现对目标对象的识别操作,本公开对此不做限制。
本实施例提供的图像修复方法,通过智能识别用户触发位置的目标对象,根据该目标对象确定第一目标区域,从而能够提高第一目标区域确定的便捷性,无需用户对全部的目标对象进行涂抹即能够得到第一目标区域,提高了图像修复的效率。
实施例三:
图4为本公开又一实施例提供的图像修复方法的流程示意图,在上述任一实施例的基础上,所述编辑页面内包括至少一个编辑选项。如图4所示,步骤103包括:
步骤401、响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容;
步骤402、根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域。
在本实施例中,编辑页面中具体可以包括多种编辑选项,用户可以针对每一编辑选项输入编辑内容。其中,该编辑选项可以包括透明度编辑选项、羽化选项、擦除选项等。举例来说,用户可以在编辑页面中输入透明度参数、羽化参数等内容作为编辑内容,进而可以根据该编辑内容中的参数对第一区域进行编辑操作。相应地,可以响应于用户对任一编辑选项的触发操作,获取用户针对编辑选项输入的编辑内容。根据编辑选项对应的编辑内容对第一区域进行编辑操作,获得第二区域。
本实施例提供的图像修复方法,通过设置多个编辑选项,基于多个编辑选项对应的编辑内容对第一区域进行编辑操作,从而能够获得更加贴合用户实际需求的第二区域,使得生成的第二区域具备更优质的修复效果。
可选地,在上述任一实施例的基础上,当所述编辑选项为透明度编辑选项或羽化选项时,步骤401包括:
响应于用户对透明度编辑选项或羽化选项的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件;
响应于用户对所述参数调节控件的调节操作,确定目标调整参数,将所述目标调整参数 确定为所述编辑选项对应的编辑内容。
步骤402包括:
根据所述目标调整参数对所述第一区域进行透明度调整或羽化程度调整,获得所述第二区域。
在本实施例中,当编辑选项为透明度编辑选项或羽化选项时,用户可以在编辑页面中输入透明度参数、羽化参数等内容作为编辑内容。
具体地,响应于用户对透明度编辑选项或羽化选项的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件。用户可以通过对该参数调节控件的调节操作,确定目标调整参数,将目标调整参数确定为编辑选项对应的编辑内容。例如,用户可以通过对该参数调节控件的调节操作,将羽化参数调整为59。
在确定编辑选项对应的编辑内容之后,即可以根据该编辑内容中的目标调整参数对第一区域进行透明度调整或羽化程度调整,获得第二区域。
图5为本公开实施例提供的又一界面交互示意图,如图5所示,当所述编辑选项为透明度编辑选项或羽化选项时,响应于用户对透明度编辑选项51或羽化选项52的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件53。用户可以通过对该参数调节控件53进行调节,实现目标调整参数的确定。
本实施例提供的图像修复方法,通过对第一区域进行透明度调整或羽化程度调整,从而能够使得第二区域能够达到更优质的修复效果,提高图像修复的效率以及精准度。
可选地,在上述任一实施例的基础上,当所述编辑选项为擦除选项时,步骤401包括:
响应于用户对所述擦除选项的触发操作,显示预设的笔画尺寸调节控件;
获取所述用户通过触发所述笔画尺寸调节控件输入的目标笔画尺寸,以及,获取所述用户在所述第一区域内触发的擦除轨迹;
根据所述目标笔画尺寸以及所述擦除轨迹确定待擦除区域,将所述待擦除区域确定为所述编辑内容。
步骤402包括:
对所述第一区域与所述待擦除区域相重合的位置进行擦除操作,获得所述第二区域。
在本实施例中,编辑选项还包括擦除选项,当第二区域的形状不满足实际应用中的需求时,可以通过触发该擦除选项对第二区域进行擦除操作。
可选地,响应于用户对擦除选项的触发操作,显示预设的笔画尺寸调节控件,通过对该笔画尺寸调节控件进行调节操作,以确定擦除操作对应的目标笔画尺寸。获取用户通过触发笔画尺寸调节控件输入的目标笔画尺寸。获取用户在第一区域内触发的擦除轨迹。根据目标笔画尺寸以及擦除轨迹确定待擦除区域,将待擦除区域确定为编辑内容。进一步地,可以将第一区域与待擦除区域相重合的位置进行擦除操作,获得所述第二区域。
本实施例提供的图像修复方法,通过对第一区域进行擦除操作,得到第二区域,从而能够使得第二区域与待修复区域更加贴合,进而能够达到更优质的修复效果。
可选地,在上述任一实施例的基础上,所述编辑页面中包括继续克隆选项。步骤102之后,还包括:
响应于用户对所述继续克隆选项的触发操作,显示区域选择页面,所述区域选择页面中包括所述待修复图像以及预设的提示控件,所述提示控件用于提示用户在所述待修复图像中 选择目标区域;
响应于用户对待修复图像中任意区域的选择操作,确定所述用户选择的第二目标区域,生成与所述第二目标区域关联的第一区域;
将所述第一目标区域关联的第一区域以及所述第二目标区域关联的第一区域确定为当前的第一区域。
在本实施例中,在得到一个第一区域之后,还可以继续生成克隆操作。具体地,编辑页面中还包括继续克隆选项。
可选地,可以根据该继续克隆选项进行其他第一区域的选择。响应于用户对继续克隆选项的触发操作,显示区域选择页面,区域选择页面中包括待修复图像以及预设的提示控件,其中,该提示控件用于提示用户在待修复图像中选择目标区域。用户可以根据图像修复的需求对待修复图像中任意区域进行选择操作,响应于该选择操作,可以确定用户选择的第二目标区域,生成与第二目标区域关联的第一区域。将第一目标区域关联的第一区域以及第二目标区域关联的第一区域确定为当前的第一区域。
可选地,还可以通过触发该继续克隆选项复制一个与该第一区域相同的第一区域。
本实施例提供的图像修复方法,通过触发继续克隆选项,从而能够在已存在第一区域的基础上,增加新的第一区域,操作较为便捷,提高图像修复的效率,且提升用户体验。
实施例四:
图6为本公开又一实施例提供的图像修复方法的流程示意图,在上述任一实施例的基础上,步骤104包括:
步骤601、响应于用户对所述第二区域的移动操作,将所述第二区域移动至所述待修复图像中的待修复位置;
步骤602、将所述第二区域覆盖在所述待修复位置,对所述待修复图像进行图像修复操作。
在本实施例中,可以采用第二区域覆盖待修复图像中的待修复区域,以实现待修复图像的修复操作。具体地,可以响应于用户对第二区域的移动操作,将第二区域移动至待修复图像中的待修复位置。可选地,用户可以通过对第二区域拖拽的方式,实现移动操作。或者,可以输入待修复位置的坐标信息,实现对第二区域的移动操作。或者,可以通过触发待修复位置,将第二区域移动至待修复位置等。本公开对此不做限制。进一步地,可以将该第二区域覆盖在待修复位置,实现对待修复图像的修复操作。
本实施例提供的图像修复方法,通过在获得第二区域之后,移动第二区域至待修复位置,从而能够准确地对待修复图像进行修复操作,提高了图像修复的准确性。此外,通过简单的移动操作,即可以实现待修复图像的修复操作,操作较为便捷,提高了图像修复的效率。
实施例五:
图7为本公开又一实施例提供的图像修复方法的流程示意图,在上述任一实施例的基础上,如图7所示,步骤101之前,还包括:
步骤701、响应于用户对预设的修复控件的触发操作,跳转至所述图像修复页面;
步骤702、在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部可编辑图层。
在本实施例中,在对待修复图像进行修复之前,可能预先对待修复图像进行了多种编辑操作,例如,可以添加滤镜、添加贴纸、图像美化等操作。为了达到更优质的图像编辑效果,可以设置有多个图层,不同的图层上进行不同的编辑操作。
因此,在对图像修复的过程中,为了保证图像修复效果,可以对不可以进行编辑的图层进行隐藏操作,显示可编辑图层,以使得用户在可编辑图层上进行图像编辑操作。可选地,可以预先设置有修复控件,响应于用户对预设的修复控件的触发操作,跳转至图像修复页面。在图像修复页面内显示待修复图像以及与待修复图像关联的全部可编辑图层。
进一步地,在上述任一实施例的基础上,步骤802之后,还包括:
响应于用户在所述图像修复页面内预设的触发操作,在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部图层。
在本实施例中,用户还可以根据实际需求对当前已隐藏的图层进行查看。具体地,可以响应于用户在图像修复页面内预设的触发操作,在图像修复页面内显示待修复图像以及与待修复图像关联的全部图层。其中,该全部图层包括可编辑图层以及不可编辑图层。该预设的触发操作具体可以为长按操作,双击操作,预设的手势等。
本实施例提供的图像修复方法,通过对不可编辑进行隐藏,并根据用户的触发操作进行重新显示,一方面能够保证图像修复的效果,另一方面,能够使得图像修复的过程更加贴合用户的个性化需求。
实施例六:
图8为本公开实施例提供的图像修复装置的结构示意图,如图8所示,该装置包括:确定模块81、处理模块82、编辑模块83以及修复模块84,其中,确定模块81,用于响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;处理模块82,用于根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;编辑模块83,用于响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域。修复模块84,用于根据所述第二区域对所述待修复图像进行图像修复操作。
进一步地,在上述任一实施例的基础上,所述装置还包括:第一移动模块,用于响应于用户对所述第一目标区域的移动操作,移动所述第一目标区域以及所述第一区域。和/或,第二移动模块,用于响应于用户对所述第一区域的移动操作,移动所述第一区域。
进一步地,在上述任一实施例的基础上,所述图像修复页面中还包括对比控件。所述装置还包括:对比模块,用于响应于用户对所述对比控件的触发操作,显示所述第二区域对应的第一区域。显示模块,还用于响应于用户停止触发所述对比控件,重新显示所述第二区域。
进一步地,在上述任一实施例的基础上,所述确定模块用于:响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域。将所述覆盖区域确定为所述第一目标区域。
进一步地,在上述任一实施例的基础上,所述确定模块用于:
确定所述至少一次滑动操作对应的画笔尺寸信息;
确定所述滑动操作对应的滑动轨迹;
根据所述滑动轨迹以及所述画笔尺寸确定所述覆盖区域。
进一步地,在上述任一实施例的基础上,所述确定模块用于:响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域。识别所述覆盖区域所在位置对应的目标对象。将所述目标对象对应的区域确定为所述第一目标区域。
进一步地,在上述任一实施例的基础上,所述确定模块用于:响应于用户对待修复图像中任意区域的触发操作,确定所述触发操作对应的触发位置,识别所述触发位置对应的目标对象,将所述目标对象对应的区域确定为所述第一目标区域。
进一步地,在上述任一实施例的基础上,所述编辑页面内包括至少一个编辑选项。所述编辑模块,用于:响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容;根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域。
进一步地,在上述任一实施例的基础上,所述至少一个编辑选项包括透明度编辑选项、羽化选项、擦除选项中的至少一项。
进一步地,在上述任一实施例的基础上,当所述编辑选项为透明度编辑选项或羽化选项时,所述编辑模块,用于:响应于用户对透明度编辑选项或羽化选项的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件;响应于用户对所述参数调节控件的调节操作,确定目标调整参数,将所述目标调整参数确定为所述编辑选项对应的编辑内容。所述编辑模块用于:根据所述目标调整参数对所述第一区域进行透明度调整或羽化程度调整,获得所述第二区域。
进一步地,在上述任一实施例的基础上,当所述编辑选项为擦除选项时,所述编辑模块,用于:响应于用户对所述擦除选项的触发操作,显示预设的笔画尺寸调节控件;获取所述用户通过触发所述笔画尺寸调节控件输入的目标笔画尺寸,以及,获取所述用户在所述第一区域内触发的擦除轨迹;根据所述目标笔画尺寸以及所述擦除轨迹确定待擦除区域,将所述待擦除区域确定为所述编辑内容。所述编辑模块用于:对所述第一区域与所述待擦除区域相重合的位置进行擦除操作,获得所述第二区域。
进一步地,在上述任一实施例的基础上,所述编辑页面中包括继续克隆选项。所述装置还包括:显示模块,用于响应于用户对所述继续克隆选项的触发操作,显示区域选择页面,所述区域选择页面中包括所述待修复图像以及预设的提示控件,所述提示控件用于提示用户在所述待修复图像中选择目标区域;选择模块,用于响应于用户对待修复图像中任意区域的选择操作,确定所述用户选择的第二目标区域,生成与所述第二目标区域关联的第一区域;确定模块,还用于将所述第一目标区域关联的第一区域以及所述第二目标区域关联的第一区域确定为当前的第一区域。
进一步地,在上述任一实施例的基础上,所述修复模块,用于:响应于用户对所述第二区域的移动操作,将所述第二区域移动至所述待修复图像中的待修复位置;将所述第二区域覆盖在所述待修复位置,对所述待修复图像进行图像修复操作。
进一步地,在上述任一实施例的基础上,所述装置还包括:跳转模块,用于响应于用户对预设的修复控件的触发操作,跳转至所述图像修复页面;显示模块,还用于在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部可编辑图层。
进一步地,在上述任一实施例的基础上,所述装置还包括:显示模块,还用于响应于用户在所述图像修复页面内预设的触发操作,在所述图像修复页面内显示所述待修复图像以及 与所述待修复图像关联的全部图层。
本实施例提供的设备,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
为了实现上述实施例,本公开实施例还提供了一种电子设备,包括:处理器和存储器,
所述存储器存储计算机执行指令。
图9为本公开实施例提供的电子设备的结构示意图,如图9所示,该电子设备900可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable Media Player,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(Read Only Memory,简称ROM)902中的程序或者从存储装置908加载到随机访问存储器(Random Access Memory,简称RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(Liquid Crystal Display,简称LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算 机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
本公开实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述任一实施例所述的图像修复方法。
本公开实施例还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一实施例所述的图像修复方法。
本公开实施例还提供了一种计算机程序,其在被处理器执行时实现如上述任一实施例所述的图像修复方法。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,简称LAN)或广域网(Wide Area Network,简称WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field-Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准 产品(Application Specific Standard Part,ASSP)、片上系统(System On Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例可以包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种图像修复方法,包括:
响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;
根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;
响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;
根据所述第二区域对所述待修复图像进行图像修复操作。
根据本公开的一个或多个实施例,所述响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域,包括:
响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
将所述覆盖区域确定为所述第一目标区域。
根据本公开的一个或多个实施例,所述响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域,包括:
确定所述至少一次滑动操作对应的画笔尺寸信息;
确定所述滑动操作对应的滑动轨迹;
根据所述滑动轨迹以及所述画笔尺寸确定所述覆盖区域。
根据本公开的一个或多个实施例,所述响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域,包括:
响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
识别所述覆盖区域所在位置对应的目标对象;
将所述目标对象对应的区域确定为所述第一目标区域。
根据本公开的一个或多个实施例,所述响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域,包括:
响应于用户对待修复图像中任意区域的触发操作,确定所述触发操作对应的触发位置;
识别所述触发位置对应的目标对象;
将所述目标对象对应的区域确定为所述第一目标区域。
根据本公开的一个或多个实施例,所述编辑页面内包括至少一个编辑选项;
所述响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域,包括:
响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容;
根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域。
根据本公开的一个或多个实施例,所述至少一个编辑选项包括透明度编辑选项、羽化选项、擦除选项中的至少一项。
根据本公开的一个或多个实施例,当所述编辑选项为透明度编辑选项或羽化选项时,所述响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容,包括:
响应于用户对透明度编辑选项或羽化选项的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件;
响应于用户对所述参数调节控件的调节操作,确定目标调整参数,将所述目标调整参数确定为所述编辑选项对应的编辑内容;
所述根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域,包括:
根据所述目标调整参数对所述第一区域进行透明度调整或羽化程度调整,获得所述第二区域。
根据本公开的一个或多个实施例,当所述编辑选项为擦除选项时,所述响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容,包括:
响应于用户对所述擦除选项的触发操作,显示预设的笔画尺寸调节控件;
获取所述用户通过触发所述笔画尺寸调节控件输入的目标笔画尺寸,以及,获取所述用户在所述第一区域内触发的擦除轨迹;
根据所述目标笔画尺寸以及所述擦除轨迹确定待擦除区域,将所述待擦除区域确定为所述编辑内容;
所述根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域,包括:
对所述第一区域与所述待擦除区域相重合的位置进行擦除操作,获得所述第二区域。
根据本公开的一个或多个实施例,所述编辑页面中包括继续克隆选项;
所述根据所述第一目标区域生成与所述第一目标区域相关联的第一区域之后,还包括:
响应于用户对所述继续克隆选项的触发操作,显示区域选择页面,所述区域选择页面中包括所述待修复图像以及预设的提示控件,所述提示控件用于提示用户在所述待修复图像中选择目标区域;
响应于用户对待修复图像中任意区域的选择操作,确定所述用户选择的第二目标区域,生成与所述第二目标区域关联的第一区域;
将所述第一目标区域关联的第一区域以及所述第二目标区域关联的第一区域确定为当前的第一区域。
根据本公开的一个或多个实施例,所述根据所述第二区域对所述待修复图像进行图像修 复操作,包括:
响应于用户对所述第二区域的移动操作,将所述第二区域移动至所述待修复图像中的待修复位置;
将所述第二区域覆盖在所述待修复位置,对所述待修复图像进行图像修复操作。
根据本公开的一个或多个实施例,所述根据所述第一目标区域生成与所述第一目标区域相关联的第一区域之后,还包括:
响应于用户对所述第一目标区域的移动操作,移动所述第一目标区域以及所述第一区域;
和/或,
响应于用户对所述第一区域的移动操作,移动所述第一区域。
根据本公开的一个或多个实施例,所述图像修复页面中还包括对比控件;
所述响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域之后,还包括:
响应于用户对所述对比控件的触发操作,显示所述第二区域对应的第一区域;
响应于用户停止触发所述对比控件,重新显示所述第二区域。
根据本公开的一个或多个实施例,所述响应于用户对预设的图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域之前,还包括:
响应于用户对预设的修复控件的触发操作,跳转至所述图像修复页面;
在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部可编辑图层。
根据本公开的一个或多个实施例,所述在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部可编辑图层之后,还包括:
响应于用户在所述图像修复页面内预设的触发操作,在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部图层。
第二方面,根据本公开的一个或多个实施例,提供了一种图像修复设备,包括:
确定模块,用于响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;
处理模块,用于根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;
编辑模块,用于响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;
修复模块,用于根据所述第二区域对所述待修复图像进行图像修复操作。
根据本公开的一个或多个实施例,所述确定模块用于:
响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
将所述覆盖区域确定为所述第一目标区域。
根据本公开的一个或多个实施例,所述确定模块用于:
确定所述至少一次滑动操作对应的画笔尺寸信息;
确定所述滑动操作对应的滑动轨迹;
根据所述滑动轨迹以及所述画笔尺寸确定所述覆盖区域。
根据本公开的一个或多个实施例,所述确定模块用于:
响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
识别所述覆盖区域所在位置对应的目标对象;
将所述目标对象对应的区域确定为所述第一目标区域。
根据本公开的一个或多个实施例,所述确定模块用于:
响应于用户对待修复图像中任意区域的触发操作,确定所述触发操作对应的触发位置;
识别所述触发位置对应的目标对象;
将所述目标对象对应的区域确定为所述第一目标区域。
根据本公开的一个或多个实施例,所述编辑页面内包括至少一个编辑选项;
所述编辑模块,用于:
响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容;
根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域。
根据本公开的一个或多个实施例,所述至少一个编辑选项包括透明度编辑选项、羽化选项、擦除选项中的至少一项。
根据本公开的一个或多个实施例,当所述编辑选项为透明度编辑选项或羽化选项时,所述编辑模块,用于:
响应于用户对透明度编辑选项或羽化选项的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件;
响应于用户对所述参数调节控件的调节操作,确定目标调整参数,将所述目标调整参数确定为所述编辑选项对应的编辑内容;
所述编辑模块用于:
根据所述目标调整参数对所述第一区域进行透明度调整或羽化程度调整,获得所述第二区域。
根据本公开的一个或多个实施例,当所述编辑选项为擦除选项时,所述编辑模块,用于:
响应于用户对所述擦除选项的触发操作,显示预设的笔画尺寸调节控件;
获取所述用户通过触发所述笔画尺寸调节控件输入的目标笔画尺寸,以及,获取所述用户在所述第一区域内触发的擦除轨迹;
根据所述目标笔画尺寸以及所述擦除轨迹确定待擦除区域,将所述待擦除区域确定为所述编辑内容;
所述编辑模块用于:
对所述第一区域与所述待擦除区域相重合的位置进行擦除操作,获得所述第二区域。
根据本公开的一个或多个实施例,所述编辑页面中包括继续克隆选项;
所述装置还包括:
显示模块,用于响应于用户对所述继续克隆选项的触发操作,显示区域选择页面,所述区域选择页面中包括所述待修复图像以及预设的提示控件,所述提示控件用于提示用户在所述待修复图像中选择目标区域;
选择模块,用于响应于用户对待修复图像中任意区域的选择操作,确定所述用户选择的 第二目标区域,生成与所述第二目标区域关联的第一区域;
确定模块,还用于将所述第一目标区域关联的第一区域以及所述第二目标区域关联的第一区域确定为当前的第一区域。
根据本公开的一个或多个实施例,所述修复模块,用于:
响应于用户对所述第二区域的移动操作,将所述第二区域移动至所述待修复图像中的待修复位置;
将所述第二区域覆盖在所述待修复位置,对所述待修复图像进行图像修复操作。
根据本公开的一个或多个实施例,所述装置还包括:
第一移动模块,用于响应于用户对所述第一目标区域的移动操作,移动所述第一目标区域以及所述第一区域;
和/或,
第二移动模块,用于响应于用户对所述第一区域的移动操作,移动所述第一区域。
根据本公开的一个或多个实施例,所述图像修复页面中还包括对比控件;
所述装置还包括:
对比模块,用于响应于用户对所述对比控件的触发操作,显示所述第二区域对应的第一区域;
显示模块,还用于响应于用户停止触发所述对比控件,重新显示所述第二区域。
根据本公开的一个或多个实施例,所述装置还包括:
跳转模块,用于响应于用户对预设的修复控件的触发操作,跳转至所述图像修复页面;
显示模块,还用于在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部可编辑图层。
根据本公开的一个或多个实施例,所述装置还包括:
显示模块,还用于响应于用户在所述图像修复页面内预设的触发操作,在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部图层。
根据本公开的一个或多个实施例,
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:至少一个处理器和存储器;
所述存储器存储计算机执行指令;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
第五方面,根据本公开的一个或多个实施例,提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
第六方面,根据本公开的一个或多个实施例,提供了一种计算机程序,其被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的图像修复方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当 理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (17)

  1. 一种图像修复方法,包括:
    响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;
    根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;
    响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;
    根据所述第二区域对所述待修复图像进行图像修复操作。
  2. 根据权利要求1所述的方法,其中,所述响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域,包括:
    响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
    将所述覆盖区域确定为所述第一目标区域。
  3. 根据权利要求1或2所述的方法,其中,所述响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域,包括:
    确定所述至少一次滑动操作对应的画笔尺寸信息;
    确定所述滑动操作对应的滑动轨迹;
    根据所述滑动轨迹以及所述画笔尺寸确定所述覆盖区域。
  4. 根据权利要求1所述的方法,其中,所述响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域,包括:
    响应于用户对所述待修复图像中任意区域的至少一次滑动操作,确定所述滑动操作对应的覆盖区域;
    识别所述覆盖区域所在位置对应的目标对象;
    将所述目标对象对应的区域确定为所述第一目标区域。
  5. 根据权利要求1所述的方法,其中,所述响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域,包括:
    响应于用户对待修复图像中任意区域的触发操作,确定所述触发操作对应的触发位置;
    识别所述触发位置对应的目标对象;
    将所述目标对象对应的区域确定为所述第一目标区域。
  6. 根据权利要求1-5任一项所述的方法,其中,所述编辑页面内包括至少一个编辑选项;
    所述响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域,包括:
    响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容;
    根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域。
  7. 根据权利要求6所述的方法,其中,所述至少一个编辑选项包括透明度编辑选项、羽化选项、擦除选项中的至少一项。
  8. 根据权利要求7所述的方法,其中,当所述编辑选项为透明度编辑选项或羽化选项时, 所述响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容,包括:
    响应于用户对透明度编辑选项或羽化选项的触发操作,显示与透明度编辑选项或羽化选项对应的参数调节控件;
    响应于用户对所述参数调节控件的调节操作,确定目标调整参数,将所述目标调整参数确定为所述编辑选项对应的编辑内容;
    所述根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域,包括:
    根据所述目标调整参数对所述第一区域进行透明度调整或羽化程度调整,获得所述第二区域。
  9. 根据权利要求7所述的方法,其中,当所述编辑选项为擦除选项时,所述响应于用户对任一编辑选项的触发操作,获取所述用户针对所述编辑选项输入的编辑内容,包括:
    响应于用户对所述擦除选项的触发操作,显示预设的笔画尺寸调节控件;
    获取所述用户通过触发所述笔画尺寸调节控件输入的目标笔画尺寸,以及,获取所述用户在所述第一区域内触发的擦除轨迹;
    根据所述目标笔画尺寸以及所述擦除轨迹确定待擦除区域,将所述待擦除区域确定为所述编辑内容;
    所述根据所述编辑选项对应的编辑内容对所述第一区域进行编辑操作,获得第二区域,包括:
    对所述第一区域与所述待擦除区域相重合的位置进行擦除操作,获得所述第二区域。
  10. 根据权利要求1-5任一项所述的方法,其中,所述编辑页面中包括继续克隆选项;
    所述根据所述第一目标区域生成与所述第一目标区域相关联的第一区域之后,还包括:
    响应于用户对所述继续克隆选项的触发操作,显示区域选择页面,所述区域选择页面中包括所述待修复图像以及预设的提示控件,所述提示控件用于提示用户在所述待修复图像中选择目标区域;
    响应于用户对待修复图像中任意区域的选择操作,确定所述用户选择的第二目标区域,生成与所述第二目标区域关联的第一区域;
    将所述第一目标区域相关联的第一区域以及所述第二目标区域关联的第一区域确定为当前的第一区域。
  11. 根据权利要求1-5任一项所述的方法,其中,所述根据所述第二区域对所述待修复图像进行图像修复操作,包括:
    响应于用户对所述第二区域的移动操作,将所述第二区域移动至所述待修复图像中的待修复位置;
    将所述第二区域覆盖在所述待修复位置,对所述待修复图像进行图像修复操作。
  12. 根据权利要求1-5任一项所述的方法,其中,所述响应于用户对预设的图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域之前,还包括:
    响应于用户对预设的修复控件的触发操作,跳转至所述图像修复页面;
    在所述图像修复页面内显示所述待修复图像以及与所述待修复图像关联的全部可编辑图层。
  13. 一种图像修复装置,包括:
    确定模块,用于响应于用户在图像修复页面内对待修复图像中任意区域的选择操作,确定所述用户选择的第一目标区域;
    处理模块,用于根据所述第一目标区域生成与所述第一目标区域相关联的第一区域,并在所述图像修复页面内显示预设的编辑页面;
    编辑模块,用于响应于用户在所述编辑页面内输入的编辑内容,根据所述编辑内容对所述第一区域进行编辑操作,获得第二区域;
    修复模块,用于根据所述第二区域对所述待修复图像进行图像修复操作。
  14. 一种电子设备,包括:处理器和存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求1-12任一项所述的图像修复方法。
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1-12任一项所述的图像修复方法。
  16. 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1-12任一项所述的图像修复方法。
  17. 一种计算机程序,其在被处理器执行时实现如权利要求1-12任一项所述的图像修复方法。
PCT/CN2023/118907 2022-09-30 2023-09-14 图像修复方法、装置、设备、计算机可读存储介质及产品 WO2024067145A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211215127.6 2022-09-30
CN202211215127.6A CN115880168A (zh) 2022-09-30 2022-09-30 图像修复方法、装置、设备、计算机可读存储介质及产品

Publications (1)

Publication Number Publication Date
WO2024067145A1 true WO2024067145A1 (zh) 2024-04-04

Family

ID=85770238

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/118907 WO2024067145A1 (zh) 2022-09-30 2023-09-14 图像修复方法、装置、设备、计算机可读存储介质及产品

Country Status (2)

Country Link
CN (1) CN115880168A (zh)
WO (1) WO2024067145A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115880168A (zh) * 2022-09-30 2023-03-31 北京字跳网络技术有限公司 图像修复方法、装置、设备、计算机可读存储介质及产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494996A (zh) * 2018-05-14 2018-09-04 Oppo广东移动通信有限公司 图像处理方法、装置、存储介质及移动终端
US20190057527A1 (en) * 2017-08-17 2019-02-21 Adobe Systems Incorporated Digital Media Environment for Style-Aware Patching in a Digital Image
CN111145135A (zh) * 2019-12-30 2020-05-12 腾讯科技(深圳)有限公司 一种图像去扰处理方法、装置、设备及存储介质
CN112862696A (zh) * 2020-12-31 2021-05-28 深圳市路维光电股份有限公司 掩模版修复控制方法、装置及计算机可读存储介质
CN115880168A (zh) * 2022-09-30 2023-03-31 北京字跳网络技术有限公司 图像修复方法、装置、设备、计算机可读存储介质及产品

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817538A (zh) * 2016-12-11 2017-06-09 乐视控股(北京)有限公司 电子设备、图片拍摄方法及装置
CN112767238A (zh) * 2020-12-31 2021-05-07 北京字跳网络技术有限公司 图像处理方法、装置、电子设备及存储介质
CN113763286A (zh) * 2021-09-27 2021-12-07 北京市商汤科技开发有限公司 图像处理方法及装置、电子设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190057527A1 (en) * 2017-08-17 2019-02-21 Adobe Systems Incorporated Digital Media Environment for Style-Aware Patching in a Digital Image
CN108494996A (zh) * 2018-05-14 2018-09-04 Oppo广东移动通信有限公司 图像处理方法、装置、存储介质及移动终端
CN111145135A (zh) * 2019-12-30 2020-05-12 腾讯科技(深圳)有限公司 一种图像去扰处理方法、装置、设备及存储介质
CN112862696A (zh) * 2020-12-31 2021-05-28 深圳市路维光电股份有限公司 掩模版修复控制方法、装置及计算机可读存储介质
CN115880168A (zh) * 2022-09-30 2023-03-31 北京字跳网络技术有限公司 图像修复方法、装置、设备、计算机可读存储介质及产品

Also Published As

Publication number Publication date
CN115880168A (zh) 2023-03-31

Similar Documents

Publication Publication Date Title
US11849211B2 (en) Video processing method, terminal device and storage medium
WO2024067145A1 (zh) 图像修复方法、装置、设备、计算机可读存储介质及产品
WO2024067144A1 (zh) 图像处理方法、装置、设备、计算机可读存储介质及产品
WO2023279914A1 (zh) 控件编辑方法、装置、设备、可读存储介质及产品
WO2022237604A1 (zh) 数据标注方法、装置、设备、计算机可读存储介质及产品
CN110070896A (zh) 图像处理方法、装置、硬件装置
CN113377365B (zh) 代码显示方法、装置、设备、计算机可读存储介质及产品
CN108762628B (zh) 页面元素移动显示方法、装置、终端设备及存储介质
US20240348914A1 (en) Photographing method and apparatus, electronic device, and storage medium
US12019669B2 (en) Method, apparatus, device, readable storage medium and product for media content processing
WO2024046284A1 (zh) 绘制动画生成方法、装置、设备、可读存储介质及产品
WO2021088794A1 (zh) 控件设置方法、装置、电子设备及交互系统
WO2024125328A1 (zh) 直播图像帧处理方法、装置、设备、可读存储介质及产品
WO2024078471A1 (zh) 工作项信息的查看方法、装置、电子设备及存储介质
CN110134300A (zh) 一种图片编辑方法及装置
WO2024199011A1 (zh) 图像处理方法、装置、设备、计算机可读存储介质及产品
WO2022179409A1 (zh) 控件显示方法、装置、设备及介质
WO2024131582A1 (zh) 特效生成方法、装置、设备、计算机可读存储介质及产品
WO2024165010A1 (zh) 信息生成方法、信息显示方法、装置、设备和存储介质
US20240168612A1 (en) Information processing method, device and apparatus
WO2024169926A1 (zh) 基于虚拟对象的互动方法、装置、设备、存储介质及产品
WO2024140239A1 (zh) 页面显示方法、装置、设备、计算机可读存储介质及产品
US9389747B2 (en) Quick close button
WO2024032635A1 (zh) 媒体内容获取方法、装置、设备、可读存储介质及产品
US12041374B2 (en) Segmentation-based video capturing method, apparatus, device and storage medium

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: 23870379

Country of ref document: EP

Kind code of ref document: A1