CN115665551A - Processing method, intelligent terminal and storage medium - Google Patents

Processing method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN115665551A
CN115665551A CN202211337959.5A CN202211337959A CN115665551A CN 115665551 A CN115665551 A CN 115665551A CN 202211337959 A CN202211337959 A CN 202211337959A CN 115665551 A CN115665551 A CN 115665551A
Authority
CN
China
Prior art keywords
target image
target
preset
depth
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211337959.5A
Other languages
Chinese (zh)
Inventor
李江涛
彭叶斌
陈蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN202211337959.5A priority Critical patent/CN115665551A/en
Publication of CN115665551A publication Critical patent/CN115665551A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The application relates to a processing method, an intelligent terminal and a storage medium, wherein the processing method comprises the following steps: outputting a first interface comprising at least one first target image and at least one second target image, wherein the first target image meets a first preset condition, and the second target image meets a second preset condition; determining a target focusing position according to a preset strategy; and outputting a second interface, wherein the second interface comprises at least one third image, and the third image meets a third preset condition. By the method, the focusing position can be flexibly and accurately determined, so that the obtained image meets the requirements of the user, and the user experience is improved.

Description

Processing method, intelligent terminal and storage medium
Technical Field
The present application relates to the field of image technologies, and in particular, to a processing method, an intelligent terminal, and a storage medium.
Background
Along with the popularization of wearable intelligent equipment (such as intelligent wrist-watch, intelligent earphone, intelligent bracelet, intelligent glasses etc.), intelligent household equipment (such as intelligent TV, intelligent audio amplifier, intelligent refrigerator, intelligent desk lamp, intelligent air conditioner, intelligent oven etc.) and car networking equipment (such as intelligent automobile, vehicle mounted terminal, navigator etc.), very big facility has been brought for people's life.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: when the equipment shoots an image, the problem that the processing is not convenient and/or intelligent enough (such as the focusing position is not accurate) exists, and then the obtained image is not in line with the user requirements, and the user experience is influenced.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a processing method, an intelligent terminal and a storage medium, which can flexibly and accurately determine a focusing position, so that an obtained image meets user requirements, and user experience is improved.
The application provides a processing method, which can be applied to an intelligent terminal and comprises the following steps:
step S1: outputting a first interface comprising at least one first target image and at least one second target image;
step S2: determining a target focusing position according to a preset strategy;
and step S3: and outputting the second interface.
Optionally, the first target image satisfies a first preset condition.
Optionally, the second target image satisfies a second preset condition.
Optionally, the second interface includes at least one third image.
Optionally, the third image satisfies a third preset condition.
Optionally, the first preset condition being met includes at least one of:
the clarity is clear;
does not contain occluded content;
comprises at least one first preset object;
includes at least one object of a first predetermined type.
Optionally, the second preset condition is met and includes at least one of:
the sharpness is blurred;
comprises at least one content which is totally or partially occluded;
comprises at least one second preset object;
comprises at least one object of a second preset type.
Optionally, the preset policy includes at least one of:
touch operation, air-space operation, voice control instruction, depth information of the first target image and depth information of the second target image.
Optionally, the step S2 includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
obtaining a ratio between a depth and a depth of field of each of the objects;
and determining the position of the object with the ratio closest to the average ratio as the target focusing position, wherein the average ratio is the average value of the ratios corresponding to the objects.
Optionally, the step S2 includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
selecting at least one candidate object at a preset position from the objects according to a preset position sequence;
clustering by taking each candidate object as a clustering center point according to the depth and the depth of field corresponding to each object to obtain an object set of each candidate object; the set of objects includes objects positioned within a depth of field range of the candidate object;
selecting a target object set, and determining the position of a target candidate object corresponding to the target object set as the target focusing position; the target object set is not included in a union of object sets of neighboring candidate objects or not included in an object set of neighboring candidate objects.
Optionally, the second interface is displayed in the first interface, or the second interface is displayed independently or in association with the first interface.
Optionally, the third image is the processed first target image and/or the second target image.
Optionally, the third preset condition is met, including at least one of:
the first target image is changed from meeting a first preset condition to meeting a second preset condition;
the second target image changes from meeting a second preset condition to meeting a first preset condition;
the first target image and the second target image simultaneously meet a first preset condition;
the first target image and the second target image simultaneously satisfy a second preset condition.
The application also provides another processing method, which can be applied to an intelligent terminal and comprises the following steps:
step S10: outputting a first interface comprising at least one first target image and at least one second target image;
step S20: and responding to the condition meeting the preset condition, switching to a preset photographing mode and/or executing preset processing so that the first target image meets the first preset condition and/or the second target image meets the second preset condition.
Optionally, the meeting of the preset condition includes at least one of:
the definition of the first target image and/or the second target image is fuzzy;
the first target image and/or the second target image contain at least one completely or partially occluded content;
the first target image and the second target image comprise the same preset object;
the first target image and the second target image do not contain the same preset object;
the first target image and the second target image contain objects of the same preset type;
the first target image and the second target image contain objects of different preset types.
Optionally, the executing preset processing includes:
and determining a target focusing position according to a preset strategy.
Optionally, the preset policy includes at least one of: touch control operation, air-space operation, voice control instruction, depth information of the first target image and depth information of the second target image.
Optionally, the determining the target focusing position according to a preset strategy includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
obtaining a ratio between a depth and a depth of field of each of the objects;
and determining the position of the object with the ratio closest to the average ratio as the target focusing position, wherein the average ratio is the average value of the ratios corresponding to the objects.
Optionally, the determining the target focusing position according to a preset strategy includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
selecting at least one candidate object at a preset position from the objects according to a preset position sequence;
clustering by taking each candidate object as a clustering center point according to the depth and the depth of field corresponding to each object to obtain an object set of each candidate object; the set of objects includes objects positioned within a depth of field range of the candidate object;
selecting a target object set, and determining the position of a target candidate object corresponding to the target object set as the target focusing position; the target object set is not included in a union of object sets of the neighboring candidate objects or in an object set of the neighboring candidate objects.
Optionally, the first preset condition being met includes at least one of:
the clarity is clear;
the sharpness is blurred.
Optionally, the second preset condition being met includes at least one of:
the sharpness is fuzzy;
the clarity is clear.
The application further provides an intelligent terminal, the intelligent terminal includes: the device comprises a memory and a processor, wherein the memory stores a processing program, and the processing program realizes the steps of the processing method when being executed by the processor.
The present application also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the processing method as set forth in any one of the above.
As described above, the processing method of the present application includes: outputting a first interface comprising at least one first target image and at least one second target image; determining a target focusing position according to a preset strategy; and outputting the second interface. By the method, the focusing position can be flexibly and accurately determined, so that the obtained image meets the requirements of a user, and the user experience is improved.
In another aspect, the processing method of the present application includes: outputting a first interface comprising at least one first target image and at least one second target image; and responding to the condition meeting the preset condition, switching to a preset photographing mode and/or executing preset processing so that the first target image meets the first preset condition and/or the second target image meets the second preset condition. By the method, corresponding operation can be executed according to the image, so that the obtained image meets the requirements of a user, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive step.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a processing method according to a first embodiment;
fig. 4 is a first interface diagram of the intelligent terminal according to the first embodiment;
fig. 5 is a second interface diagram of the intelligent terminal according to the first embodiment;
FIG. 6 is a schematic flow chart diagram illustrating a processing method according to a second embodiment;
fig. 7 is an interface diagram of the smart terminal shown according to the second embodiment.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. Specific embodiments of the present application have been shown by way of example in the drawings and will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the element defined by the phrases "comprising a component of 8230; \8230;" comprising a component of this specification does not exclude the presence of additional similar elements in processes, methods, articles, or apparatus that comprise the same component, features, or elements, which may have the same meaning in different embodiments of the application, and optionally may have different meanings that are determined by their interpretation in the specific embodiment or by their context in further combination with the specific embodiment.
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 only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. As used herein, the terms "or," "and/or," "including at least one of the following," and the like, are to be construed as inclusive or meaning any one or any combination. For example, "includes at least one of: 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 ", again for example," 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'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless otherwise indicated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein may be interpreted as "at \8230; \8230whenor" when 8230; \8230when or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S1 and S2 are used herein for the purpose of more clearly and briefly describing corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S2 first and then S1 in the specific implementation, but these should be within the protection scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The smart terminal may be implemented in various forms. For example, the smart terminal described in the present application may be a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, a smart watch, a smart headset, smart glasses, a smart car, a car terminal, a navigator, and the like, and a fixed terminal such as a Digital TV, a desktop computer, a smart TV, a smart speaker, a smart refrigerator, a smart desk lamp, a smart air conditioner, a smart oven, and the like.
The following description will be given taking a mobile terminal as an example, and it will be understood by those skilled in the art that the configuration according to the embodiment of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present 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. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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, and the like. Alternatively, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), 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 duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution ), 5G (Global System for Mobile communications, or the like).
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is for receiving an audio or video signal. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of the phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
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 that may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 1061 and/or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing gestures of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometers and taps), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch orientation of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. Alternatively, the touch panel 1071 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc., and the like, without limitation.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is 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 having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices 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 external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, and the like), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Optionally, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. 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 primarily handles operating systems, user interfaces, application programs, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications 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 IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The 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 (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown in figure 2) and holds some user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown in fig. 2).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G, and future new network systems (e.g. 6G), and the like.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
First embodiment
Fig. 3 is a flowchart illustrating a processing method according to the first embodiment. As shown in fig. 3, the processing method of the embodiment can be applied to an intelligent terminal, and includes:
step S1: outputting a first interface comprising at least one first target image and at least one second target image;
step S2: determining a target focusing position according to a preset strategy;
and step S3: and outputting the second interface.
Optionally, the first target image satisfies a first preset condition.
Optionally, the second target image satisfies a second preset condition.
Optionally, the second interface includes at least one third image.
Optionally, the third image satisfies a third preset condition.
The intelligent terminal can be terminal equipment (such as cell-phone, panel computer etc.), wearable smart machine (such as intelligent wrist-watch, intelligent bracelet, smart headset etc.), intelligent household equipment (such as intelligent TV, intelligent audio amplifier etc.), car networking equipment (such as intelligent automobile, vehicle mounted terminal etc.). Optionally, the first target image and the second target image may be obtained by the smart terminal by taking different objects as focusing targets respectively, for example, after the smart terminal starts a camera application or another application with a photographing or video recording function due to a user operation, different objects in a viewing frame may be taken as focusing targets respectively to obtain at least one first target image and at least one second target image. Alternatively, the first target image and the second target image may be two images of a single captured image, for example, the intelligent terminal captures a user standing beside a building, and the user image in the captured image may be used as the first target image and the building image may be used as the second target image. Through the mode, the intelligent terminal determines the focusing position according to the preset strategy when shooting the image so as to flexibly determine the focusing position, the quality of the shot image can be improved, the obtained image meets the user requirement, and the user experience is improved.
It should be noted that the first target image and the second target image may be obtained by the intelligent terminal at the same time, or may be obtained by the intelligent terminal non-simultaneously. After the first target image and the second target image are obtained, the intelligent terminal can detect the first target image and the second target image, for example, whether the detection definition is clear, whether a preset object is included, whether an object of a preset type is included, and the like. Optionally, the first target image and the second target image may be different images captured by the intelligent terminal, or may be different area images in the same image captured by the intelligent terminal. Optionally, the first interface may be a camera preview interface, and the second interface may be the same as or different from the first interface. Optionally, the third image may be divided according to objects included in the first target image and the second target image to obtain the processed first target image and the processed second target image.
In an exemplary scenario, after a camera application is opened, and a first target image and a second target image are shot by taking different objects as focusing targets, the first target image and the second target image are displayed below a preset interface of a camera, if the first target image and the second target image both include preset objects such as people, a target focusing position can be determined according to depth information of the two images, and a third image is shot based on the target focusing position. In another scene, the intelligent terminal opens a camera application, takes different objects as focusing targets to shoot a first target image and a second target image, and displays the first target image and the second target image below a preset interface of the camera, if the face of the first target image is shielded by a hand and the face of the second target image is not shielded, the position of the face which is not shielded can be determined as a target focusing position because the face of the first target image is shielded by the hand, and a third image is obtained by shooting based on the target focusing position; and/or if the first target image comprises a female face and the second target image comprises a male face, because the requirement of the female on the shooting definition is higher than that of the male, the position of the female face can be determined as the target focusing position, and then the third image is obtained based on the target focusing position.
In another scene, the intelligent terminal opens a camera application, shoots an image, and displays the image on a preset interface of the camera, if a first target image containing a first object in the image is clear and a second target image containing a second object is fuzzy, the position of the second object is determined as a target focusing position, an image is shot based on the target focusing position, and then the image obtained by shooting again and the first target image obtained by shooting before are spliced and fused to obtain a third image; and/or if the first target image comprises a face and the second target image comprises plants, the position of the face can be determined as a target focusing position because the face needs to be clearly shot when the face is shot most of the time, and a third image is shot based on the target focusing position so that the shot face is clear.
Optionally, the first preset condition being met includes at least one of:
the clarity is clear;
comprises at least one first preset object;
includes at least one object of a first predetermined type.
Optionally, the first preset object may be set according to actual needs, including but not limited to a biological object (e.g., a person, a cat, a dog, etc.), a non-biological object (e.g., a sky, a tree, a grass, a building, etc.). Optionally, the first preset type may be set according to actual needs, including but not limited to male, female, young, old, and the like.
Optionally, the second preset condition being met includes at least one of:
the sharpness is fuzzy;
comprises at least one content which is totally or partially occluded;
comprises at least one second preset object;
comprises at least one object of a second preset type.
Optionally, the content that includes at least one completely or partially occluded content may be that a preset portion of one or more objects in the image is completely or partially occluded, for example, a human face is occluded by a hand. Optionally, the second preset object may be set according to actual needs, including but not limited to a biological object (e.g., a person, a cat, a dog, etc.), a non-biological object (e.g., a sky, a tree, a grass, a building, etc.). Optionally, the second preset object may be the same as the first preset object, or may be different from the first preset object. Optionally, the second preset type may be set according to actual needs, including but not limited to male, female, young, old, and the like. Optionally, the second preset type may be the same as the first preset type, or may be different from the first preset type.
Optionally, the preset policy includes at least one of:
touch operation, air-space operation, voice control instruction, depth information of the first target image and depth information of the second target image.
Alternatively, the user may determine the target focusing position by inputting a touch operation on the smart terminal. For example, a user may perform a click operation on an object on the first interface to determine a position of the clicked object as a target focus position. Optionally, the user may also input a blank operation to the smart terminal to determine the target focusing position. For example, the user may point a finger at a target object displayed on the first interface in the space to determine the position of the indicated object as the target focusing position. Optionally, the user may also input a voice control instruction to the intelligent terminal, so as to indicate the target focusing position through the voice control instruction. For example, when a user inputs a voice control instruction 'focus to a face for shooting' to the intelligent terminal, the target focusing position can be determined to be the position of the face. Optionally, since the depth information corresponding to each object to be photographed can be known according to the depth information of the first target image and the depth information of the second target image, in order to accurately determine the focusing position to photograph an image meeting the user requirement, the determination may be performed by combining the depth information corresponding to each object.
Optionally, the step S2 includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
obtaining a ratio between a depth and a depth of field of each of the objects;
and determining the position of the object with the ratio closest to the average ratio as the target focusing position, wherein the average ratio is the average value of the ratios corresponding to the objects.
Optionally, according to the depth information of the first target image and the depth information of the second target image, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired, and further, based on a correspondence between the depth information and the depth information, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired. After the depth and the depth of field corresponding to each object to be shot are obtained, the ratio between the depth and the depth of field of each object and the average value of the ratios corresponding to each object, namely the average ratio, can be respectively calculated, and then the position of the object with the ratio closest to the average ratio is determined as the target focusing position. Optionally, the object whose ratio is closest to the average ratio is the object whose absolute value of the difference between the ratio and the average ratio is the smallest. For example, assuming that the first target image includes an object a, an object b, and an object c, and the second target image includes an object b, an object c, an object d, and an object e, if the ratio of the object c is calculated to be closest to the average ratio according to the depth and the depth of field of the object, the position of the object c may be determined as the target focusing position. It can be understood that, since whether each object in the captured image is clear is related to the target focusing position used for capturing, and whether other objects are clear when each object is the focusing target can be indirectly known according to the depth and the depth of field of each object, the target focusing position can be quickly selected according to the ratio between the depth and the depth of field of each object. Therefore, the target focusing position is determined according to the ratio of the depth to the depth of each object to be shot, the operation is convenient and fast, and the shooting efficiency is improved.
Optionally, the step S2 includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
selecting at least one candidate object at a preset position from the objects according to a preset position sequence;
clustering by taking each candidate object as a clustering center point according to the depth and the depth of field corresponding to each object to obtain an object set of each candidate object; the set of objects includes objects positioned within a depth of field range of the candidate object;
selecting a target object set, and determining the position of a target candidate object corresponding to the target object set as the target focusing position; the target object set is not included in a union of object sets of the neighboring candidate objects or in an object set of the neighboring candidate objects.
Optionally, according to the depth information of the first target image and the depth information of the second target image, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired, and then based on a correspondence between the depth information and the depth information, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired. Optionally, the preset position sequence may be set according to actual needs, for example, the preset position sequence may be from left to right or from right to left. Alternatively, the objects to be photographed may be regarded as an object sequence in the preset positional order. Optionally, the preset positions may be set according to actual needs, for example, the preset positions may be set to be even numbers, that is, objects with positions of 2, 4, 6 and the like are selected, or the preset positions may be set to be 2 × N even numbers, where N is an even number or an odd number other than 1, that is, objects with positions of 2 × N even numbers such as 4, 8, 12 and the like are selected. Alternatively, the preset position may also be set as a middle position of each object, and the like.
Optionally, according to the depth corresponding to each of the objects, the distance between the candidate object and any one of the objects may be obtained, that is, the distance between the candidate object and any one of the objects is the difference between the depth corresponding to the candidate object and the depth corresponding to the object, and based on the depth of field of the candidate object and in combination with the distance, it may be determined whether the object may be clearly photographed when the candidate object is the focusing object, that is, when the distance between the candidate object and any one of the objects is less than or equal to the foreground depth or the background depth of field corresponding to the candidate object, the object may be added to the object set of the candidate object, otherwise, the object is not added to the object set of the candidate object. It can be understood that, if the position of the object is located before the position of the candidate object, the back depth of the candidate object is used to determine whether the object can be added to the object set of the candidate object, and if the position of the object is located after the position of the candidate object, the foreground depth of the candidate object is used to determine whether the object can be added to the object set of the candidate object. For example, assuming that the object b is a candidate for the objects a, b, and c, if the distance between the object b and the object a is less than or equal to the back depth of the object b, the object a is added to the object set corresponding to the object b, and if the distance between the object b and the object c is less than or equal to the foreground depth of the object b, the object c is also added to the object set corresponding to the object b.
Optionally, by clustering with each candidate object as a cluster center, an object set of each candidate object may be obtained, and a target object set may be selected from the object sets of each candidate object. Alternatively, if the object set of a candidate object is included in the union set formed by the object sets of the adjacent candidate objects or in the object sets of the adjacent candidate objects, it is described that when the adjacent candidate objects are respectively taken as focusing targets, all the objects in the object set of the candidate object can be clearly photographed, that is, the candidate object is not required to be taken as the focusing target. Taking 10 objects to be photographed, which are objects a, b, c, d, e, f, g, h, i and j in sequence from left to right according to positions as an example, assuming that the object b, the object f and the object j are candidate objects, if the object set of the object b includes the objects a and c, the object set of the object f includes the objects a, b, c, d, e, g and h, and the object set of the object j includes the object i, since the object set of the object b is included in the object set of the object f, the positions of the object f and the object j can be used as the target focusing positions. Alternatively, when there is only one target focusing position, the focusing point may be directly focused to the target focusing position for shooting to obtain the third image. When the target focusing positions are multiple, focusing the focusing point to the target focusing positions respectively for shooting, so that multiple shot images are spliced and fused to generate the third image. Therefore, clustering is carried out according to the depth and the depth of field corresponding to each object to be shot, the focusing position of the target can be accurately and quickly determined, the obtained image can better meet the requirements of users, and the user experience is further improved.
Optionally, the second interface is displayed in the first interface, or the second interface is displayed independently or in association with the first interface.
Optionally, when the first interface is a camera preview interface, the third image may be displayed below the camera preview interface so that the second interface is in the first interface. Optionally, the first interface may be closed first, and then the second interface may be displayed again, so that the second interface is displayed independently from the first interface.
Optionally, the third image is the processed first target image and/or the second target image.
Optionally, when the first target image meets a first preset condition and the second target image meets a second preset condition, for example, the first target image includes a non-biological object such as a tree, and the second target image includes a biological object such as a person, since the biological object is usually shot clearly during shooting, the position of the biological object may be used as the target focusing position, and a third image, that is, the processed second target image, is obtained by corresponding shooting. Optionally, when the first target image meets a first preset condition and the second target image meets a second preset condition, for example, the sharpness of the first target image is sharp and the sharpness of the second target image is blurred, the second target image may be re-photographed based on the target focusing position to obtain a processed second target image, and the processed second target image and the first target image are merged and fused to obtain a third image. For example, after a camera application is opened and an image is shot, the image is displayed on a preset interface of a camera, if a first target image containing a first object in the image is clear and a second target image containing a second object in the image is fuzzy, the position of the second object can be determined as a target focusing position, an image is shot based on the target focusing position, and then the image obtained by shooting again and the image shot before are spliced and fused to obtain a third image.
Optionally, the third preset condition is met, including at least one of:
the first target image is changed from meeting a first preset condition to meeting a second preset condition;
the second target image changes from meeting a second preset condition to meeting a first preset condition;
the first target image and the second target image simultaneously meet a first preset condition;
the first target image and the second target image simultaneously satisfy a second preset condition.
Alternatively, the first target image may change from satisfying a first preset condition to satisfying a second preset condition, which may be that the first target image changes from sharp to blurred, and so on. The second target image changes from meeting the second preset condition to meeting the first preset condition, and the second target image may change from being blurred to being sharp, and the like. The first target image and the second target image simultaneously satisfy a first preset condition, and the first target image and the second target image may be clear. The first target image and the second target image simultaneously satisfy a second preset condition, which may be that both the first target image and the second target image are blurred, and so on. For example, after the smart terminal opens the camera application and takes an image of a tree planted in front of a library door, the image is displayed on a preset camera interface, and if a first target image including the library is clear and a second target image including the tree is blurred, a target focusing position may be determined according to a preset strategy, so that a third image obtained includes the first target image including the library and the second target image including the tree is blurred, or both the first target image including the library and the second target image including the tree are clear, or both the first target image including the library and the second target image including the tree are blurred, and the like. Therefore, the third preset condition is determined according to different requirements, so that the obtained image meets the user requirements, and the user experience is further improved.
Fig. 4 is a first interface diagram of the intelligent terminal shown according to the first embodiment. As shown in fig. 4, when a user needs to take pictures of a friend a and a friend B walking back and forth, the user first opens a camera application on the intelligent terminal, and takes the friend a and the friend B as focusing targets to take pictures respectively, so as to obtain a first target image taken with the friend a as the focusing target and a second target image taken with the friend B as the focusing target, if the face of the friend a in the first target image is shielded by the palm of the friend a and the face of the friend B in the second target image is not shielded, which indicates that the friend a may not want to take pictures, the position of the friend B is determined as a target focusing position, and a third image is taken based on the target focusing position, at this time, the image of the friend a in the third image may be blurred, and the image of the friend B is clear.
Fig. 5 is a second interface diagram of the intelligent terminal according to the first embodiment. As shown in fig. 5, when a user needs to take a picture of a friend C standing in front of a library, the user opens a camera application on the intelligent terminal, and takes the friend C and the library as focusing targets respectively to obtain a first target image taken with the friend C as the focusing target and a second target image taken with the library as the focusing target.
The processing method of the application outputs a first interface comprising at least one first target image and at least one second target image, wherein the first target image meets a first preset condition, and the second target image meets a second preset condition; determining a target focusing position according to a preset strategy; and outputting a second interface, wherein the second interface comprises at least one third image, and the third image meets a third preset condition. By the method, the focusing position can be flexibly and accurately determined, so that the obtained image meets the requirements of a user, and the user experience is improved.
Second embodiment
Fig. 6 is a flowchart illustrating a processing method according to the second embodiment. As shown in fig. 6, the processing method of the present application may be applied to an intelligent terminal, and the processing method includes:
s10, outputting a first interface comprising at least one first target image and at least one second target image;
and S20, responding to the condition meeting the preset condition, switching to a preset photographing mode and/or executing preset processing to enable the first target image to meet the first preset condition and/or the second target image to meet the second preset condition.
The intelligent terminal can be terminal equipment (such as cell-phone, panel computer etc.), wearable smart machine (such as intelligent wrist-watch, intelligent bracelet, smart headset etc.), intelligent household equipment (such as smart television, intelligent audio amplifier etc.), car networking equipment (such as intelligent automobile, automobile-mounted terminal etc.). Optionally, the first target image and the second target image are obtained by the smart terminal by taking different objects as focusing targets respectively, for example, after the smart terminal starts a camera application or other applications with a photographing or video recording function due to a user operation, different objects in the finder frame may be taken as focusing targets respectively to obtain at least one first target image and at least one second target image. Alternatively, the first target image and the second target image may be two images of the same image, for example, the intelligent terminal may photograph a user standing beside a building, and the user image may be the first target image and the building image may be the second target image in the photographed images. Through the mode, when the image displayed on the first interface meets the preset condition, the intelligent terminal is switched to the preset photographing mode and/or executes the preset processing so as to execute corresponding operation according to the image, the obtained image meets the user requirement, and the user experience is improved.
It should be noted that the first target image and the second target image may be obtained by the intelligent terminal at the same time, or may be obtained by the intelligent terminal non-simultaneously. After the first target image and the second target image are obtained, the intelligent terminal can detect the first target image and the second target image, for example, whether the detection definition is clear, whether a preset object is included, whether an object of a preset type is included, and the like. Optionally, the first target image and the second target image may be different images captured by the intelligent terminal, or may be different area images in the same image captured by the intelligent terminal. Optionally, the first interface may be a camera preview interface or the like. Optionally, the preset photographing mode may be set according to actual needs, for example, the preset photographing mode may be a first preset photographing mode for preferentially ensuring that a preset object is clear, a second preset photographing mode for preferentially ensuring that a preset type of object is clear, a third preset photographing mode for preferentially ensuring that an object which is not shielded is clear, and the like.
In an exemplary scenario, after a camera application is opened and an image is shot, the image is displayed on a preset camera interface, if a first target image including a first object in the image is clear and a second target image including a second object is fuzzy and the priority of a main shot object is generally the second object or the second object is higher than that of the first object, the second object can be shot as a focusing target, so that the second target image including the second object in the shot image is clear; and/or if the face in the first target image containing the first user is occluded by the hand and the face in the second target image containing the second user is not occluded, because the occlusion of the face by the hand indicates that the user does not want to shoot, the user whose face is not occluded can be taken as a focusing target to shoot, so that the second target image containing the second user in the shot image is clear and the first target image containing the first user is fuzzy or clear; and/or if the image includes a first target image of a first user and a second target image of a second user, the first user is a female, the second user is a male, and the requirement of the female on the shooting definition is higher than that of the male in general, the female user can be taken as a focusing target to enable the first target image including the first user in the shot image to be clear; and/or if the first object image containing the first object and the second object image containing the second object are taken as the first object image and the second object image containing the second object, the first object is a biological object, and the second object is a non-biological object, the second object can be taken as a focusing object, so that the second object image containing the second object in the taken image is clear.
Optionally, the meeting of the preset condition includes at least one of:
the definition of the first target image and/or the second target image is fuzzy;
the first target image and the second target image comprise the same preset object;
the first target image and the second target image do not contain the same preset object;
the first target image and the second target image contain objects of the same preset type;
the first target image and the second target image contain objects of different preset types.
Alternatively, the sharpness of both the first target image and the second target image may be blurred, or only one of them may be blurred. Alternatively, the first target image and the second target image may include the same preset object, such as both including a person or a dog. Optionally, the first target image and the second target image may not include the same preset object, for example, the first target image may include a person, and the second target image may include a tree or the like. Optionally, the first target image and the second target image may contain the same preset type of object, such as both containing women or men. Alternatively, the first target image and the second target image may not contain the same preset type of object, for example, the first target image may contain a young person, and the second target image may contain an old person, etc.
Optionally, the executing preset processing includes:
and determining a target focusing position according to a preset strategy.
Optionally, the preset policy includes at least one of: touch operation, air-space operation, voice control instruction, depth information of the first target image and depth information of the second target image.
Optionally, the user may determine a target focusing position by inputting a touch operation on the smart terminal, and then perform shooting based on the target focusing position. For example, a user may perform a click operation on an object on the first interface to determine a position of the clicked object as a target focus position. Optionally, the user may also input an idle operation to the intelligent terminal to determine a target focusing position, and then perform shooting based on the target focusing position. For example, the user may point a finger at a certain object displayed on the first interface in the space to determine the position of the indicated object as the target focusing position. Optionally, the user can also input a voice control instruction to the intelligent terminal so as to indicate the target focusing position through the voice control instruction, and then shooting is performed based on the target focusing position. For example, when a user inputs a voice control instruction 'focus to a face for shooting' to the intelligent terminal, the target focusing position can be determined to be the position of the face. Optionally, since the depth information corresponding to each object to be photographed can be known according to the depth information of the first target image and the depth information of the second target image, in order to accurately determine the focusing position to photograph an image meeting the user requirement, the focusing position may be determined by combining the depth information corresponding to each object, and then photographing may be performed based on the target focusing position.
Optionally, the determining the target focusing position according to the preset policy includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
obtaining a ratio between a depth and a depth of field of each of the objects;
and determining the position of the object with the ratio closest to the average ratio as the target focusing position, wherein the average ratio is the average value of the ratios corresponding to the objects.
Optionally, according to the depth information of the first target image and the depth information of the second target image, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired, and then based on a correspondence between the depth information and the depth information, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired. After the depth and the depth of field corresponding to each object to be shot are obtained, the ratio between the depth and the depth of field of each object and the average value of the ratios corresponding to each object, namely the average ratio, can be respectively calculated, and then the position of the object with the ratio closest to the average ratio is determined as the target focusing position. Optionally, the object whose ratio is closest to the average ratio is the object whose absolute value of the difference between the ratio and the average ratio is smallest. For example, assuming that the first target image includes an object a, an object b, and an object c, and the second target image includes an object b, an object c, an object d, and an object e, if the ratio of the object c is calculated to be closest to the average ratio according to the depth and the depth of field of the object, the position of the object c may be determined as the target focusing position. It can be understood that whether each object in the shot image is clear or not is related to the target focusing position adopted by shooting, and whether other objects are clear or not can be indirectly known when each object is taken as a focusing target according to the depth and the depth of field of each object, so that the target focusing position can be quickly selected according to the ratio of the depth and the depth of field of each object. Therefore, the target focusing position is determined according to the ratio of the depth to the depth of each object to be shot, the operation is convenient and fast, and the shooting efficiency is improved.
Optionally, the determining the target focusing position according to a preset strategy includes:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
selecting at least one candidate object at a preset position from the objects according to a preset position sequence;
clustering by taking each candidate object as a clustering center point according to the depth and the depth of field corresponding to each object to obtain an object set of each candidate object; the set of objects includes objects positioned within a depth of field range of the candidate object;
selecting a target object set, and determining the position of a target candidate object corresponding to the target object set as the target focusing position; the target object set is not included in a union of object sets of neighboring candidate objects or not included in an object set of neighboring candidate objects.
Optionally, according to the depth information of the first target image and the depth information of the second target image, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired, and further, based on a correspondence between the depth information and the depth information, depth information (hereinafter, referred to as depth) corresponding to each object to be photographed may be acquired. Optionally, the preset position sequence may be set according to actual needs, for example, the preset position sequence may be from left to right or from right to left. Alternatively, the objects to be photographed may be regarded as an object sequence in the preset positional order. Optionally, the preset positions may be set according to actual needs, for example, the preset positions may be set to be even numbers, that is, objects with positions of 2, 4, 6 and the like are selected, or the preset positions may be set to be 2 × N even numbers, where N is an even number or an odd number other than 1, that is, objects with positions of 2 × N even numbers such as 4, 8, 12 and the like are selected. Alternatively, the preset position may also be set as a middle position of each object, and the like.
Optionally, according to the depth corresponding to each of the objects, the distance between the candidate object and any one of the objects may be obtained, that is, the distance between the candidate object and any one of the objects is the difference between the depth corresponding to the candidate object and the depth corresponding to the object, and based on the depth of field of the candidate object and in combination with the distance, it may be determined whether the object may be clearly photographed when the candidate object is the focusing object, that is, when the distance between the candidate object and any one of the objects is less than or equal to the foreground depth or the background depth of field corresponding to the candidate object, the object may be added to the object set of the candidate object, otherwise, the object is not added to the object set of the candidate object. It can be understood that, if the position of the object is located before the position of the candidate object, the back depth of the candidate object is used to determine whether the object can be added to the object set of the candidate object, and if the position of the object is located after the position of the candidate object, the foreground depth of the candidate object is used to determine whether the object can be added to the object set of the candidate object. For example, assuming that the object b is a candidate for the objects a, b, and c, if the distance between the object b and the object a is less than or equal to the back depth of the object b, the object a is added to the object set corresponding to the object b, and if the distance between the object b and the object c is less than or equal to the front depth of the object b, the object c is also added to the object set corresponding to the object b.
Optionally, by clustering with each candidate object as a cluster center, an object set of each candidate object may be obtained, and a target object set may be selected from the object sets of each candidate object. Alternatively, if the object set of a candidate object is included in the union set formed by the object sets of the adjacent candidate objects or in the object sets of the adjacent candidate objects, it is described that when the adjacent candidate objects are respectively taken as focusing targets, all the objects in the object set of the candidate object can be clearly photographed, that is, the candidate object is not required to be taken as the focusing target. Taking 10 objects to be photographed, which are objects a, b, c, d, e, f, g, h, i and j in sequence from left to right according to positions as an example, assuming that the object b, the object f and the object j are candidate objects, if the object set of the object b includes the objects a and c, the object set of the object f includes the objects a, b, c, d, e, g and h, and the object set of the object j includes the object i, since the object set of the object b is included in the object set of the object f, the positions of the object f and the object j can be used as the target focusing positions. Optionally, when there is only one target focusing position, the focusing point may be directly focused to the target focusing position for shooting to obtain the third image. When a plurality of target focusing positions exist, focusing focuses to the target focusing positions respectively for shooting, so that a plurality of shot images are spliced and fused to generate the third image. Therefore, clustering is carried out according to the depth and the depth of field corresponding to each object to be shot, the focusing position of the target can be accurately and quickly determined, the obtained image can better meet the requirements of users, and the user experience is further improved.
Optionally, the first preset condition being met includes at least one of:
the clarity is clear;
the sharpness is blurred.
Optionally, by switching to a preset photographing mode and/or performing a preset process, the processed first target image may be clear or blurred.
Optionally, the second preset condition being met includes at least one of:
the sharpness is blurred;
the clarity is clear.
Optionally, by switching to a preset photographing mode and/or performing a preset process, the processed second target image may be clear or blurred.
Fig. 7 is a first interface diagram of the intelligent terminal according to the second embodiment. As shown in fig. 7, when a user needs to take a picture of a male friend C and a female friend D, the user opens a camera application on the intelligent terminal, and takes the friend C as a focusing target to take a picture, so as to obtain an image, where the image includes a first target image including the friend C and a second target image including the friend D, and if the face of the friend C in the first target image is clear and the face of the friend D in the second target image is fuzzy, the user can take a picture of the friend D as the focusing target when switching to a preset taking mode, so that the second target image obtained after processing is clear.
The processing method of the application outputs a first interface comprising at least one first target image and at least one second target image; and in response to the preset condition being met, switching to a preset photographing mode and/or executing preset processing to enable the first target image to meet a first preset condition and/or the second target image to meet a second preset condition. By the method, corresponding operation can be executed according to the image, so that the obtained image meets the requirements of the user, and the user experience is improved.
The embodiment of the present application further provides an intelligent terminal, which includes a memory and a processor, where the memory stores a processing program, and the processing program, when executed by the processor, implements the steps of the processing method in any of the embodiments.
The embodiment of the present application further provides a storage medium, where a processing program is stored on the storage medium, and the processing program, when executed by a processor, implements the steps of the processing method in any of the above embodiments.
In the embodiments of the intelligent terminal and the storage medium provided in the present application, all technical features of any one of the embodiments of the processing method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application further provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method as in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where 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 in which the chip is installed executes the method in the above various possible embodiments.
It should be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as a person having ordinary skill in the art can know, with the evolution of the system architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk) as above, and includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may 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)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all the equivalent structures or equivalent processes that can be directly or indirectly applied to other related technical fields by using the contents of the specification and the drawings of the present application are also included in the scope of the present application.

Claims (15)

1. A method of processing, comprising:
step S1: outputting a first interface comprising at least one first target image and at least one second target image, wherein the first target image meets a first preset condition, and the second target image meets a second preset condition;
step S2: determining a target focusing position according to a preset strategy;
and step S3: and outputting a second interface, wherein the second interface comprises at least one third image, and the third image meets a third preset condition.
2. The method according to claim 1, wherein meeting the first preset condition comprises at least one of:
the clarity is clear;
does not contain occluded content;
comprises at least one first preset object;
includes at least one object of a first predetermined type.
3. The method according to claim 1, wherein meeting the second preset condition comprises at least one of:
the sharpness is fuzzy;
comprises at least one content which is completely or partially occluded;
comprises at least one second preset object;
comprises at least one object of a second preset type.
4. The method according to any one of claims 1 to 3, wherein the preset policy comprises at least one of:
touch control operation, air-space operation, voice control instruction, depth information of the first target image and depth information of the second target image.
5. The method according to claim 4, wherein the step S2 comprises:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
obtaining a ratio between a depth and a depth of field of each of the objects;
and determining the position of the object with the ratio closest to the average ratio as the target focusing position, wherein the average ratio is the average value of the ratios corresponding to the objects.
6. The method according to claim 4, wherein the step S2 comprises:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
selecting at least one candidate object at a preset position from the objects according to a preset position sequence;
clustering by taking each candidate object as a clustering center point according to the depth and the depth of field corresponding to each object to obtain an object set of each candidate object; the set of objects includes objects positioned within a depth of field range of the candidate object;
selecting a target object set, and determining the position of a target candidate object corresponding to the target object set as the target focusing position; the target object set is not included in a union of object sets of the neighboring candidate objects or in an object set of the neighboring candidate objects.
7. The method according to any one of claims 1 to 3, comprising at least one of:
the second interface is displayed in the first interface, or the second interface and the first interface are independently or in a correlation mode;
the third image is the processed first target image and/or the second target image.
8. The method according to any one of claims 1 to 3, wherein meeting the third preset condition comprises at least one of:
the first target image changes from meeting a first preset condition to meeting a second preset condition;
the second target image is changed from meeting a second preset condition to meeting a first preset condition;
the first target image and the second target image simultaneously meet a first preset condition;
the first target image and the second target image simultaneously satisfy a second preset condition.
9. A method of processing, comprising:
step S10: outputting a first interface comprising at least one first target image and at least one second target image;
step S20: and responding to the condition meeting the preset condition, switching to a preset photographing mode and/or executing preset processing so that the first target image meets the first preset condition and/or the second target image meets the second preset condition.
10. The method according to claim 9, wherein the predetermined condition being met comprises at least one of:
the definition of the first target image and/or the second target image is fuzzy;
the first target image and/or the second target image contain at least one wholly or partially occluded content;
the first target image and the second target image comprise the same preset object;
the first target image and the second target image do not contain the same preset object;
the first target image and the second target image contain objects of the same preset type;
the first target image and the second target image contain objects of different preset types.
11. The method according to claim 9 or 10, wherein the performing of the preset process comprises:
determining a target focusing position according to a preset strategy; the preset policy includes at least one of: touch control operation, air-space operation, voice control instruction, depth information of the first target image and depth information of the second target image.
12. The method of claim 11, wherein determining the target focus position according to a preset strategy comprises:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
obtaining a ratio between a depth and a depth of field of each of the objects;
and determining the position of the object with the ratio closest to the average ratio as the target focusing position, wherein the average ratio is the average value of the ratios corresponding to the objects.
13. The method of claim 11, wherein the determining the target focusing position according to the preset strategy comprises:
acquiring the depth and the depth of field corresponding to each object to be shot according to the depth information of the first target image and the depth information of the second target image;
selecting at least one candidate object at a preset position from the objects according to a preset position sequence;
clustering by taking each candidate object as a clustering center point according to the depth and the depth of field corresponding to each object to obtain an object set of each candidate object; the set of objects includes objects positioned within a depth of field range of the candidate object;
selecting a target object set, and determining the position of a target candidate object corresponding to the target object set as the target focusing position; the target object set is not included in a union of object sets of the neighboring candidate objects or in an object set of the neighboring candidate objects.
14. An intelligent terminal, characterized in that, intelligent terminal includes: memory, a processor, wherein the memory has stored thereon a processing program which, when executed by the processor, implements the steps of the processing method of any one of claims 1 to 13.
15. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the processing method according to any one of claims 1 to 13.
CN202211337959.5A 2022-10-28 2022-10-28 Processing method, intelligent terminal and storage medium Pending CN115665551A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211337959.5A CN115665551A (en) 2022-10-28 2022-10-28 Processing method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211337959.5A CN115665551A (en) 2022-10-28 2022-10-28 Processing method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115665551A true CN115665551A (en) 2023-01-31

