CN106933351B - A method, device and mobile terminal for starting a camera in a mobile terminal - Google Patents
A method, device and mobile terminal for starting a camera in a mobile terminal Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/66—Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
- H04M1/667—Preventing unauthorised calls from a telephone set
- H04M1/67—Preventing unauthorised calls from a telephone set by electronic means
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例提供了一种在移动终端中启动摄像头的方法、装置和移动终端,摄像头内嵌在移动终端的腔体中,所述方法包括:在所述移动终端中进行指纹验证;当指纹验证成功时,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动摄像头应用。一方面,摄像头内嵌在移动终端的腔体中,可以减少对移动终端表面的面积占用,提高占屏比,另一方面,通过指纹验证直接启动摄像头,可以避免用户通过查找并启动摄像头应用等方式启动摄像头,提高了内置摄像头的启动速度。
Embodiments of the present invention provide a method, device and mobile terminal for activating a camera in a mobile terminal, where the camera is embedded in a cavity of the mobile terminal, and the method includes: performing fingerprint verification in the mobile terminal; When the verification is successful, the camera is ejected from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal, and the camera application is started. On the one hand, the camera is embedded in the cavity of the mobile terminal, which can reduce the area occupied on the surface of the mobile terminal and increase the screen ratio. On the other hand, directly starting the camera through fingerprint verification can prevent users from searching and starting the camera application, etc. way to start the camera, which improves the startup speed of the built-in camera.
Description
技术领域technical field
本发明涉及通信技术领域,特别是涉及一种在移动终端中启动摄像头的方法、一种在移动终端中启动摄像头的装置和一种移动终端。The present invention relates to the field of communication technologies, and in particular, to a method for activating a camera in a mobile terminal, a device for activating a camera in a mobile terminal, and a mobile terminal.
背景技术Background technique
随着移动通信技术的发展,诸如手机等移动终端越来越普及,给人们在的生活、学习、工作带来了极大的便利。With the development of mobile communication technology, mobile terminals such as mobile phones are becoming more and more popular, which brings great convenience to people's life, study and work.
移动终端通常配置有摄像头(Camera),以供用户进行拍照、摄像等操作。The mobile terminal is usually configured with a camera (Camera) for the user to perform operations such as photographing and video recording.
但是,目前移动终端的摄像头都是固定镶嵌在机壳表面,微突出在机壳表面,尤其是前置摄像头,占用较多的面积,导致占屏比较低。However, at present, the cameras of mobile terminals are fixedly embedded on the surface of the casing, and slightly protrude on the surface of the casing, especially the front-facing camera, which occupies a large area, resulting in a relatively low screen occupation.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种在移动终端中启动摄像头的方法和相应的一种在移动终端中启动摄像头的装置、一种移动终端。In view of the above problems, the present invention is proposed to provide a method for activating a camera in a mobile terminal and a corresponding device for activating a camera in a mobile terminal, a mobile terminal.
依据本发明的一个方面,提供了一种在移动终端中启动摄像头的方法,摄像头内嵌在移动终端的腔体中,所述方法包括:According to one aspect of the present invention, a method for activating a camera in a mobile terminal is provided, where the camera is embedded in a cavity of the mobile terminal, and the method includes:
在所述移动终端中进行指纹验证;performing fingerprint verification in the mobile terminal;
当指纹验证成功时,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动摄像头应用。When the fingerprint verification is successful, the camera is ejected from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal, and the camera application is started.
可选地,还包括:Optionally, also include:
当关闭所述摄像头应用时,将所述摄像头从所述移动终端的腔体外缩回至所述移动终端的腔体中。When the camera application is closed, the camera is retracted from the cavity of the mobile terminal into the cavity of the mobile terminal.
可选地,所述将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动所述摄像头应用的步骤包括:Optionally, the step of ejecting the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal and starting the camera application includes:
由位于中间层的指纹验证服务生成指纹验证成功的验证事件;A verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
由所述指纹验证服务将所述验证事件映射为弹出事件并上报至应用层;The verification event is mapped to a pop-up event by the fingerprint verification service and reported to the application layer;
在所述应用层中启动已注册所述弹出事件的摄像头应用;start the camera application that has registered the pop-up event in the application layer;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
可选地,所述将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动所述摄像头应用的步骤包括:Optionally, the step of ejecting the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal and starting the camera application includes:
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件并上报至应用层;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer and reported to the application layer;
由位于应用层的摄像头应用接收所述验证事件;The verification event is received by the camera application located at the application layer;
由所述摄像头应用将所述验证事件映射为弹出事件;mapping the verification event to a pop-up event by the camera application;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
可选地,所述将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动所述摄像头应用的步骤包括:Optionally, the step of ejecting the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal and starting the camera application includes:
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
在中间层中按照所述验证事件调用预先封装的接口,驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外;In the middle layer, the pre-packaged interface is called according to the verification event, and the pop-up device located at the hardware layer is driven to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal;
当所述摄像头弹出时,生成中断信号;When the camera pops up, an interrupt signal is generated;
依据所述中断信号启动位于应用层的摄像头应用。Start the camera application located at the application layer according to the interrupt signal.
根据本发明的另一方面,提供了一种在移动终端中启动摄像头的装置,摄像头内嵌在移动终端的腔体中,所述装置包括:According to another aspect of the present invention, a device for enabling a camera in a mobile terminal is provided, where the camera is embedded in a cavity of the mobile terminal, and the device includes:
指纹验证模块,适于在所述移动终端中进行指纹验证;a fingerprint verification module, adapted to perform fingerprint verification in the mobile terminal;
摄像头启动模块,适于当指纹验证成功时,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动所述摄像头应用。The camera startup module is adapted to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal and start the camera application when the fingerprint verification is successful.
可选地,还包括:Optionally, also include:
摄像头关闭模块,适于在关闭所述摄像头应用时,将所述摄像头从所述移动终端的腔体外缩回至所述移动终端的腔体中。The camera closing module is adapted to retract the camera from the cavity of the mobile terminal into the cavity of the mobile terminal when the camera application is closed.
可选地,所述摄像头启动模块还适于:Optionally, the camera startup module is further adapted to:
由位于中间层的指纹验证服务生成指纹验证成功的验证事件;A verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
由所述指纹验证服务将所述验证事件映射为弹出事件并上报至应用层;The verification event is mapped to a pop-up event by the fingerprint verification service and reported to the application layer;
在所述应用层中启动已注册所述弹出事件的摄像头应用;start the camera application that has registered the pop-up event in the application layer;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
可选地,所述摄像头启动模块还适于:Optionally, the camera startup module is further adapted to:
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件并上报至应用层;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer and reported to the application layer;
由位于应用层的摄像头应用接收所述验证事件;The verification event is received by the camera application located at the application layer;
由所述摄像头应用将所述验证事件映射为弹出事件;mapping the verification event to a pop-up event by the camera application;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
可选地,所述摄像头启动模块还适于:Optionally, the camera startup module is further adapted to:
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
在中间层中按照所述验证事件调用预先封装的接口,驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外;In the middle layer, the pre-packaged interface is called according to the verification event, and the pop-up device located at the hardware layer is driven to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal;
当所述摄像头弹出时,生成中断信号;When the camera pops up, an interrupt signal is generated;
依据所述中断信号启动位于应用层的摄像头应用。Start the camera application located at the application layer according to the interrupt signal.
根据本发明的另一方面,提供了一种移动终端,包括处理器和存储器,According to another aspect of the present invention, there is provided a mobile terminal including a processor and a memory,
所述存储器用于存储支持执行所述的在移动终端中启动摄像头的方法的程序;The memory is used to store a program 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 of the embodiment of the present invention is embedded in the cavity of the mobile terminal. When the fingerprint verification in the mobile terminal is successful, the camera is ejected from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal, and the camera application is started. On the one hand, the camera is embedded in the cavity of the mobile terminal, which can reduce the area occupied on the surface of the mobile terminal and increase the screen ratio. Start the camera, improved the startup speed of the built-in camera.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.
附图说明Description of 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 for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:
图1示出了根据本发明一个实施例的一种在移动终端中启动摄像头的方法的步骤流程图;FIG. 1 shows a flowchart of steps of a method for starting a camera in a mobile terminal according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的一种全面屏的移动终端的示例图;FIG. 2 shows an example diagram of a full-screen mobile terminal according to an embodiment of the present invention;
图3A-图3D示出了根据本发明一个实施例的一种摄像头的弹出示例图;3A-3D show an example pop-up diagram of a camera according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种在移动终端中启动摄像头的装置的结构框图;以及FIG. 4 shows a structural block diagram of an apparatus for enabling a camera in a mobile terminal according to an embodiment of the present invention; and
图5示出了与本发明实施例提供的移动终端相关的手机的部分结构的框图。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。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 by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.
参照图1,示出了根据本发明一个实施例的一种在移动终端中启动摄像头的方法的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , a flowchart of steps of a method for activating a camera in a mobile terminal according to an embodiment of the present invention is shown, which may specifically include the following steps:
步骤101,在所述移动终端中进行指纹验证。Step 101: Perform fingerprint verification in the mobile terminal.
需要说明的是,本发明实施例可以应用在移动终端中,例如,手机、平板电脑、个人数字助理、穿戴设备(如眼镜、手表等)等等。It should be noted that the embodiments of the present invention may be applied to mobile terminals, for example, mobile phones, tablet computers, personal digital assistants, wearable devices (such as glasses, watches, etc.), and the like.
该移动设备的操作系统可以包括Android(安卓)、IOS、Windows Phone、Windows等等,本发明实施例对此不加以限制。The operating system of the mobile device may include Android (Android), IOS, Windows Phone, Windows, etc., which is not limited in this embodiment of the present invention.
在具体实现中,该移动终端可以配置摄像头、指纹传感器等传感器,以进行拍摄、录像、指纹解锁、指纹支付等操作。In a specific implementation, the mobile terminal may be configured with sensors such as a camera and a fingerprint sensor to perform operations such as shooting, video recording, fingerprint unlocking, and fingerprint payment.
在本发明实施例中,如图2所示,为了节省面积,使得移动终端成为全面屏等占屏比较高的设备,移动终端的腔体内可以设置一个凹槽,使得摄像头可以内嵌在移动终端的腔体中。In the embodiment of the present invention, as shown in FIG. 2 , in order to save the area and make the mobile terminal a device with a high screen occupation, such as a full screen, a groove can be set in the cavity of the mobile terminal, so that the camera can be embedded in the mobile terminal in the cavity.
在一个示例中,如图3A和图3C所示,面对移动终端300的正面和背面,屏幕占据正面主要的面积,取消实体按键,可以采用虚拟按键进行控制,此外,摄像头301(模组)可以内嵌在移动终端301的腔体中,未在正面、背面占据面积,因而在正面、背面未能看见摄像头301。In an example, as shown in FIG. 3A and FIG. 3C , facing the front and back of the
如图3B所示,面对移动终端300的上侧面,移动终端300具有一个开头,可以观察到摄像头301内嵌在移动终端301的腔体中,在该开头露出,以便压入腔体、从腔体弹出。As shown in FIG. 3B , facing the upper side of the
需要说明的是,由于移动终端可能是单个屏幕,也可以是两个屏幕,例如,其中一个为主屏幕,通常配置高分辨率(1280*720、1920x1080)的屏幕,如TFT(Thin FilmTransistor,薄膜晶体管)液晶屏等,设置在移动终端的正面。另外一个为副屏幕,通常配置低分辨率(如480x320,640x480)的屏幕,如TFT液晶屏、墨水屏等等,设置在移动终端的背面,可以用于辅助显示移动终端的各种状态,包括续航时间、联系人、未读短信、未接来电、显示拨号键盘、天气信息、电子书阅读等等。It should be noted that, because the mobile terminal may be a single screen or two screens, for example, one of them is the main screen, and a high-resolution (1280*720, 1920x1080) screen is usually configured, such as TFT (Thin FilmTransistor, thin film) Transistor) LCD screen, etc., arranged on the front of the mobile terminal. The other is a secondary screen, usually a low-resolution (such as 480x320, 640x480) screen, such as a TFT LCD screen, an ink screen, etc., is set on the back of the mobile terminal and can be used to assist in displaying various states of the mobile terminal, including Battery life, contacts, unread text messages, missed calls, display dial pad, weather information, e-book reading, and more.
因此,移动终端可以内嵌前置摄像头,也可以内嵌后置摄像头,也可以同时内嵌前置摄像头和后置摄像头,本发明实施例对此不加以限制。Therefore, the mobile terminal may embed a front camera, a rear camera, or a front camera and a rear camera at the same time, which is not limited in this embodiment of the present invention.
此外,如图3C所示,指纹传感器302可以安装在移动终端300的背面,当然,在移动终端的背面安装墨水屏等情况下,指纹传感器也可以安装在移动终端的侧面等位置。In addition, as shown in FIG. 3C , the
应用本发明实施例,可以预先通过指纹传感器中录入用户的原始指纹数据,作为在后匹配的样本。By applying the embodiment of the present invention, the user's original fingerprint data can be recorded in the fingerprint sensor in advance as a sample to be matched later.
在调用摄像头时,可以通过指纹传感器采集目标指纹数据,并提取在先录入的原始样本数据进行匹配。When calling the camera, the target fingerprint data can be collected by the fingerprint sensor, and the previously entered original sample data can be extracted for matching.
原始指纹数据与目标指纹数据的匹配通过比较不同指纹的细节特征点来进行鉴别,通常包括预处理、特征提取和比对等流程。The matching between the original fingerprint data and the target fingerprint data is identified by comparing the minutiae feature points of different fingerprints, which usually includes processes such as preprocessing, feature extraction, and comparison.
1、预处理;1. Preprocessing;
通常可以包括指纹区域检测、图像质量判断、方向图和频率估计、图像增强、指纹图像二值化和细化等。Usually, it can include fingerprint area detection, image quality judgment, orientation map and frequency estimation, image enhancement, fingerprint image binarization and refinement, etc.
3、特征提取;3. Feature extraction;
指纹形态特征包括中心(上、下)和三角点(左、右)等,指纹的细节特征点主要包括纹线的起点、终点、结合点和分叉点。The morphological features of fingerprints include center (up, down) and triangular points (left, right), etc. The detailed feature points of fingerprints mainly include the starting point, end point, joint point and bifurcation point of the ridge.
4、比对;4. Comparison;
可以根据指纹的纹形进行粗匹配,进而利用指纹形态和细节特征进行精确匹配,给出原始指纹数据与目标指纹数据的相似性得分。The rough matching can be carried out according to the pattern of the fingerprint, and then the fingerprint shape and detail features can be used for precise matching, and the similarity score between the original fingerprint data and the target fingerprint data can be obtained.
根据应用的不同,对指纹的相似性得分进行排序或给出是否为同一指纹的判决结果。Depending on the application, sort the similarity scores of the fingerprints or give a judgment result of whether they are the same fingerprint.
步骤102,当指纹验证成功时,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动所述摄像头应用。
在移动终端解锁、亮屏等状态下,如果指纹验证成功,则可以通过机械方式(如电子锁和弹压装置相结合的弹出装置)将摄像头从移动终端的腔体中弹出,并启动摄像头应用,实现摄像头的启动。When the mobile terminal is unlocked and the screen is bright, if the fingerprint verification is successful, the camera can be ejected from the cavity of the mobile terminal by mechanical means (such as a pop-up device combined with an electronic lock and an elastic pressure device), and the camera application can be started. Realize the startup of the camera.
如图3D所示,摄像头301弹出移动终端300的腔体中,可以直接面对外部的事物,用户可以使用该摄像头正常进行拍照、录像等操作。As shown in FIG. 3D , the
若拍照、录像等操作结束,则可以关闭摄像头应用。After taking pictures, videos, etc., you can close the camera application.
当关闭摄像头应用时,将摄像头从移动终端的腔体外缩回至移动终端的腔体中,实现摄像头的关闭。When the camera application is closed, the camera is retracted from the cavity of the mobile terminal into the cavity of the mobile terminal, so as to close the camera.
在具体实现中,弹出、缩回摄像头的操作,一般通过操作系统的各个层级进行配合。In a specific implementation, the operations of popping up and retracting the camera are generally coordinated through various levels of the operating system.
例如,在Android系统中,运行一个应用(如摄像头应用),一般需要Javaapplications(应用层)、Framework(应用框架层,即中间层)、Hardware(硬件抽象层)、Linux Kernel(Linux内核层)之间的交互。For example, in the Android system, running an application (such as a camera application) generally requires Java applications (application layer), Framework (application framework layer, that is, the middle layer), Hardware (hardware abstraction layer), and Linux Kernel (Linux kernel layer). interaction between.
在本发明的一个实施例中,步骤102可以包括如下子步骤:In an embodiment of the present invention, step 102 may include the following sub-steps:
子步骤S11,由位于中间层的指纹验证服务生成指纹验证成功的验证事件;Sub-step S11, a verification event that the fingerprint verification is successful is generated by the fingerprint verification service located in the middle layer;
子步骤S12,由所述指纹验证服务将所述验证事件映射为弹出事件并上报至应用层;Sub-step S12, the verification event is mapped to a pop-up event by the fingerprint verification service and reported to the application layer;
子步骤S13,在所述应用层中启动已注册所述弹出事件的摄像头应用;Sub-step S13, start the camera application that has registered the pop-up event in the application layer;
子步骤S14,由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。Sub-step S14, the camera application drives a pop-up device located at the hardware layer according to the pop-up event, to pop 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 verification service of the fingerprint sensor generates a verification event after the fingerprint verification is successful, that is, an event indicating that the fingerprint verification is successful.
为了提高移动终端的安全性,可以在指纹传感器中定义相应的事件,将该验证事件映射为这些事件,提供给相关的应用调用。In order to improve the security of the mobile terminal, corresponding events can be defined in the fingerprint sensor, and the verification events can be mapped to these events and provided to the relevant application calls.
在本发明实施例中,指纹传感器定义的事件包括弹出事件,即表示弹出摄像头的事件,将验证事件映射为弹出事件之后,上报至应用层。In the embodiment of the present invention, the event defined by the fingerprint sensor includes a pop-up event, that is, an event representing the pop-up of the camera. After the verification event is mapped to the pop-up event, it is reported to the application layer.
需要说明的是,除了弹出事件之外,指纹传感器还可以定义其他事件,可以将验证事件映射为这些事件,例如,解锁事件、支付事件等等,这些事件同样可以上报至应用层,但是,由于环境不匹配等因素,相关的应用(如锁屏应用、支付应用)并不会对解锁事件、支付事件等相关的事件进行响应。It should be noted that in addition to the pop-up event, the fingerprint sensor can also define other events, and the verification events can be mapped to these events, such as unlocking events, payment events, etc. These events can also be reported to the application layer, however, due to Due to factors such as environmental mismatch, related applications (such as lock screen applications, payment applications) will not respond to unlock events, payment events and other related events.
摄像头对应的摄像头应用可以预先注册弹出事件,若指纹验证服务上报弹出事件至应用层,则摄像头应用可以监听到该弹出事件。The camera application corresponding to the camera can pre-register the pop-up event. If the fingerprint verification service reports the pop-up event to the application layer, the camera application can monitor the pop-up event.
在本发明实施例中,摄像头与弹出装置相连,摄像头应用可以驱动位于硬件层的弹出装置,将摄像头从移动终端的腔体中弹出至移动终端的腔体外。In this embodiment of the present invention, the camera is connected to the pop-up device, and the camera application can drive the pop-up device located at the hardware layer to pop the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
在本发明的另一个实施例中,步骤102可以包括如下子步骤:In another embodiment of the present invention, step 102 may include the following sub-steps:
子步骤S21,由位于中间层的指纹验证服务中生成指纹验证成功的验证事件并上报至应用层;Sub-step S21, the verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer and reported to the application layer;
子步骤S22,由位于应用层的摄像头应用接收所述验证事件;Sub-step S22, the verification event is received by the camera application located at the application layer;
子步骤S23,由所述摄像头应用将所述验证事件映射为弹出事件;Sub-step S23, the verification event is mapped to a pop-up event by the camera application;
子步骤S24,由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。Sub-step S24, the camera application drives an eject device located at the hardware layer according to the eject event, and ejects 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 verification service of the fingerprint sensor generates a verification event after the fingerprint verification is successful, that is, an event indicating that the fingerprint verification is successful, and reports it to the application layer.
摄像头对应的摄像头应用可以预先注册验证事件,若指纹验证服务上报验证事件至应用层。The camera application corresponding to the camera can pre-register the verification event, if the fingerprint verification service reports the verification event to the application layer.
在本发明实施例中,摄像头应用可以常驻内存,实时监听到该验证事件。In this embodiment of the present invention, the camera application may reside in the memory and monitor the verification event in real time.
需要说明的是,除了摄像头应用之外,其他应用也可以注册监听该验证事件,例如,解锁应用、支付应用等,但是,这些应用可能未启动、未监听到该验证事件,或者,由于环境不匹配等因素,相关的应用(如锁屏应用、支付应用)并不会对验证事件进行响应。It should be noted that, in addition to the camera application, other applications can also register to listen to the verification event, such as unlocking applications, payment applications, etc. However, these applications may not be started, and may not have listened to the verification event, or, due to different environments Matching and other factors, related applications (such as lock screen applications, payment applications) will not respond to verification events.
在摄像头中,可以预先定义弹出事件、以弹出摄像头,若摄像头应用在监听到验证事件,则可以将该验证事件映射为弹出事件。In the camera, a pop-up event can be pre-defined to pop up the camera. If the camera application is listening to a verification event, the verification event can be mapped to a pop-up event.
在本发明实施例中,摄像头与弹出装置相连,摄像头应用可以驱动位于硬件层的弹出装置,将摄像头从移动终端的腔体中弹出至移动终端的腔体外。In this embodiment of the present invention, the camera is connected to the pop-up device, and the camera application can drive the pop-up device located at the hardware layer to pop the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
在本发明的一个实施例中,步骤102可以包括如下子步骤:In an embodiment of the present invention, step 102 may include the following sub-steps:
子步骤S31,由位于中间层的指纹验证服务中生成指纹验证成功的验证事件;Sub-step S31, the verification event that the fingerprint verification is successful is generated by the fingerprint verification service located in the middle layer;
子步骤S32,在中间层中按照所述验证事件调用预先封装的接口,驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外;Sub-step S32, calling a pre-packaged interface in the middle layer according to the verification event, driving a pop-up device located at the hardware layer, and popping the camera out of the cavity of the mobile terminal to the outside of the cavity of the mobile terminal;
子步骤S33,当所述摄像头弹出时,生成中断信号;Sub-step S33, when the camera pops up, an interrupt signal is generated;
子步骤S34,依据所述中断信号启动位于应用层的摄像头应用。Sub-step S34, start the camera application at the application layer according to the interrupt signal.
在移动终端中,指纹传感器的指纹验证服务在指纹验证成功之后,生成验证事件,即表示指纹验证成功的事件。In the mobile terminal, the fingerprint verification service of the fingerprint sensor generates a verification event after the fingerprint verification is successful, that is, an event indicating that the fingerprint verification is successful.
此外,为了方便弹出摄像头,可以预先封装的接口,这些接口可以是系统平台提供的一个硬件(如摄像头)的Hardware(硬件抽象层)接口函数库,供上层调用。In addition, in order to facilitate the pop-up of the camera, pre-packaged interfaces may be provided, and these interfaces may be a Hardware (hardware abstraction layer) interface function library of a hardware (such as a camera) provided by the system platform for the upper layer to call.
因此,通过该函数库可以直接驱动位于硬件层的弹出装置将摄像头从移动终端的腔体中弹出至移动终端的腔体外。Therefore, the function library can directly drive the ejection device located at 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 pops up, an interrupt signal can be generated so that the processor can be interrupted to start the camera application.
本发明实施例的摄像头内嵌在移动终端的腔体中,当移动终端中指纹验证成功时,将摄像头从所述移动终端的腔体中弹出至移动终端的腔体外,并启动摄像头应用,一方面,摄像头内嵌在移动终端的腔体中,可以减少对移动终端表面的面积占用,提高占屏比,另一方面,通过指纹验证直接启动摄像头,可以避免用户通过查找并启动摄像头应用等方式启动摄像头,提高了内置摄像头的启动速度。The camera of the embodiment of the present invention is embedded in the cavity of the mobile terminal. When the fingerprint verification in the mobile terminal is successful, the camera is ejected from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal, and the camera application is started. On the one hand, the camera is embedded in the cavity of the mobile terminal, which can reduce the area occupied on the surface of the mobile terminal and increase the screen ratio. Start the camera, improved the startup speed of the built-in camera.
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。For the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described sequence of actions, because according to the embodiments of the present invention , certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图4,示出了根据本发明一个实施例的一种在移动终端中启动摄像头的装置的结构框图,摄像头内嵌在移动终端的腔体中,所述装置具体可以包括如下模块:Referring to FIG. 4, it shows a structural block diagram of an apparatus for activating a camera in a mobile terminal according to an embodiment of the present invention. The camera is embedded in the cavity of the mobile terminal, and the apparatus may specifically include the following modules:
指纹验证模块401,适于在所述移动终端中进行指纹验证;A
摄像头启动模块402,适于当指纹验证成功时,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动所述摄像头应用。The
在本发明的一个实施例中,还包括:In an embodiment of the present invention, it also includes:
摄像头关闭模块,适于在关闭所述摄像头应用时,将所述摄像头从所述移动终端的腔体外缩回至所述移动终端的腔体中。The camera closing module is adapted to retract the camera from the cavity of the mobile terminal into the cavity of the mobile terminal when the camera application is closed.
在本发明的一个实施例中,所述摄像头启动模块402还适于:In an embodiment of the present invention, the
由位于中间层的指纹验证服务生成指纹验证成功的验证事件;A verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
由所述指纹验证服务将所述验证事件映射为弹出事件并上报至应用层;The verification event is mapped to a pop-up event by the fingerprint verification service and reported to the application layer;
在所述应用层中启动已注册所述弹出事件的摄像头应用;start the camera application that has registered the pop-up event in the application layer;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
在本发明的另一个实施例中,所述摄像头启动模块402还适于:In another embodiment of the present invention, the
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件并上报至应用层;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer and reported to the application layer;
由位于应用层的摄像头应用接收所述验证事件;The verification event is received by the camera application located at the application layer;
由所述摄像头应用将所述验证事件映射为弹出事件;mapping the verification event to a pop-up event by the camera application;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
在本发明的另一个实施例中,所述摄像头启动模块402还适于:In another embodiment of the present invention, the
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
在中间层中按照所述验证事件调用预先封装的接口,驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外;In the middle layer, the pre-packaged interface is called according to the verification event, and the pop-up device located at the hardware layer is driven to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal;
当所述摄像头弹出时,生成中断信号;When the camera pops up, an interrupt signal is generated;
依据所述中断信号启动位于应用层的摄像头应用。Start the camera application located at the application layer according to the interrupt signal.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.
本发明实施例还提供了移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point ofSales,销售终端)、车载电脑等任意终端设备,以终端为手机为例:The embodiment of the present invention also provides a mobile terminal, as shown in FIG. 5 , for the convenience of description, only the part related to the embodiment of the present invention is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a POS (Point of Sales, a sales terminal), a car computer, etc. The terminal is a mobile phone as an example:
图5示出的是与本发明实施例提供的终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路510、存储器520、输入单元530、显示单元540、传感器550、音频电路560、无线保真(wireless fidelity,WiFi)模块570、处理器580、电源590以及摄像头591等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to FIG. 5 , the mobile phone includes: a radio frequency (RF)
下面结合图5对手机的各个构成部件进行具体的介绍:The following is a detailed introduction to each component of the mobile phone in conjunction with Figure 5:
RF电路510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器580处理;另外,将设计上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low NoiseAmplifier,LNA)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GlobalSystem of Mobile communication,GSM)、通用分组无线服务(General Packet RadioService,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元530可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元530可包括触控面板531以及其他输入设备532。触控面板531,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板531上或在触控面板531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板531。除了触控面板531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元540可包括显示面板541,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触控面板531可覆盖显示面板541,当触控面板531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触控面板531与显示面板541是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板531与显示面板541集成而实现手机的输入和输出功能。The
手机还可包括至少一种传感器550,比如指纹传感器、光传感器、运动传感器以及其他传感器。具体地,指纹传感器可以采集指纹数据,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在手机移动到耳边时,关闭显示面板541和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The cell phone may also include at least one
音频电路560、扬声器561,传声器562可提供用户与手机之间的音频接口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一手机,或者将音频数据输出至存储器520以便进一步处理。The
WiFi属于短距离无线传输技术,手机通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the
处理器580是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器580可包括一个或多个处理单元;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器580中。The
手机还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理系统与处理器580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 590 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
尽管未示出,手机还可以包括蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a Bluetooth module, etc., which will not be repeated here.
在本发明实施例中,摄像头内嵌在移动终端的腔体中,该终端所包括的处理器580还具有以下功能:In the embodiment of the present invention, the camera is embedded in the cavity of the mobile terminal, and the
在所述移动终端中进行指纹验证;performing fingerprint verification in the mobile terminal;
当指纹验证成功时,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外,并启动摄像头应用。When the fingerprint verification is successful, the camera is ejected from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal, and the camera application is started.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the
当关闭所述摄像头应用时,将所述摄像头从所述移动终端的腔体外缩回至所述移动终端的腔体中。When the camera application is closed, the camera is retracted from the cavity of the mobile terminal into the cavity of the mobile terminal.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the
由位于中间层的指纹验证服务生成指纹验证成功的验证事件;A verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
由所述指纹验证服务将所述验证事件映射为弹出事件并上报至应用层;The verification event is mapped to a pop-up event by the fingerprint verification service and reported to the application layer;
在所述应用层中启动已注册所述弹出事件的摄像头应用;start the camera application that has registered the pop-up event in the application layer;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件并上报至应用层;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer and reported to the application layer;
由位于应用层的摄像头应用接收所述验证事件;The verification event is received by the camera application located at the application layer;
由所述摄像头应用将所述验证事件映射为弹出事件;mapping the verification event to a pop-up event by the camera application;
由所述摄像头应用依据所述弹出事件驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外。The camera application drives an ejection device located at the hardware layer according to the ejection event, and ejects the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal.
可选地,该终端所包括的处理器580还具有以下功能:Optionally, the
由位于中间层的指纹验证服务中生成指纹验证成功的验证事件;The verification event of successful fingerprint verification is generated by the fingerprint verification service located in the middle layer;
在中间层中按照所述验证事件调用预先封装的接口,驱动位于硬件层的弹出装置,将所述摄像头从所述移动终端的腔体中弹出至所述移动终端的腔体外;In the middle layer, the pre-packaged interface is called according to the verification event, and the pop-up device located at the hardware layer is driven to eject the camera from the cavity of the mobile terminal to the outside of the cavity of the mobile terminal;
当所述摄像头弹出时,生成中断信号;When the camera pops up, an interrupt signal is generated;
依据所述中断信号启动位于应用层的摄像头应用。Start the camera application located at the application layer according to the interrupt signal.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710076977.5A CN106933351B (en) | 2017-02-13 | 2017-02-13 | A method, device and mobile terminal for starting a camera in a mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710076977.5A CN106933351B (en) | 2017-02-13 | 2017-02-13 | A method, device and mobile terminal for starting a camera in a 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 | A method, device and mobile terminal for starting a camera in a mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933351B (en) |
Families Citing this family (7)
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 of front camera |
CN110519511A (en) * | 2019-08-12 | 2019-11-29 | Oppo广东移动通信有限公司 | Image pickup apparatus control method, terminal, server, and storage medium |
Citations (3)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208149B (en) * | 2015-08-31 | 2019-02-22 | 小米科技有限责任公司 | Mobile terminal display 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 | 广东欧珀移动通信有限公司 | A method and device for taking pictures when a terminal is in standby, and a mobile terminal |
-
2017
- 2017-02-13 CN CN201710076977.5A patent/CN106933351B/en active Active
Patent Citations (3)
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) | A method, device and mobile terminal for starting a camera in a mobile terminal | |
US11074117B2 (en) | Copying and pasting method, data processing apparatus, and user equipment | |
CN109739669B (en) | A kind of unread message prompting method and mobile terminal | |
CN106921791B (en) | Multimedia file storage and viewing method and device and mobile terminal | |
CN106506820B (en) | Backup method and device for mobile terminal data | |
CN106951170A (en) | A kind of split screen treating method and apparatus of mobile terminal, mobile terminal | |
CN106527949B (en) | A fingerprint unlocking method, device and terminal | |
US10951754B2 (en) | Method for responding to incoming call by means of fingerprint recognition, storage medium, and mobile terminal | |
CN108135033A (en) | A kind of Bluetooth connecting method and mobile terminal | |
CN107180180B (en) | Unlock control method and related products | |
US20200272274A1 (en) | Terminal device interaction method, storage medium and terminal device | |
CN109062634B (en) | Application starting method and mobile terminal | |
CN108897486A (en) | A kind of display methods and terminal device | |
CN109067949A (en) | A kind of electronic equipment and its control method | |
CN108932086A (en) | Display methods, device and the storage medium of application interface | |
CN108108110A (en) | A kind of screen control method, screen control device and mobile terminal | |
CN107831988A (en) | The operating method and mobile terminal of a kind of mobile terminal | |
CN104217172A (en) | Privacy content checking method and device | |
CN107734170A (en) | A kind of notification message processing method, mobile terminal and wearable device | |
CN108664818A (en) | A kind of unlock control method and device | |
CN111580911A (en) | Operation prompting method and device for terminal, storage medium and terminal | |
CN118018641B (en) | Electronic equipment operation method, electronic equipment, chip and storage medium | |
CN107193475B (en) | Unlocking control method and related product | |
CN108170360B (en) | Control method of gesture function and mobile terminal | |
CN107657160B (en) | Facial information collection method and related products |
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 |