CN106959875B - Front camera opening method, device and equipment - Google Patents
Front camera opening method, device and equipment Download PDFInfo
- Publication number
- CN106959875B CN106959875B CN201710171232.7A CN201710171232A CN106959875B CN 106959875 B CN106959875 B CN 106959875B CN 201710171232 A CN201710171232 A CN 201710171232A CN 106959875 B CN106959875 B CN 106959875B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- placement state
- opening
- module
- axis direction
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
The disclosure relates to a method, a device and equipment for opening a front camera, wherein the method comprises the following steps: according to the received shooting application opening instruction, opening the shooting application; and judging the placement state of the mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal. The present disclosure may enhance the user experience.
Description
Technical Field
The disclosure relates to the field of communication, and in particular relates to a method, a device and equipment for opening a front camera.
Background
At present, more and more users choose to take pictures by using a mobile phone so as to record the dripping of the infusion drops in life at any time.
In the related art, for a mobile phone with a front camera located at a position below the front surface of a screen, when a user performs self-shooting, in order to achieve a better effect, the user usually turns on an application program of the camera and turns on the front camera, and then inverts the mobile phone to perform self-shooting.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method, an apparatus and a device for opening a front camera.
According to a first aspect of an embodiment of the present disclosure, there is provided a method for opening a front camera, including:
according to the received shooting application opening instruction, opening the shooting application;
and judging the placement state of the mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal.
Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved.
Optionally, the performing, by the front camera of the mobile terminal, a corresponding operation according to the placement state of the mobile terminal includes:
and if the placement state is judged to be the inverted state, opening a front camera of the mobile terminal.
When the placement state of the mobile terminal is judged to be the inverted state, the front-facing camera is automatically opened, so that the phenomenon that a user manually opens the front-facing camera can be avoided, and the opening efficiency of the front-facing camera is improved.
Optionally, the determining the placement state of the mobile terminal includes:
acquiring data of an angular velocity sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
Since the placement state of the mobile terminal is determined by the data in the Y-axis direction from the angular velocity sensor, the accuracy of the determination of the placement state of the mobile terminal can be improved.
Optionally, the determining the placement state of the mobile terminal includes:
acquiring data of a acceleration sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
Since the placement state of the mobile terminal is determined by data in the Y-axis direction according to the acceleration sensor, the accuracy of the determination of the placement state of the mobile terminal can be improved.
Optionally, the determining the placement state of the mobile terminal includes:
acquiring data of a magnetic field sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
Since the placement state of the mobile terminal is determined by the data in the Y-axis direction according to the magnetic field sensor, the accuracy of the determination of the placement state of the mobile terminal can be improved.
Optionally, before the shooting application is opened according to the received shooting application opening instruction, the method further includes:
acquiring a setting instruction; the setting instruction is used for indicating to start an automatic front-end camera service opening function;
and according to the setting instruction, enabling an automatic opening front camera service function.
Because the mobile terminal can only start the function of automatically opening the front-end camera service when acquiring the setting instruction, the user experience can be improved, and the accuracy of opening the front-end camera can be improved.
According to a second aspect of the embodiments of the present disclosure, there is provided an opening device for a front camera, including:
the opening module is configured to open the shooting application according to the received shooting application opening instruction;
the judging module is configured to judge the placement state of the mobile terminal;
and the processing module is configured to execute corresponding operation by the front camera of the mobile terminal according to the placement state of the mobile terminal judged by the judging module.
Optionally, the processing module includes:
and the opening sub-module is configured to open the front camera of the mobile terminal if the placement state is judged to be the inverted state.
Optionally, the judging module includes:
a first acquisition sub-module configured to acquire data of a Y-axis direction of an angular velocity sensor in the mobile terminal;
the first determining sub-module is configured to determine that the placement state is an inverted state when the data in the Y-axis direction acquired by the first acquiring sub-module is determined to be a negative value.
Optionally, the judging module includes:
a second acquisition sub-module configured to acquire data in a Y-axis direction of an acceleration sensor in the mobile terminal;
and the second determining submodule is configured to determine that the placing state is an inverted state when the data in the Y-axis direction acquired by the second acquiring submodule is determined to be negative.
Optionally, the judging module includes:
a third acquisition sub-module configured to acquire data of a Y-axis direction of a magnetic field sensor in the mobile terminal;
and the third determining sub-module is configured to determine that the placement state is an inverted state when the data in the Y-axis direction acquired by the third acquiring sub-module is determined to be a negative value.
Optionally, the apparatus further comprises:
the acquisition module is configured to acquire a first setting instruction; the first setting instruction is used for indicating to start an automatic front-end camera service opening function;
and the starting module is configured to start the automatic opening front-end camera service function according to the first setting instruction acquired by the acquisition module.
According to a third aspect of embodiments of the present disclosure, there is provided a mobile terminal comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
according to the received shooting application opening instruction, opening the shooting application;
and judging the placement state of the mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
and opening the shooting application according to the received shooting application opening instruction, judging the placement state of the mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart illustrating a method of opening a front camera according to an exemplary embodiment;
FIG. 2 is a schematic diagram of an interface for a user to send an open command;
fig. 3 is a flowchart illustrating a method of opening a front camera according to another exemplary embodiment;
fig. 4 is a flowchart illustrating a method of opening a front camera according to still another exemplary embodiment;
fig. 5 is a flowchart illustrating a method of opening a front camera according to still another exemplary embodiment;
fig. 6 is a flowchart illustrating a method of opening a front camera according to yet another exemplary embodiment;
FIG. 7 is a block diagram illustrating an opening device for a front camera, according to an exemplary embodiment;
fig. 8 is a block diagram of an opening device of a front camera according to another exemplary embodiment;
fig. 9 is a block diagram of an opening device of a front camera according to still another exemplary embodiment;
fig. 10 is a block diagram of an opening device of a front camera according to still another exemplary embodiment;
fig. 11 is a block diagram of an opening device of a front camera according to still another exemplary embodiment;
fig. 12 is a block diagram of an opening device of a front camera according to still another exemplary embodiment;
FIG. 13 is a block diagram illustrating an entity of a mobile terminal according to one exemplary embodiment;
fig. 14 is a block diagram illustrating an opening device for a front camera according to an exemplary embodiment.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
Fig. 1 is a flowchart of a method for opening a front-end camera according to an exemplary embodiment, and as shown in fig. 1, the method for opening a front-end camera according to the present embodiment is mainly used on a mobile terminal, for example, a mobile phone or a tablet, and may also be used on other devices with front-end cameras. The method for opening the front camera comprises the following steps.
In step S11, the photographing application is opened according to the received photographing application opening instruction.
In step S12, the placement state of the mobile terminal is determined, and the front camera of the mobile terminal performs a corresponding operation according to the placement state of the mobile terminal.
In the related art, for a mobile terminal with a front camera located at a position below the front surface of a screen, when a user uses the mobile terminal to perform self-photographing, in order to achieve a better effect, a camera Application (APP) is usually opened, and after the front camera is opened, the mobile phone is turned upside down to perform self-photographing. However, in the self-timer mode, the step of opening the front camera by the user is complicated, so that the user experience is poor.
To solve this problem, in the embodiment of the present disclosure, a user may send an open instruction for opening a photographing application to a mobile terminal when photographing. In practical applications, the user may send an open instruction by clicking the APP of the shooting application, for example: fig. 2 is an interface schematic diagram of a user sending an open command, as shown in fig. 2, by clicking a "camera" APP in the mobile terminal. In addition, the user may send the opening instruction to the mobile terminal by clicking a certain function key, and of course, the user may send the opening instruction to the mobile terminal by other means, for example, drawing a preset pattern on the screen of the mobile terminal to send the opening instruction, and the specific sending manner of the opening instruction is not limited herein.
After receiving the opening instruction input by the user, the mobile terminal opens the shooting application, such as the camera, according to the received opening instruction. After the shooting application is opened, the mobile terminal judges the placement state of the mobile terminal. According to the placement state, the front camera of the mobile terminal performs a corresponding operation, such as opening the front camera or keeping the front camera in a closed state according to the state of the mobile terminal. Therefore, the phenomenon that the front camera needs to be opened manually when the user performs self-shooting is avoided, and the user experience can be improved.
According to the method for opening the front-facing camera, the shooting application is opened according to the received shooting application opening instruction, the placement state of the mobile terminal is judged, and the front-facing camera of the mobile terminal executes corresponding operation according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved.
Optionally, according to the placement state of the mobile terminal, the front camera of the mobile terminal performs corresponding operations, including: if the placement state is judged to be the inverted state, a front camera of the mobile terminal is turned on.
Specifically, if the terminal device opens the photographing application and determines that the placement state of the terminal device is an inverted state, it is indicated that the user may want to perform self-photographing, and at this time, the front camera of the mobile terminal will be opened.
According to the front-facing camera opening method, when the placement state of the mobile terminal is judged to be the inverted state, the front-facing camera is automatically opened, so that the phenomenon that a user manually opens the front-facing camera can be avoided, and the opening efficiency of the front-facing camera is improved.
Fig. 3 is a flowchart of a method for opening a front camera, which is used in a mobile terminal according to another exemplary embodiment, and the embodiment of how to determine a placement state of the mobile terminal is described in detail based on the embodiment shown in fig. 1, and as shown in fig. 3, the method for opening a front camera includes the following steps.
In step S31, the photographing application is opened according to the received photographing application opening instruction.
In step S32, data of the Y-axis direction of the angular velocity sensor in the mobile terminal is acquired.
In this embodiment, the angular velocity sensor may be, for example, a gyroscope, and those skilled in the art will understand that the gyroscope includes data in three directions of an X axis, a Y axis and a Z axis, and by acquiring data in the Y axis direction of the gyroscope, the motion of the mobile terminal in rotation and deflection can be measured.
In step S33, when it is determined that the data in the Y-axis direction is negative, it is determined that the placement state is the inverted state.
In the embodiment of the present disclosure, after acquiring the data in the Y-axis direction of the angular velocity sensor, the mobile terminal will determine the placement state of the mobile terminal according to the acquired data in the Y-axis direction, for example: whether in a normal, horizontal or inverted state. If the obtained data in the Y-axis direction is positive, the mobile terminal is in a normal placement state, if the data in the Y-axis direction is zero, the mobile terminal is in a transverse placement state, and if the data in the Y-axis direction is negative, the mobile terminal is in an inverted state.
In step S34, the front camera of the mobile terminal performs a corresponding operation according to the placement state of the mobile terminal.
In the embodiment of the present disclosure, if it is determined that the placement state of the mobile terminal is an inverted state, which indicates that the user may want to perform self-timer shooting, the front camera is turned on.
According to the method for opening the front-facing camera, the shooting application is opened according to the received shooting application opening instruction, the placement state of the mobile terminal is judged, and the front-facing camera of the mobile terminal executes corresponding operation according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved. In addition, by determining the placement state of the mobile terminal from the data in the Y-axis direction of the angular velocity sensor, the accuracy of the determination of the placement state of the mobile terminal can be improved.
Fig. 4 is a flowchart of a method for opening a front camera according to still another exemplary embodiment, which is used in a mobile terminal, and the embodiment of how to determine the placement state of the mobile terminal is described in detail based on the embodiment shown in fig. 1, where the difference between the embodiment and the embodiment shown in fig. 3 is that the determination is made by an acceleration sensor, and as shown in fig. 4, the method for opening a front camera includes the following steps.
In step S41, a photographing application is opened according to the received photographing application opening instruction.
In step S42, data in the Y-axis direction of the acceleration sensor in the mobile terminal is acquired.
It will be appreciated by those skilled in the art that the acceleration sensor also includes data in three directions of the X axis, the Y axis and the Z axis, and by acquiring the data in the Y axis direction of the acceleration sensor, the rotation and deflection actions of the mobile terminal can be measured.
In step S43, when it is determined that the data in the Y-axis direction is negative, it is determined that the placement state is the inverted state.
In the embodiment of the disclosure, after acquiring the data in the Y-axis direction of the acceleration sensor, the mobile terminal determines the placement state of the mobile terminal according to the acquired data in the Y-axis direction, for example: whether in a normal, horizontal or inverted state. If the obtained data in the Y-axis direction is positive, the mobile terminal is in a normal placement state, if the data in the Y-axis direction is zero, the mobile terminal is in a transverse placement state, and if the data in the Y-axis direction is negative, the mobile terminal is in an inverted state.
In step S44, the front camera of the mobile terminal performs a corresponding operation according to the placement state of the mobile terminal.
In the embodiment of the present disclosure, if it is determined that the placement state of the mobile terminal is an inverted state, which indicates that the user may want to perform self-timer shooting, the front camera is turned on.
According to the method for opening the front-facing camera, the shooting application is opened according to the received shooting application opening instruction, the placement state of the mobile terminal is judged, and the front-facing camera of the mobile terminal executes corresponding operation according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved. In addition, by determining the placement state of the mobile terminal according to the data of the Y-axis direction of the acceleration sensor, the accuracy of the determination of the placement state of the mobile terminal can be improved.
Fig. 5 is a flowchart of a method for opening a front camera according to still another exemplary embodiment, which is used in a mobile terminal, and the embodiment of how to determine the placement state of the mobile terminal is described in detail based on the embodiment shown in fig. 1, where the difference between the embodiment and the embodiment shown in fig. 3 and 4 is that the determination is performed by a magnetic field sensor, and as shown in fig. 5, the method for opening a front camera includes the following steps.
In step S51, the photographing application is opened according to the received photographing application opening instruction.
In step S52, data of the Y-axis direction of the magnetic field sensor in the mobile terminal is acquired.
It will be appreciated by those skilled in the art that the magnetic field sensor also includes data in three directions, namely the X-axis, the Y-axis and the Z-axis, and by acquiring data in the Y-axis direction of the magnetic field sensor, the rotation and deflection actions of the mobile terminal can be measured.
In step S53, when it is determined that the data in the Y-axis direction is negative, it is determined that the placement state is the inverted state.
In the embodiment of the disclosure, after acquiring the data in the Y-axis direction of the magnetic field sensor, the mobile terminal determines the placement state of the mobile terminal according to the acquired data in the Y-axis direction, for example: whether in a normal, horizontal or inverted state. If the obtained data in the Y-axis direction is positive, the mobile terminal is in a normal placement state, if the data in the Y-axis direction is zero, the mobile terminal is in a transverse placement state, and if the data in the Y-axis direction is negative, the mobile terminal is in an inverted state.
In step S54, the front camera of the mobile terminal performs a corresponding operation according to the placement state of the mobile terminal.
In the embodiment of the present disclosure, if it is determined that the placement state of the mobile terminal is an inverted state, which indicates that the user may want to perform self-timer shooting, the front camera is turned on.
According to the method for opening the front-facing camera, the shooting application is opened according to the received shooting application opening instruction, the placement state of the mobile terminal is judged, and the front-facing camera of the mobile terminal executes corresponding operation according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved. In addition, by determining the placement state of the mobile terminal according to the data of the Y-axis direction of the magnetic field sensor, the accuracy of the determination of the placement state of the mobile terminal can be improved.
Fig. 6 is a flowchart of a method for opening a front-end camera according to still another exemplary embodiment, which is used in a mobile terminal, and the method for opening a front-end camera according to the embodiment shown in fig. 1 is described in detail with respect to an embodiment in which a function of opening a service of the front-end camera needs to be activated before a photographing application is opened according to a received photographing application opening instruction, as shown in fig. 6.
In step S61, a setting instruction is acquired; the setting instruction is used for indicating to enable the automatic opening of the front-facing camera service function.
Specifically, the user may sometimes place the mobile terminal in an inverted state, but want to take a picture through the rear camera, but at this time, the mobile terminal opens the front camera, so that the user experience is very bad. Wherein, the user sending the setting instruction may include: the user presses a special key, clicks or double clicks on the screen, selects an option tab, clicks a pattern tab or inputs voice, etc.
In step S62, according to the setting instruction, the automatic opening front camera service function is enabled.
In the embodiment of the disclosure, after the mobile terminal acquires the setting instruction, the front-end camera service function is started to be opened according to the setting instruction, that is, after the mobile terminal starts to automatically open the front-end camera service function according to the setting instruction, the mobile terminal can control the front-end camera to execute corresponding operations according to the placement state of the mobile terminal. Like this, when the user need open this front-end camera service function of opening, this function just can be opened, has avoided the user to invert mobile terminal, and when adopting rear-end camera to take a picture, and mobile terminal can open the phenomenon of front-end camera, from this not only can improve user's experience, can improve the accuracy of opening front-end camera moreover.
According to the method for opening the front-facing camera, the shooting application is opened according to the received shooting application opening instruction, the placement state of the mobile terminal is judged, and the front-facing camera of the mobile terminal executes corresponding operation according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved. In addition, the mobile terminal can start the function of automatically opening the front-end camera service only when acquiring the setting instruction, so that the user experience can be improved, and the accuracy of opening the front-end camera can be improved.
The above describes the implementation procedure of the opening method of the front camera, which can be implemented by the opening device of the front camera, and the internal functions and structures of the device will be described below.
Fig. 7 is a block diagram illustrating an opening device of a front camera according to an exemplary embodiment. As shown in fig. 7, the opening device of the front camera includes an opening module 11, a judging module 12 and a processing module 13.
The opening module 11 is configured to open the photographing application according to the received photographing application opening instruction;
the judging module 12 is configured to judge a placement state of the mobile terminal;
the processing module 13 is configured to execute corresponding operations by the front camera of the mobile terminal according to the placement state of the mobile terminal determined by the determining module 12.
According to the opening device of the front-facing camera of the embodiment, the opening module 11 opens the shooting application according to the received shooting application opening instruction, the judging module 12 judges the placement state of the mobile terminal, and the processing module 13 executes corresponding operation according to the placement state of the mobile terminal. Because the mobile terminal opens the shooting application and judges the placement state of the mobile terminal, the front-facing camera executes corresponding operation according to the judged placement state, and the phenomenon that the front-facing camera needs to be opened manually when a user performs self-shooting is avoided, so that the user experience can be improved.
As shown in fig. 8, fig. 8 is a block diagram of an opening device of a front camera according to another exemplary embodiment, and the processing module 13 includes, based on the embodiment shown in fig. 7: the sub-module 131 is opened.
The opening sub-module 131 is configured to open the front camera of the mobile terminal if the placement state is determined to be an inverted state.
In addition, as shown in fig. 9, fig. 9 is a block diagram of an opening device of a front camera according to still another exemplary embodiment, and the judging module 12 includes, on the basis of the embodiment shown in fig. 7:
the first acquisition sub-module 121 is configured as data of the Y-axis direction of the angular velocity sensor in the mobile terminal;
the first determining sub-module 122 is configured to determine that the placement state is an inverted state when it is determined that the data in the Y-axis direction acquired by the first acquiring sub-module 121 is a negative value.
In addition, as shown in fig. 10, fig. 10 is a block diagram of an opening device of a front camera according to still another exemplary embodiment, and the judging module 12 includes, on the basis of the embodiment shown in fig. 7:
the second acquiring sub-module 123 is configured to acquire data in the Y-axis direction of the acceleration sensor in the mobile terminal;
the second determining sub-module 124 is configured to determine that the placement state is an inverted state when it is determined that the data in the Y-axis direction acquired by the second acquiring sub-module is negative.
In addition, as shown in fig. 11, fig. 11 is a block diagram of an opening device of a front camera according to still another exemplary embodiment, and the judging module 12 includes, on the basis of the embodiment shown in fig. 7:
the third acquiring sub-module 125 is configured to acquire data of the Y-axis direction of the magnetic field sensor in the mobile terminal;
the third determining sub-module 126 is configured to determine that the placement state is an inverted state when it is determined that the data in the Y-axis direction acquired by the third acquiring sub-module is negative.
In addition, as shown in fig. 12, fig. 12 is a block diagram of an opening device of a front camera according to still another exemplary embodiment, and further includes, on the basis of the embodiment shown in fig. 7:
the acquisition module 14 is configured to acquire a first setting instruction; the first setting instruction is used for indicating to start an automatic front-end camera service opening function;
the enabling module 15 is configured to enable an automatic opening front camera service function according to the first setting instruction acquired by the acquiring module 14.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Having described the internal functional blocks and structural schematic of a mobile terminal above, fig. 13 is a block diagram illustrating an entity of a mobile terminal according to an exemplary embodiment, and referring to fig. 13, the mobile terminal may be embodied as:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
according to the received shooting application opening instruction, opening the shooting application;
and judging the placement state of the mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal.
Fig. 14 is a block diagram illustrating an opening device for a front camera according to an exemplary embodiment. The apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 14, the apparatus 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input/output (I/O) interface 1012, a sensor component 1014, and a communication component 1016.
The processing component 1002 generally controls overall operation of the apparatus 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1002 can include one or more modules that facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a touch-sensitive display screen between the device 1000 and the user that provides an output interface. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia assembly 1008 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1000 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the device 1000 is in an operational mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, the audio component 1010 further comprises a speaker for outputting audio signals.
The I/O interface 1012 provides an interface between the processing assembly 1002 and peripheral interface modules, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects of the device 1000. For example, the sensor assembly 1014 may detect an on/off state of the device 1000, a relative positioning of the components, such as a display and keypad of the device 1000, the sensor assembly 1014 may also detect a change in position of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, an orientation or acceleration/deceleration of the device 1000, and a change in temperature of the device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communication between the apparatus 1000 and other devices, either wired or wireless. The device 1000 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above document display methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1004, including instructions executable by processor 1020 of apparatus 1000 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of apparatus 1000, enables apparatus 1000 to perform the method of:
according to the received shooting application opening instruction, opening the shooting application;
and judging the placement state of the mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal.
The step of executing corresponding operations by the front camera of the mobile terminal according to the placement state of the mobile terminal comprises the following steps:
and if the placement state is judged to be the inverted state, opening a front camera of the mobile terminal.
Wherein, the judging the placement state of the mobile terminal includes:
acquiring data of an angular velocity sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
Wherein, the judging the placement state of the mobile terminal includes:
acquiring data of a acceleration sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
Wherein, the judging the placement state of the mobile terminal includes:
acquiring data of a magnetic field sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
Wherein, before the shooting application is opened according to the received shooting application opening instruction, the method further comprises:
acquiring a setting instruction; the setting instruction is used for indicating to start an automatic front-end camera service opening function;
and according to the setting instruction, enabling an automatic opening front camera service function.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (11)
1. The method for opening the front camera is characterized by being applied to a mobile terminal with the front camera positioned at a position below the front surface of a screen, and comprises the following steps:
according to the received shooting application opening instruction, opening the shooting application;
judging the placement state of a mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal;
the step of executing corresponding operations by the front camera of the mobile terminal according to the placement state of the mobile terminal comprises the following steps:
and if the placement state is judged to be the inverted state, opening a front camera of the mobile terminal.
2. The method according to claim 1, wherein the determining the placement state of the mobile terminal includes:
acquiring data of an angular velocity sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
3. The method according to claim 1, wherein the determining the placement state of the mobile terminal includes:
acquiring data of a acceleration sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
4. The method according to claim 1, wherein the determining the placement state of the mobile terminal includes:
acquiring data of a magnetic field sensor in the mobile terminal in the Y-axis direction;
and when the data in the Y-axis direction is judged to be negative, determining that the placement state is an inverted state.
5. The method of claim 1, wherein the method further comprises, prior to opening the photographing application according to the received photographing application opening instruction:
and enabling the automatic opening front-end camera service function according to a setting instruction generated based on the operation of a user.
6. The utility model provides an opening device of leading camera, its characterized in that, device is applied to the mobile terminal that leading camera is located screen front below position, includes:
the opening module is configured to open the shooting application according to the received shooting application opening instruction;
the judging module is configured to judge the placement state of the mobile terminal;
the processing module is configured to execute corresponding operation by the front camera of the mobile terminal according to the placement state of the mobile terminal judged by the judging module;
wherein the processing module comprises:
and the opening sub-module is configured to open the front camera of the mobile terminal if the placement state is judged to be the inverted state.
7. The apparatus of claim 6, wherein the determining module comprises:
a first acquisition sub-module configured to acquire data of a Y-axis direction of an angular velocity sensor in the mobile terminal;
the first determining sub-module is configured to determine that the placement state is an inverted state when the data in the Y-axis direction acquired by the first acquiring sub-module is determined to be a negative value.
8. The apparatus of claim 6, wherein the determining module comprises:
a second acquisition sub-module configured to acquire data in a Y-axis direction of an acceleration sensor in the mobile terminal;
and the second determining submodule is configured to determine that the placing state is an inverted state when the data in the Y-axis direction acquired by the second acquiring submodule is determined to be negative.
9. The apparatus of claim 6, wherein the determining module comprises:
a third acquisition sub-module configured to acquire data of a Y-axis direction of a magnetic field sensor in the mobile terminal;
and the third determining sub-module is configured to determine that the placement state is an inverted state when the data in the Y-axis direction acquired by the third acquiring sub-module is determined to be a negative value.
10. The apparatus of claim 6, wherein the apparatus further comprises:
the starting module is configured to start the automatic opening front-end camera service function according to the first setting instruction which is acquired by the acquisition module and generated based on the operation of the user.
11. The utility model provides a mobile terminal which characterized in that, leading camera is located mobile terminal's screen front below position, includes:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
according to the received shooting application opening instruction, opening the shooting application;
judging the placement state of a mobile terminal, and executing corresponding operation by a front camera of the mobile terminal according to the placement state of the mobile terminal;
the step of executing corresponding operations by the front camera of the mobile terminal according to the placement state of the mobile terminal comprises the following steps: and if the placement state is judged to be the inverted state, opening a front camera of the mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710171232.7A CN106959875B (en) | 2017-03-21 | 2017-03-21 | Front camera opening method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710171232.7A CN106959875B (en) | 2017-03-21 | 2017-03-21 | Front camera opening method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106959875A CN106959875A (en) | 2017-07-18 |
CN106959875B true CN106959875B (en) | 2023-09-12 |
Family
ID=59470195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710171232.7A Active CN106959875B (en) | 2017-03-21 | 2017-03-21 | Front camera opening method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106959875B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070001461A (en) * | 2005-06-29 | 2007-01-04 | 주식회사 팬택 | Mobile communication terminal for controlling opening/closing of lens cover of slide type camera |
CN104065880A (en) * | 2014-06-05 | 2014-09-24 | 惠州Tcl移动通信有限公司 | Processing method and system for automatically taking pictures based on eye tracking technology |
WO2015192489A1 (en) * | 2014-06-16 | 2015-12-23 | 中兴通讯股份有限公司 | Photographing method and apparatus of mobile terminal and mobile photographing terminal |
CN105245713A (en) * | 2015-10-22 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Method and system for automatically switching pre-posed and post-posed cameras and terminal |
CN105516587A (en) * | 2015-12-03 | 2016-04-20 | 小米科技有限责任公司 | Method for switching cameras and mobile terminal |
CN105549960A (en) * | 2015-12-04 | 2016-05-04 | 小米科技有限责任公司 | Camera control method and apparatus |
CN105573632A (en) * | 2015-12-14 | 2016-05-11 | 魅族科技(中国)有限公司 | Terminal control method and device thereof |
CN106101365A (en) * | 2016-06-29 | 2016-11-09 | 北京小米移动软件有限公司 | Communication process adjusts the method and device of mike |
CN106412443A (en) * | 2016-11-22 | 2017-02-15 | 维沃移动通信有限公司 | Shooting method and mobile terminal |
-
2017
- 2017-03-21 CN CN201710171232.7A patent/CN106959875B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20070001461A (en) * | 2005-06-29 | 2007-01-04 | 주식회사 팬택 | Mobile communication terminal for controlling opening/closing of lens cover of slide type camera |
CN104065880A (en) * | 2014-06-05 | 2014-09-24 | 惠州Tcl移动通信有限公司 | Processing method and system for automatically taking pictures based on eye tracking technology |
WO2015192489A1 (en) * | 2014-06-16 | 2015-12-23 | 中兴通讯股份有限公司 | Photographing method and apparatus of mobile terminal and mobile photographing terminal |
CN105245713A (en) * | 2015-10-22 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Method and system for automatically switching pre-posed and post-posed cameras and terminal |
CN105516587A (en) * | 2015-12-03 | 2016-04-20 | 小米科技有限责任公司 | Method for switching cameras and mobile terminal |
CN105549960A (en) * | 2015-12-04 | 2016-05-04 | 小米科技有限责任公司 | Camera control method and apparatus |
CN105573632A (en) * | 2015-12-14 | 2016-05-11 | 魅族科技(中国)有限公司 | Terminal control method and device thereof |
CN106101365A (en) * | 2016-06-29 | 2016-11-09 | 北京小米移动软件有限公司 | Communication process adjusts the method and device of mike |
CN106412443A (en) * | 2016-11-22 | 2017-02-15 | 维沃移动通信有限公司 | Shooting method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106959875A (en) | 2017-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159640B (en) | Display interface rotating method and device and mobile terminal | |
US9661223B2 (en) | Method and device for photographing including camera shake | |
US10292004B2 (en) | Method, device and medium for acquiring location information | |
CN105245775B (en) | camera imaging method, mobile terminal and device | |
US20170064182A1 (en) | Method and device for acquiring image file | |
EP2991275A1 (en) | Making router management application compatible with router firmware | |
EP3163884A1 (en) | Image acquiring method and apparatus, computer program and recording medium | |
EP3136699A1 (en) | Method and device for connecting external equipment | |
CN106126025B (en) | Interactive method and device for copying and pasting | |
EP3716030A1 (en) | Interactive interface display method, apparatus and storage medium | |
CN104216525B (en) | Method and device for mode control of camera application | |
CN107885016B (en) | Holographic projection method and device | |
CN112331158B (en) | Terminal display adjusting method, device, equipment and storage medium | |
CN108111751B (en) | Shooting angle adjusting method and device | |
CN104065877A (en) | Picture pushing method, picture pushing device and terminal equipment | |
CN103973883B (en) | A kind of method and device controlling voice-input device | |
CN108650412B (en) | Display method, display device and computer readable storage medium | |
CN107967233B (en) | Electronic work display method and device | |
CN107832112B (en) | Wallpaper setting method and device | |
CN107277422B (en) | Video call method, device and system | |
CN114339019B (en) | Focusing method, focusing device and storage medium | |
CN106375744B (en) | Information projecting method and device | |
CN112954596B (en) | Data sharing method, device, equipment and storage medium | |
CN105100135A (en) | Network sharing setting method and device | |
CN106959875B (en) | Front camera opening method, device and 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 |