Family

ID=84993523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211337959.5A Pending CN115665551A (en) 2022-10-28 2022-10-28 Processing method, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115665551A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208724A (en) * 2023-05-05 2023-06-02 深圳传音控股股份有限公司 Image processing method, intelligent terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208724A (en) * 2023-05-05 2023-06-02 深圳传音控股股份有限公司 Image processing method, intelligent terminal and storage medium

Similar Documents

Publication Publication Date Title
CN107959795B (en) Information acquisition method, information acquisition equipment and computer readable storage medium
CN111885307B (en) Depth-of-field shooting method and device and computer readable storage medium
CN107450796B (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN107896304B (en) Image shooting method and device and computer readable storage medium
CN108282608B (en) Multi-region focusing method, mobile terminal and computer readable storage medium
CN113900560A (en) Icon processing method, intelligent terminal and storage medium
CN115665551A (en) Processing method, intelligent terminal and storage medium
CN112532838B (en) Image processing method, mobile terminal and computer storage medium
CN113676658A (en) Photographing method, mobile terminal and readable storage medium
CN111866391B (en) Video shooting method and device and computer readable storage medium
CN114900613A (en) Control method, intelligent terminal and storage medium
CN114143467A (en) Shooting method based on automatic focusing and zooming, mobile terminal and storage medium
CN113194227A (en) Processing method, mobile terminal and storage medium
CN113572964A (en) Image processing method, mobile terminal and storage medium
CN109215004B (en) Image synthesis method, mobile terminal and computer readable storage medium
CN113867588A (en) Icon processing method, intelligent terminal and storage medium
CN113835586A (en) Icon processing method, intelligent terminal and storage medium
CN113867586A (en) Icon display method, intelligent terminal and storage medium
CN113572916A (en) Shooting method, terminal device and storage medium
CN109495683B (en) Interval shooting method and device and computer readable storage medium
CN113542605A (en) Camera shooting control method, mobile terminal and storage medium
CN108335301B (en) Photographing method and mobile terminal
CN115412672B (en) Shooting display method, intelligent terminal and readable storage medium
CN114302124A (en) Image processing method, mobile terminal and storage medium
CN114040183A (en) Image processing method, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination