CN106933351B - Method and device for starting camera in mobile terminal and mobile terminal - Google Patents

Method and device for starting camera in mobile terminal and mobile terminal Download PDF

Info

Publication number
CN106933351B
CN106933351B CN201710076977.5A CN201710076977A CN106933351B CN 106933351 B CN106933351 B CN 106933351B CN 201710076977 A CN201710076977 A CN 201710076977A CN 106933351 B CN106933351 B CN 106933351B
Authority
CN
China
Prior art keywords
camera
mobile terminal
cavity
event
verification
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
Application number
CN201710076977.5A
Other languages
Chinese (zh)
Other versions
CN106933351A (en
Inventor
郭涛涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710076977.5A priority Critical patent/CN106933351B/en
Publication of CN106933351A publication Critical patent/CN106933351A/en
Application granted granted Critical
Publication of CN106933351B publication Critical patent/CN106933351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means

Abstract

The embodiment of the invention provides a method and a device for starting a camera in a mobile terminal and the mobile terminal, wherein the camera is embedded in a cavity of the mobile terminal, and the method comprises the following steps: performing fingerprint verification in the mobile terminal; and when the fingerprint verification is successful, popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and starting the camera application. On the one hand, the camera is embedded in mobile terminal's cavity, can reduce to occupy the area on mobile terminal surface, improves and account for the screen ratio, and on the other hand directly starts the camera through fingerprint verification, can avoid the user to start the camera through modes such as seeking and starting camera application, has improved the start-up speed of built-in camera.

Description

Method and device for starting camera in mobile terminal and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for starting a camera in a mobile terminal, an apparatus for starting a camera in a mobile terminal, and a mobile terminal.
Background
With the development of mobile communication technology, mobile terminals such as mobile phones are more and more popular, and great convenience is brought to life, study and work of people.
The mobile terminal is usually configured with a Camera (Camera) for a user to take pictures, pick up images, and the like.
However, at present, cameras of mobile terminals are fixedly embedded on the surface of the chassis, slightly protrude from the surface of the chassis, and especially, a front camera occupies a large area, which results in a low screen occupation ratio.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a method for starting a camera in a mobile terminal and a corresponding apparatus for starting a camera in a mobile terminal, which overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method of starting a camera in a mobile terminal, the camera being embedded in a cavity of the mobile terminal, the method comprising:
performing fingerprint verification in the mobile terminal;
and when the fingerprint verification is successful, popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and starting the camera application.
Optionally, the method further comprises:
when the camera application is closed, the camera is retracted into the cavity of the mobile terminal from the outside of the cavity of the mobile terminal.
Optionally, the popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and the step of starting the camera application includes:
generating, by a fingerprint verification service located in the middle tier, a verification event that the fingerprint verification is successful;
the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
starting a camera application registered with the pop-up event in the application layer;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
Optionally, the popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and the step of starting the camera application includes:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
receiving, by a camera application at an application layer, the verification event;
mapping, by the camera application, the verification event to a pop-up event;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
Optionally, the popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and the step of starting the camera application includes:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer;
calling a pre-packaged interface in the middle layer according to the verification event, driving a popup device positioned in a hardware layer, and popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal;
when the camera is popped up, generating an interrupt signal;
and starting the camera application positioned in the application layer according to the interrupt signal.
According to another aspect of the present invention, there is provided an apparatus for starting a camera in a mobile terminal, the camera being embedded in a cavity of the mobile terminal, the apparatus comprising:
the fingerprint verification module is suitable for performing fingerprint verification in the mobile terminal;
and the camera starting module is suitable for popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal and starting the camera application when the fingerprint verification is successful.
Optionally, the method further comprises:
and the camera closing module is suitable for retracting the camera from the outside of the cavity of the mobile terminal to the cavity of the mobile terminal when the camera is closed.
Optionally, the camera activation module is further adapted to:
generating, by a fingerprint verification service located in the middle tier, a verification event that the fingerprint verification is successful;
the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
starting a camera application registered with the pop-up event in the application layer;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
Optionally, the camera activation module is further adapted to:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
receiving, by a camera application at an application layer, the verification event;
mapping, by the camera application, the verification event to a pop-up event;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
Optionally, the camera activation module is further adapted to:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer;
calling a pre-packaged interface in the middle layer according to the verification event, driving a popup device positioned in a hardware layer, and popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal;
when the camera is popped up, generating an interrupt signal;
and starting the camera application positioned in the application layer according to the interrupt signal.
According to another aspect of the present invention, there is provided a mobile terminal, comprising a processor and a memory,
the memory is used for storing programs for supporting the execution of the method for starting the camera in the mobile terminal;
the processor is configured to execute programs stored in the memory.
The camera is embedded in the cavity of the mobile terminal, when the fingerprint verification in the mobile terminal is successful, the camera is popped out of the cavity of the mobile terminal from the cavity of the mobile terminal, and the camera application is started.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flow chart illustrating steps of a method for starting a camera in a mobile terminal according to an embodiment of the present invention;
FIG. 2 illustrates an exemplary diagram of a full-screen mobile terminal according to one embodiment of the invention;
3A-3D illustrate exemplary pop-up views of a camera head according to one embodiment of the invention;
fig. 4 is a block diagram illustrating a configuration of an apparatus for actuating a camera in a mobile terminal according to an embodiment of the present invention; and
fig. 5 is a block diagram illustrating a partial structure of a cellular phone related to a mobile terminal provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of a method for starting a camera in a mobile terminal according to an embodiment of the present invention may specifically include the following steps:
step 101, performing fingerprint verification in the mobile terminal.
It should be noted that the embodiments of the present invention may be applied to a mobile terminal, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as glasses, a watch, and the like), and the like.
The operating system of the mobile device may include Android (Android), IOS, Windows Phone, Windows, and the like, which is not limited in this embodiment of the present invention.
In specific implementation, the mobile terminal may be configured with a camera, a fingerprint sensor, and other sensors to perform operations such as shooting, recording, fingerprint unlocking, fingerprint payment, and the like.
In the embodiment of the present invention, as shown in fig. 2, in order to save area and enable the mobile terminal to become a device with a higher screen occupation, such as a full screen, a cavity of the mobile terminal may be provided with a groove, so that the camera may be embedded in the cavity of the mobile terminal.
In one example, as shown in fig. 3A and 3C, facing the front and back of the mobile terminal 300, the screen occupies a major area of the front, the physical keys are canceled, virtual keys can be used for control, and furthermore, the camera 301 (module) can be embedded in the cavity of the mobile terminal 301, not occupying area on the front and back, and thus the camera 301 cannot be seen on the front and back.
As shown in fig. 3B, facing the upper side of the mobile terminal 300, the mobile terminal 300 has a head where the camera 301 is seen to be embedded in the cavity of the mobile terminal 301, and exposed at the head so as to be pressed into and ejected from the cavity.
Note that, since the mobile terminal may be a single screen or two screens, for example, one of the screens is a main screen, and a screen configured with high resolution (1280 × 720, 1920 × 1080), such as a Thin Film Transistor (TFT) liquid crystal screen, is disposed on the front side of the mobile terminal. And the other is a sub-screen, generally configured with a low-resolution (e.g. 480x320, 640x480) screen, such as a TFT liquid crystal screen, an ink screen, and the like, arranged on the back of the mobile terminal, and may be used to assist in displaying various states of the mobile terminal, including endurance, contacts, unread messages, missed calls, display of a dial-up keypad, weather information, e-book reading, and the like.
Therefore, the mobile terminal may be embedded with a front-facing camera, a rear-facing camera, or both the front-facing camera and the rear-facing camera, which is not limited in the embodiments of the present invention.
Further, as shown in fig. 3C, the fingerprint sensor 302 may be mounted on the back of the mobile terminal 300, but of course, in the case where an ink screen is mounted on the back of the mobile terminal, the fingerprint sensor may be mounted on the side of the mobile terminal.
By applying the embodiment of the invention, the original fingerprint data of the user can be input in advance through the fingerprint sensor and used as a sample for later matching.
When the camera is called, target fingerprint data can be collected through the fingerprint sensor, and the previously input original sample data is extracted for matching.
The matching of the original fingerprint data and the target fingerprint data is identified by comparing the minutiae of different fingerprints, and generally comprises the processes of preprocessing, feature extraction, comparison and the like.
1. Pre-treating;
fingerprint region detection, image quality judgment, direction diagram and frequency estimation, image enhancement, fingerprint image binarization and refinement and the like can be generally included.
3. Extracting characteristics;
the fingerprint morphological characteristics comprise a center (upper and lower), triangular points (left and right) and the like, and the minutiae characteristic points of the fingerprint mainly comprise a starting point, an end point, a combination point and a bifurcation point of a ridge line.
4. Comparing;
the method can perform rough matching according to the fingerprint shape, further perform accurate matching by using the fingerprint shape and the detail characteristics, and give a similarity score of the original fingerprint data and the target fingerprint data.
According to different applications, the similarity scores of the fingerprints are sorted or a judgment result of whether the fingerprints are the same is given.
And 102, popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal when the fingerprint verification is successful, and starting the camera application.
Under the states of unlocking and screen lighting of the mobile terminal and the like, if the fingerprint verification is successful, the camera can be popped out from the cavity of the mobile terminal through a mechanical mode (such as a popping device combining an electronic lock and a popping device), the application of the camera is started, and the starting of the camera is realized.
As shown in fig. 3D, the camera 301 is popped out of the cavity of the mobile terminal 300, and can directly face to an external object, so that a user can use the camera to perform operations such as photographing and recording.
If the operations such as photographing and recording are finished, the camera application can be closed.
When the camera is closed, the camera is retracted into the cavity of the mobile terminal from the outside of the cavity of the mobile terminal, and the camera is closed.
In a particular implementation, the operations of ejecting and retracting the camera are generally coordinated through various levels of the operating system.
For example, in the Android system, running an application (e.g., a camera application) generally requires interaction between Java applications (application layer), Framework (application Framework layer, i.e., middle layer), Hardware (Hardware abstraction layer), and Linux Kernel (Linux Kernel layer).
In one embodiment of the present invention, step 102 may include the following sub-steps:
a sub-step S11, generating a verification event that the fingerprint verification succeeds by the fingerprint verification service in the middle layer;
substep S12, the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
a substep S13 of starting a camera application registered with the pop-up event in the application layer;
and a substep S14, driving an ejection device located on a hardware layer by the camera application according to the ejection event, and ejecting the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
In the mobile terminal, the fingerprint authentication service of the fingerprint sensor generates an authentication event, i.e., an event indicating that the fingerprint authentication is successful, after the fingerprint authentication is successful.
In order to improve the security of the mobile terminal, corresponding events may be defined in the fingerprint sensor, and the authentication events may be mapped to these events and provided to the relevant application calls.
In the embodiment of the invention, the events defined by the fingerprint sensor comprise pop-up events, namely, the events representing the pop-up of the camera, and the verification events are mapped into the pop-up events and then reported to the application layer.
It should be noted that, besides the pop-up event, the fingerprint sensor may also define other events, and may map the verification event to these events, for example, an unlocking event, a payment event, and the like, and these events may also be reported to the application layer, but due to factors such as environment mismatch, the relevant applications (such as the screen locking application and the payment application) may not respond to the relevant events such as the unlocking event and the payment event.
The camera application corresponding to the camera can register the pop-up event in advance, and if the fingerprint verification service reports the pop-up event to the application layer, the camera application can monitor the pop-up event.
In the embodiment of the invention, the camera is connected with the ejection device, and the camera application can drive the ejection device positioned on the hardware layer to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
In another embodiment of the present invention, step 102 may include the following sub-steps:
a substep S21, generating a verification event of successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
a substep S22, receiving the verification event by the camera application at the application layer;
substep S23, mapping the verification event to a pop-up event by the camera application;
and a substep S24, driving an ejection device located on a hardware layer by the camera application according to the ejection event, and ejecting the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
In the mobile terminal, after the fingerprint verification service of the fingerprint sensor successfully verifies the fingerprint, a verification event is generated, namely the event representing the successful fingerprint verification is reported to an application layer.
The camera application corresponding to the camera can register a verification event in advance, and if the fingerprint verification service reports the verification event to the application layer.
In the embodiment of the invention, the camera application can reside in the memory and can monitor the verification event in real time.
It should be noted that, besides the camera application, other applications may also register and listen to the verification event, for example, an unlock application, a payment application, etc., but these applications may not be started, not listen to the verification event, or related applications (e.g., a lock screen application, a payment application) may not respond to the verification event due to factors such as environmental mismatch.
In the camera, a pop-up event may be predefined to pop up the camera, and if the camera application monitors the verification event, the verification event may be mapped to the pop-up event.
In the embodiment of the invention, the camera is connected with the ejection device, and the camera application can drive the ejection device positioned on the hardware layer to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
In one embodiment of the present invention, step 102 may include the following sub-steps:
a substep S31, generating a verification event that the fingerprint verification is successful in the fingerprint verification service in the middle layer;
in the substep S32, calling a pre-packaged interface in the middle layer according to the verification event, driving a pop-up device located in the hardware layer, and popping up the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal;
a substep S33 of generating an interrupt signal when the camera is ejected;
and a substep S34 of starting the camera application at the application layer according to the interrupt signal.
In the mobile terminal, the fingerprint authentication service of the fingerprint sensor generates an authentication event, i.e., an event indicating that the fingerprint authentication is successful, after the fingerprint authentication is successful.
In addition, interfaces can be packaged in advance for the convenience of popping up the camera, and the interfaces can be a Hardware abstraction layer (Hardware abstraction layer) interface function library of Hardware (such as the camera) provided by the system platform and used for upper layer calling.
Therefore, the function library can directly drive the ejection device positioned on the hardware layer to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
When the camera is popped up, an interrupt signal can be generated, so that the processor can be interrupted to start the camera application.
The camera is embedded in the cavity of the mobile terminal, when the fingerprint verification in the mobile terminal is successful, the camera is popped out of the cavity of the mobile terminal from the cavity of the mobile terminal, and the camera application is started.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 4, a block diagram of a device for starting a camera in a mobile terminal according to an embodiment of the present invention is shown, where the camera is embedded in a cavity of the mobile terminal, and the device may specifically include the following modules:
a fingerprint verification module 401 adapted to perform fingerprint verification in the mobile terminal;
the camera starting module 402 is adapted to pop the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal and start the camera application when the fingerprint verification is successful.
In one embodiment of the present invention, further comprising:
and the camera closing module is suitable for retracting the camera from the outside of the cavity of the mobile terminal to the cavity of the mobile terminal when the camera is closed.
In an embodiment of the present invention, the camera activation module 402 is further adapted to:
generating, by a fingerprint verification service located in the middle tier, a verification event that the fingerprint verification is successful;
the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
starting a camera application registered with the pop-up event in the application layer;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
In another embodiment of the present invention, the camera activation module 402 is further adapted to:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
receiving, by a camera application at an application layer, the verification event;
mapping, by the camera application, the verification event to a pop-up event;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
In another embodiment of the present invention, the camera activation module 402 is further adapted to:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer;
calling a pre-packaged interface in the middle layer according to the verification event, driving a popup device positioned in a hardware layer, and popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal;
when the camera is popped up, generating an interrupt signal;
and starting the camera application positioned in the application layer according to the interrupt signal.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
As shown in fig. 5, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 5, the handset includes: a Radio Frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless fidelity (WiFi) module 570, a processor 580, a power supply 590, and a camera 591. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device 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, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 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 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a fingerprint sensor, a light sensor, a motion sensor, and other sensors. Specifically, the fingerprint sensor may collect fingerprint data, and the light sensor may include an ambient light sensor and a proximity sensor, where the ambient light sensor may adjust brightness of the display panel 541 according to brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or backlight when the mobile phone moves to an ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a bluetooth module, etc., which will not be described herein.
In the embodiment of the present invention, the camera is embedded in the cavity of the mobile terminal, and the processor 580 included in the terminal further has the following functions:
performing fingerprint verification in the mobile terminal;
and when the fingerprint verification is successful, popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and starting the camera application.
Optionally, the processor 580 included in the terminal further has the following functions:
when the camera application is closed, the camera is retracted into the cavity of the mobile terminal from the outside of the cavity of the mobile terminal.
Optionally, the processor 580 included in the terminal further has the following functions:
generating, by a fingerprint verification service located in the middle tier, a verification event that the fingerprint verification is successful;
the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
starting a camera application registered with the pop-up event in the application layer;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
Optionally, the processor 580 included in the terminal further has the following functions:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
receiving, by a camera application at an application layer, the verification event;
mapping, by the camera application, the verification event to a pop-up event;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
Optionally, the processor 580 included in the terminal further has the following functions:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer;
calling a pre-packaged interface in the middle layer according to the verification event, driving a popup device positioned in a hardware layer, and popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal;
when the camera is popped up, generating an interrupt signal;
and starting the camera application positioned in the application layer according to the interrupt signal.

Claims (9)

1. A method for starting a camera in a mobile terminal, wherein the camera is embedded in a cavity of the mobile terminal, and the method comprises the following steps:
performing fingerprint verification in the mobile terminal;
when the fingerprint verification is successful, popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal, and starting the camera application;
the step of popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal and starting the camera application comprises the following steps:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer;
calling a pre-packaged interface in the middle layer according to the verification event, driving a popup device positioned in a hardware layer, and popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal;
when the camera is popped up, generating an interrupt signal;
and starting the camera application positioned in the application layer according to the interrupt signal.
2. The method of claim 1, further comprising:
when the camera application is closed, the camera is retracted into the cavity of the mobile terminal from the outside of the cavity of the mobile terminal.
3. The method of claim 1 or 2, wherein the ejecting the camera from the cavity of the mobile terminal to outside the cavity of the mobile terminal and the launching the camera application comprises:
generating, by a fingerprint verification service located in the middle tier, a verification event that the fingerprint verification is successful;
the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
starting a camera application registered with the pop-up event in the application layer;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
4. The method of claim 1 or 2, wherein the ejecting the camera from the cavity of the mobile terminal to outside the cavity of the mobile terminal and the launching the camera application comprises:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
receiving, by a camera application at an application layer, the verification event;
mapping, by the camera application, the verification event to a pop-up event;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
5. An apparatus for starting a camera in a mobile terminal, the camera being embedded in a cavity of the mobile terminal, the apparatus comprising:
the fingerprint verification module is suitable for performing fingerprint verification in the mobile terminal;
the camera starting module is suitable for popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal and starting the camera application when the fingerprint verification is successful;
the camera startup module is further adapted to:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer;
calling a pre-packaged interface in the middle layer according to the verification event, driving a popup device positioned in a hardware layer, and popping the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal;
when the camera is popped up, generating an interrupt signal;
and starting the camera application positioned in the application layer according to the interrupt signal.
6. The apparatus of claim 5, further comprising:
and the camera closing module is suitable for retracting the camera from the outside of the cavity of the mobile terminal to the cavity of the mobile terminal when the camera is closed.
7. The apparatus of claim 5 or 6, wherein the camera activation module is further adapted to:
generating, by a fingerprint verification service located in the middle tier, a verification event that the fingerprint verification is successful;
the fingerprint verification service maps the verification event into a pop-up event and reports the pop-up event to an application layer;
starting a camera application registered with the pop-up event in the application layer;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
8. The apparatus of claim 5 or 6, wherein the camera activation module is further adapted to:
generating a verification event with successful fingerprint verification in the fingerprint verification service in the middle layer and reporting the verification event to the application layer;
receiving, by a camera application at an application layer, the verification event;
mapping, by the camera application, the verification event to a pop-up event;
and the camera application drives a popup device positioned on a hardware layer according to the popup event, and pops the camera out of the cavity of the mobile terminal from the cavity of the mobile terminal.
9. A mobile terminal comprising a processor and a memory,
the memory is used for storing a program supporting execution of the method of starting a camera in a mobile terminal as claimed in claims 1 to 4;
the processor is configured to execute programs stored in the memory.
CN201710076977.5A 2017-02-13 2017-02-13 Method and device for starting camera in mobile terminal and mobile terminal Active CN106933351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076977.5A CN106933351B (en) 2017-02-13 2017-02-13 Method and device for starting camera in mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076977.5A CN106933351B (en) 2017-02-13 2017-02-13 Method and device for starting camera in mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN106933351A CN106933351A (en) 2017-07-07
CN106933351B true CN106933351B (en) 2020-12-22

Family

ID=59424298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076977.5A Active CN106933351B (en) 2017-02-13 2017-02-13 Method and device for starting camera in mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN106933351B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107358266B (en) * 2017-07-17 2020-11-10 浙江信电技术股份有限公司 Mobile terminal with recognition function
CN107911600B (en) * 2017-11-08 2021-03-30 深圳天珑无线科技有限公司 Photographing method based on fingerprint touch, terminal and device with storage function
CN108121523A (en) * 2017-12-19 2018-06-05 广东工业大学 The control method and system of a kind of mobile terminal
US11363183B2 (en) * 2018-11-29 2022-06-14 Hewlett-Packard Development Company, L.P. Linkage mechanisms for cameras
CN109669515A (en) * 2018-12-17 2019-04-23 武汉华星光电半导体显示技术有限公司 A kind of two-sided panel type display and the method for controlling its switching
CN112104807B (en) * 2019-06-17 2023-07-04 北京小米移动软件有限公司 Control method, system and device for front camera
CN110519511A (en) * 2019-08-12 2019-11-29 Oppo广东移动通信有限公司 Imaging apparatus control method, terminal, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104105218A (en) * 2014-07-25 2014-10-15 Tcl通讯(宁波)有限公司 Method and system for achieving Android system mobile phone hotspot WPS connection
CN104639530A (en) * 2014-12-11 2015-05-20 烟台智慧云谷云计算有限公司 Nebula network communication protocol, method and protocol package
CN106123943A (en) * 2016-07-15 2016-11-16 苏州西斯派克检测科技有限公司 A kind of flexible on-line detecting system based on EPA

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208149B (en) * 2015-08-31 2019-02-22 小米科技有限责任公司 Mobile terminal shows structure and mobile terminal
CN105187700B (en) * 2015-09-08 2018-04-06 小米科技有限责任公司 Camera automatic pop-up device and terminal
CN105117137A (en) * 2015-09-16 2015-12-02 广东欧珀移动通信有限公司 Photographing method and device used in terminal standby state and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104105218A (en) * 2014-07-25 2014-10-15 Tcl通讯(宁波)有限公司 Method and system for achieving Android system mobile phone hotspot WPS connection
CN104639530A (en) * 2014-12-11 2015-05-20 烟台智慧云谷云计算有限公司 Nebula network communication protocol, method and protocol package
CN106123943A (en) * 2016-07-15 2016-11-16 苏州西斯派克检测科技有限公司 A kind of flexible on-line detecting system based on EPA

Also Published As

Publication number Publication date
CN106933351A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
CN106933351B (en) Method and device for starting camera in mobile terminal and mobile terminal
CN112136100A (en) Shooting method and electronic equipment
CN107193664B (en) Message display method and device and mobile terminal
CN106921791B (en) Multimedia file storage and viewing method and device and mobile terminal
CN107835286B (en) Method for preventing mistaken unlocking and mobile terminal
CN106445596B (en) Method and device for managing setting items
CN111050370A (en) Network switching method and device, storage medium and electronic equipment
CN106911848B (en) Method for outputting prompt message and terminal equipment
CN109085968B (en) Screen capturing method and terminal equipment
CN106022060B (en) A kind of unlocked by fingerprint control method and equipment
CN107180180B (en) Unlocking control method and related product
US20200272274A1 (en) Terminal device interaction method, storage medium and terminal device
CN109753202B (en) Screen capturing method and mobile terminal
US20200252502A1 (en) Method for responding to incoming call by means of fingerprint recognition, storage medium, and mobile terminal
EP3846016A1 (en) Image display method and mobile terminal
CN104217172A (en) Privacy content checking method and device
CN107193475B (en) Unlocking control method and related product
CN108388459B (en) Message display processing method and mobile terminal
CN109257489B (en) Display method and mobile terminal
CN109126127B (en) Game control method, dual-screen mobile terminal and computer-readable storage medium
CN107657160B (en) Face information acquisition method and related product
CN108196663B (en) Face recognition method and mobile terminal
JP2021524203A (en) Object recognition method and mobile terminal
CN106934003B (en) File processing method and mobile terminal
CN108874281A (en) A kind of application program launching method and terminal device

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