CN113676658A - Photographing method, mobile terminal and readable storage medium - Google Patents

Photographing method, mobile terminal and readable storage medium Download PDF

Info

Publication number
CN113676658A
CN113676658A CN202110909926.2A CN202110909926A CN113676658A CN 113676658 A CN113676658 A CN 113676658A CN 202110909926 A CN202110909926 A CN 202110909926A CN 113676658 A CN113676658 A CN 113676658A
Authority
CN
China
Prior art keywords
camera
shooting
preview image
definition
preset
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
CN202110909926.2A
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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN202110909926.2A priority Critical patent/CN113676658A/en
Publication of CN113676658A publication Critical patent/CN113676658A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Abstract

The application relates to a photographing method, a mobile terminal and a readable storage medium, wherein the photographing method comprises the following steps: when the first camera is in a use mode, shooting data are obtained; detecting whether the shooting data meet a preset condition or not; and shooting by using the first camera and/or the second camera according to the detection result. This application uses the camera of focusing and/or zooms the camera according to preset condition and shoots, can make full use of the big wide angle of camera of focusing shoot characteristics, can avoid shooting the distance again and fix a focus camera formation of image fuzzy when too near, promote the user and shoot the experience of shooing of distance at the difference.

Description

Photographing method, mobile terminal and readable storage medium
Technical Field
The present application relates to the field of photographing technologies, and in particular, to a photographing method, a mobile terminal, and a readable storage medium.
Background
With the rapid development of mobile terminal technology, the photographing function of mobile terminals such as mobile phones and tablet computers is also improved, and the mobile terminal becomes one of the common tools in daily life and work of people. The wide-angle fixed-focus lens has the shooting characteristics of large lens visual angle and wide visual field, and is widely applied to mobile terminal equipment.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: the fixed-focus camera has a certain depth-of-field distance limitation, and when an object is shot at a short distance, the problems of focusing blur, preview, shooting and video recording blur easily occur, the imaging effect is influenced, and the shooting experience of a user is poor.
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 photographing device, a photographing method, a flash lamp module, a mobile terminal and a readable storage medium, which can not only make full use of the large wide-angle photographing characteristic of a fixed-focus camera, but also avoid the imaging blur of the fixed-focus camera when the photographing distance is too short, thereby improving the photographing experience of the user at different photographing distances.
In order to solve the above technical problem, the present application provides a photographing method, including the following steps:
when the first camera is in a use mode, shooting data are obtained;
detecting whether the shooting data meet a preset condition or not;
and shooting by using the first camera and/or the second camera according to the detection result.
Optionally, the first camera is in a use mode, comprising at least one of:
the first camera is in an independent working use mode;
the first camera is in a use mode of suspending work;
the first camera is in a use mode working in combination with the second camera.
Optionally, the acquiring shooting data includes at least one of:
the first camera is in an independent working use mode, or the first camera is in a suspended working use mode, and the shooting distance between a shooting object and the first camera is acquired;
the first camera is in an independent working use mode, or the first camera is in a suspended working use mode, and the definition of a preview image of the first camera is obtained;
the first camera is in a use mode of combined work with the second camera, and the definition of preview images of the first camera and the second camera is obtained.
Optionally, the meeting of the preset condition includes at least one of:
the times that the shooting distance is smaller than the preset distance are larger than the preset times;
the times that the shooting distance is greater than the preset distance are greater than the preset times;
the definition of the preview image of the first camera is greater than or equal to the definition of the preview image of the second camera;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, and the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera.
Optionally, when the first camera is in a use mode in an independent working state, the shooting with the first camera and/or the second camera according to the detection result includes at least one of the following:
the shooting distance is smaller than the preset distance for a number of times larger than the preset number of times, and the second camera is switched to be used for shooting;
the times that the shooting distance is smaller than the preset distance are smaller than or equal to the preset times, and the first camera is kept to be used for shooting;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
and the definition of the preview image of the first camera is less than that of the preview image of the second camera, and the second camera is used for shooting.
Optionally, when the first camera is in a suspended operation mode, the shooting with the first camera and/or the second camera according to the detection result includes at least one of the following:
the times that the shooting distance is larger than the preset distance are larger than the preset times, and the shooting is switched to the recovery of using the first camera for shooting;
the times that the shooting distance is greater than the preset distance are less than or equal to the preset times, and the second camera is kept to be used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is smaller than or equal to a preset threshold value, and shooting is carried out by using the first camera;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, and the first camera and the second camera are used for shooting;
and the times that the shooting distance is greater than the preset distance are greater than the preset times, and the shooting is carried out by using the first camera and the second camera.
Optionally, when the first camera is in a use mode working in combination with the second camera, the shooting with the first camera and/or the second camera according to the detection result includes at least one of the following:
the shooting distance is smaller than the preset distance for a number of times larger than the preset number of times, and the second camera is switched to be used for shooting;
the times that the shooting distance is smaller than the preset distance are smaller than or equal to the preset times, and the first camera and the second camera are kept to be used for shooting;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
and the definition of the preview image of the first camera is less than that of the preview image of the second camera, and the second camera is used for shooting.
The application also provides a photographing method, which comprises the following steps:
starting a first camera and a second camera;
acquiring shooting data of the first camera and/or the second camera according to the current camera switching mode;
and shooting by using the first camera and/or the second camera according to the shooting data of the first camera and/or the second camera.
Optionally, after the first camera and the second camera are turned on, the method further includes:
and determining the camera switching mode according to the performance parameters of the mobile terminal.
Optionally, the performance parameter includes at least one of power, temperature, memory, and power consumption.
Optionally, the determining a camera switching mode according to the performance parameter of the mobile terminal includes:
when the performance parameters meet preset parameter conditions, determining that the shooting mode is a first mode; and/or the presence of a gas in the gas,
when the performance parameters do not meet the preset parameter conditions, determining that the shooting mode is a second mode;
optionally, the camera switching speed of the first mode is smaller than the camera switching speed of the second mode.
Optionally, when the shooting mode is the first mode, the shooting with the first camera and/or the second camera according to the preview image of the first camera and/or the second camera includes at least one of the following:
if the definition of the preview image of the first camera is larger than or equal to the definition of the historical preview image of the first camera, shooting by using the first camera;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
the definition of the preview image of the first camera and the definition of the historical preview image of the first camera are larger than a preset threshold value, the definition of the preview image of the first camera is larger than or equal to the definition of the preview image of the second camera, and the first camera is used for shooting.
Optionally, when the shooting mode is the second mode, the preview image of the first camera and/or the second camera is shot by using the first camera and/or the second camera, and the method further includes:
if the definition of the preview image of the first camera is larger than or equal to the definition of the preview image of the second camera, shooting by using the first camera; and/or the presence of a gas in the gas,
and if the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, the second camera is used for shooting.
The present application further provides a mobile terminal, including: the system comprises a memory and a processor, wherein the memory stores a photographing program, and the photographing program realizes the steps of the method when being executed by the processor.
The present application also provides a readable storage medium storing a computer program which, when executed by a processor, performs the steps of the method as described above.
As described above, the photographing method, the mobile terminal and the readable storage medium of the application are applied to the mobile terminal, the mobile terminal includes the first camera and the second camera, the first camera is a wide-angle fixed-focus camera, the second camera is an automatic zooming camera, and the photographing method includes: when the first camera is in a use mode, shooting data are obtained; detecting whether the shooting data meet a preset condition or not; and shooting by using the first camera and/or the second camera according to the detection result. This application uses the camera of focusing and/or zooms the camera according to preset condition and shoots, can make full use of the big wide angle of camera of focusing shoot characteristics, can avoid shooting the distance again and fix a focus camera formation of image fuzzy when too near, promote the user and shoot the experience of shooing of distance at the difference.
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 needed 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 based on these drawings without inventive exercise.
Fig. 1 is a schematic hardware structure diagram 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 photographing method according to the first embodiment;
fig. 4 is one of specific flow charts of the photographing method according to the first embodiment;
FIG. 5 is a second flowchart of the photographing method according to the first embodiment;
fig. 6 is a flowchart illustrating a photographing method according to a second embodiment;
fig. 7 is a specific flowchart illustrating a photographing method according to a third embodiment.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of flash modules 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 flashlight module 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 flashlight module. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or flash module that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, the specific meaning of which should be determined by its interpretation in the embodiment or by further context with the 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 … …" or "when … …" 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. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean 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 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 explicitly stated 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 … …" or "at … …" 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 201, 202 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform 202 first and then 201 in the specific implementation, but these should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present 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 mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present application may include mobile terminals 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 flash module, a wearable device, a smart band, a pedometer, and the like, and fixed mobile terminals such as a Digital TV, a desktop computer, 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 mobile terminal of a fixed type, in addition to elements particularly used for moving 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: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. 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. In addition, the radio frequency unit 101 can 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), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, 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 used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capture flash module (e.g., a camera) in a video capture mode or an image capture 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 a 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), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), 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, can collect touch operations performed by a user (e.g., operations performed by the user on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger or a stylus), and drive the connected flash module according to a preset program. The touch panel 1071 may include two parts of a touch detection flash module and a touch controller. Optionally, the touch detection flash module detects a touch direction of a user, detects a signal caused by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection flash module, 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. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. 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, and the like, and are not limited thereto.
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 the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate 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, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external flash module can be connected with the mobile terminal 100. For example, the external flash module 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 flash module having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and so forth. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external flash module 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 the external flash module.
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 (such as a sound playing function, an image playing function, and the like) required by at least one function, 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. Further, 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 mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly 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 mobile 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 register (not shown) and holds subscriber 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 flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The 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, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, various embodiments of the present application are provided.
First embodiment
Referring to fig. 3, the photographing method of the embodiment is applied to a mobile terminal, where the mobile terminal includes a first camera and a second camera, and illustratively, the first camera may be a wide-angle fixed-focus camera, and the second camera may be an automatic zoom camera, and the photographing method includes:
step 201, when a first camera is in a use mode, acquiring shooting data;
step 202, detecting whether the shooting data meet a preset condition;
and step 203, shooting by using the first camera and/or the second camera according to the detection result.
It should be noted that the basic characteristics of shooting with the wide-angle fixed-focus lens are that the lens viewing angle is large and the visual field is wide. The range of scenes observed from a certain viewpoint is much larger than what the human eye sees from the same viewpoint. The wide-angle fixed-focus camera also has the characteristic of long depth of field, and can show a quite large clear range. The present embodiment is for solving the user experience that the wide-angle fixed focus camera previews, takes a picture or records a video in a close range, and/or, the wide-angle fixed focus camera is regarded as the main auxiliary camera of taking a picture under the double-shot mode, and the problem that the depth of field effect is poor or there is no depth of field effect when taking a picture in a close range. Through presetting intelligent logic selection strategy, first camera and/or the second camera of dynamic switching are shot, promote the user and shoot the experience of shooing of distance in the difference.
Optionally, in step 201, the first camera is in a use mode, including at least one of:
the first camera is in an independent working use mode;
the first camera is in a use mode of suspending work;
the first camera is in a use mode working in combination with the second camera.
Optionally, in step 201, shooting data is acquired, which includes at least one of the following:
the first camera is in an independent working use mode, or the first camera is in a pause working use mode, and the shooting distance between a shooting object and the first camera is obtained;
the first camera is in an independent working use mode, or the first camera is in a suspended working use mode, and the definition of a preview image of the first camera is obtained;
the first camera is in a use mode of combined work with the second camera, and the definition of the preview images of the first camera and the second camera is obtained.
Note that the shooting data includes a shooting distance between the shooting object and the first camera and/or a sharpness of the preview image. The shooting distance may be obtained based on ranging techniques such as laser ranging, dual-shot TOF ranging, and the like. When the first camera is in different use modes, the obtained shooting data are different. Optionally, when the first camera or the second camera is used alone for shooting, shooting data such as shooting distance and/or definition of a preview image can be acquired for evaluating whether preset conditions are met. When the first camera and the second camera are used for shooting at the same time, the definition of the preview image is acquired and used as shooting data for evaluation.
Optionally, in step 202, the preset condition is met, and includes at least one of:
the times that the shooting distance is smaller than the preset distance are larger than the preset times;
the times that the shooting distance is greater than the preset distance are greater than the preset times;
the definition of the preview image of the first camera is greater than or equal to that of the preview image of the second camera;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, and the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera.
Optionally, in step 203, when the first camera is in the use mode of the independent operation state, according to the detection result, performing shooting by using the first camera and/or the second camera, including at least one of the following:
the times that the shooting distance is smaller than the preset distance are larger than the preset times, and the shooting is switched to be carried out by using a second camera;
the times that the shooting distance is smaller than the preset distance are smaller than or equal to the preset times, and the first camera is kept to be used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, and shooting is carried out by using the second camera.
It should be noted that, in this embodiment, when the first camera is used alone to take a picture, if the number of times that the shooting distance is smaller than the preset distance is greater than the preset number of times, it indicates that the distance between the shooting object and the camera is short, and the second camera needs to be switched to take a picture, so as to avoid imaging blur. If the shooting distance is less than or equal to the preset distance, the situation that the shooting distance is closer to the shooting object is occasionally detected or not detected, the shooting advantage of the first camera, namely the wide-angle fixed-focus camera, can be fully utilized, and the second camera does not need to be switched to be used for shooting.
Optionally, when the first camera is used alone to take a picture, the sharpness of the preview picture of the first camera may be evaluated first. Selecting a history preview image which is clearly imaged by the first camera, and storing the definition of the history preview image as an evaluation standard. And if the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is greater than a preset threshold value, continuously acquiring the preview image of the second camera. If the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, the second camera needs to be switched to shoot. Of course, when detecting whether the shot data meets the preset conditions, only the preview image of the first camera and the preview image of the second camera may be compared. And if the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, switching to the second camera for shooting.
Optionally, in step 203, when the first camera is in the use mode of suspended operation, according to the detection result, performing shooting by using the first camera and/or the second camera, including at least one of:
the times that the shooting distance is larger than the preset distance are larger than the preset times, and the shooting is switched to the mode that the first camera is recovered to be used for shooting;
the times that the shooting distance is greater than the preset distance are less than or equal to the preset times, and the second camera is kept to be used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is smaller than or equal to a preset threshold value, and the first camera is used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, and the first camera and the second camera are used for shooting;
and the shooting distance is greater than the preset distance for a number of times greater than the preset number of times, and the shooting is resumed to the shooting by using the first camera and the second camera.
It should be noted that, in this embodiment, when the first camera pauses to take a picture, the second camera is used to take a picture alone. If the shooting distance is greater than the preset distance for more than the preset times, the shooting object is far away from the camera, and the first wide-angle camera can be used for shooting so as to obtain a large-field and clear-imaging image. If the number of times that the shooting distance is greater than the preset distance is less than or equal to the preset number of times, which indicates that a situation that the shooting object is far away from the shooting object is occasionally detected or not detected, the second camera needs to be kept for shooting.
Optionally, in step 203, when the first camera is in a use mode working in combination with the second camera, shooting with the first camera and/or the second camera according to the detection result, where the shooting includes at least one of:
the times that the shooting distance is smaller than the preset distance are larger than the preset times, and the shooting is switched to be carried out by using a second camera;
the times that the shooting distance is smaller than the preset distance are smaller than or equal to the preset times, and the first camera and the second camera are kept to be used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, and shooting is carried out by using the second camera.
It should be noted that, in this embodiment, when the first camera and the second camera are used to perform combined shooting, if the number of times that the shooting distance is smaller than the preset distance is greater than the preset number of times, it indicates that the distance between the shooting object and the camera is short, and it is necessary to switch to the second camera to perform shooting alone, so as to avoid imaging blur. If the shooting distance is less than or equal to the preset distance, the condition that the distance to the shooting object is detected occasionally or is not detected occasionally is indicated, the shooting advantage of the first camera, namely the wide-angle fixed-focus camera, can be fully utilized, and the combined shooting by using the first camera and the second camera can be kept.
Fig. 4 is one of specific flow diagrams of the photographing method shown according to the first embodiment. As shown in fig. 4, the wide-angle camera is first turned on to take a picture, i.e., the first camera is used alone to take a picture. And then opening the TOF laser sensor, and acquiring the distance between the object to be shot and the wide-angle camera through the TOF laser sensor. If the distance between the object and the wide-angle camera is less than a depth-of-field distance threshold value M, for example, M is 70cm, and the number of times of detection that the distance is less than the depth-of-field distance threshold value is greater than N times, for example, N is 3 times, that is, the preset condition is satisfied: if the shooting distance is less than the preset distance for more than the preset times, the shooting object is close to the camera, the main camera needs to be opened, and the shooting lens is switched from the wide-angle camera to the main shooting lens, so that imaging blur is avoided. Optionally, after the photographing lens is switched from the wide-angle camera to the main camera, the distance between the object to be photographed and the wide-angle camera is detected to be greater than the depth-of-field distance switching threshold M by the TOF laser sensor, and when the number of times N greater than the depth-of-field distance threshold is detected, the preset condition is satisfied: the number of times that the shooting distance is smaller than the preset distance is smaller than or equal to the preset number of times, which indicates that a situation that a short distance to the shooting object is occasionally detected or not detected, is switched from the main camera to the wide-angle camera.
Optionally, when the first camera and the second camera are used for combined photographing, the definition of the preview picture of the first camera may be evaluated first. Selecting a history preview image which is clearly imaged by the first camera, and storing the definition of the history preview image as an evaluation standard. And if the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is greater than a preset threshold value, continuously acquiring the preview image of the second camera. If the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, the shooting needs to be switched to the use of the second camera for shooting alone. Of course, when detecting whether the shot data meets the preset conditions, only the preview image of the first camera and the preview image of the second camera may be compared. And if the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, switching to the use of the second camera for shooting alone.
Fig. 5 is a second flowchart of the photographing method according to the first embodiment. As shown in fig. 5, when the first camera and the second camera are used for combined photographing, the dual photographing mode is firstly entered, the wide-angle camera and the main camera are opened, then the TOF laser sensor is opened, and the distance between the object to be photographed and the wide-angle camera is acquired through the TOF laser sensor. If the distance between the object and the wide-angle camera is smaller than a depth-of-field distance threshold value M, for example, M is 60cm, and the number of times of detection smaller than the depth-of-field distance threshold value is greater than N times, for example, N is 5 times, it indicates that the distance between the object to be shot and the camera is short, and the main shooting lens needs to be switched. And closing the double-camera processing flow of the main camera and the wide-angle camera, and switching the double-camera blurring processing algorithm to a main-camera single-camera blurring effect to avoid imaging blurring. Optionally, after the photographing lens is switched from the wide-angle camera to the main camera, when it is detected that the distance between the subject and the wide-angle camera is greater than the depth-of-field distance switching threshold M and the number of times N greater than the depth-of-field distance threshold is detected, the main camera independent photographing mode is switched to a dual-photographing blurring mode in which the main camera and the wide-angle camera are combined for photographing, so that switching between true dual-photographing blurring and main-photographing single-photographing blurring is achieved.
The photographing method of the embodiment is applied to a mobile terminal, the mobile terminal comprises a first camera and a second camera, and the photographing method comprises the following steps: when the first camera is in a use mode, shooting data are obtained; detecting whether the shooting data meet a preset condition or not; and shooting by using the first camera and/or the second camera according to the detection result. This application uses the camera of focusing and/or zooms the camera according to preset condition and shoots, can make full use of the big wide angle of camera of focusing shoot characteristics, can avoid shooting the distance again and fix a focus camera formation of image fuzzy when too near, promote the user and shoot the experience of shooing of distance at the difference.
Second embodiment
Fig. 6 is a flowchart illustrating a photographing method according to a second embodiment. Referring to fig. 6, the photographing method of the embodiment is applied to a mobile terminal, where the mobile terminal includes a first camera and a second camera, and illustratively, the first camera may be a wide-angle fixed-focus camera, and the second camera may be an automatic zoom camera, and the photographing method includes:
step 301, starting a first camera and a second camera;
step 302, acquiring shooting data of a first camera and/or a second camera according to a current camera switching mode;
and 303, shooting by using the first camera and/or the second camera according to the shooting data of the first camera and/or the second camera.
Optionally, after the first camera and the second camera are turned on, the method further includes:
and determining a camera switching mode according to the performance parameters of the mobile terminal.
Optionally, the performance parameter includes at least one of power, temperature, memory, and power consumption.
Optionally, determining a camera switching mode according to a performance parameter of the mobile terminal includes:
when the performance parameters meet preset parameter conditions, determining that the shooting mode is a first mode; and/or the presence of a gas in the gas,
when the performance parameters do not meet the preset parameter conditions, determining that the shooting mode is a second mode;
optionally, the camera switching speed of the first mode is less than the camera switching speed of the second mode.
When the first camera and the second camera are used for combined shooting, the current camera switching mode including the first mode and the second mode is determined first. Optionally, the first mode is a normal mode and the second mode is a fast mode. The difference between the two modes is that the switching speed of the camera in the first mode is less than that in the second mode, and the power consumption in the first mode is less than that in the second mode. For example, when the electric quantity of the mobile terminal is lower than a preset electric quantity, and/or the temperature of the mobile terminal is higher than a preset temperature, and/or the remaining memory space of the mobile terminal is lower than a preset memory space, and/or the current power consumption of the mobile terminal is higher than a preset power consumption, and the performance parameter of the mobile terminal meets a preset parameter condition, the shooting mode is determined to be the first mode. Otherwise, the shooting mode is determined to be the second mode. And then determining shooting data to be acquired according to the switching mode so as to determine the switching mode of the camera according to the shooting data.
Optionally, when the shooting mode is the first mode, shooting with the first camera and/or the second camera according to the preview image of the first camera and/or the second camera includes at least one of:
if the definition of the preview image of the first camera is larger than or equal to the definition of the historical preview image of the first camera, shooting by using the first camera;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is larger than or equal to the definition of the preview image of the second camera, and the first camera is used for shooting.
When the shooting mode is the first mode, first, the sharpness of the preview screen of the wide-angle fixed-focus camera is evaluated. If the definition of the preview image of the wide-angle fixed-focus camera is larger than or equal to the definition of the historical preview image of the camera, the wide-angle fixed-focus camera is used for shooting, so that the definition of the preview image of the wide-angle fixed-focus camera only needs to be calculated, and the power consumption is low. If the definition of the preview image of the wide-angle fixed-focus camera is smaller than that of the historical preview image of the camera, the imaging quality of the wide-angle fixed-focus camera is reduced, and the definition deviation degree between the preview image of the wide-angle fixed-focus camera and the historical preview image needs to be compared, and/or the definition of the preview image of the wide-angle fixed-focus camera and the definition of the preview image of the main camera need to be compared. And determining the switching mode of the camera according to the comparison result.
Optionally, when the shooting mode is the second mode, the preview image of the first camera and/or the second camera is shot by using the first camera and/or the second camera, and the method further includes:
if the definition of the preview image of the first camera is larger than or equal to that of the preview image of the second camera, the first camera is used for shooting; and/or the presence of a gas in the gas,
and if the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, shooting by using the second camera.
When the shooting mode is the second mode, the definitions of the preview image of the wide-angle fixed-focus camera and the preview image of the main camera can be directly compared, and the switching mode of the camera can be determined according to the comparison result.
The photographing method of the embodiment is applied to a mobile terminal, the mobile terminal comprises a first camera and a second camera, the first camera is a wide-angle fixed-focus camera, the second camera is an automatic zooming camera, and the photographing method comprises the following steps: starting a first camera and a second camera; acquiring shooting data of the first camera and/or the second camera according to the current camera switching mode; and shooting by using the first camera and/or the second camera according to the shooting data of the first camera and/or the second camera. This application uses the camera of focusing and/or zooms the camera according to preset condition and shoots, can make full use of the big wide angle of camera of focusing shoot characteristics, can avoid shooting the distance again and fix a focus camera formation of image fuzzy when too near, promote the user and shoot the experience of shooing of distance at the difference.
Third embodiment
Fig. 7 is a specific flowchart illustrating a photographing method according to a third embodiment. As shown in fig. 7, the present embodiment adopts a strategy of intelligent switching of dual-camera sharpness detection. Detecting image definition through a software algorithm, switching a shot camera according to an image detection result, and displaying switching contents on a shooting interface, such as switching a wide-angle camera to a main camera, or switching the main camera to the wide-angle camera.
Optionally, the wide-angle camera and the main camera are opened. And determining whether to adopt a fast switching mode or a common switching mode according to the performance parameters of the mobile terminal. If the mode is the fast switching mode, the definition of the preview images of the data of the wide-angle camera and the main camera is detected at the same time, and if the mode is not the fast switching mode, the definition of the preview image of the wide-angle camera is detected firstly.
In a fast mode, preview images of a wide-angle camera and a main camera are respectively acquired, and the two images are subjected to definition detection. And respectively carrying out filtering calculation on the two images through a Laplacian (Laplacian) operator. And then, the pixel value variances of the two filtered images are respectively calculated and are respectively recorded as sigma1 and sigma 2. Comparing the magnitudes of sigma1 and sigma2, the preview image corresponding to a large variance value is sharper, and the preview image corresponding to a small variance value is blurred. Comparing the definition data of the wide-angle camera and the main camera, if the definition change of the wide-angle camera is large and the definition change of the main camera is not large, the wide-angle camera is not in the range of depth of field, and the current shooting lens is switched from the wide-angle camera to the main camera.
In the non-fast mode, the definition detection is firstly carried out on the preview data of the wide-angle camera, and if the definition change is larger than that of the previous times, the definition detection of the main shooting is started. The filtering operation is performed on the image of the wide-angle camera by using a Laplacian (Laplacian) operator. And calculating the pixel value variance of the filtered image, recording the variance as sigma _ new, comparing the variance with previously recorded definition data sigma _ old1, sigma _ old2 and sigma _ old3 of the camera, and starting to calculate the definition of the main camera if the variance is larger than the previously recorded value. And respectively carrying out filtering operation on the two images of the preview image of the wide-angle camera and the preview image of the main camera by using a Laplacian operator. And then, the pixel value variances of the two filtered images are respectively calculated and are respectively recorded as sigma1 and sigma 2. Comparing the magnitudes of sigma1 and sigma2, the preview image corresponding to a large variance value is sharper, and the preview image corresponding to a small variance value is blurred. Comparing the definition data of the wide-angle camera and the main camera, if the definition change of the wide-angle camera is large and the definition change of the main camera is not large, the wide-angle camera is not in the range of depth of field, and the current shooting lens is switched from the wide-angle camera to the main camera.
The application further provides a mobile terminal, which comprises a memory and a processor, wherein the memory is stored with a photographing program, and the photographing program is executed by the processor to realize the steps of the photographing method in any embodiment.
The present application further provides a computer-readable storage medium, in which a photographing program is stored, and when the photographing program is executed by a processor, the steps of the photographing method in any of the above embodiments are implemented.
In the embodiments of the mobile terminal and the computer-readable storage medium provided in the present application, all technical features of any one of the above-described embodiments of the photographing method may be included, and the expanding and explaining contents of the specification are basically the same as those of the above-described embodiments of the method, and are not described herein again.
Embodiments of the present application also 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 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.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits 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 may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a mobile terminal device (e.g., a mobile phone, a computer, a server, a controlled mobile terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially 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 computer readable storage medium or transmitted from one computer readable 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 by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory 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 modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (14)

1. A method of taking a picture, comprising the steps of:
when the first camera is in a use mode, shooting data are obtained;
detecting whether the shooting data meet a preset condition or not;
and shooting by using the first camera and/or the second camera according to the detection result.
2. The photographing method of claim 1, wherein the first camera is in a use mode comprising at least one of:
the first camera is in an independent working use mode;
the first camera is in a use mode of suspending work;
the first camera is in a use mode working in combination with the second camera.
3. The photographing method according to claim 2, wherein the acquiring photographing data includes at least one of:
the first camera is in an independent working use mode, or the first camera is in a suspended working use mode, and the shooting distance between a shooting object and the first camera is acquired;
the first camera is in an independent working use mode, or the first camera is in a suspended working use mode, and the definition of a preview image of the first camera is obtained;
the first camera is in a use mode of combined work with the second camera, and the definition of preview images of the first camera and the second camera is obtained.
4. The photographing method according to claim 3, wherein the meeting of the preset condition includes at least one of:
the times that the shooting distance is smaller than the preset distance are larger than the preset times;
the times that the shooting distance is greater than the preset distance are greater than the preset times;
the definition of the preview image of the first camera is greater than or equal to the definition of the preview image of the second camera;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, and the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera.
5. The photographing method according to claim 4, wherein when the first camera is in a use mode of an independent working state, the photographing using the first camera and/or the second camera according to the detection result includes at least one of:
the shooting distance is smaller than the preset distance for a number of times larger than the preset number of times, and the second camera is switched to be used for shooting;
the times that the shooting distance is smaller than the preset distance are smaller than or equal to the preset times, and the first camera is kept to be used for shooting;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
and the definition of the preview image of the first camera is less than that of the preview image of the second camera, and the second camera is used for shooting.
6. The photographing method according to claim 4, wherein when the first camera is in a suspended mode, the photographing using the first camera and/or the second camera according to the detection result includes at least one of:
the times that the shooting distance is larger than the preset distance are larger than the preset times, and the shooting is switched to the recovery of using the first camera for shooting;
the times that the shooting distance is greater than the preset distance are less than or equal to the preset times, and the second camera is kept to be used for shooting;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is smaller than or equal to a preset threshold value, and shooting is carried out by using the first camera;
the deviation degree between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, and the first camera and the second camera are used for shooting;
and the times that the shooting distance is greater than the preset distance are greater than the preset times, and the shooting is carried out by using the first camera and the second camera.
7. The photographing method according to claim 4, wherein when the first camera is in a use mode working in combination with the second camera, the photographing using the first camera and/or the second camera according to the detection result includes at least one of:
the shooting distance is smaller than the preset distance for a number of times larger than the preset number of times, and the second camera is switched to be used for shooting;
the times that the shooting distance is smaller than the preset distance are smaller than or equal to the preset times, and the first camera and the second camera are kept to be used for shooting;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
and the definition of the preview image of the first camera is less than that of the preview image of the second camera, and the second camera is used for shooting.
8. A method of taking a picture, comprising the steps of:
starting a first camera and a second camera;
acquiring shooting data of the first camera and/or the second camera according to the current camera switching mode;
and shooting by using the first camera and/or the second camera according to the shooting data of the first camera and/or the second camera.
9. The photographing method according to claim 8, wherein after the turning on the first camera and the second camera, further comprising:
and determining the camera switching mode according to the performance parameters of the mobile terminal.
10. The photographing method according to claim 9, wherein the determining of the camera switching mode according to the performance parameter of the mobile terminal comprises:
when the performance parameters meet preset parameter conditions, determining that the shooting mode is a first mode; and/or the presence of a gas in the gas,
and when the performance parameter does not meet the preset parameter condition, determining that the shooting mode is a second mode.
11. The photographing method according to claim 10, wherein when the photographing mode is the first mode, the photographing using the first camera and/or the second camera according to the preview image of the first camera and/or the second camera includes at least one of:
if the definition of the preview image of the first camera is larger than or equal to the definition of the historical preview image of the first camera, shooting by using the first camera;
the degree of deviation between the definition of the preview image of the first camera and the definition of the historical preview image of the first camera is larger than a preset threshold value, the definition of the preview image of the first camera is smaller than the definition of the preview image of the second camera, and the second camera is used for shooting;
the definition of the preview image of the first camera and the definition of the historical preview image of the first camera are larger than a preset threshold value, the definition of the preview image of the first camera is larger than or equal to the definition of the preview image of the second camera, and the first camera is used for shooting.
12. The photographing method according to claim 10, wherein when the photographing mode is the second mode, the preview image of the first camera and/or the second camera is photographed using the first camera and/or the second camera, further comprising:
if the definition of the preview image of the first camera is larger than or equal to the definition of the preview image of the second camera, shooting by using the first camera; and/or the presence of a gas in the gas,
and if the definition of the preview image of the first camera is smaller than that of the preview image of the second camera, the second camera is used for shooting.
13. A mobile terminal, characterized in that the mobile terminal comprises: memory, processor, wherein the memory has stored thereon a photographing program which when executed by the processor implements the steps of the photographing method of any of claims 1 to 12.
14. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 12.
CN202110909926.2A 2021-08-09 2021-08-09 Photographing method, mobile terminal and readable storage medium Pending CN113676658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110909926.2A CN113676658A (en) 2021-08-09 2021-08-09 Photographing method, mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110909926.2A CN113676658A (en) 2021-08-09 2021-08-09 Photographing method, mobile terminal and readable storage medium

Publications (1)

Publication Number Publication Date
CN113676658A true CN113676658A (en) 2021-11-19

Family

ID=78541950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110909926.2A Pending CN113676658A (en) 2021-08-09 2021-08-09 Photographing method, mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN113676658A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023215689A1 (en) * 2022-05-04 2023-11-09 Qualcomm Incorporated Automatic camera selection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023215689A1 (en) * 2022-05-04 2023-11-09 Qualcomm Incorporated Automatic camera selection
US11871107B2 (en) 2022-05-04 2024-01-09 Qualcomm Incorporated Automatic camera selection

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
CN107896304B (en) Image shooting method and device and computer readable storage medium
CN110086993B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN112367443A (en) Photographing method, mobile terminal and computer-readable storage medium
CN112135060B (en) Focusing processing method, mobile terminal and computer storage medium
CN109510941B (en) Shooting processing method and device and computer readable storage medium
CN113676658A (en) Photographing method, mobile terminal and readable storage medium
CN115002347B (en) Image 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
CN114143467A (en) Shooting method based on automatic focusing and zooming, mobile terminal and storage medium
CN114900613A (en) Control method, intelligent terminal and storage medium
CN113542605A (en) Camera shooting control method, mobile terminal and storage medium
CN113572916A (en) Shooting method, terminal device and storage medium
CN113572964A (en) Image processing method, mobile terminal and storage medium
CN109495683B (en) Interval shooting method and device and computer readable storage medium
CN112954225A (en) Multi-frame picture shooting method and device and computer readable storage medium
CN113194227A (en) Processing method, mobile terminal and storage medium
CN107613204B (en) Focusing area adjusting method, terminal and computer storage medium
CN108335301B (en) Photographing method and mobile terminal
CN107248141B (en) Image editing method and device and computer readable storage medium
CN115412672B (en) Shooting display method, intelligent terminal and readable storage medium
CN111866391B (en) Video shooting method and device and computer readable storage medium
CN113840062B (en) Camera control method, mobile terminal and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication