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

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

Info

Publication number
WO2021185142A1
WO2021185142A1 PCT/CN2021/080138 CN2021080138W WO2021185142A1 WO 2021185142 A1 WO2021185142 A1 WO 2021185142A1 CN 2021080138 W CN2021080138 W CN 2021080138W WO 2021185142 A1 WO2021185142 A1 WO 2021185142A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
recognition area
area
module
user
Prior art date
Application number
PCT/CN2021/080138
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 WO2021185142A1 publication Critical patent/WO2021185142A1/zh

Links

Images

Classifications

    • 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
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Definitions

  • the present invention relates to the field of communication technology, in particular to an image processing method, electronic equipment and storage medium.
  • the current image processing method only supports processing for the entire image, but not for partial images.
  • the image In order to solve the problem that the image cannot be processed locally, the image is automatically recognized and then segmented. However, for some images with complex scenes, because some images in the image cannot be recognized, the image segmentation is inaccurate, which makes it impossible to quickly , Process the image accurately, resulting in unsatisfactory image processing effect.
  • the embodiments of the present invention provide an image processing method, an electronic device, and a storage medium to solve the problem that the image processing method in the prior art cannot accurately process the image after segmentation, and the image processing effect is not good.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides an image processing method.
  • the method includes: receiving an editing operation of a user on a first target image; determining a recognition area according to the editing operation; The image of the recognition area is processed.
  • an embodiment of the present invention also provides an electronic device, the electronic device includes: a first receiving module, configured to receive a user's editing operation on a first target image; a first determining module, configured according to the The editing operation determines the recognition area; the first processing module is used to process the image of the recognition area according to the first processing rule.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor. When executed, the steps of the image processing method are realized.
  • an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the image processing method.
  • the recognition area is determined; and the image in the recognition area is processed according to the first processing rule. It can be realized that in the image processing process, it is not limited to the global processing of the first target image.
  • the first target image can be divided into partial images according to user editing operations, and the recognition area of the first target image can be locally processed, so that The processed image quality is better.
  • Fig. 1 is a flowchart of steps of an embodiment of an image processing method provided by the present invention
  • FIG. 2 is a flowchart of steps of another embodiment of an image processing method provided by the present invention.
  • FIG. 3 is a structural block diagram of an embodiment of an electronic device provided by the present invention.
  • FIG. 4 is a structural block diagram of another embodiment of an electronic device provided by the present invention.
  • FIG. 5 is a schematic diagram of the hardware structure of an embodiment of an electronic device provided by the present invention.
  • FIG. 1 there is shown a step flow chart of an embodiment of an image processing method provided by the present invention.
  • Step 101 The electronic device receives the user's editing operation on the first target image.
  • the first target image may be an image in an electronic device album, or an image obtained from a server, and an image obtained by calling a camera of the electronic device, which is not specifically limited in the embodiment of the present invention.
  • the user can manually divide the recognition area and the non-recognition area in the first target image, or manually edit the recognized and non-recognized objects of each object in the image.
  • Step 102 The electronic device determines the recognition area according to the editing operation.
  • the area where each sliding track is closed is determined, and then the recognition area is determined through the user's setting operation on the area, where the recognition area is the area that needs to be replaced.
  • Step 103 The electronic device processes the image of the recognition area according to the first processing rule.
  • the recognition area is processed using the first processing rule, for example, the recognition area is replaced, or the recognition area is enlarged or reduced.
  • the first target image is divided into a non-recognition area and a recognition area, thereby avoiding the inaccurate segmentation of the image due to automatic recognition, resulting in improper processing of local areas and other problems, so that the image processing effect is better.
  • the recognition area is determined; and the image in the recognition area is processed according to the first processing rule. It can be realized that in the image processing process, it is not limited to the global processing of the first target image.
  • the first target image can be divided into partial images according to user editing operations, and the recognition area of the first target image can be locally processed, so that The processed image quality is better.
  • FIG. 2 a flowchart of another embodiment of an image processing method provided by the present invention is shown.
  • Step 201 The electronic device receives the user's segmentation operation on the first target image.
  • the segmentation operation may be sliding in the first target image, and the segmentation operation is determined according to the sliding trajectory.
  • the first target image may be an image in an electronic device album, or an image obtained from a server, and an image obtained by calling a camera of the electronic device, which is not specifically limited in the embodiment of the present invention.
  • Step 202 The electronic device divides the first target image into multiple sub-regions according to the dividing operation.
  • the first target image there are multiple sliding trajectories, and different closed sliding trajectories form a sub-region. According to the segmentation operation, the first target image is divided into multiple sub-regions.
  • Step 203 The electronic device receives the user's editing operation on each sub-region.
  • the user can manually select the recognized area and the non-recognized area in the first target image, or manually edit the recognized and non-recognized objects of each object in the image.
  • Step 204 For each sub-area, the electronic device determines the recognition area and the non-recognition area of the sub-area according to the editing operation.
  • a processing rule is to process the image in the recognition area
  • the second processing rule is to process the image in the non-recognition area.
  • the second processing rule is to perform enhancement processing on image parameters in the non-recognition area.
  • the first target image is a face image
  • the eyes, eyebrows, lips, nose, and ears in the face image are manually segmented.
  • the user can select which areas are the recognition areas, and select another part of the areas as the non-recognition areas.
  • the area where each sliding track is closed is determined, and then the recognition area and the non-recognition area are determined through the user's setting operation on the area, where the recognition area is required
  • the area to be replaced, and the non-recognized area is the area that does not need to be replaced.
  • the first target image is a face image
  • the eyes, eyebrows, lips, nose, and ears in the face image are manually segmented.
  • the user can select which areas are the recognition areas, and select another part of the areas as the non-recognition areas.
  • Step 205 the electronic device obtains the parameter information of the identification area
  • Step 206 The electronic device receives the second target image selected by the user
  • Step 207 The electronic device replaces the image of the recognition area with the second target image according to the parameter information.
  • the parameter information of the recognition area may be shape information or sliding trajectory information, and the image of the recognition area is replaced with the second target image according to the shape information or sliding trajectory information.
  • the image processing method provided by the embodiment of the present invention further includes: determining a second target image corresponding to the recognition area, the second target image is an image selected by the user, or may be a preset image in the electronic device.
  • the recognition area needs to be occluded. Therefore, the second target image is replaced with an image of the recognition area to highlight the recognition area.
  • Steps 204 to 207 may also be: the electronic device recognizes the first area image of the above-mentioned recognition area; the electronic device determines the second area image selected by the user; the electronic device adjusts the second area image according to the first area image to obtain the adjustment After the second area image, the electronic device replaces the first area image with the adjusted second area image.
  • the first area image and the second area image may be portraits.
  • the recognition area and the non-recognition area are determined, and the recognition area is recognized by the image recognition technology, and the first person in the recognition area is recognized.
  • each second portrait is output and displayed in the recognition area.
  • the second portrait is an image pre-stored in the electronic device, and each output second portrait is displayed in the form of a list or displayed in a nine-square grid for the user to select and adjust the second portrait according to the first portrait.
  • the first portrait is the left half of the portrait.
  • the second portrait is also the left half, and the size of the portrait and The size of the facial features of the portrait are adjusted by the first portrait.
  • the first portrait is replaced with the adjusted second portrait, so that the left half of the portrait of the final generated image is the left half of the second portrait, and the right The half area is the right half of the first portrait.
  • the second portrait based on the first portrait
  • the position of the facial features is adjusted.
  • the generated image is more natural.
  • the size of the facial features of the second portrait can be adjusted by the user according to preferences.
  • Image recognition technology refers to the object recognition of images to identify various targets and objects in different modes. Image recognition technology may be based on the main features of the image. Each image has its characteristics, such as the letter A has a sharp point, P has a circle, and the center of Y has an acute angle. Research on eye movement during image recognition shows that the line of sight is always focused on the main features of the image, that is, where the contour of the image is the largest or the direction of the contour changes suddenly. These places have the greatest amount of information.
  • Step 208 The electronic device performs enhancement processing on the image parameters in the non-recognition area.
  • the image parameters include any one of the following: image brightness, image contrast, and image color.
  • the image of each object in the non-recognition area is recognized, and the image of each object in the recognition area is highlighted, or the image parameters of the non-recognition area are directly enhanced to highlight the recognition area.
  • the image parameters It can be: image brightness, image contrast, image color, etc., which are not specifically limited in the embodiment of the present invention.
  • the recognition area is determined; and the image in the recognition area is processed according to the first processing rule. It can be realized that in the image processing process, it is not limited to the global processing of the first target image.
  • the first target image can be divided into partial images according to user editing operations, and the recognition area of the first target image can be locally processed, so that The processed image quality is better.
  • FIG. 3 a structural block diagram of an embodiment of an electronic device provided by the present invention is shown.
  • the electronic device includes: a first receiving module 301, configured to receive a user's editing operation on a first target image; a first determining module 302, configured to determine a recognition area according to the editing operation; a first processing module 303 , Used to process the image of the recognition area according to the first processing rule.
  • the recognition area is determined; and the image in the recognition area is processed according to the first processing rule. It can be realized that in the image processing process, it is not limited to the global processing of the first target image.
  • the first target image can be divided into partial images according to user editing operations, and the recognition area of the first target image can be locally processed, so that The processed image quality is better.
  • FIG. 4 there is shown a structural block diagram of another embodiment of an electronic device provided by the present invention.
  • the electronic device includes: a first receiving module 401, configured to receive a user's editing operation on a first target image; a first determining module 402, configured to determine a recognition area according to the editing operation; a first processing module 403 , Used to process the image of the recognition area according to the first processing rule.
  • the first processing module 403 includes: a first acquiring sub-module 4031 for identifying parameter information of the recognition area; a first receiving sub-module 4032 for receiving a second target image selected by a user; The first replacement sub-module 4033 is configured to replace the image of the recognition area with the second target image according to the parameter information.
  • the first processing module 403 includes: a second acquiring sub-module 4034, configured to acquire a first area image of the recognition area; and a determining sub-module 4035, configured to determine a second area image selected by the user;
  • the adjustment sub-module 4036 is used to adjust the second area image according to the first area image to obtain the adjusted second area image;
  • the second replacement sub-module 4037 is used to replace the first area image with the adjusted second area image Area image.
  • the electronic device further includes: a second receiving module 404, configured to receive the user's segmentation operation on the first target image before the first receiving module 401 receives the user's editing operation on the first target image
  • the segmentation module 405 is configured to divide the first target image into multiple sub-regions according to the segmentation operation; the first receiving module 401 is specifically configured to: receive the editing operations of the user on each sub-region; the first determining module 402 is specifically configured to include : For each sub-area, according to the editing operation, determine the recognition area of the sub-area.
  • the electronic device further includes: a second determination module 406, configured to determine the non-recognition area according to the editing operation after the first determining module 402 determines the recognition area according to the editing operation; the second processing module 407: After the first processing module 403 processes the recognition area according to the first processing rule, perform enhancement processing on the image parameters in the non-recognition area, where the image parameters include any one of the following: image brightness, image contrast And the image color.
  • the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of FIG. 1 to FIG.
  • the recognition area is determined; and the image in the recognition area is processed according to the first processing rule. It can be realized that in the image processing process, it is not limited to the global processing of the first target image.
  • the first target image can be divided into partial images according to user editing operations, and the recognition area of the first target image can be locally processed, so that The processed image quality is better.
  • An embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor.
  • the computer program is executed by the processor to implement each process of the above-mentioned image processing method embodiment. , And can achieve the same technical effect, in order to avoid repetition, I will not repeat them here.
  • FIG. 5 is a schematic diagram of the hardware structure of an embodiment of an electronic device provided by the present invention.
  • FIG. 5 a schematic diagram of the hardware structure of an embodiment of an electronic device provided for implementing the present invention.
  • the electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • a radio frequency unit 501 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and Power supply 511 and other components.
  • Those skilled in the art can understand that the structure of the electronic device shown in FIG. 5 does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers
  • the processor 510 is configured to receive an editing operation of the user on the first target image; determine the recognition area according to the editing operation; and process the image in the recognition area according to the first processing rule.
  • the recognition area is determined; and the image in the recognition area is processed according to the first processing rule. It can be realized that in the image processing process, it is not limited to the global processing of the first target image.
  • the first target image can be divided into partial images according to user editing operations, and the recognition area of the first target image can be locally processed, so that The processed image quality is better.
  • the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 510; Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 can convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic device 500 (e.g., call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the electronic device 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the electronic device 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operate).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of touch event, and then the processor 510 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device and the electronic device 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 500 or can be used to connect the electronic device 500 to an external device. Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the electronic device 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 500 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned image processing method embodiment is realized, and the same technology can be achieved. The effect, in order to avoid repetition, will not be repeated here.
  • examples of computer-readable storage media include non-transitory computer-readable storage media, such as read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), magnetic disks, or optical disks. Wait.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods of the various embodiments of the present invention.
  • Such a processor can be, but is not limited to, a general-purpose processor, a dedicated processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagram and/or flowchart and the combination of the blocks in the block diagram and/or flowchart can also be implemented by dedicated hardware that performs specified functions or actions, or can be implemented by dedicated hardware and A combination of computer instructions.

Abstract

一种图像处理方法、电子设备及存储介质,所述方法包括:电子设备接收用户对第一目标图像的编辑操作(101);电子设备根据编辑操作,确定识别区域(102);电子设备根据第一处理规则对识别区域的图像进行处理(103)。

Description

图像处理方法、电子设备及存储介质
相关申请的交叉引用
本申请主张在2020年03月18日在中国提交的中国专利申请号202010192688.3的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信技术领域,特别是涉及一种图像处理方法、电子设备及存储介质。
背景技术
目前的对于图像的处理方式,只支持针对整张图像进行处理,并不能针对局部图像进行处理。
为了解决无法对图像进行局部处理的问题,会将图像进行自动识别后分割处理,然而,对于某些具有复杂场景的图像,由于图像中有些图像无法识别,导致对图像分割不准确,从而无法快速、准确地对图像进行处理,造成图像处理的效果不理想。
发明内容
本发明实施例提供一种图像处理方法、电子设备及存储介质,以解决现有技术中的图像处理方法无法准确对图像分割后进行处理,图像处理效果不佳的问题。
为了解决上述技术问题,本发明是这样实现的:
第一方面,本发明实施例提供了一种图像处理方法,所述方法包括:接收用户对第一目标图像的编辑操作;根据所述编辑操作,确定识别区域;根据第一处理规则对所述识别区域的图像进行处理。
第二方面,本发明实施例还提供了一种电子设备,所述电子设备包 括:第一接收模块,用于接收用户对第一目标图像的编辑操作;第一确定模块,用于根据所述编辑操作,确定识别区域;第一处理模块,用于根据第一处理规则对所述识别区域的图像进行处理。
第三方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的图像处理方法的步骤。
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现所述的图像处理方法的步骤。
在本发明实施例中,通过接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。能够实现在图像处理过程中,并不限于仅能对第一目标图像进行全局处理,可以根据用户编辑操作对第一目标图像分割为局部图像,对第一目标图像的识别区域进行局部处理,使得处理后的图像质量更佳。
附图说明
图1是本发明提供的一种图像处理方法的一个实施例的步骤流程图;
图2是本发明提供的一种图像处理方法的另一个实施例的步骤流程图;
图3是本发明提供的一种电子设备的一个实施例的结构框图;
图4是本发明提供的一种电子设备的另一个实施例的结构框图;
图5是本发明提供的一种电子设备的一个实施例的硬件结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参照图1,示出了本发明提供的一种图像处理方法的一个实施例的步骤流程图。
本发明实施例提供的图像处理方法,包括以下步骤:
步骤101:电子设备接收用户对第一目标图像的编辑操作。
需要说明的是,第一目标图像可以为电子设备相册中的图像,或者从服务器中获取的图像,调用电子设备的摄像头获取的图像,本发明实施例对此不作具体限制。
用户可以在第一目标图像中,手动划分出识别区域和非识别区域,或者手动编辑图像中各物体的识别物体和非识别物体。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤102:电子设备根据编辑操作,确定识别区域。
当用户在第一目标图像中输入滑动轨迹,则确定每个滑动轨迹闭合的区域,再通过用户对区域的设定操作,确定识别区域,其中,识别区域为需要替换的区域。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤103:电子设备根据第一处理规则对识别区域的图像进行处理。
对识别区域采用第一处理规则进行处理,例如:对识别区域进行替换操作,或者对识别区域进行放大操作、缩小操作等。
通过手动编辑,将第一目标图像分割为非识别区域和识别区域,从而避免,由于自动识别导致分割图像不准确,造成对局部区域处理不当等问题,使得图像处理效果更佳。
在本发明实施例中,通过接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。能够实现在图像处理过程中,并不限于仅能对第一目标图像进行全局处理,可以根据用户编辑操作对第一目标图像分割为局部图像,对第一目标图像的识别区域进行局部处理,使得处理后的图像质量更佳。
参照图2,示出了本发明提供的一种图像处理方法的另一个实施例的步骤流程图。
本发明实施例提供的图像处理方法包括以下步骤:
步骤201:电子设备接收用户对第一目标图像的分割操作。
需要说明的是,分割操作可以为对第一目标图像中滑动,根据滑动轨迹确定分割操作。
第一目标图像可以为电子设备相册中的图像,或者从服务器中获取的图像,调用电子设备的摄像头获取的图像,本发明实施例对此不作具体限制。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤202:电子设备根据分割操作,将第一目标图像分割为多个子区域。
在第一目标图像中,存在多个滑动轨迹,不同闭合的滑动轨迹形成一个子区域,根据分割操作,将第一目标图像分割为多个子区域。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤203:电子设备接收用户对各子区域的编辑操作。
用户可以在第一目标图像中,手动选择出识别区域和非识别区域,或者手动编辑图像中各物体的识别物体和非识别物体。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤204:电子设备针对每个子区域,根据编辑操作,确定子区域的识别区域和非识别区域。
例如:第一目标图像中存在衣服、人物、水杯、背景等区域,手动将人物、衣服、水杯、背景分割,用户选择衣服和水杯为识别区域,将背景、人物选择为非识别区域,通过第一处理规则对识别区域的图像进行处理,通过第二处理规则对非识别区域的图像进行处理,例如第二处理规则为对非识别区域中的图像参数进行增强处理。
或者第一目标图像为人脸图像,手动将人脸图像中的眼睛、眉毛、嘴唇、鼻子、耳朵进行分割,用户可以选择哪些区域为识别区域,选择另一部分区域为非识别区域。
当用户在第一目标图像或者各子区域中输入滑动轨迹,则确定每个滑动轨迹闭合的区域,再通过用户对区域的设定操作,确定识别区域和非识 别区域,其中,识别区域为需要替换的区域,非识别区域为不需要替换的区域。
例如:第一目标图像中存在衣服、人物、水杯、背景等区域,手动将人物、衣服、水杯、背景分割,用户选择衣服和水杯为识别区域,将背景、人物选择为非识别区域,通过第一处理规则对识别区域的图像进行处理,通过第二处理规则对非识别区域的图像进行处理。
或者第一目标图像为人脸图像,手动将人脸图像中的眼睛、眉毛、嘴唇、鼻子、耳朵进行分割,用户可以选择哪些区域为识别区域,选择另一部分区域为非识别区域。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤205:电子设备获取识别区域的参数信息;
步骤206:电子设备接收用户选择的第二目标图像;
步骤207:电子设备根据参数信息,将识别区域的图像替换为第二目标图像。
其中,识别区域的参数信息可以为形状信息、滑动轨迹信息,根据形状信息或者滑动轨迹信息,将识别区域的图像替换为第二目标图像。
在步骤207之前,本发明实施例提供的图像处理方法还包括:确定与识别区域对应的第二目标图像,第二目标图像为用户自行选择的图像,也可以为电子设备中预设的图像。
在某些第一目标图像或者某个子区域中,需要遮挡识别区域,因此,将第二目标图像替换至识别区域的图像,以突出呈现识别区域。
步骤204至步骤207,还可以为:电子设备识别上述识别区域的第一区域图像;电子设备确定用户选择的第二区域图像;电子设备根据第一区域图像对第二区域图像进行调整,得到调整后的第二区域图像,电子设备将第一区域图像替换为调整后的第二区域图像。
其中,第一区域图像和第二区域图像可以为人像。
根据用户输入的编辑操作,确定识别区域和非识别区域,利用图像识别技术,对识别区域进行识别,识别出识别区域的第一人像,用户可以自行选择第二人像,也可以在识别出识别区域的第一人像后,在识别区域输 出显示各第二人像。其中,第二人像为电子设备中预存的图像,且输出的各第二人像以列表的形式显示,或者以九宫格的方式显示,以供用户选择,根据第一人像对第二人像进行调整。例如:第一人像为人像的左半区域,确定第一人像的区域大小,人像的身形大小以及人像的五官大小,则第二人像也为左半区域,且人像的身形大小以及人像的五官大小均通过第一人像进行调节,最终,将第一人像替换为调整后的第二人像,使得最终生成的图像的人像的左半区域为第二人像的左半区域,右半区域为第一人像的右半区域。
具体地,基于第一人像对第二人像进行调整,需要获取第一人像的面部特征,以及各面部特征的位置信息,根据第一人像的面部特征的位置信息,对第二人像的面部特征的位置进行调整,当将第二人像对第一人像进行替换后,使得生成的图像更加自然,对于第二人像面部特征的大小,用户可以根据喜好自行调整。
图像识别技术它是指对图像进行对象识别,以识别各种不同模式的目标和对像的技术,图像识别技术可能是以图像的主要特征为基础的。每个图像都有它的特征,如字母A有个尖,P有个圈、而Y的中心有个锐角等。对图像识别时眼动的研究表明,视线总是集中在图像的主要特征上,也就是集中在图像轮廓曲度最大或轮廓方向突然改变的地方,这些地方的信息量最大。
在人类图像识别系统中,对复杂图像的识别往往要通过不同层次的信息加工才能实现。对于熟悉的图形,由于掌握了它的主要特征,就会把它当作一个单元来识别,而不再注意它的细节了。这种由孤立的单元材料组成的整体单位叫做组块,每一个组块是同时被感知的。
本发明实施例提供的图像处理方法还包括以下步骤:
步骤208:电子设备对非识别区域中的图像参数进行增强处理。
图像参数包括以下任一之一:图像亮度、图像对比度以及图像颜色。
通过图像识别技术,对非识别区域中的各物体图像进行识别,并突出显示识别区域中的各物体图像,或者直接对非识别区域的图像参数进行增强,以突出显示识别区域,其中,图像参数可以为:图像亮度、图像对比 度、图像颜色等,本发明实施例对此不作具体限制。
在本发明实施例中,通过接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。能够实现在图像处理过程中,并不限于仅能对第一目标图像进行全局处理,可以根据用户编辑操作对第一目标图像分割为局部图像,对第一目标图像的识别区域进行局部处理,使得处理后的图像质量更佳。
参照图3,示出了本发明提供的一种电子设备的一个实施例的结构框图。
本发明实施例提供的电子设备包括:第一接收模块301,用于接收用户对第一目标图像的编辑操作;第一确定模块302,用于根据编辑操作,确定识别区域;第一处理模块303,用于根据第一处理规则对识别区域的图像进行处理。
在本发明实施例中,通过接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。能够实现在图像处理过程中,并不限于仅能对第一目标图像进行全局处理,可以根据用户编辑操作对第一目标图像分割为局部图像,对第一目标图像的识别区域进行局部处理,使得处理后的图像质量更佳。
参照图4,示出了本发明提供的一种电子设备的另一个实施例的结构框图。
本发明实施例提供的电子设备包括:第一接收模块401,用于接收用户对第一目标图像的编辑操作;第一确定模块402,用于根据编辑操作,确定识别区域;第一处理模块403,用于根据第一处理规则对识别区域的图像进行处理。
在本申请的一些实施例中,第一处理模块403包括:第一获取子模块4031,用于识别识别区域的参数信息;第一接收子模块4032,用于接收用户选择的第二目标图像;第一替换子模块4033,用于根据参数信息,将识别区域的图像替换为第二目标图像。
在本申请的一些实施例中,第一处理模块403包括:第二获取子模块4034,用于获取识别区域的第一区域图像;确定子模块4035,用于确定用户选择的第二区域图像;调整子模块4036,用于根据第一区域图像对第二区域图像进行调整,得到调整后的第二区域图像;第二替换子模块4037,用于将第一区域图像替换为调整后的第二区域图像。
在本申请的一些实施例中,电子设备还包括:第二接收模块404,用于在第一接收模块401接收用户对第一目标图像的编辑操作之前,接收用户对第一目标图像的分割操作;分割模块405,用于根据分割操作,将第一目标图像分割为多个子区域;第一接收模块401具体用于:接收用户对各子区域的编辑操作;第一确定模块402具体用于包括:针对每个子区域,根据编辑操作,确定子区域的识别区域。
在本申请的一些实施例中,电子设备还包括:第二确定模块406,用于在第一确定模块402根据编辑操作,确定识别区域之后,根据编辑操作,确定非识别区域;第二处理模块407,用于在第一处理模块403根据第一处理规则对识别区域进行处理之后,对非识别区域中的图像参数进行增强处理,其中,图像参数包括以下任一之一:图像亮度、图像对比度以及图像颜色。
本发明实施例提供的电子设备能够实现图1至图2的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
在本发明实施例中,通过接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。能够实现在图像处理过程中,并不限于仅能对第一目标图像进行全局处理,可以根据用户编辑操作对第一目标图像分割为局部图像,对第一目标图像的识别区域进行局部处理,使得处理后的图像质量更佳。
本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
图5是本发明提供的一种电子设备的一个实施例的硬件结构示意图。
参照图5,为实现本发明提供的一种电子设备的一个实施例的硬件结构示意图。
该电子设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
处理器510,用于接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。
在本发明实施例中,通过接收用户对第一目标图像的编辑操作;根据编辑操作,确定识别区域;根据第一处理规则对识别区域的图像进行处理。能够实现在图像处理过程中,并不限于仅能对第一目标图像进行全局处理,可以根据用户编辑操作对第一目标图像分割为局部图像,对第一目标图像的识别区域进行局部处理,使得处理后的图像质量更佳。
应理解的是,本发明实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与电子设备500执行的特定功能相关的音频输 出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。
电子设备500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在电子设备500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。
用户输入单元507可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触 笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图5中,触控面板5071与显示面板5061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元508为外部装置与电子设备500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备500内的一个或多个元件或者可以用于在电子设备500和外部装置之间传输数据。
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失 性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器510是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器510可包括一个或多个处理单元;优选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
电子设备500还可以包括给各个部件供电的电源511(比如电池),优选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备500包括一些未示出的功能模块,在此不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述图像处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质的示例包括非暂态计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可 以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。
上面参考根据本公开的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (12)

  1. 一种图像处理方法,应用于电子设备,所述方法包括:
    接收用户对第一目标图像的编辑操作;
    根据所述编辑操作,确定识别区域;
    根据第一处理规则对所述识别区域的图像进行处理。
  2. 根据权利要求1所述的方法,其中,所述根据第一处理规则对所述识别区域进行处理的步骤,包括:
    获取所述识别区域的参数信息;
    接收用户选择的第二目标图像;
    根据所述参数信息,将所述识别区域的图像替换为第二目标图像。
  3. 根据权利要求1所述的方法,其中,所述根据第一处理规则对所述识别区域进行处理的步骤,包括:
    获取所述识别区域的第一区域图像;
    确定所述用户选择的第二区域图像;
    根据所述第一区域图像对所述第二区域图像进行调整,得到调整后的所述第二区域图像;
    将所述第一区域图像替换为所述调整后的所述第二区域图像。
  4. 根据权利要求1所述的方法,其中,在所述接收用户对第一目标图像的编辑操作的步骤之前,所述方法还包括:
    接收用户对第一目标图像的分割操作;
    根据所述分割操作,将所述第一目标图像分割为多个子区域;
    所述接收用户对第一目标图像的编辑操作的步骤,包括:
    接收用户对各所述子区域的编辑操作;
    所述根据所述编辑操作,确定识别区域的步骤,包括:
    针对每个所述子区域,根据所述编辑操作,确定所述子区域的识别区域。
  5. 根据权利要求1所述的方法,其中,在所述根据所述编辑操作,确定识别区域的步骤之后,所述方法还包括:
    根据所述编辑操作,确定非识别区域;
    在所述根据第一处理规则对所述识别区域进行处理的步骤之后,所述方法还包括:
    对所述非识别区域中的图像参数进行增强处理,其中,所述图像参数包括以下任一项:图像亮度、图像对比度以及图像颜色。
  6. 一种电子设备,包括:
    第一接收模块,用于接收用户对第一目标图像的编辑操作;
    第一确定模块,用于根据所述编辑操作,确定识别区域;
    第一处理模块,用于根据第一处理规则对所述识别区域的图像进行处理。
  7. 根据权利要求6所述的电子设备,其中,所述第一处理模块包括:
    第一获取子模块,用于获取所述识别区域的参数信息;
    第一接收子模块,用于接收用户选择的第二目标图像;
    第一替换子模块,用于根据所述参数信息,将所述识别区域的图像替换为第二目标图像。
  8. 根据权利要求6所述的电子设备,其中,所述第一处理模块包括:
    第二获取子模块,用于获取所述识别区域的第一区域图像;
    确定子模块,用于确定所述用户选择的第二区域图像;
    调整子模块,用于根据所述第一区域图像对所述第二区域图像进行调整,得到调整后的所述第二区域图像;
    第二替换子模块,用于将所述第一区域图像替换为所述调整后的所述第二区域图像。
  9. 根据权利要求6所述的电子设备,其中,所述电子设备还包括:
    第二接收模块,用于在所述第一接收模块接收用户对第一目标图像的编辑操作之前,接收用户对第一目标图像的分割操作;
    分割模块,用于根据所述分割操作,将所述第一目标图像分割为多个子区域;
    所述第一接收模块具体用于:接收用户对各所述子区域的编辑操作;
    所述第一确定模块具体用于包括:针对每个所述子区域,根据所述编 辑操作,确定所述子区域的识别区域。
  10. 根据权利要求6所述的电子设备,其中,所述电子设备还包括:
    第二确定模块,用于在所述第一确定模块根据所述编辑操作,确定识别区域之后,根据所述编辑操作,确定非识别区域;
    第二处理模块,用于在所述第一处理模块根据第一处理规则对所述识别区域进行处理之后,对所述非识别区域中的图像参数进行增强处理,其中,所述图像参数包括以下任一项:图像亮度、图像对比度以及图像颜色。
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任意一项所述的图像处理方法的步骤。
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任意一项所述的图像处理方法的步骤。
PCT/CN2021/080138 2020-03-18 2021-03-11 图像处理方法、电子设备及存储介质 WO2021185142A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010192688.3 2020-03-18
CN202010192688.3A CN111402271A (zh) 2020-03-18 2020-03-18 一种图像处理方法及电子设备

Publications (1)

Publication Number Publication Date
WO2021185142A1 true WO2021185142A1 (zh) 2021-09-23

Family

ID=71432611

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/080138 WO2021185142A1 (zh) 2020-03-18 2021-03-11 图像处理方法、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN111402271A (zh)
WO (1) WO2021185142A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114429493A (zh) * 2022-01-26 2022-05-03 数坤(北京)网络科技股份有限公司 影像序列处理方法、装置、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402271A (zh) * 2020-03-18 2020-07-10 维沃移动通信有限公司 一种图像处理方法及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096808A1 (en) * 2006-02-28 2009-04-16 Microsoft Corporation Object-Level Image Editing
US20140112534A1 (en) * 2012-10-23 2014-04-24 Sony Corporation Information processing device and storage medium
CN104282031A (zh) * 2014-09-19 2015-01-14 广州三星通信技术研究有限公司 处理待输出图片的方法、装置和终端
CN111402271A (zh) * 2020-03-18 2020-07-10 维沃移动通信有限公司 一种图像处理方法及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144361A (zh) * 2018-07-09 2019-01-04 维沃移动通信有限公司 一种图像处理方法及终端设备
CN110147805B (zh) * 2018-07-23 2023-04-07 腾讯科技(深圳)有限公司 图像处理方法、装置、终端及存储介质
CN109859211A (zh) * 2018-12-28 2019-06-07 努比亚技术有限公司 一种图像处理方法、移动终端及计算机可读存储介质
CN110335277A (zh) * 2019-05-07 2019-10-15 腾讯科技(深圳)有限公司 图像处理方法、装置、计算机可读存储介质和计算机设备
CN110766606B (zh) * 2019-10-29 2023-09-26 维沃移动通信有限公司 一种图像处理方法及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096808A1 (en) * 2006-02-28 2009-04-16 Microsoft Corporation Object-Level Image Editing
US20140112534A1 (en) * 2012-10-23 2014-04-24 Sony Corporation Information processing device and storage medium
CN104282031A (zh) * 2014-09-19 2015-01-14 广州三星通信技术研究有限公司 处理待输出图片的方法、装置和终端
CN111402271A (zh) * 2020-03-18 2020-07-10 维沃移动通信有限公司 一种图像处理方法及电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114429493A (zh) * 2022-01-26 2022-05-03 数坤(北京)网络科技股份有限公司 影像序列处理方法、装置、电子设备及存储介质
CN114429493B (zh) * 2022-01-26 2023-05-09 数坤(北京)网络科技股份有限公司 影像序列处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN111402271A (zh) 2020-07-10

Similar Documents

Publication Publication Date Title
US11689649B2 (en) Shooting method and terminal
CN107817939B (zh) 一种图像处理方法及移动终端
CN109461117B (zh) 一种图像处理方法及移动终端
CN108712603B (zh) 一种图像处理方法及移动终端
CN110365907B (zh) 一种拍照方法、装置及电子设备
WO2019174628A1 (zh) 拍照方法及移动终端
WO2021104321A1 (zh) 图像显示方法及电子设备
CN108628515B (zh) 一种多媒体内容的操作方法和移动终端
WO2020238497A1 (zh) 图标移动方法及终端设备
US11165950B2 (en) Method and apparatus for shooting video, and storage medium
CN111031253B (zh) 一种拍摄方法及电子设备
US11842029B2 (en) Image display method and mobile terminal
CN109448069B (zh) 一种模板生成方法及移动终端
WO2021185142A1 (zh) 图像处理方法、电子设备及存储介质
CN111461985A (zh) 图片处理方法及电子设备
WO2021017730A1 (zh) 截图方法及终端设备
CN109120800A (zh) 一种应用程序图标调整方法及移动终端
US20230014409A1 (en) Detection result output method, electronic device and medium
CN110908517B (zh) 图像编辑方法、装置、电子设备及介质
WO2020156119A1 (zh) 应用程序界面调整方法及移动终端
WO2021190370A1 (zh) 截图方法及电子设备
WO2021083090A1 (zh) 消息发送方法及移动终端
CN111491124B (zh) 视频处理方法、装置及电子设备
CN109819331B (zh) 一种视频通话方法、装置、移动终端
CN111402157A (zh) 一种图像处理方法及电子设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21772348

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21772348

Country of ref document: EP

Kind code of ref document: A1