Processing method, intelligent terminal and storage medium

By blurring the outline edges of the target object in the image to be processed, the problem of improving the three-dimensional sense in the prior art is solved, and the three-dimensional sense improvement does not affect the original style of the image is achieved, and the user experience is improved.

CN119810289APending Publication Date: 2025-04-11SHANGHAI TRANSSION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411767038.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing processing methods either require users to manually adjust the shooting parameters or have problems with effect distortion, making it difficult to effectively improve the three-dimensional sense of the target object.

Method used

By acquiring the image to be processed, the contour edge of the target object that meets the first preset condition is blurred according to the preset strategy, including generating the blurred parameters based on the recognition result of the target object or the image quality parameters of the image to be processed.

Benefits of technology

It effectively improves the three-dimensionality of the target object in the image without affecting the original style and reality of the image, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119810289A_ABST
    Figure CN119810289A_ABST
Patent Text Reader

Abstract

The invention provides a processing method, an intelligent terminal and a storage medium, and the processing method comprises the steps: obtaining a to-be-processed image, and carrying out the blurring processing of the contour edge of a target object meeting a first preset condition in the to-be-processed image according to a preset strategy. Therefore, the stereoscopic impression of the target object can be effectively improved, the original style and reality of the image are not affected, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a processing method, an intelligent terminal and a storage medium. Background Art

[0002] With the rapid development of electronic technology, smart terminals are widely used, bringing convenience to users' work and life. Among them, making the photographed object look more real and three-dimensional visually, thereby achieving the effect of enhancing the three-dimensional effect, is an important user experience.

[0003] In the process of conceiving and implementing the present application, the inventors found that there are at least the following problems: in order to achieve the effect of enhancing the stereoscopic effect, the existing processing methods either require the user to manually adjust the shooting parameters for different environments, or there is a problem of distorted effects.

[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention

[0005] In response to the above technical problems, the present application provides a processing method, an intelligent terminal and a storage medium, which can effectively enhance the three-dimensional sense of the target object without affecting the original style and realism of the image, thereby improving the user experience.

[0006] The present application provides a processing method, which can be applied to a smart terminal, including:

[0007] An image to be processed is acquired, and a contour edge of a target object in the image to be processed that meets a first preset condition is blurred according to a preset strategy.

[0008] Optionally, satisfying the first preset condition includes at least one of the following:

[0009] Target objects that meet the preset object categories;

[0010] A face object in the image to be processed;

[0011] A target object located in a preset area of ​​the image to be processed;

[0012] In response to the first operation, a target object is selected;

[0013] The color change vector direction of the outline edge is the target object in the preset direction.

[0014] Optionally, the preset strategy includes at least one of the following:

[0015] Generate and / or determine blur parameters according to the recognition result of the target object, and blur the contour edge of the target object based on the blur parameters;

[0016] A blur parameter is generated and / or determined according to the image quality parameter of the image to be processed, and a blur process is performed on the contour edge of the target object based on the blur parameter.

[0017] Optionally, the recognition result includes at least one of the following:

[0018] The category of the target object;

[0019] the shape of the target object;

[0020] the color of the target object;

[0021] The area ratio of the target object;

[0022] The orientation angle of the target object;

[0023] The biometric information of the target object.

[0024] Optionally, the image quality parameter includes at least one of the following:

[0025] The brightness of the image to be processed;

[0026] The clarity of the image to be processed;

[0027] The color change vector direction of the contour edge of the target object in the image to be processed.

[0028] Optionally, the blur parameter includes at least one of the following:

[0029] Blurred area;

[0030] Degree of blurring;

[0031] The blur type.

[0032] Optionally, it also includes:

[0033] Continue to identify a target sub-object that meets a second preset condition within the contour range of the target object, and perform contour edge blurring processing on the target sub-object.

[0034] Optionally, at least one of the following is also included:

[0035] According to the light source scene of the image to be processed, adding the light and shadow effect of the target object in the image to be processed;

[0036] According to the light source scene of the image to be processed, a light and shadow effect of the target sub-object is added to the image to be processed.

[0037] The present application also provides an intelligent terminal, comprising: a memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, any of the processing methods described above is implemented.

[0038] The present application also provides a storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, any of the processing methods described above is implemented.

[0039] As described above, the processing method of the present application can be applied to a smart terminal, including: obtaining an image to be processed, and blurring the contour edge of a target object that meets a first preset condition in the image to be processed according to a preset strategy. In this way, by blurring the contour edge of a target object that meets the first preset condition in the image to be processed, the stereoscopic sense of the target object in the image can be effectively enhanced without affecting the original style and realism of the image, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.

[0041] Figure 1 A schematic diagram of the hardware structure of a smart terminal for implementing each embodiment of the present application;

[0042] Figure 2 A communication network system architecture diagram provided for an embodiment of the present application;

[0043] Figure 3 is a flowchart of a processing method according to the first embodiment;

[0044] Figure 4 It is a flowchart of a processing method according to the second embodiment.

[0045] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned drawings have shown clear embodiments of this application, which will be described in more detail later. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0047] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0048] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising" and "including" indicate that there are the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" etc. used in this application can be interpreted as inclusive, or mean any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”, and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.

[0049] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0050] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0051] It should be noted that in this article, step codes such as S1, S2, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence.

[0052] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0054] The smart terminal may be implemented in various forms. For example, the smart terminal described in this application may include smart terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0055] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will understand that, in addition to components specifically used for mobile purposes, the construction according to the embodiments of the present application can also be applied to fixed-type terminals.

[0056] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0057] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:

[0058] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), 5G and 6G, etc.

[0059] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0060] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0061] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0062] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0063] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0064] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, 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 the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Optionally, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0065] Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Then, the processor 110 provides corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0066] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0067] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area. Optionally, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0068] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0069] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0070] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0071] In order to facilitate understanding of the embodiments of the present application, the communication network system on which the mobile terminal of the present application is based is described below.

[0072] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present application, wherein the communication network system is an LTE system of universal mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are connected in sequence for communication.

[0073] Optionally, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.

[0074] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Optionally, eNodeB 2021 may be connected to other eNodeBs 2022 via a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 may provide UE 201 with access to EPC 203 .

[0075] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, MME 2031 is a control node that processes signaling between UE 201 and EPC 203, and provides bearer and connection management. HSS 2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and store some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).

[0076] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.

[0077] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G and future new network systems (such as 6G), etc., without limitation here.

[0078] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the present application are proposed.

[0079] First embodiment

[0080] Reference Figure 3 , Figure 3 : is a flowchart of a processing method according to the first embodiment. The processing method of the embodiment of the present application can be applied to a smart terminal (such as a mobile phone, etc.), including the steps of:

[0081] S1: Acquire an image to be processed, and blur the contour edge of a target object in the image to be processed that meets a first preset condition according to a preset strategy.

[0082] Optionally, the image to be processed refers to an image that needs to be blurred, which can be an image that has been captured or stored by the smart terminal, or an image that has been captured or stored by other devices other than the smart terminal. Optionally, the target object can be set according to actual needs, such as a face, an animal, or various objects.

[0083] In the above manner, by blurring the contour edge of the target object that meets the first preset condition in the image to be processed, the stereoscopic effect of the target object in the image can be enhanced, thereby improving the user experience.

[0084] Optionally, satisfying the first preset condition includes at least one of the following:

[0085] Target objects that meet the preset object type;

[0086] The face object in the image to be processed;

[0087] A target object located in a preset area of ​​the image to be processed;

[0088] In response to the first operation, a target object is selected;

[0089] The color change vector direction of the outline edge is the target object in the preset direction.

[0090] Optionally, the preset object type can be set according to the actual needs, such as a face, limbs, torso, etc. The preset area can be set according to the actual needs, such as a middle area, a right area or a left area, etc. Optionally, the first operation can be set according to the actual needs, such as a touch operation, an air gesture operation, a voice operation, etc. In response to the first operation, the part of the object selected by the first operation can be used as the target object, or the remaining objects except the part of the object selected by the first operation can be used as the target object. Exemplarily, taking the target object as a face, the user can input a touch operation to the smart terminal to determine the object located within the sliding track formed by the touch operation as the target object. Optionally, the preset direction can be longitudinal or transverse, etc. Since the color change vector directions of the contour edges of different objects in the image to be processed may be different, the different objects in the image to be processed can be divided by the different directions of the color change vectors of the contour edges, so that the object whose color change vector direction of the contour edge is the preset direction can be determined as the target object.

[0091] Optionally, the preset strategy includes at least one of the following:

[0092] Generate and / or determine blur parameters according to the recognition result of the target object, and blur the contour edge of the target object based on the blur parameters;

[0093] A blur parameter is generated and / or determined according to the image quality parameter of the image to be processed, and a contour edge of the target object is blurred based on the blur parameter.

[0094] Optionally, after determining the target object that meets the first preset condition in the image to be processed, the target object can be identified, and blur parameters can be generated and / or determined based on the recognition result of the target object, and then the contour edge of the target object can be blurred based on the blur parameters. Optionally, after determining the target object that meets the first preset condition in the image to be processed, blur parameters can also be directly generated and / or determined based on the image quality parameters of the image to be processed, and then the contour edge of the target object can be blurred based on the blur parameters. Optionally, the contour edge of the target object can be determined by image recognition and / or positioning. Taking the target object as a human face as an example, the facial features of the person in the image to be processed can be located to determine the facial edge area of ​​the face. Optionally, the image quality parameters of the image to be processed can be obtained by extracting parameters from the image to be processed, or can be obtained by identification through an AI model.

[0095] Optionally, the recognition result includes at least one of the following:

[0096] Category of target object;

[0097] The shape of the target object;

[0098] The color of the target object;

[0099] The area ratio of the target object;

[0100] The orientation angle of the target object;

[0101] Biometric information of the target object.

[0102] Optionally, the category of the target object is used to indicate the category to which the target object is divided according to a preset classification standard, such as a human face, an animal, etc. Optionally, the shape of the target object is used to indicate the geometric shape of the target object in the image to be processed, such as a square, a circle, etc. Optionally, the color of the target object may be skin color, etc. Optionally, the area ratio of the target object may be the area ratio of the target object relative to the image to be processed, or the area ratio of the target object relative to the object where the target object is located. Taking the target object as a human face as an example, the area ratio of the face may be the area ratio of the face relative to the human body, etc. Optionally, the orientation angle of the target object is used to indicate the angle presented by the target object in the image to be processed. Taking the target object as a human face as an example, the orientation angle of the face may be 90 degrees forward (i.e., the face is a front face) or 90 degrees to the left (i.e., the face is a side face), etc. Optionally, the biometric information of the target object is used to indicate the external features of the target object, and may include at least one of the following: gender, age, race, skin color. Optionally, age may be an age type, such as a child, a middle-aged person, an elderly person, etc., or a specific age. The skin color may include at least one of the following: yellow skin color, black skin color, white skin color.

[0103] Optionally, when the recognition result of the target object is different, the blur parameter generated and / or determined according to the recognition result of the target object may also be different. Exemplarily, taking the case where the target object is a face, the recognition result includes the skin color of the face, and the blur parameter includes the blur degree as an example, when the skin color type is a light skin type, the blur degree may be higher, and when the skin color type is a dark skin type, the blur degree may be lower, so as to make the target object look more real and three-dimensional. Exemplarily, taking the case where the target object is a face, the recognition result includes the area ratio of the face, and the blur parameter includes the blur area as an example, when the area ratio of the face is larger, the corresponding blur area may be correspondingly larger, and when the area ratio of the face is smaller, the corresponding blur area may be correspondingly smaller.

[0104] Optionally, the image quality parameter includes at least one of the following:

[0105] The brightness of the image to be processed;

[0106] The clarity of the image to be processed;

[0107] The color change vector direction of the contour edge of the target object in the image to be processed.

[0108] Optionally, the brightness of the image to be processed refers to the brightness of the image to be processed. The clarity of the image to be processed refers to the clarity of each detail pattern and its boundary on the image to be processed. Optionally, when the image quality parameters of the image to be processed are different, the blur parameters generated and / or determined according to the image quality parameters of the image to be processed may also be different. Exemplarily, taking the image quality parameters including brightness and the blur parameters including blur degree as an example, when the brightness of the image to be processed is higher, the corresponding blur degree is also higher, and when the brightness of the image to be processed is lower, the corresponding blur degree is also lower. Exemplarily, taking the image quality parameters including clarity and the blur parameters including blur area as an example, when the clarity of the image to be processed is higher, the corresponding blur area is also larger, and when the clarity of the image to be processed is lower, the corresponding blur area is also smaller.

[0109] Optionally, the blur parameter includes at least one of the following:

[0110] Blurred area;

[0111] Degree of blurring;

[0112] The blur type.

[0113] Optionally, the blurred area is used to indicate the size of the area to be blurred. The degree of blur is used to indicate the intensity of blurring of the area to be blurred. The blur type may include at least one of the following: Gaussian blur, motion blur, radial blur. It is understandable that for different recognition results and / or image quality parameters, the generated and / or determined blur parameters may be different. Exemplarily, taking the target object as a face, the recognition result including the gender of the face, and the blur parameter as the degree of blur, when the gender is female, a relatively strong degree of blur may be used, and when the gender is male, a relatively weak degree of blur may be used to retain a tougher contour for the male.

[0114] Optionally, the method further includes: continuing to identify a target sub-object that meets a second preset condition within the contour range of the target object, and performing contour edge blurring processing on the target sub-object.

[0115] Optionally, the target sub-object is an object within the contour range of the target object in the image to be processed. Taking the target object as a human face as an example, the target sub-object may be eyes, nose, mouth, etc. Optionally, satisfying the second preset condition may include at least one of the following: a target sub-object that meets the preset object category; a target sub-object located in a preset area in the image to be processed; a target sub-object selected in response to the first operation; a target sub-object whose contour edge color change vector direction is a preset direction. Exemplarily, taking the target object as a human face as an example, after the image to be processed is evenly divided into an upper and lower part, a target sub-object such as an eye located in the upper area of ​​the image to be processed can be taken as a target sub-object that satisfies the second preset condition. In this way, the stereoscopic sense of the target object in the image can be further enhanced, and the user experience can be further improved.

[0116] Optionally, at least one of the following is also included:

[0117] According to the light source scene of the image to be processed, adding the light and shadow effect of the target object in the image to be processed;

[0118] According to the light source scene of the image to be processed, the light and shadow effect of the target sub-object is added to the image to be processed.

[0119] Optionally, according to the light source scene of the image to be processed, the specific process of adding the light and shadow effects of the target object and / or the target sub-object in the image to be processed can refer to the prior art, which will not be repeated here. It can be understood that adding the light and shadow effects of the target object and / or the target sub-object in the image to be processed can increase the light and dark contrast of light and shadow, making black darker and white whiter, which will make the target object and / or the target sub-object look more real and three-dimensional visually, thereby further enhancing the three-dimensional sense.

[0120] Second embodiment

[0121] Based on the same inventive concept as the aforementioned embodiment, this embodiment provides a specific example for detailed description. In this example, the image to be processed is a picture and the target object is a face.

[0122] See also Figure 4 The processing method provided in this embodiment includes the following steps:

[0123] S10: Obtain an input image.

[0124] S20: roughly determine the face area in the image by locating the facial features.

[0125] S30, identifying the skin color of the face area and other areas, and determining the edge of the face.

[0126] S40, determining whether the direction of the color change vector of the face edge is vertical, if so, executing step S50, otherwise executing step S80.

[0127] S50, determine whether the gender of the face is female, if so, execute step S60, otherwise execute step S70.

[0128] S60: Use a stronger blur strength to blur the edge of the face in the image.

[0129] S70: Use a weaker blur strength to blur the edge of the face in the image.

[0130] S80: Do not blur the edges of the faces in the image.

[0131] In this embodiment, based on the fact that the shape of a human head is close to a sphere, the near side is real and the far side is virtual. By blurring the edge of the face, the three-dimensional effect is enhanced. The reason why the cheek part is blurred is to preserve the details of the hair in the top area of ​​the head. Regarding the distinction of blur intensity, gender is used for judgment in this example, but other judgment conditions can also be added, such as the proportion of the face area, whether the face is frontal or side face, and the face skin color.

[0132] In summary, the processing methods provided in the above embodiments are applicable to portrait scenes. There is no need to adjust according to different scenes, and users do not need to retouch pictures one by one. Minor changes in the picture can make the portrait look more three-dimensional and close to the actual observation effect of the human eye, without affecting the original style and realism of the image. It can be superimposed with the method of adding light and shadow effects to photos without conflicting with other methods, and the portrait effect can be better improved.

[0133] The above examples are only reference examples. In order to avoid redundancy, they are not listed one by one here. In actual development or application, they can be flexibly combined according to actual needs, but any combination belongs to the technical solution of this application and is covered within the scope of protection of this application.

[0134] An embodiment of the present application further provides an intelligent terminal, including a memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the processing method in any of the above embodiments is implemented.

[0135] An embodiment of the present application further provides a storage medium, on which a processing program is stored, and when the processing program is executed by a processor, the processing method in any of the above embodiments is implemented.

[0136] In the embodiments of the smart terminal and storage medium provided in the present application, all technical features of any of the above-mentioned processing method embodiments may be included, and the expanded and explained contents of the specification are basically the same as those of the embodiments of the above-mentioned methods, and will not be repeated here.

[0137] The embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the methods in the above various possible implementation modes.

[0138] An embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the methods in various possible implementation modes as described above.

[0139] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0140] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0141] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0142] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0143] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.

[0144] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0145] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.

[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a storage medium, or transmitted from one storage medium to another storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, storage disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid-state storage disk Solid State Disk (SSD)), etc.

[0148] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A processing method, characterized in that: include: An image to be processed is acquired, and a contour edge of a target object in the image to be processed that meets a first preset condition is blurred according to a preset strategy.

2. The method according to claim 1, characterized in that The first preset condition is satisfied, including at least one of the following: Target objects that meet the preset object categories; A face object in the image to be processed; A target object located in a preset area of ​​the image to be processed; In response to the first operation, a target object is selected; The color change vector direction of the outline edge is the target object in the preset direction.

3. The method according to claim 1, characterized in that The preset strategy includes at least one of the following: Generate and / or determine blur parameters according to the recognition result of the target object, and blur the contour edge of the target object based on the blur parameters; A blur parameter is generated and / or determined according to the image quality parameter of the image to be processed, and a blur process is performed on the contour edge of the target object based on the blur parameter.

4. The method according to claim 3, characterized in that The recognition result includes at least one of the following: The category of the target object; the shape of the target object; the color of the target object; The area ratio of the target object; The orientation angle of the target object; The biometric information of the target object.

5. The method according to claim 3, characterized in that: The image quality parameter includes at least one of the following: The brightness of the image to be processed; The clarity of the image to be processed; The color change vector direction of the contour edge of the target object in the image to be processed.

6. The method according to claim 3, characterized in that The blur parameter includes at least one of the following: Blurred area; Degree of blurring; Defocus blur type.

7. The method according to any one of claims 1 to 6, characterized in that: Also includes: Continue to identify a target sub-object that meets a second preset condition within the contour range of the target object, and perform contour edge blurring processing on the target sub-object.

8. The method according to claim 7, characterized in that Also includes at least one of the following: According to the light source scene of the image to be processed, adding the light and shadow effect of the target object in the image to be processed; According to the light source scene of the image to be processed, a light and shadow effect of the target sub-object is added to the image to be processed.

9. An intelligent terminal, characterized in that: include: A memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the processing method according to any one of claims 1 to 8 is implemented.

10. A storage medium, characterized in that: The storage medium stores a processing program, and when the processing program is executed by the processor, the processing method according to any one of claims 1 to 8 is implemented.