Processing method, intelligent terminal and storage medium
By using a smart terminal to identify and automatically blur specific objects in the preview image during the shooting process, the problem of low efficiency in manual blurring in existing technologies is solved, achieving real-time privacy protection and efficient shooting.
Patent Information
- Application Number
- CN202611220031.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-11
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, users need to manually blur or cover the facial information of non-critical subjects when taking photos in public places, resulting in low shooting efficiency and poor user experience.
During the shooting process, the smart terminal automatically performs blurring processing by recognizing features in the preview image. It performs real-time blurring processing on objects that require privacy protection, including analysis of features such as location, image size, and identity. Based on preset strategies, it determines the privacy protection level and performs corresponding blurring processing.
It enables real-time and automatic blurring of objects requiring privacy protection during shooting, improving the real-time nature and automation of privacy protection, and enhancing shooting efficiency and user experience.
Smart Images

Figure CN123145476A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, specifically to a processing method, a smart terminal, and a storage medium. Background Technology
[0002] With the widespread adoption of smart devices such as smartphones and tablets, and the rapid development of the mobile internet, the number of users of smart devices is increasing, and the camera function has become one of the standard features of smart devices. However, when taking photos in public places, passersby or other people who are not the subject of the photo are often unintentionally captured. If the facial information of these non-key individuals is disclosed without authorization, it may infringe on their privacy rights. The existing solution is that users need to manually blur or cover the faces of non-key individuals using image editing software after taking the photo.
[0003] In conceiving and implementing this application, the inventors discovered at least the following problems: manual operation is required, which reduces shooting efficiency and affects user experience.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] To address the aforementioned technical issues, this application provides a processing method, a smart terminal, and a storage medium that can perform real-time and automatic blurring of objects requiring privacy protection during the shooting process, thereby improving the real-time nature and automation of privacy protection, and enhancing shooting efficiency and user experience.
[0006] This application provides a processing method applicable to smart terminals, comprising the following steps: S1, in response to the first operation, perform blurring processing on the first or second shooting object according to a preset strategy to obtain the target image; the first shooting object and the second shooting object are different shooting objects in the preview image.
[0007] Optionally, before step S1, the following steps are included: Obtain at least one feature of each captured object in the preview image; The subject whose features meet the preset conditions is identified as the first subject.
[0008] Optionally, the feature includes at least one of the following: The position of the subject in the preview image; The image size of the subject in the preview image; The number of times the subject appears in a series of consecutive historical images; The sum of the distances between the subject and other subjects; The state of the subject in the preview image; Identification of the subject being photographed.
[0009] Optionally, satisfying the preset conditions includes at least one of the following: The location satisfies preset location conditions; The imaging size meets the preset size conditions; The number of occurrences is greater than or equal to a preset threshold number; The sum of the distances satisfies a preset distance condition; The state is a preset state; The identity identifier is in the pre-registered whitelist.
[0010] Optionally, the step of performing blurring processing on the first or second photographed object according to a preset strategy to obtain the target image includes: Determine the privacy protection level of the first or second subject being photographed; According to the blurring strategy corresponding to the privacy protection level, blurring is performed on the first or second shooting object to obtain the target image.
[0011] Optionally, determining the privacy protection level of the first or second photographed object includes at least one of the following: If the first or second subject includes a preset type of object, and / or the smart terminal is in a first type of scenario, the privacy protection level of the first or second subject is determined to be the first level. If the smart terminal is in the second type of scenario, the privacy protection level of the first or second shooting object is determined to be the second level; the privacy protection level of the second level is lower than that of the first level. If the smart terminal is in a preset mode, the privacy protection level of the first or second subject is determined to be the third level; the privacy protection level of the third level is lower than that of the second level.
[0012] Optionally, the method further includes: Display a first control on the first or second photographed object; In response to the second operation, the target shooting object corresponding to the triggered first control is determined as the shooting object that needs to be blurred.
[0013] Optionally, the method further includes: When displaying the target image, a second control for restoring the image is displayed; In response to a triggering operation on the second control, the original captured image without blurring is displayed.
[0014] This application also provides a smart terminal, including: a memory and a processor, wherein the memory stores a processing program, and when the processing program is executed by the processor, it implements the above-described processing method.
[0015] This application also provides a storage medium storing a computer program that, when executed by a processor, implements the above-described processing method.
[0016] As described above, the processing method of this application can be applied to a smart terminal, including: S1, in response to a first operation, performing blurring processing on a first shooting object or a second shooting object according to a preset strategy to obtain a target image; the first shooting object and the second shooting object are different shooting objects in the preview image. Through the above technical solution, the smart terminal performs blurring processing on the first shooting object or the second shooting object according to a preset strategy to obtain a target image during shooting, realizing real-time and automatic blurring of objects requiring privacy protection during the shooting process, without user manual intervention or post-editing, improving the real-time nature and automation of privacy protection, and enhancing shooting efficiency and user experience. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0018] Figure 1 A schematic diagram of the hardware structure of a mobile terminal to implement the various embodiments of this application.
[0019] Figure 2 This is a communication network system architecture diagram provided for an embodiment of this application.
[0020] Figure 3 This is a flowchart illustrating a processing method according to one embodiment.
[0021] The realization of the objectives, functional features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0022] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application.
[0023] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.
[0024] It should be understood that although the terms first, second, third, etc., may be used herein to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if," as used herein, may be interpreted as "when," "when," or "in response to determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising," "including," indicate the presence of the stated feature, step, operation, element, component, item, kind, and / or group, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or," "and / or," "including at least one of the following," etc., as used in this application, may be interpreted as inclusive, or mean any one or any combination thereof. For example, "including at least one of the following: A, B, C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C." Similarly, "A, B, or C" or "A, B, and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A and B and C." Exceptions to this definition only occur when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0025] It should be understood that although the steps in the flowcharts of this application's embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0026] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0027] It should be noted that step designations such as S1 and S2 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. In specific implementation, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the protection scope of this application.
[0028] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0029] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0030] Smart terminals can be implemented in various forms. For example, the smart terminals described in this application may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (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.
[0031] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to the embodiments of this application can also be applied to fixed-type terminals.
[0032] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of this application. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0033] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal: The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, 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, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may 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.
[0034] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0035] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0036] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage media) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0037] 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 ambient light level, and the proximity sensor can turn off the display panel 1061 and / or 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 various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0038] 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.
[0039] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Optionally, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. 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 position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands sent by processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being specifically limited here.
[0040] 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. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize 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 realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0041] Interface unit 108 serves as an interface through which at least one external device can connect to 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, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0042] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. Optionally, the program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0043] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. 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 handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0044] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0045] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0046] To facilitate understanding of the embodiments of this application, the communication network system on which the mobile terminal of this application is based is described below.
[0047] Please see Figure 2 , Figure 2 This application provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. 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 the operator's IP services 204, which are connected in sequence.
[0048] Optionally, UE201 can be the aforementioned terminal 100, which will not be described in detail here.
[0049] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Optionally, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface). eNodeB2021 connects to EPC203 and can provide UE201 with access to EPC203.
[0050] EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving Gateway) 2034, a PGW (Packet Data Network Gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as the Home Location Register (not shown in the figure) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0051] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0052] Although the above description uses the LTE system as an example, those skilled in the art should know that this 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.
[0053] Based on the above-described mobile terminal hardware structure and communication network system, various embodiments of this application are proposed.
[0054] Reference Figure 3 , Figure 3 This is a flowchart illustrating a processing method according to an embodiment of this application. The processing method of this embodiment can be applied to smart terminals (such as mobile phones), and includes the following steps: S1. In response to the first operation, perform blurring processing on the first or second shooting object according to a preset strategy to obtain the target image; the first and second shooting objects are different shooting objects in the preview image.
[0055] Optionally, when a user needs to take a photo or record video using an image capture device on a smart terminal, such as a camera, they can launch the camera application to obtain a preview image through the image capture device. The subject being captured refers to the object shown in the preview image that has been captured by the image capture device; it can be a person, animal, plant, or building, etc., without specific limitations. Optionally, the first subject is a subject requiring privacy protection, i.e., a subject requiring blurring, and the second subject is a subject not requiring privacy protection, i.e., a subject not requiring blurring. Optionally, the second subject can be one or more subjects.
[0056] Optionally, the first operation is an interactive operation issued by the user to instruct the smart terminal to perform shooting, which can be input through a physical shutter button, a virtual shutter button, or voice control commands. Preset strategies can be set according to actual needs, such as blurring the subject based on its privacy protection level. If the second subject requires privacy protection, it will be blurred during shooting while keeping the first subject clear.
[0057] For example, taking a mobile phone as an example of a smart terminal, when a user takes a photo of a friend at a tourist attraction, the area is usually crowded with tourists, especially in photo-op locations. If a tourist is nearby, they may be photographed. However, photographing such a tourist infringes on their portrait rights and privacy rights, and blurring can only be done after the image is taken. In the processing method proposed in this application, after the mobile phone identifies a tourist in the preview image, it can automatically blur the tourist's face and other features when taking the final image, making it impossible to clearly see the tourist's face and other features in the final image.
[0058] In this way, the smart terminal performs blurring processing on the first or second subject according to a preset strategy during shooting to obtain the target image. This enables real-time and automatic blurring of objects that require privacy protection during the shooting process, without the need for manual user intervention or post-editing. This improves the real-time nature and automation of privacy protection, and enhances shooting processing efficiency and user experience.
[0059] Optionally, before step S1, the following steps are included: Obtain at least one feature of each captured object in the preview image; The subject whose features meet the preset conditions is identified as the first subject.
[0060] Optionally, the features of the subject can be used to calculate whether the subject can be identified as the first subject, including but not limited to: positional information representing the compositional importance of the subject, imaging size information representing the relative distance of the subject, pre-registration information representing the identity of the subject, and information representing the frequency of continuous occurrence of the subject's stability. It should be noted that the smart terminal may also perform the operation of acquiring at least one feature of each subject in the preview image only after the privacy protection function is enabled. In this way, based on at least one feature of each subject in the preview image, the first subject can be accurately and quickly determined, further facilitating the real-time and automatic identification of objects requiring privacy protection and improving shooting efficiency.
[0061] Optionally, the features include at least one of the following: The position of the subject in the preview image; The size of the subject in the preview image; The number of times the subject appears in a series of consecutive historical images; The sum of the distances between the subject and other subjects; The state of the subject in the preview image; Identification of the subject being photographed.
[0062] Optionally, the position of the subject in the preview image can be the degree of deviation of the subject from the preset reference position of the preview image, such as the distance between the center point of the subject's bounding box and the center point of the preview image, or whether the subject is located in a predefined key area of the preview image. The predefined key area can be a circular area with the center point of the preview image as the center and a radius of a certain proportion of the image width or height, or a rectangular area located in the center of the image, etc.
[0063] Optionally, the image size of the subject in the preview image includes, but is not limited to, the relative area percentage, width, and height of the subject in the preview image. The relative area percentage of the subject in the preview image can be the ratio of the bounding box area of the subject to the total area of the preview image.
[0064] Optionally, the number of times the subject appears in historical consecutive frames can be the number of times the subject appears in historical consecutive frame preview images, the number of times the subject appears in captured historical consecutive frame images, or the total number of times the subject appears in both historical consecutive frame preview images and captured historical consecutive frame images. Consecutive frame images can be understood as all images acquired within a preset time period.
[0065] Optionally, the distance between the subject and other subjects can be the distance between the center point of the subject's bounding box and the center point of the bounding box of other subjects. After obtaining the distance between the subject and each other subject, the sum of the distances between the subject and other subjects can be obtained.
[0066] Optionally, the state of the subject in the preview image can be used to characterize the subject's state and cooperation, including but not limited to at least one of the following: face orientation, whether the eyes are open, and whether the face is smiling.
[0067] Optionally, the identity identifier of the photographed subject can be used to indicate whether the subject is a registered trusted object. Taking a person as an example, the identity identifier of the photographed subject is data extracted from the subject's facial biometrics and registered to uniquely distinguish different individuals (such as feature vectors, hash values, database primary keys, etc.). For example, through a facial recognition algorithm, the detected facial features are compared with pre-stored feature templates in a local database (whitelist). If a match is successful, a corresponding identity identifier is assigned (such as "father", "mother", "friend A", etc.).
[0068] Optionally, meeting the preset conditions includes at least one of the following: The location meets the preset location conditions; The image size meets the preset size requirements; The number of occurrences is greater than or equal to a preset threshold. The sum of the distances satisfies the preset distance condition; The state is the preset state; The identity identifier is in the pre-registered whitelist.
[0069] It should be noted that the following explanation uses the first subject as an example, which does not require privacy protection, to illustrate the characteristics of the subject that meet the preset conditions.
[0070] Optionally, the location must meet at least one of the following preset location conditions: the distance between the center point of the bounding box of the subject and the center point of the preview image is less than a preset distance threshold; the subject is located in a predefined key area of the preview image. For example, taking a person as the subject, if a user is carefully photographing a subject, and the face position indicates whether the subject is the center of the composition, and the user typically places the main target in the center of the image or at the golden ratio point, then a person whose face is located near the center point of the preview image can be considered the first subject.
[0071] Optionally, the image size meeting the preset size conditions includes at least one of the following: the relative area ratio of the subject in the preview image is greater than or equal to a preset ratio threshold (such as 20% or 30%); the height of the subject in the preview image is greater than or equal to a preset height value (such as 2 cm or 4 cm). For example, since the relative area ratio can characterize the relative distance between the subject and the camera of the smart terminal—that is, subjects that are closer appear larger, and subjects that are farther away appear smaller—if a user is taking a close-up photo of a friend, the relative area ratio of a distant pedestrian in the preview image will naturally be very small. Therefore, subjects with a relative area ratio greater than or equal to the preset ratio threshold can be determined as the first subject.
[0072] Optionally, if the number of times a subject appears in multiple consecutive historical frames is greater than or equal to a preset threshold, it indicates that the subject is likely to always be in the frame, meaning that the subject is the one the user wants to photograph. For example, assuming the user is recording a video, since the camera is usually pointed at the main subject to ensure they are always in the frame, while passersby may only appear briefly, the subject that consistently appears in the frame during video recording or continuous shooting can be identified as the first subject.
[0073] Optionally, the subject in the preview image is in a preset state, such as facing the smart device directly, smiling with open eyes, indicating that the subject is willing to cooperate with the photo shoot, and thus is the subject the user wants to photograph. For example, when users take a group photo, everyone will look at the camera and pose with expressions. Therefore, the subject facing the smart device directly and / or smiling with open eyes can be identified as the first subject, rather than a passerby with their head down or facing the side of the smart device.
[0074] Optionally, the identity of the subject being photographed is included in a pre-registered whitelist, indicating that the subject is frequently photographed by the smart terminal, meaning the subject is someone the user often photographs (such as family members or friends). For example, when a user takes a group photo with family members, each face can be matched against faces in the pre-registered whitelist to distinguish between strangers and familiar faces like family members, and the object corresponding to the pre-registered face will be designated as the first subject, thus avoiding blurring the faces of the user's family members.
[0075] Optionally, blurring is performed on the first or second subject according to a preset strategy to obtain the target image, including: Determine the privacy protection level for the first or second subject being photographed; Based on the blurring strategy corresponding to the privacy protection level, blurring is performed on the first or second subject to obtain the target image.
[0076] Optionally, when the first or second subject is a subject requiring privacy protection, the privacy protection level of the first or second subject can be determined first. Then, based on the correspondence between different privacy protection levels and blurring strategies, blurring processing is performed on the first or second subject according to the blurring strategy corresponding to its privacy protection level to obtain the target image. In this way, performing corresponding blurring processing based on the subject's privacy protection level improves the rationality and accuracy of privacy protection.
[0077] Optionally, the privacy protection level of the first or second subject may be determined, including at least one of the following: If the first or second subject includes a preset type of object, and / or the smart terminal is in a first type of scenario, the privacy protection level of the first or second subject is determined to be the first level. If the smart terminal is in the second type of scenario, the privacy protection level of the first or second subject is determined to be the second level; the privacy protection level of the second level is lower than that of the first level. If the smart terminal is in a preset mode, the privacy protection level of the first or second subject is determined to be Level 3; the privacy protection level of Level 3 is lower than that of Level 2.
[0078] Optionally, the smart terminal can determine the type of scenario it is in through methods such as location positioning, image acquisition, or schedule analysis. For example, the smart terminal can analyze the scenario it is in by taking pictures of its surroundings.
[0079] Optionally, the preset object type and the first type scene can be set according to actual needs. For example, the preset object type can be minors, police officers, soldiers, or people with improper attire, while the first type scene can be public places such as hospitals, shopping malls, stations, streets, and police stations. The blurring strategy corresponding to the first level can make people completely unrecognizable, which can be achieved through contour blurring (such as Gaussian blur) or pixelation (such as mosaic). For example, it is necessary to make whistleblowers or witnesses in news interview footage completely unrecognizable. It is understandable that in public places such as shopping malls, stations, streets, and subways, the shooting environment is densely populated, and there are many strangers. The default is to use high-level protection, that is, all detected faces are strongly blurred to ensure that no stranger can be identified.
[0080] Optionally, the second type of scenario and preset mode can be set according to actual needs. For example, the second type of scenario can be a residential setting, a party, a concert, a sporting event, an expo, a marathon, etc. It's understandable that in scenarios like family gatherings and friend get-togethers, most people usually know each other, so blurring is unnecessary; other strangers can be appropriately blurred to respect privacy. However, in scenarios like concerts, sporting events, expos, and marathons, participating in such activities implies tacitly agreeing to appear in other people's photos or videos, so appropriate blurring is appropriate. In a residential setting, users are usually photographing family members or pets, where the risk of privacy breach is low; therefore, the automatic blurring function can be reduced to avoid unnecessary processing of family members and improve the user experience.
[0081] Optionally, the preset modes include at least one of the following: professional shooting mode, power saving mode, and high-temperature protection mode. It is understood that in professional shooting modes (such as night scene mode, short video mode, etc.), the user's shooting intention is very clear: to prioritize image integrity and quality. Users of these modes are typically photography enthusiasts or professionals who have complete control over image composition and post-processing. In this case, the privacy protection level can be reduced or the privacy protection function can be turned off. Optionally, since continuous object detection and blurring are power-consuming operations, in power saving mode, the privacy protection level can be automatically reduced to the minimum or the privacy protection function can be turned off to extend battery life. Similarly, in high-temperature protection mode, to reduce chip load and control temperature, the privacy protection level can also be automatically reduced to the minimum or the privacy protection function can be turned off.
[0082] This allows for accurate acquisition of the privacy protection level of the subject being photographed, improving the rationality and accuracy of privacy protection.
[0083] Optionally, the method further includes: Display the first control on the first or second subject being photographed; In response to the second operation, the target shooting object corresponding to the triggered first control is determined as the shooting object that needs to be blurred.
[0084] Optionally, the first control is an interactive identifier (such as a privacy protection box, label, etc.) superimposed on at least one subject in the preview image, used to indicate to the user that the subject is in a state where privacy protection processing can be selected. The second operation is a selection operation performed by the user on the first control, such as a single click, double click, or long press. Considering that the user may use a special angle (such as shooting from above or below) to photograph the subject, or that the subject is not in the center of the preview image, or that the subject's face is partially obscured (such as wearing a mask, sunglasses, or a side profile), based on the characteristics of the subject, the aforementioned subjects may be determined to require blurring processing. In this case, the smart terminal can display a privacy protection box on each first or second subject, and only the subject corresponding to the selected privacy protection box is determined to be the subject requiring blurring processing, while the subjects corresponding to other unselected privacy protection boxes are determined to be the subjects not requiring blurring processing. Optionally, the privacy protection box can also be used to indicate that the privacy protection function is enabled. This allows for more accurate identification of objects requiring privacy protection, and further improves shooting efficiency and user experience.
[0085] Optionally, the method further includes: When displaying the target image, a second control for restoring the image is displayed; In response to a trigger action on the second control, the original captured image without blurring is displayed.
[0086] Optionally, the second control is an interactive entry point provided on the user interface for restoring the blurred target image to its original state. Specifically, it can take the form of a button (such as an icon button displayed in the corner of the target image) or a preset area (such as a square area displayed in the upper left corner of the target image). Smart terminals may mistakenly blur people the user wants to retain, or users may need the original image in certain scenarios. For example, a user-captured image might serve as evidence of a traffic accident or event, requiring the unmodified original image; photography enthusiasts might need the original image for more refined post-processing in professional software; or the user might have obtained permission from someone in the image afterward, thus no longer needing the blur effect. Therefore, when displaying the target image, the smart terminal can display a second control for restoring the image, and upon receiving a trigger operation on the second control, display the unblurred original captured image, thereby ensuring that the user can obtain and use the original image data at any time, increasing the flexibility and robustness of the processing.
[0087] The examples listed above are for reference only. To avoid redundancy, they will not be listed one by one here. In actual development or application, they can be flexibly combined according to actual needs. However, any combination belongs to the technical solution of this application and is covered by the protection scope of this application.
[0088] This application also provides a smart terminal, including a memory and a processor. The memory stores a processing program, and when the processing program is executed by the processor, it implements the processing method in any of the above embodiments.
[0089] This application also provides a storage medium storing a processing program, which, when executed by a processor, implements the processing method in any of the above embodiments.
[0090] In the embodiments of the smart terminal and storage medium provided in this application, all the technical features of any of the above-described processing method embodiments may be included. The extended and explained contents of the specification are basically the same as the embodiments of the above methods, and will not be repeated here.
[0091] This application also provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to perform the methods described in the various possible implementations above.
[0092] This 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 with the chip installed performs the methods described in the various possible implementations above.
[0093] It is understood that the above scenarios are merely examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of this application. The technical solutions of this application can also be applied to other scenarios. For example, as those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0094] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0095] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.
[0096] The units in the device of this application embodiment can be merged, divided, and deleted according to actual needs.
[0097] In this application, the same or similar terms, concepts, technical solutions and / or application scenario descriptions are generally described in detail only when they appear for the first time. When they appear again, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of this application, the same or similar terms, concepts, technical solutions and / or application scenario descriptions that are not described in detail later can be referred to their previous relevant detailed descriptions.
[0098] In this application, the descriptions of the various embodiments have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0099] The technical features of the present application can be combined in any way. For the sake of brevity, not all possible combinations of the 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.
[0100] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of this application.
[0101] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a storage medium or transmitted from one storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, storage disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0102] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A processing method applied to a smart terminal, characterized in that, Including the following steps: S1, in response to the first operation, perform blurring processing on the first or second shooting object according to a preset strategy to obtain the target image; the first shooting object and the second shooting object are different shooting objects in the preview image.
2. The method as described in claim 1, characterized in that, Before step S1, the following are included: Obtain at least one feature of each captured object in the preview image; The subject whose features meet the preset conditions is identified as the first subject.
3. The method as described in claim 2, characterized in that, The feature includes at least one of the following: The position of the subject in the preview image; The image size of the subject in the preview image; The number of times the subject appears in a series of consecutive historical images; The sum of the distances between the subject and other subjects; The state of the subject in the preview image; Identification of the subject being photographed.
4. The method as described in claim 3, characterized in that, The preset conditions include at least one of the following: The location satisfies preset location conditions; The imaging size meets the preset size conditions; The number of occurrences is greater than or equal to a preset threshold number; The sum of the distances satisfies a preset distance condition; The state is a preset state; The identity identifier is in the pre-registered whitelist.
5. The method according to any one of claims 1 to 4, characterized in that, The step of performing blurring processing on the first or second subject according to a preset strategy to obtain the target image includes: Determine the privacy protection level of the first or second subject being photographed; According to the blurring strategy corresponding to the privacy protection level, blurring is performed on the first or second shooting object to obtain the target image.
6. The method as described in claim 5, characterized in that, Determining the privacy protection level of the first or second subject includes at least one of the following: If the first or second subject includes a preset type of object, and / or the smart terminal is in a first type of scenario, the privacy protection level of the first or second subject is determined to be the first level. If the smart terminal is in the second type of scenario, the privacy protection level of the first or second shooting object is determined to be the second level; the privacy protection level of the second level is lower than that of the first level. If the smart terminal is in a preset mode, the privacy protection level of the first or second subject is determined to be the third level; the privacy protection level of the third level is lower than that of the second level.
7. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Display a first control on the first or second photographed object; In response to the second operation, the target shooting object corresponding to the triggered first control is determined as the shooting object that needs to be blurred.
8. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When displaying the target image, a second control for restoring the image is displayed; In response to a triggering operation on the second control, the original captured image without blurring is displayed.
9. A smart terminal, characterized in that, include: A memory and a processor, wherein the memory stores a processing program, and the processing program, when executed by the processor, implements the processing method as described in any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium stores a processing program, which, when executed by a processor, implements the processing method as described in any one of claims 1 to 8.
