CN111917982A - Camera selection method and device, storage medium and mobile terminal - Google Patents
Camera selection method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN111917982A CN111917982A CN202010782473.7A CN202010782473A CN111917982A CN 111917982 A CN111917982 A CN 111917982A CN 202010782473 A CN202010782473 A CN 202010782473A CN 111917982 A CN111917982 A CN 111917982A
- Authority
- CN
- China
- Prior art keywords
- camera
- mobile terminal
- angle
- cameras
- vector
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a camera selection method, which is applied to a mobile terminal, wherein the mobile terminal comprises a plurality of cameras, and the camera selection method comprises the following steps: the deflection angle that sets up a plurality of cameras acquires mobile terminal's inclination, later, selects the camera that the deflection angle corresponds to inclination from a plurality of cameras as the target camera to make terminal user need not the manual adjustment terminal and make its adaptation shoot the visual angle, just can make the shooting effect at terminal reach the best, thereby simplified operation process, simultaneously, promoted user experience and felt.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for selecting a camera, a storage medium, and a mobile terminal.
Background
At present, mobile terminals on the market are generally provided with cameras, and some mobile terminal manufacturers configure a plurality of cameras for the mobile terminals in order to meet the requirements of different users on long focus, wide angle and the like.
However, in the multi-camera terminal in the prior art, a user needs to manually hold the mobile terminal to adapt to a shooting angle of view so as to achieve the best shooting effect, and thus the operation process is complicated.
Disclosure of Invention
The application provides a camera selection method and device, a storage medium and a mobile terminal, and effectively solves the problem that the mobile terminal under the design of multiple cameras needs to be manually held by a user to adapt to a shooting visual angle so as to enable the shooting effect to be optimal, and the operation process is complicated.
In order to solve the above problem, the present invention provides a camera selection method, which is applied to a mobile terminal, where the mobile terminal includes a plurality of cameras, and the camera selection method includes:
setting deflection angles of the plurality of cameras;
acquiring the inclination angle of the mobile terminal;
selecting a camera of which the deflection angle corresponds to the inclination angle from the plurality of cameras as a target camera.
Further preferably, the step of obtaining the tilt angle of the mobile terminal specifically includes:
acquiring a supporting force vector, a friction force vector and a gravity vector of the mobile terminal;
calculating a first component of the gravity vector in a direction parallel to the support force vector and a second component of the gravity vector in a direction parallel to the friction force vector;
and calculating a first angle difference between the first component vector and the gravity vector and a second angle difference between the second component vector and the gravity vector as the inclination angle of the mobile terminal.
Further preferably, the step of selecting the camera with the deflection angle corresponding to the inclination angle from the plurality of cameras as the target camera specifically includes:
calculating an angle difference between each of the deflection angles and the tilt angle;
and selecting the camera corresponding to the smallest angle difference value from the plurality of cameras as a target camera.
Further preferably, after the step of selecting, as the target camera, the camera whose deflection angle corresponds to the inclination angle from the plurality of cameras, the method further includes:
and when the acceleration of the mobile terminal is detected to be changed, returning to the step of setting the deflection angles of the plurality of cameras.
Further preferably, after the step of setting the deflection angles of the plurality of cameras is executed again, the method further includes:
acquiring a current inclination angle of the mobile terminal;
calculating a difference between the current tilt angle and the tilt angle;
when the difference value is larger than a preset threshold value, selecting a camera with the deflection angle corresponding to the current inclination angle from the plurality of cameras as a target camera;
and when the difference value is not greater than the preset threshold value, selecting the target camera.
In another aspect, the present invention further provides a camera selection device, which is applied to a mobile terminal, where the mobile terminal includes a plurality of cameras, and the camera selection device includes:
the setting module is used for setting the deflection angles of the plurality of cameras;
the acquisition module is used for acquiring the inclination angle of the mobile terminal;
and the selecting module is used for selecting the camera with the deflection angle corresponding to the inclination angle from the plurality of cameras as a target camera.
Further preferably, the obtaining module specifically includes:
the vector acquisition unit is used for acquiring a supporting force vector, a friction force vector and a gravity vector of the mobile terminal;
a vector calculation unit for calculating a first component vector of the gravity vector in a direction parallel to the supporting force vector and a second component vector of the gravity vector in a direction parallel to the friction force vector;
an angle calculation unit configured to calculate a first angle difference between the first component vector and the gravity vector and a second angle difference between the second component vector and the gravity vector as a tilt angle of the mobile terminal.
Further preferably, the selecting module specifically includes:
a calculation unit for calculating an angle difference between each of the deflection angles and the inclination angle;
and the selecting unit is used for selecting the camera corresponding to the smallest angle difference value from the plurality of cameras as the target camera.
Further preferably, the camera selection device further includes a detection module, configured to:
after selecting the camera with the deflection angle corresponding to the inclination angle from the plurality of cameras as a target camera, when detecting that the acceleration of the mobile terminal changes, returning to the step of setting the deflection angles of the plurality of cameras.
Further preferably, the camera selection device further includes a selection update module, configured to:
after the step of setting the deflection angles of the plurality of cameras is executed, acquiring the current inclination angle of the mobile terminal;
calculating a difference between the current tilt angle and the tilt angle;
when the difference value is larger than a preset threshold value, selecting a camera with the deflection angle corresponding to the current inclination angle from the plurality of cameras as a target camera;
and when the difference value is not greater than the preset threshold value, selecting the target camera.
In another aspect, the present invention also provides a computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the above-described camera selection methods.
In another aspect, the present invention further provides a mobile terminal, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in any one of the above-mentioned camera selection methods.
The invention has the beneficial effects that: the invention provides a camera selection method, which is applied to a mobile terminal, wherein the mobile terminal comprises a plurality of cameras, and the camera selection method comprises the following steps: the deflection angle that sets up a plurality of cameras acquires mobile terminal's inclination, later, selects the camera that the deflection angle corresponds to inclination from a plurality of cameras as the target camera to make terminal user need not the manual adjustment terminal and make its adaptation shoot the visual angle, just can make the shooting effect at terminal reach the best, thereby simplified operation process, simultaneously, promoted user experience and felt.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments according to the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is another schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a camera selection method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a camera selection device according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of a camera selection device according to an embodiment of the present invention.
Fig. 6 is a schematic view of an application scenario of the camera selection method according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims at solving the problem of complex operation process caused by the fact that a user needs to manually hold the mobile terminal under the existing multi-camera design to adapt to a shooting visual angle so as to enable the shooting effect to reach the best.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, 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 running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads instructions corresponding to processes of one or more application programs into the memory 102 according to the following steps, and the processor 101 runs the application programs stored in the memory 102, thereby implementing various functions, such as a camera selection method:
setting deflection angles of a plurality of cameras;
acquiring an inclination angle of the mobile terminal;
a camera whose deflection angle corresponds to the inclination angle is selected as a target camera from among the plurality of cameras.
The mobile terminal 100 may implement any of the steps in the camera selection method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. 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 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11b, IEEE802.11g, and/or IEEE802.11 n standards), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access), wimax, other suitable short message protocols, and may even include those protocols that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as corresponding program instructions in the above audio power amplifier control method, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, that is, obtains the frequency of the information transmission signal transmitted by the mobile terminal 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera, etc.), a bluetooth module, a flashlight, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
setting deflection angles of a plurality of cameras;
acquiring an inclination angle of the mobile terminal;
a camera whose deflection angle corresponds to the inclination angle is selected as a target camera from among the plurality of cameras.
In order to better use the mobile terminal 100 provided in the above embodiment, so that a user of the mobile terminal 100 under a multi-camera design can optimize a shooting effect of the mobile terminal 100 without manually adjusting the mobile terminal 100 to adapt to a shooting angle, the present invention provides a camera selection method, which is applied to the mobile terminal 100, wherein the mobile terminal 100 has a plurality of cameras, a flowchart of the camera selection method is shown in fig. 3, and the specific steps may be as follows:
a setting step S1O1. setting deflection angles of a plurality of cameras.
It is easily understood that the above-mentioned ways of fixing the plurality of cameras on the mobile terminal include various ways, for example, each camera can perform universal rotation, each camera can perform rotation of a fixed angle, or some cameras can perform universal rotation and some cameras can perform rotation of a fixed angle, etc.; moreover, the method for setting the deflection angle of the camera also includes a plurality of methods, for example, the user triggers the terminal to set the deflection angle of the camera by selecting one of a plurality of preset setting modes, or the terminal automatically sets the deflection angles of the plurality of cameras according to the state of the user holding the terminal at the moment, and the like.
And an obtaining step S1O2, obtaining the inclination angle of the mobile terminal.
It will be readily appreciated that one or more sensors may be provided within the mobile terminal for calculating the tilt angle of the terminal, such as a gravity sensor, an angle sensor, or a tilt sensor, among others.
It should be noted that, in this embodiment, the terminal may calculate the tilt angle according to the gravity, the supporting force and the friction force to which the terminal is subjected.
For example, the obtaining step S1O2 specifically includes:
acquiring a supporting force vector, a friction force vector and a gravity vector of the mobile terminal;
calculating a first component vector of the gravity vector in a direction parallel to the supporting force vector and a second component vector of the gravity vector in a direction parallel to the friction force vector;
and calculating a first angle difference between the first component vector and the gravity vector and a second angle difference between the second component vector and the gravity vector as the inclination angle of the mobile terminal.
It is easily understood that, because the forces are vectors, different forces have their corresponding force-receiving directions, and the gravity has a fixed direction, by establishing a coordinate system and calculating the components of the gravity in the directions of other forces, the tilt angle of the mobile terminal with respect to the vertical direction can be calculated.
A selecting step s1o3. a camera whose deflection angle corresponds to the inclination angle is selected as the target camera from the plurality of cameras.
It is easy to understand that, when a plurality of cameras can be used as target cameras, the terminal can further evaluate the shooting effect score of each target camera according to parameters such as the light incoming quantity, the framing integrity and the resolution of each camera, and finally select according to the shooting effect score.
It should be noted that if no deflection angle of the camera is exactly equal to the tilt angle of the mobile terminal, the terminal selects the target camera according to the angle difference between the deflection angle of each camera and the tilt angle of the mobile terminal.
For example, the selecting step S1O3 specifically includes:
calculating an angle difference between each deflection angle and the inclination angle;
and selecting the camera corresponding to the minimum angle difference value from the plurality of cameras as a target camera.
It is easy to understand that, besides the method for selecting the target camera, the terminal can also set an angle difference gradient, select a plurality of to-be-determined cameras from the plurality of cameras, evaluate the shooting effect score of each to-be-determined camera according to parameters such as the light incoming quantity, the framing integrity and the resolution of each to-be-determined camera, and finally select a target camera according to the shooting effect score so as to enable the shooting effect of the terminal to be optimal.
If the terminal moves during shooting, the terminal reselects the target camera.
For example, after the selecting step S1O3, the method may further include:
and when the acceleration of the mobile terminal is detected to be changed, returning to the step of setting the deflection angles of the plurality of cameras.
It is easy to understand that, in addition to determining whether the terminal moves through the change of the acceleration, the determination may be made through other manners, for example, determining whether the mobile terminal moves by determining whether the object in the field of view of the camera moves greatly.
It should be noted that, in order to ensure the stability of the terminal in the shooting process, the terminal may compare the difference between the tilt angles obtained twice before and after, and if the difference does not exceed the threshold, the target camera selected before the movement is used over, so as to prevent the terminal from repeatedly reselecting the camera to affect the continuity of the shooting process.
For example, after the step of "returning to execute setting of the deflection angles of the plurality of cameras", the method may further include:
acquiring a current inclination angle of the mobile terminal;
calculating a difference value between the current inclination angle and the inclination angle;
when the difference value is larger than a preset threshold value, selecting a camera with a deflection angle corresponding to the current inclination angle from the plurality of cameras as a target camera;
and when the difference value is not greater than the preset threshold value, selecting the target camera.
Different from the prior art, the invention provides a camera selection method, which is applied to a mobile terminal, wherein the mobile terminal comprises a plurality of cameras, and the camera selection method comprises the following steps: the deflection angle that sets up a plurality of cameras acquires mobile terminal's inclination, later, selects the camera that the deflection angle corresponds to inclination from a plurality of cameras as the target camera to make terminal user need not the manual adjustment terminal and make its adaptation shoot the visual angle, just can make the shooting effect at terminal reach the best, thereby simplified operation process, simultaneously, promoted user experience and felt.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a camera selection apparatus according to an embodiment of the present invention, which is applied to a mobile terminal 100, and the camera selection apparatus may include:
(1) setting module 10
A setting module 10 for executing a setting step S101, namely, setting the deflection angles of the plurality of cameras.
It is easily understood that the above-mentioned ways of fixing the plurality of cameras on the mobile terminal include various ways, for example, each camera can perform universal rotation, each camera can perform rotation of a fixed angle, or some cameras can perform universal rotation and some cameras can perform rotation of a fixed angle, etc.; moreover, the method for setting the deflection angle of the camera also includes a plurality of methods, for example, the user triggers the terminal to set the deflection angle of the camera by selecting one of a plurality of preset setting modes, or the terminal automatically sets the deflection angles of the plurality of cameras according to the state of the user holding the terminal at the moment, and the like; for example, please refer to fig. 6, fig. 6 is an application scene schematic diagram of a camera selection method according to an embodiment of the present invention, in fig. 6, a terminal has A, B, C, D, E five cameras arranged at equal intervals from top to bottom, and the terminal sets the deflection angles of the five cameras to different angles to meet different shooting requirements.
(2) Acquisition module 20
The obtaining module 20 is configured to perform the obtaining step S102, that is, obtain the tilt angle of the mobile terminal.
It will be readily appreciated that one or more sensors may be provided within the mobile terminal for calculating the tilt angle of the terminal, such as a gravity sensor, an angle sensor, or a tilt sensor, among others.
It should be noted that, in this embodiment, the terminal may calculate the tilt angle according to the gravity, the supporting force and the friction force to which the terminal is subjected.
Further, referring to fig. 5, fig. 5 is another schematic structural diagram of a camera selection device according to an embodiment of the present invention, where the obtaining module 20 specifically includes:
a vector obtaining unit 21, configured to obtain a supporting force vector, a friction force vector, and a gravity vector of the mobile terminal;
a vector calculation unit 22 for calculating a first component vector of the gravity vector in a direction parallel to the support force vector and a second component vector of the gravity vector in a direction parallel to the friction force vector;
an angle calculating unit 23, configured to calculate a first angle difference between the first component vector and the gravity vector and a second angle difference between the second component vector and the gravity vector as the tilt angle of the mobile terminal.
It is easily understood that, because the forces are vectors, different forces have their corresponding force-receiving directions, and the gravity has a fixed direction, by establishing a coordinate system and calculating the components of the gravity in the directions of other forces, the tilt angle of the mobile terminal with respect to the vertical direction can be calculated.
(3) Selection module 30
A selecting module 30 for executing a selecting step S103 of selecting a camera of which the deflection angle corresponds to the inclination angle from the plurality of cameras as the target camera.
It is easy to understand that, when a plurality of cameras can be used as target cameras, the terminal can further evaluate the shooting effect score of each target camera according to parameters such as the light incoming quantity, the framing integrity and the resolution of each camera, and finally select according to the shooting effect score.
It should be noted that if no deflection angle of the camera is exactly equal to the tilt angle of the mobile terminal, the terminal selects the target camera according to the angle difference between the deflection angle of each camera and the tilt angle of the mobile terminal.
For example, with continued reference to fig. 5, the selection module 30 may specifically include:
a calculation unit 31 for calculating an angle difference between each deflection angle and the inclination angle;
and a selecting unit 32, configured to select a camera corresponding to the smallest angle difference value from the multiple cameras as a target camera.
It is easy to understand that, besides the method for selecting the target camera, the terminal can also set an angle difference gradient, select a plurality of to-be-determined cameras from the plurality of cameras, evaluate the shooting effect score of each to-be-determined camera according to parameters such as the light incoming quantity, the framing integrity and the resolution of each to-be-determined camera, and finally select a target camera according to the shooting effect score so as to enable the shooting effect of the terminal to be optimal.
If the terminal moves during shooting, the terminal reselects the target camera.
For example, the camera selection apparatus further includes a detection module configured to:
and after selecting a camera with the deflection angle corresponding to the inclination angle from the plurality of cameras as the target camera, when detecting that the acceleration of the mobile terminal changes, returning to the step of setting the deflection angles of the plurality of cameras.
It is easy to understand that, in addition to determining whether the terminal moves through the change of the acceleration, the determination may be made through other manners, for example, determining whether the mobile terminal moves by determining whether the object in the field of view of the camera moves greatly.
It should be noted that, in order to ensure the stability of the terminal in the shooting process, the terminal may compare the difference between the tilt angles obtained twice before and after, and if the difference does not exceed the threshold, the target camera selected before the movement is used over, so as to prevent the terminal from repeatedly reselecting the camera to affect the continuity of the shooting process.
For example, the camera selection apparatus further includes a selection update module configured to:
after the step of setting the deflection angles of the plurality of cameras is returned to be executed, acquiring the current inclination angle of the mobile terminal;
calculating a difference value between the current inclination angle and the inclination angle;
when the difference value is larger than a preset threshold value, selecting a camera with a deflection angle corresponding to the current inclination angle from the plurality of cameras as a target camera;
and when the difference value is not greater than the preset threshold value, selecting the target camera.
Different from the prior art, the invention provides a camera selection device, which is applied to a mobile terminal, wherein the mobile terminal comprises a plurality of cameras, and the camera selection device comprises: a set up module 10 for setting up the deflection angle of a plurality of cameras, an acquisition module 20 for acquireing mobile terminal's inclination, and, a selection module 30 for selecting the deflection angle to be corresponding to the camera of inclination as the target camera from a plurality of cameras, this camera selection device can make terminal user need not the manual adjustment terminal and make its adaptation shoot the visual angle, just can make the shooting effect at terminal reach the best, thereby operation process has been simplified, and simultaneously, user experience has been promoted and has been felt.
In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by using equivalents or equivalent substitutions fall within the protection scope of the claims of the present invention.
In summary, although the preferred embodiments of the present invention have been described above, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.
Claims (10)
1. A camera selection method is applied to a mobile terminal, the mobile terminal comprises a plurality of cameras, and the camera selection method comprises the following steps:
setting deflection angles of the plurality of cameras;
acquiring the inclination angle of the mobile terminal;
selecting a camera of which the deflection angle corresponds to the inclination angle from the plurality of cameras as a target camera.
2. The camera selection method according to claim 1, wherein the step of obtaining the tilt angle of the mobile terminal specifically includes:
acquiring a supporting force vector, a friction force vector and a gravity vector of the mobile terminal;
calculating a first component of the gravity vector in a direction parallel to the support force vector and a second component of the gravity vector in a direction parallel to the friction force vector;
and calculating a first angle difference between the first component vector and the gravity vector and a second angle difference between the second component vector and the gravity vector as the inclination angle of the mobile terminal.
3. The camera selection method according to claim 2, wherein the step of selecting, as the target camera, the camera whose deflection angle corresponds to the tilt angle from the plurality of cameras specifically includes:
calculating an angle difference between each of the deflection angles and the tilt angle;
and selecting the camera corresponding to the smallest angle difference value from the plurality of cameras as a target camera.
4. The camera selection method according to claim 1, further comprising, after the step of selecting, as the target camera, a camera whose yaw angle corresponds to the tilt angle from among the plurality of cameras:
and when the acceleration of the mobile terminal is detected to be changed, returning to the step of setting the deflection angles of the plurality of cameras.
5. The camera selection method according to claim 4, further comprising, after returning to the step of setting the yaw angles of the plurality of cameras,:
acquiring a current inclination angle of the mobile terminal;
calculating a difference between the current tilt angle and the tilt angle;
when the difference value is larger than a preset threshold value, selecting a camera with the deflection angle corresponding to the current inclination angle from the plurality of cameras as a target camera;
and when the difference value is not greater than the preset threshold value, selecting the target camera.
6. A camera selection device is applied to a mobile terminal, wherein the mobile terminal comprises a plurality of cameras, and the camera selection device comprises:
the setting module is used for setting the deflection angles of the plurality of cameras;
the acquisition module is used for acquiring the inclination angle of the mobile terminal;
and the selecting module is used for selecting the camera with the deflection angle corresponding to the inclination angle from the plurality of cameras as a target camera.
7. The camera selection device according to claim 6, wherein the obtaining module specifically includes:
the vector acquisition unit is used for acquiring a supporting force vector, a friction force vector and a gravity vector of the mobile terminal;
a vector calculation unit for calculating a first component vector of the gravity vector in a direction parallel to the supporting force vector and a second component vector of the gravity vector in a direction parallel to the friction force vector;
an angle calculation unit configured to calculate a first angle difference between the first component vector and the gravity vector and a second angle difference between the second component vector and the gravity vector as a tilt angle of the mobile terminal.
8. The camera selection device according to claim 7, wherein the selection module specifically includes:
a calculation unit for calculating an angle difference between each of the deflection angles and the inclination angle;
and the selecting unit is used for selecting the camera corresponding to the smallest angle difference value from the plurality of cameras as the target camera.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the camera selection method of any one of claims 1 to 5.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the camera selection method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782473.7A CN111917982B (en) | 2020-08-06 | 2020-08-06 | Camera selection method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782473.7A CN111917982B (en) | 2020-08-06 | 2020-08-06 | Camera selection method and device, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111917982A true CN111917982A (en) | 2020-11-10 |
CN111917982B CN111917982B (en) | 2022-06-10 |
Family
ID=73287795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010782473.7A Active CN111917982B (en) | 2020-08-06 | 2020-08-06 | Camera selection method and device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111917982B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685306A (en) * | 2011-03-15 | 2012-09-19 | 联想(北京)有限公司 | Method and mobile terminal for switching image collecting units |
CN105791688A (en) * | 2016-03-04 | 2016-07-20 | 海信电子科技(深圳)有限公司 | Mobile terminal and imaging method |
US20180063434A1 (en) * | 2016-08-25 | 2018-03-01 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
CN108076294A (en) * | 2018-01-26 | 2018-05-25 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108377280A (en) * | 2018-03-12 | 2018-08-07 | 广东欧珀移动通信有限公司 | Mobile terminal and its method of imaging |
CN208079154U (en) * | 2018-03-12 | 2018-11-09 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN108881719A (en) * | 2018-06-27 | 2018-11-23 | 维沃移动通信有限公司 | A kind of method and terminal device switching style of shooting |
CN109819168A (en) * | 2019-01-31 | 2019-05-28 | 维沃移动通信有限公司 | A kind of the starting method and mobile terminal of camera |
-
2020
- 2020-08-06 CN CN202010782473.7A patent/CN111917982B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685306A (en) * | 2011-03-15 | 2012-09-19 | 联想(北京)有限公司 | Method and mobile terminal for switching image collecting units |
CN105791688A (en) * | 2016-03-04 | 2016-07-20 | 海信电子科技(深圳)有限公司 | Mobile terminal and imaging method |
US20180063434A1 (en) * | 2016-08-25 | 2018-03-01 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
CN108076294A (en) * | 2018-01-26 | 2018-05-25 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108377280A (en) * | 2018-03-12 | 2018-08-07 | 广东欧珀移动通信有限公司 | Mobile terminal and its method of imaging |
CN208079154U (en) * | 2018-03-12 | 2018-11-09 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN108881719A (en) * | 2018-06-27 | 2018-11-23 | 维沃移动通信有限公司 | A kind of method and terminal device switching style of shooting |
CN109819168A (en) * | 2019-01-31 | 2019-05-28 | 维沃移动通信有限公司 | A kind of the starting method and mobile terminal of camera |
Also Published As
Publication number | Publication date |
---|---|
CN111917982B (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106778585B (en) | A kind of face key point-tracking method and device | |
CN109067418B (en) | Antenna control method and mobile terminal | |
CN112424725A (en) | Application program control method and electronic equipment | |
CN111246061B (en) | Mobile terminal, method for detecting shooting mode and storage medium | |
CN111064847B (en) | False touch prevention method and device, storage medium and electronic equipment | |
CN112243259A (en) | Network disconnection method, device, storage medium and mobile terminal | |
CN111355991B (en) | Video playing method and device, storage medium and mobile terminal | |
CN111917982B (en) | Camera selection method and device, storage medium and mobile terminal | |
CN112486350B (en) | Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal | |
CN115348256A (en) | Posting data downloading method and device, storage medium and electronic equipment | |
CN110996003B (en) | Photographing positioning method and device and mobile terminal | |
CN111355892B (en) | Picture shooting method and device, storage medium and electronic terminal | |
CN111343335B (en) | Image display processing method, system, storage medium and mobile terminal | |
CN114710816A (en) | Network switching method and device, electronic equipment and storage medium | |
CN108966298B (en) | Communication frequency band control method and device | |
CN112286849A (en) | Wireless charging base data switching method and system, storage medium and terminal equipment | |
CN112367425A (en) | Volume adjusting method and device and terminal | |
CN111399944A (en) | Application function starting method and device, storage medium and mobile terminal | |
CN111651299A (en) | Wireless chip reset control method and device, storage medium and mobile terminal | |
CN110618798A (en) | Multi-screen display method, multi-screen device, storage medium and terminal equipment | |
CN112468725B (en) | Photo shooting method and device, storage medium and mobile terminal | |
CN111988059B (en) | Wireless data transmission method, device, storage medium and mobile terminal | |
CN109995441B (en) | Communication information processing method, device and storage medium | |
CN111026486B (en) | Application sorting method, application sorting device and computer readable storage medium | |
CN111327817B (en) | Virtual photographing method and system, storage medium and terminal equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |