+

CN109557999B - Bright screen control method and device and storage medium - Google Patents

Bright screen control method and device and storage medium Download PDF

Info

Publication number
CN109557999B
CN109557999B CN201710875651.9A CN201710875651A CN109557999B CN 109557999 B CN109557999 B CN 109557999B CN 201710875651 A CN201710875651 A CN 201710875651A CN 109557999 B CN109557999 B CN 109557999B
Authority
CN
China
Prior art keywords
image
screen
terminal
face
face image
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
CN201710875651.9A
Other languages
Chinese (zh)
Other versions
CN109557999A (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710875651.9A priority Critical patent/CN109557999B/en
Publication of CN109557999A publication Critical patent/CN109557999A/en
Application granted granted Critical
Publication of CN109557999B publication Critical patent/CN109557999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2125Just-in-time application of countermeasures, e.g., on-the-fly decryption, just-in-time obfuscation or de-obfuscation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

本公开是关于一种亮屏控制方法、装置及存储介质,涉及终端技术领域。该方法包括:在终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,启动该终端的前置摄像头;通过该前置摄像头采集第一图像,并对该第一图像进行图像处理;当经过图像处理后确定该第一图像中包括第一人脸图像时,从该熄屏状态切换至亮屏状态。如此,无需用户手动操作,自动实现了亮屏控制,提高了操作的便捷性,从而提高了亮屏控制效率。

Figure 201710875651

The present disclosure relates to a bright screen control method, device and storage medium, and relates to the technical field of terminals. The method includes: when the terminal is in a screen-off state, when a first obstruction is detected by a configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than a first preset distance, starting the terminal the front camera; collect the first image through the front camera, and perform image processing on the first image; when it is determined that the first image includes the first face image after image processing, switch from the screen-off state to the bright screen state. In this way, the user's manual operation is not required, and the bright screen control is automatically realized, which improves the convenience of operation, and thus improves the efficiency of the bright screen control.

Figure 201710875651

Description

亮屏控制方法、装置及存储介质Bright screen control method, device and storage medium

技术领域technical field

本公开涉及终端技术领域,尤其涉及一种亮屏控制方法、装置及存储介质。The present disclosure relates to the technical field of terminals, and in particular, to a bright screen control method, device and storage medium.

背景技术Background technique

目前,诸如手机、平板电脑之类的终端得到了广泛的应用。在实际应用过程中,在终端处于熄屏状态下,若用户想要查看屏幕,譬如,用户想要查看时间,则需要终端点亮屏幕。At present, terminals such as mobile phones and tablet computers are widely used. In an actual application process, when the terminal is in a screen-off state, if the user wants to check the screen, for example, the user wants to check the time, the terminal needs to turn on the screen.

在相关技术中,一般需要用户手动点亮屏幕,也即是,终端通常提供有亮屏按键,例如,该亮屏按键可以为HOME按键等。当用户想要点亮屏幕时,可以点击该亮屏按键以触发亮屏指令,终端接收到该亮屏指令后,点亮屏幕。In the related art, a user is generally required to manually light the screen, that is, the terminal is usually provided with a screen bright button, for example, the screen bright button may be a HOME button or the like. When the user wants to light up the screen, he can click the screen bright button to trigger the screen bright command, and the terminal lights up the screen after receiving the screen bright command.

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种亮屏控制方法、装置及存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a bright screen control method, device and storage medium.

第一方面,提供一种亮屏控制方法,应用于终端中,所述方法包括:In a first aspect, a bright screen control method is provided, applied in a terminal, and the method includes:

在所述终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且所述第一遮挡物与所述终端的屏幕之间的距离小于第一预设距离时,启动所述终端的前置摄像头;When the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than a first preset distance, the The front camera of the terminal;

通过所述前置摄像头采集第一图像,并对所述第一图像进行图像处理;Collect a first image through the front camera, and perform image processing on the first image;

当经过图像处理后确定所述第一图像中包括第一人脸图像时,从所述熄屏状态切换至亮屏状态。When it is determined after image processing that the first image includes a first face image, the screen is switched from the screen-off state to the screen-on state.

可选地,所述当经过图像处理后确定所述第一图像中包括第一人脸图像时,从所述熄屏状态切换至亮屏状态之后,还包括;Optionally, when it is determined after image processing that the first image includes a first face image, after switching from the screen-off state to the screen-on state, further comprising;

确定所述第一人脸图像与预先存储的人脸校验图像之间的相似度;determining the similarity between the first face image and the pre-stored face verification image;

当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作。When the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, the unlocking operation is performed.

可选地,所述当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作之后,还包括:Optionally, when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, after performing the unlocking operation, the method further includes:

在指定应用场景下,当通过所述距离传感器检测到第二遮挡物且所述第二遮挡物与所述终端的屏幕之间的距离小于第二预设距离时,通过所述前置摄像头采集第二图像,并对所述第二图像进行图像处理;In a specified application scenario, when a second obstruction is detected by the distance sensor and the distance between the second obstruction and the screen of the terminal is less than a second preset distance, the front camera is used to collect a second image, and performing image processing on the second image;

当经过图像处理后确定所述第二图像中包括第二人脸图像时,对所述屏幕当前显示的内容进行模糊处理,所述第二人脸图像为与所述第一人脸图像不同的任一人脸图像。When it is determined after image processing that the second image includes a second face image, the content currently displayed on the screen is blurred, and the second face image is different from the first face image. Any face image.

可选地,所述当经过图像处理后确定所述第二图像中包括第二人脸图像时,将所述屏幕当前显示的内容进行模糊处理之后,还包括:Optionally, when it is determined that the second image includes a second face image after image processing, after blurring the content currently displayed on the screen, the method further includes:

当通过所述距离传感器未检测到所述第二遮挡物,且通过所述前置摄像头采集的图像中不包括所述第二人脸图像时,取消对所述屏幕当前显示的内容的模糊处理。When the second occluder is not detected by the distance sensor, and the image captured by the front camera does not include the second face image, cancel the blurring processing of the content currently displayed on the screen .

可选地,所述当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作之后,还包括:Optionally, when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, after performing the unlocking operation, the method further includes:

当通过所述距离传感器未检测到所述第一遮挡物,且通过所述前置摄像头采集的图像中不包括所述第一人脸图像时,执行锁屏操作,并从所述亮屏状态切换至所述熄屏状态。When the first obstruction is not detected by the distance sensor, and the first face image is not included in the image captured by the front camera, the screen lock operation is performed, and the screen is turned on from the bright screen state. Switch to the screen-off state.

第二方面,提供一种亮屏控制装置,配置于终端中,所述装置包括:In a second aspect, a bright screen control device is provided, which is configured in a terminal, and the device includes:

启动模块,用于在所述终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且所述第一遮挡物与所述终端的屏幕之间的距离小于第一预设距离时,启动所述终端的前置摄像头;A startup module, used for when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than a first preset distance , start the front camera of the terminal;

第一采集处理模块,用于通过所述前置摄像头采集第一图像,并对所述第一图像进行图像处理;a first acquisition and processing module, configured to acquire a first image through the front camera, and perform image processing on the first image;

切换模块,用于当经过图像处理后确定所述第一图像中包括第一人脸图像时,从所述熄屏状态切换至亮屏状态。A switching module is configured to switch from the screen-off state to the screen-on state when it is determined that the first image includes a first face image after image processing.

可选地,所述装置还包括;Optionally, the device further includes;

确定模块,用于确定所述第一人脸图像与预先存储的人脸校验图像之间的相似度;a determining module, for determining the similarity between the first face image and the pre-stored face verification image;

解锁模块,用于当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作。An unlocking module, configured to perform an unlocking operation when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity.

可选地,所述装置还包括:Optionally, the device further includes:

第二采集处理模块,用于在指定应用场景下,当通过所述距离传感器检测到第二遮挡物且所述第二遮挡物与所述终端的屏幕之间的距离小于第二预设距离时,通过所述前置摄像头采集第二图像,并对所述第二图像进行图像处理;The second acquisition and processing module is configured to, in a specified application scenario, when a second obstruction is detected by the distance sensor and the distance between the second obstruction and the screen of the terminal is less than a second preset distance , collecting a second image through the front camera, and performing image processing on the second image;

模糊处理模块,用于当经过图像处理后确定所述第二图像中包括第二人脸图像时,对所述屏幕当前显示的内容进行模糊处理,所述第二人脸图像为与所述第一人脸图像不同的任一人脸图像。The blurring processing module is configured to perform blur processing on the content currently displayed on the screen when it is determined that the second image includes a second face image after image processing, and the second face image is the same as the second face image. Any face image with a different face image.

可选地,所述装置还包括:Optionally, the device further includes:

取消模块,用于当通过所述距离传感器未检测到所述第二遮挡物,且通过所述前置摄像头采集的图像中不包括所述第二人脸图像时,取消对所述屏幕当前显示的内容的模糊处理。a cancellation module, configured to cancel the current display on the screen when the distance sensor does not detect the second obstruction and the image collected by the front camera does not include the second face image Obfuscation of the content.

可选地,所述切换模块还用于:Optionally, the switching module is also used for:

当通过所述距离传感器未检测到所述第一遮挡物,且通过所述前置摄像头采集的图像中不包括所述第一人脸图像时,执行锁屏操作,并从所述亮屏状态切换至所述熄屏状态。When the first obstruction is not detected by the distance sensor, and the first face image is not included in the image captured by the front camera, the screen lock operation is performed, and the screen is turned on from the bright screen state. Switch to the screen-off state.

第三方面,提供一种亮屏控制装置,所述装置包括:In a third aspect, a bright screen control device is provided, the device comprising:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为执行上述第一方面所述的亮屏控制方法的步骤。Wherein, the processor is configured to execute the steps of the bright screen control method described in the first aspect above.

第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,所述指令被处理器执行时实现上述第一方面所述的亮屏控制方法。In a fourth aspect, a computer-readable storage medium is provided, where instructions are stored on the computer-readable storage medium, and when the instructions are executed by a processor, the bright screen control method described in the first aspect above is implemented.

第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的亮屏控制方法。In a fifth aspect, there is provided a computer program product containing instructions, which, when executed on a computer, cause the computer to execute the bright screen control method described in the first aspect above.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

在终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,说明可能是用户靠近该终端的屏幕。为了能够进一步确定该用户是否有查看屏幕的需求,启动该终端的前置摄像头,并通过该前置摄像头采集第一图像。之后,对该第一图像进行图像处理,如果经过图像处理后确定该第一图像中包括第一人脸图像,则说明用户正对着该终端,即用户有查看屏幕的需求,此时,从熄屏状态切换至亮屏状态,如此,无需用户手动操作,自动实现了亮屏控制,提高了操作的便捷性,从而提高了亮屏控制效率。When the screen of the terminal is turned off, when the configured distance sensor detects a first obstruction and the distance between the first obstruction and the screen of the terminal is less than the first preset distance, it means that the user may be approaching the terminal screen. In order to further determine whether the user needs to view the screen, the front camera of the terminal is activated, and a first image is collected through the front camera. After that, image processing is performed on the first image. If it is determined that the first image includes the first face image after image processing, it means that the user is facing the terminal, that is, the user needs to view the screen. The screen-off state is switched to the screen-on state. In this way, the screen-on-screen control is automatically realized without the need for manual operation by the user, which improves the convenience of operation and improves the efficiency of screen-on-screen control.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种亮屏控制方法的流程图。Fig. 1 is a flow chart of a method for controlling bright screen according to an exemplary embodiment.

图2A是根据另一示例性实施例示出的一种亮屏控制方法的流程图。Fig. 2A is a flow chart of a method for controlling a bright screen according to another exemplary embodiment.

图2B是图2A实施例涉及的一种终端的平面示意图。FIG. 2B is a schematic plan view of a terminal involved in the embodiment of FIG. 2A .

图3A是根据一示例性实施例示出的一种亮屏控制装置的框图。Fig. 3A is a block diagram of a bright screen control device according to an exemplary embodiment.

图3B是根据一示例性实施例示出的另一种亮屏控制装置的框图。Fig. 3B is a block diagram of another bright screen control device according to an exemplary embodiment.

图3C是根据一示例性实施例示出的另一种亮屏控制装置的框图。FIG. 3C is a block diagram of another bright screen control apparatus according to an exemplary embodiment.

图3D是根据一示例性实施例示出的另一种亮屏控制装置的框图。FIG. 3D is a block diagram of another bright screen control apparatus according to an exemplary embodiment.

图4是根据一示例性实施例示出的一种亮屏控制装置400的框图。FIG. 4 is a block diagram of a screen brightening control device 400 according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.

在对本公开实施例进行详细介绍之前,先对本公开实施例涉及的名词、应用场景和执行主体进行简单介绍。Before introducing the embodiments of the present disclosure in detail, the terms, application scenarios, and execution subjects involved in the embodiments of the present disclosure are briefly introduced.

首先,对本公开实施例涉及的名词进行简单介绍。First, the terms involved in the embodiments of the present disclosure are briefly introduced.

距离传感器:配置于终端中,进一步地,该距离传感器通常配置于终端的前端。该距离传感器可以用于检测遮挡物,并可以确定该遮挡物与终端的屏幕之间的距离。在实际实现中,该距离传感器可以为P-sensor,或者,也可以是基于结构光、TOF(Time Of Flight,飞行时间)、或其它原理实现的距离传感器。Distance sensor: disposed in the terminal, further, the distance sensor is usually disposed at the front end of the terminal. The distance sensor can be used to detect an obstruction, and can determine the distance between the obstruction and the screen of the terminal. In actual implementation, the distance sensor may be a P-sensor, or may also be a distance sensor implemented based on structured light, TOF (Time Of Flight, time of flight), or other principles.

其次,对本公开实施例涉及的应用场景进行简单介绍。Next, the application scenarios involved in the embodiments of the present disclosure are briefly introduced.

在实际生活中,终端为用户提供了诸多便利,例如,用户可以借助终端查看日期、时间等。当用户需要查看终端的屏幕时,需要终端点亮屏幕。然而,在相关技术中,需要用户手动点亮屏幕,如此,导致操作较为繁琐,亮屏控制效率较低,降低了用户体验。为此,本公开实施例提供了一种亮屏控制方法,该亮屏控制方法可以避免需要用户手动控制,提高了操作的便捷性,从而提高了亮屏控制效率,并提高了用户体验。其具体实现请参见如下图1或图2A所示的实施例。In real life, the terminal provides many conveniences for the user, for example, the user can check the date, time, etc. by means of the terminal. When the user needs to view the screen of the terminal, the terminal needs to light up the screen. However, in the related art, the user is required to manually light the screen, which leads to complicated operations, low screen lighting control efficiency, and reduced user experience. To this end, the embodiments of the present disclosure provide a bright screen control method, which can avoid the need for manual control by a user, improve the convenience of operation, thereby improve the screen bright control efficiency, and improve user experience. For its specific implementation, please refer to the embodiment shown in FIG. 1 or FIG. 2A below.

接下来,对本公开实施例涉及的执行主体进行简单介绍。Next, the executive bodies involved in the embodiments of the present disclosure are briefly introduced.

本公开实施例提供的亮屏控制方法可以由终端执行,该终端中配置有距离传感器和前置摄像头,进一步地,该距离传感器通常配置在该前置摄像头的附近。该终端通过该距离传感器可以检测到距离该终端的屏幕一定距离的遮挡物,通过该前置摄像头可以进行图像采集。进一步地,该终端还具有图像处理能力,以判断所采集的图像中是否包括人脸图像。在实际应用场景中,该终端可以包括但不限于手机、平板电脑、计算机。The screen brightening control method provided by the embodiment of the present disclosure may be performed by a terminal, where a distance sensor and a front-facing camera are configured in the terminal. Further, the distance sensor is usually configured near the front-facing camera. The terminal can detect an obstruction at a certain distance from the screen of the terminal through the distance sensor, and can perform image collection through the front camera. Further, the terminal also has an image processing capability to determine whether the collected images include a face image. In practical application scenarios, the terminal may include, but is not limited to, a mobile phone, a tablet computer, and a computer.

在介绍完本公开实施例涉及的名词、应用场景和执行主体后,接下来,将结合附图1和附图2A,对本公开实施例涉及的亮屏控制方法进行详细介绍。其具体实现请参见如下图1和图2A所示的实施例。After the nouns, application scenarios, and execution subjects involved in the embodiments of the present disclosure are introduced, next, the bright screen control method involved in the embodiments of the present disclosure will be introduced in detail with reference to FIG. 1 and FIG. 2A . For its specific implementation, please refer to the embodiments shown in FIG. 1 and FIG. 2A below.

图1是根据一示例性实施例示出的一种亮屏控制方法的流程图,如图1所示,该亮屏控制方法用于终端中,该亮屏控制方法可以包括以下几个实现步骤:FIG. 1 is a flow chart of a method for controlling screen brightening according to an exemplary embodiment. As shown in FIG. 1 , the method for controlling brightening screen is used in a terminal, and the method for controlling brightening screen may include the following implementation steps:

在步骤101中,在该终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,启动该终端的前置摄像头。In step 101, when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than a first preset distance, start the The front camera of the terminal.

在步骤102中,通过该前置摄像头采集第一图像,并对该第一图像进行图像处理。In step 102, a first image is collected by the front camera, and image processing is performed on the first image.

在步骤103中,当经过图像处理后确定该第一图像中包括第一人脸图像时,从该熄屏状态切换至亮屏状态。In step 103, when it is determined after image processing that the first image includes a first face image, the screen is switched from the screen-off state to the screen-on state.

在本公开实施例中,在终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,说明可能是用户靠近该终端的屏幕。为了能够进一步确定该用户是否有查看屏幕的需求,启动该终端的前置摄像头,并通过该前置摄像头采集第一图像。之后,对该第一图像进行图像处理,如果经过图像处理后确定该第一图像中包括第一人脸图像,则说明用户正对着该终端,即用户有查看屏幕的需求,此时,从熄屏状态切换至亮屏状态,如此,无需用户手动操作,自动实现了亮屏控制,提高了操作的便捷性,从而提高了亮屏控制效率。In this embodiment of the present disclosure, when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than the first preset distance, The description may be that the user is close to the screen of the terminal. In order to further determine whether the user needs to view the screen, the front camera of the terminal is activated, and a first image is collected through the front camera. After that, image processing is performed on the first image. If it is determined that the first image includes the first face image after image processing, it means that the user is facing the terminal, that is, the user needs to view the screen. The screen-off state is switched to the screen-on state. In this way, the screen-on-screen control is automatically realized without the need for manual operation by the user, which improves the convenience of operation and improves the efficiency of screen-on-screen control.

可选地,当经过图像处理后确定该第一图像中包括第一人脸图像时,从该熄屏状态切换至亮屏状态之后,还包括;Optionally, when it is determined after image processing that the first image includes a first face image, after switching from the screen-off state to the screen-on state, further comprising;

确定该第一人脸图像与预先存储的人脸校验图像之间的相似度;Determine the similarity between the first face image and the pre-stored face verification image;

当该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作。When the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, the unlocking operation is performed.

可选地,当该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作之后,还包括:Optionally, when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, after the unlocking operation is performed, the method further includes:

在指定应用场景下,当通过该距离传感器检测到第二遮挡物且该第二遮挡物与该终端的屏幕之间的距离小于第二预设距离时,通过该前置摄像头采集第二图像,并对该第二图像进行图像处理;In a specified application scenario, when a second obstruction is detected through the distance sensor and the distance between the second obstruction and the screen of the terminal is less than a second preset distance, a second image is collected through the front camera, and perform image processing on the second image;

当经过图像处理后确定该第二图像中包括第二人脸图像时,对该屏幕当前显示的内容进行模糊处理,该第二人脸图像为与该第一人脸图像不同的任一人脸图像。When it is determined after image processing that a second face image is included in the second image, the content currently displayed on the screen is subjected to a blurring process, and the second face image is any face image that is different from the first face image .

可选地,当经过图像处理后确定该第二图像中包括第二人脸图像时,将该屏幕当前显示的内容进行模糊处理之后,还包括:Optionally, when it is determined that the second image includes a second face image after image processing, after the content currently displayed on the screen is blurred, the method further includes:

当通过该距离传感器未检测到该第二遮挡物,且通过该前置摄像头采集的图像中不包括该第二人脸图像时,取消对该屏幕当前显示的内容的模糊处理。When the second occluder is not detected by the distance sensor, and the image collected by the front camera does not include the second face image, the blurring of the content currently displayed on the screen is canceled.

可选地,当该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作之后,还包括:Optionally, when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, after the unlocking operation is performed, the method further includes:

当通过该距离传感器未检测到该第一遮挡物,且通过该前置摄像头采集的图像中不包括该第一人脸图像时,执行锁屏操作,并从该亮屏状态切换至该熄屏状态。When the first obstruction is not detected by the distance sensor, and the image captured by the front camera does not include the first face image, the screen lock operation is performed, and the screen is switched from the screen-on state to the screen-off state state.

上述所有可选技术方案,均可按照任意结合形成本公开的可选实施例,本公开实施例对此不再一一赘述。All the above-mentioned optional technical solutions can be combined to form optional embodiments of the present disclosure, which are not repeated in the embodiments of the present disclosure.

图2A是根据一示例性实施例示出的一种亮屏控制方法的流程图,如图2A所示,该亮屏控制方法用于终端中,该亮屏控制方法可以包括以下几个实现步骤:FIG. 2A is a flowchart of a method for controlling screen brightening according to an exemplary embodiment. As shown in FIG. 2A , the method for controlling brightening screen is used in a terminal, and the method for controlling brightening screen may include the following implementation steps:

在步骤201中,在该终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,启动该终端的前置摄像头。In step 201, when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than a first preset distance, start the The front camera of the terminal.

其中,该第一预设距离可以由用户根据实际需求自定义设置,也可以由该终端默认设置,本公开实施例对此不做限定。The first preset distance may be set by a user according to actual needs, or may be set by default by the terminal, which is not limited in this embodiment of the present disclosure.

在该终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡区距离该终端的屏幕一定距离时,可能是用户的人脸靠近了该终端的屏幕,即该第一遮挡物是人脸。然而,在实际应用场景中,由于也可能是该用户在拿终端时,用手挡住了该距离传感器,即通过该距离传感器检测到的第一遮挡物也可能是用户的手。因此,为了能够准确地确定是否是用户的人脸靠近了该终端的屏幕,也即是,确定该用户是否有查看屏幕的需求,该终端启动所配置的前置摄像头。In the screen-off state of the terminal, when the configured distance sensor detects the first blocking object and the first blocking area is at a certain distance from the screen of the terminal, it may be that the user's face is close to the screen of the terminal, that is, The first occluder is a human face. However, in a practical application scenario, since the user may also block the distance sensor with his hand when holding the terminal, that is, the first obstruction detected by the distance sensor may also be the user's hand. Therefore, in order to accurately determine whether the user's face is close to the screen of the terminal, that is, to determine whether the user needs to view the screen, the terminal activates the configured front camera.

在步骤202中,通过该前置摄像头采集第一图像,并对该第一图像进行图像处理。In step 202, a first image is captured by the front camera, and image processing is performed on the first image.

该终端启动该前置摄像头后,通过该前置摄像头进行图像采集,得到第一图像。不难理解,若用户想要查看屏幕,则该用户的人脸通常会正对着该屏幕,因此,为了能够确定该用户是否在查看屏幕,该终端对采集到的该第一图像进行图像处理,以判断该第一图像中是否包括人脸图像。After starting the front camera, the terminal performs image acquisition through the front camera to obtain a first image. It is not difficult to understand that if the user wants to view the screen, the face of the user is usually facing the screen. Therefore, in order to be able to determine whether the user is viewing the screen, the terminal performs image processing on the collected first image. , to determine whether the first image includes a face image.

需要说明的是,终端对该第一图像进行图像处理的具体实现可以参见相关技术,本公开实施例对此不再详细介绍。It should be noted that, for the specific implementation of the image processing performed by the terminal on the first image, reference may be made to the related art, which is not described in detail in this embodiment of the present disclosure.

在步骤203中,当经过图像处理后确定该第一图像中包括第一人脸图像时,从该熄屏状态切换至亮屏状态。In step 203, when it is determined that the first image includes a first face image after image processing, the screen is switched from the screen-off state to the screen-on state.

如果确定该第一图像中包括第一人脸图像,则说明该用户的人脸正对着该终端的屏幕,即该用户可能有查看该终端的屏幕的需求,因此,终端从熄屏状态切换至亮屏状态,从而实现了亮屏控制。如此,用户即可查看到屏幕中显示的内容,例如,查看日期、时间等。If it is determined that the first image includes a first face image, it means that the user's face is facing the screen of the terminal, that is, the user may have a need to view the screen of the terminal. Therefore, the terminal switches from the screen-off state. to the bright screen state, thus realizing the bright screen control. In this way, the user can check the content displayed on the screen, for example, check the date, time, etc.

至此,已实现了本公开实施例提供的亮屏控制方法。另外,在实际应用场景中,用户不仅仅有查看屏幕的需求,还可能有使用终端的需求,但是,通常终端在熄屏状态下已经被上锁,因此,为了进一步提高用户体验,使得用户能够快速使用终端,本公开实施例还提供了自动解锁功能,其具体实现请参见如下步骤204至步骤205。So far, the bright screen control method provided by the embodiments of the present disclosure has been implemented. In addition, in practical application scenarios, users not only need to view the screen, but may also need to use the terminal. However, the terminal is usually locked when the screen is off. Therefore, in order to further improve the user experience, the user can To use the terminal quickly, the embodiment of the present disclosure also provides an automatic unlocking function, and for the specific implementation, please refer to the following steps 204 to 205 .

在步骤204中,确定该第一人脸图像与预先存储的人脸校验图像之间的相似度。In step 204, the similarity between the first face image and the pre-stored face verification image is determined.

在具体实现中,该终端中预先存储有人脸校验图像,通常该人脸校验图像是对该终端具有使用权限的用户的人脸图像,例如,该人脸校验图像可以是该终端的拥有者的人脸图像(下文以此为例进行说明)。也即是,在此之前,该终端的拥有者可以利用该终端的摄像装置对自己的人脸图像进行拍摄,之后,将该人脸图像存储在该终端中以作为人脸校验图像。In a specific implementation, a face verification image is pre-stored in the terminal. Usually, the face verification image is a face image of a user who has permission to use the terminal. For example, the face verification image may be the face verification image of the terminal. The owner's face image (the following is an example for description). That is, before this, the owner of the terminal can use the camera device of the terminal to photograph his own face image, and then store the face image in the terminal as a face verification image.

当然,上述仅是以该终端的拥有者利用该终端的摄像装置对自己的人脸图像进行拍摄为例进行说明,在实际实现中,该拥有者还可以通过其它终端对自己的人脸图像进行拍摄,之后,通过其它终端将拍摄得到的该人脸图像存储至该终端中。Of course, the above description is only described by taking the terminal owner's own face image by using the camera device of the terminal as an example. After shooting, the face image obtained by shooting is stored in the terminal through another terminal.

如此,在解锁过程中,可以利用该人脸校验图像对解锁用户的第一人脸图像进行校验。由于该第一人脸图像可能不是该终端的拥有者的人脸图像,此时,若终端直接进行解锁,可能导致对终端的使用存在一定的安全隐患。为此,终端确定该第一人脸图像与该人脸校验图像之间的相似度,以判断该第一人脸图像是否是终端的拥有者的人脸图像。In this way, during the unlocking process, the face verification image can be used to verify the first face image of the unlocking user. Since the first face image may not be the face image of the owner of the terminal, at this time, if the terminal is directly unlocked, certain security risks may exist in the use of the terminal. To this end, the terminal determines the similarity between the first face image and the face verification image to determine whether the first face image is the face image of the owner of the terminal.

需要说明的是,确定该第一人脸图像与预先存储的人脸校验图像之间的相似度的具体实现可以参见图像处理相关技术,本公开实施例对此不做详细介绍。It should be noted that, for the specific implementation of determining the similarity between the first face image and the pre-stored face verification image, reference may be made to the related art of image processing, which is not described in detail in this embodiment of the present disclosure.

在步骤205中,当该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作。In step 205, when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, an unlocking operation is performed.

当该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,说明该第一人脸图像与该人脸校验图像几乎相同,此时,可以说明该第一人脸图像是该终端的拥有者的人脸图像,即可以认为该第一人脸图像对应的用户对该终端是具有使用权限的,因此,终端可以自动执行解锁操作。When the similarity between the first face image and the face verification image is greater than or equal to the preset similarity, it means that the first face image and the face verification image are almost the same. The first face image is the face image of the owner of the terminal, that is, it can be considered that the user corresponding to the first face image has the right to use the terminal, so the terminal can automatically perform the unlocking operation.

如此,当确定该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,自动执行解锁操作,避免需要用户手动解锁,提高了操作的便捷性,并提高了解锁效率。In this way, when it is determined that the similarity between the first face image and the face verification image is greater than or equal to the preset similarity, the unlocking operation is automatically performed, avoiding the need for the user to manually unlock, improving the convenience of the operation, and Improved unlocking efficiency.

进一步地,当通过该距离传感器未检测到该第一遮挡物,且通过该前置摄像头采集的图像中不包括该第一人脸图像时,执行锁屏操作,并从该亮屏状态切换至该熄屏状态。Further, when the first obstruction is not detected by the distance sensor, and the first face image is not included in the image collected by the front camera, the screen lock operation is performed, and the screen is switched from the bright screen state to The screen-off state.

在实际应用场景中,由于当通过该距离传感器未检测到该第一遮挡物时,并不能完全说明用户当前不在使用终端,譬如,当用户将终端平放在桌面上时,终端通过该距离传感器可能检测不到用户,但实际上该用户可能仍在查看终端。因此,当通过该距离传感器未检测到第一遮挡物时,只能说明该用户可能不在使用终端,为了能够进一步准确地确定用户是否未在使用终端,该终端需要通过该前置摄像头进行图像采集,并对采集到的该图像进行图像处理,以判断该图像中是否包括第一人脸图像。In a practical application scenario, when the distance sensor does not detect the first obstruction, it does not fully indicate that the user is not using the terminal. For example, when the user lays the terminal on the desktop, the terminal passes the distance sensor. The user may not be detected, but in fact the user may still be looking at the terminal. Therefore, when the first obstruction is not detected by the distance sensor, it can only indicate that the user may not be using the terminal. In order to further accurately determine whether the user is not using the terminal, the terminal needs to use the front camera to capture images , and perform image processing on the collected image to determine whether the image includes the first face image.

也即是,当通过该距离传感器未检测到该第一遮挡物,且通过该前置摄像头采集的图像中不包括该第一人脸图像时,确定用户当前确实不在使用终端。此时,为了节省终端对电量的消耗,终端自动执行锁屏操作,并该亮屏状态切换至该熄屏状态。That is, when the distance sensor does not detect the first obstruction and the image collected by the front camera does not include the first face image, it is determined that the user is indeed not using the terminal. At this time, in order to save the power consumption of the terminal, the terminal automatically performs a screen-locking operation, and switches the screen-on state to the screen-off state.

如此,通过该距离传感器检测第一遮挡物以及通过前置摄像头进行图像采集,来确定该用户当前是否在使用终端,提高了确定的准确性。另外,在检测到无人使用该终端时,自动锁屏并熄屏,无需用户手动操作,提高了操作的便捷性,节省了功耗,并提高了用户体验。In this way, whether the user is currently using the terminal is determined by using the distance sensor to detect the first occluder and the front camera to perform image acquisition, which improves the accuracy of the determination. In addition, when it is detected that no one is using the terminal, the screen is automatically locked and turned off, without requiring manual operation by the user, which improves the convenience of operation, saves power consumption, and improves user experience.

至此,实现了对终端进行亮屏控制及自动解锁功能。另外,在实际实现中,在一些指定应用场景下,使用终端的用户可能不希望其它用户看到当前屏幕中显示的内容,为此,本公开实施还提供了对显示内容进行模糊处理的功能,其具体实现请参见如下几个实现步骤。So far, the functions of bright screen control and automatic unlocking of the terminal are realized. In addition, in actual implementation, in some specified application scenarios, the user of the terminal may not want other users to see the content displayed on the current screen. For this reason, the implementation of the present disclosure also provides a function of blurring the displayed content. For its specific implementation, please refer to the following implementation steps.

在步骤206中,在指定应用场景下,当通过该距离传感器检测到第二遮挡物且该第二遮挡物与该终端的屏幕之间的距离小于第二预设距离时,通过该前置摄像头采集第二图像,并对该第二图像进行图像处理。In step 206, under the specified application scenario, when a second obstruction is detected by the distance sensor and the distance between the second obstruction and the screen of the terminal is less than a second preset distance, the front camera is used A second image is acquired, and image processing is performed on the second image.

其中,该指定应用场景是指需要进行隐私保护的应用场景,例如,该指定应用场景可以包括但不限于网络视频聊天场景、查看隐私信息应用场景、使用指定应用的场景,其中,该指定应用可以由用户预先指定。也即是,在该指定应用场景中,正在使用终端的用户可能不希望其它用户看到屏幕中当前显示的内容,为此,当终端检测到有其它用户靠近并观看该屏幕时,可以对显示内容进行模糊处理,具体实现如下。The designated application scenario refers to an application scenario that requires privacy protection. For example, the designated application scenario may include but is not limited to an online video chat scenario, an application scenario for viewing private information, and a scenario for using a designated application, wherein the designated application may Pre-specified by the user. That is, in this specified application scenario, the user who is using the terminal may not want other users to see the content currently displayed on the screen. For this reason, when the terminal detects that other users are approaching and watching the screen, it can The content is blurred, and the specific implementation is as follows.

其中,该第二预设距离可以由用户根据实际需求自定义设置,也可以由终端默认设置,本公开实施例对此不做限定。The second preset distance may be set by the user according to actual needs, or may be set by default by the terminal, which is not limited in this embodiment of the present disclosure.

也即是,当终端通过该距离传感器检测到第二遮挡物且该第二遮挡物距离该终端的屏幕一定距离时,该终端通过该前置摄像头采集第二图像。其中,该前置摄像头可能处于后台运行,在该种情况下,可以在前端重新运行起该前置摄像头,以通过该前置摄像头采集第二图像。That is, when the terminal detects a second obstruction through the distance sensor and the second obstruction is at a certain distance from the screen of the terminal, the terminal collects the second image through the front camera. Wherein, the front camera may be running in the background, and in this case, the front camera may be re-run at the front end to collect the second image through the front camera.

同理,为了能够确定该第二遮挡物是否是其它用户的人脸,该终端对采集到的该第二图像进行图像处理,以判断采集的图像中是否包括第二人脸图像,其中,该第二人脸图像为与该第一人脸图像不同的任一人脸图像。Similarly, in order to be able to determine whether the second obstruction is the face of another user, the terminal performs image processing on the collected second image to determine whether the collected image includes a second face image, wherein the The second face image is any face image different from the first face image.

例如,请参考图2B,该图2B中的探测距离d可以指上述第二预设距离,该区域a是指该前置摄像头21能够采集到的图像区域。也即是,当终端通过距离传感器22检测到有第二遮挡物进入到距离d以内的区域时,通过前置摄像头21对区域a进行图像采集,之后,终端对采集到的图像进行图像处理,以判断采集的图像中是否包括第二人脸图像。For example, please refer to FIG. 2B , the detection distance d in FIG. 2B may refer to the above-mentioned second preset distance, and the area a refers to an image area that can be captured by the front camera 21 . That is, when the terminal detects through the distance sensor 22 that there is a second obstruction entering the area within the distance d, the front camera 21 is used to capture the image of the area a, and then the terminal performs image processing on the captured image, to determine whether the collected image includes the second face image.

在步骤207中,当经过图像处理后确定该第二图像中包括第二人脸图像时,对该屏幕当前显示的内容进行模糊处理。In step 207, when it is determined that the second image includes a second face image after image processing, blurring is performed on the content currently displayed on the screen.

当经过图像处理后确定该第二图像中包括第二人脸图像时,说明有其它用户正在观看终端的屏幕,此时,为了保护用户的隐私,终端对屏幕当前显示的内容进行模糊处理。如此,可以使得其它用户无法看清屏幕当前显示的内容,从而保护了使用该终端的用户的隐私。When it is determined after image processing that the second image includes a second face image, it indicates that other users are watching the screen of the terminal. At this time, in order to protect the privacy of the user, the terminal performs blur processing on the content currently displayed on the screen. In this way, other users can be prevented from seeing the content currently displayed on the screen, thereby protecting the privacy of the user using the terminal.

在步骤208中,当通过该距离传感器未检测到该第二遮挡物,且通过该前置摄像头采集的图像中不包括该第二人脸图像时,取消对该屏幕当前显示的内容的模糊处理。In step 208, when the second occluder is not detected by the distance sensor, and the image captured by the front camera does not include the second face image, cancel the blurring of the content currently displayed on the screen .

与前文所述同理,由于当通过该距离传感器未检测到第二遮挡物时,并不能完全确定其它用户已经不在观看屏幕的显示内容,因此,为了能够准确地确定其它用户是否确实未在观看屏幕的显示内容,终端还需要通过该前置摄像头进行图像采集,并对采集到的该图像进行图像处理。若经过图像处理后确定所采集的该图像中不包括该第二人脸图像,则确定其它用户确实已经不在观看屏幕的显示内容,此时,为了不耽误用户正常使用终端,可以取消对该屏幕当前显示的内容的模糊处理。In the same way as described above, because when the second obstruction is not detected by the distance sensor, it cannot be completely determined that other users are no longer watching the display content of the screen. Therefore, in order to accurately determine whether other users are indeed not watching For the display content of the screen, the terminal also needs to collect images through the front camera, and perform image processing on the collected images. If it is determined after image processing that the captured image does not include the second face image, it is determined that other users are indeed no longer watching the displayed content on the screen. At this time, in order not to delay the normal use of the terminal by the user, the screen can be cancelled. Obfuscation of the currently displayed content.

需要说明的是,这里仅是以当通过该距离传感器未检测到该第二遮挡物,且通过该前置摄像头采集的图像中不包括该第二人脸图像时,取消对该屏幕当前显示的内容的模糊处理为例进行说明。在另一实施例中,由于用户还可能不介意其它用户观看屏幕当前显示的内容,此时,为了不耽误用户正常使用该终端,还可以由该用户手动取消终端对该屏幕当前显示的内容的模糊处理。It should be noted that this is only to cancel the current display on the screen when the distance sensor does not detect the second occluder, and the image captured by the front camera does not include the second face image. The blurring of content will be described as an example. In another embodiment, since the user may not mind other users watching the content currently displayed on the screen, at this time, in order not to delay the normal use of the terminal by the user, the user may manually cancel the terminal's status of the content currently displayed on the screen. Obfuscation.

譬如,该终端还可以提供有取消模糊处理选项,当用户不需要终端对当前显示的内容进行模糊处理时,可以点击该取消模糊处理选项,以触发取消模糊处理指令,相应地,当终端接收到该取消模糊处理指令时,取消对该屏幕当前显示的内容的模糊处理。For example, the terminal may also be provided with an option to cancel the blurring processing. When the user does not need the terminal to perform blurring processing on the currently displayed content, the user can click the canceling blurring processing option to trigger the When the command to cancel the blurring processing is executed, the blurring processing of the content currently displayed on the screen is cancelled.

在本公开实施例中,在终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,说明可能是用户靠近该终端的屏幕。为了能够进一步确定该用户是否有查看屏幕的需求,启动该终端的前置摄像头,并通过该前置摄像头采集第一图像。之后,对该第一图像进行图像处理,如果经过图像处理后确定该第一图像中包括第一人脸图像,则说明用户正对着该终端,即用户有查看屏幕的需求,此时,从熄屏状态切换至亮屏状态,如此,无需用户手动操作,自动实现了亮屏控制,提高了操作的便捷性,从而提高了亮屏控制效率。In this embodiment of the present disclosure, when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than the first preset distance, The description may be that the user is close to the screen of the terminal. In order to further determine whether the user needs to view the screen, the front camera of the terminal is activated, and a first image is collected through the front camera. After that, image processing is performed on the first image. If it is determined that the first image includes the first face image after image processing, it means that the user is facing the terminal, that is, the user needs to view the screen. The screen-off state is switched to the screen-on state. In this way, the screen-on-screen control is automatically realized without the need for manual operation by the user, which improves the convenience of operation and improves the efficiency of screen-on-screen control.

图3A是根据一示例性实施例示出的一种亮屏控制装置的框图。参照图3A,该装置包括启动模块310,第一采集处理模块312和切换模块314。Fig. 3A is a block diagram of a bright screen control device according to an exemplary embodiment. Referring to FIG. 3A , the apparatus includes a start-up module 310 , a first acquisition and processing module 312 and a switch module 314 .

该启动模块310,用于在该终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,启动该终端的前置摄像头;The startup module 310 is used for when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than a first preset distance , start the front camera of the terminal;

该第一采集处理模块312,用于通过该前置摄像头采集第一图像,并对该第一图像进行图像处理;The first acquisition and processing module 312 is configured to acquire a first image through the front camera, and perform image processing on the first image;

该切换模块314,用于当经过图像处理后确定该第一图像中包括第一人脸图像时,从该熄屏状态切换至亮屏状态。The switching module 314 is configured to switch from the screen-off state to the screen-on state when it is determined that the first image includes the first face image after image processing.

可选地,请参考图3B,该装置还包括:Optionally, please refer to FIG. 3B, the device further includes:

确定模块316,用于确定该第一人脸图像与预先存储的人脸校验图像之间的相似度;Determining module 316, for determining the similarity between the first face image and the pre-stored face verification image;

解锁模块318,用于当该第一人脸图像与该人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作。The unlocking module 318 is configured to perform an unlocking operation when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity.

可选地,请参考图3C,该装置还包括:Optionally, please refer to FIG. 3C, the apparatus further includes:

第二采集处理模块320,用于在指定应用场景下,当通过该距离传感器检测到第二遮挡物且该第二遮挡物与该终端的屏幕之间的距离小于第二预设距离时,通过该前置摄像头采集第二图像,并对该第二图像进行图像处理;The second acquisition and processing module 320 is configured to, in a specified application scenario, when a second obstruction is detected by the distance sensor and the distance between the second obstruction and the screen of the terminal is less than the second preset distance, the The front camera collects a second image, and performs image processing on the second image;

模糊处理模块322,用于当经过图像处理后确定该第二图像中包括第二人脸图像时,对该屏幕当前显示的内容进行模糊处理,该第二人脸图像为与该第一人脸图像不同的任一人脸图像。The blurring processing module 322 is used for blurring the content currently displayed on the screen when it is determined that the second image includes a second face image after image processing, and the second face image is the same as the first face image. Any face image with different images.

可选地,请参考图3D,该装置还包括:Optionally, referring to FIG. 3D, the apparatus further includes:

取消模块324,用于当通过该距离传感器未检测到该第二遮挡物,且通过该前置摄像头采集的图像中不包括该第二人脸图像时,取消对该屏幕当前显示的内容的模糊处理。Cancellation module 324, configured to cancel the blurring of the content currently displayed on the screen when the distance sensor does not detect the second obstruction and the image captured by the front camera does not include the second face image deal with.

可选地,该切换模块314还用于:Optionally, the switching module 314 is also used for:

当通过该距离传感器未检测到该第一遮挡物,且通过该前置摄像头采集的图像中不包括该第一人脸图像时,执行锁屏操作,并从该亮屏状态切换至该熄屏状态。When the first obstruction is not detected by the distance sensor, and the image captured by the front camera does not include the first face image, the screen lock operation is performed, and the screen is switched from the screen-on state to the screen-off state state.

在本公开实施例中,在终端处于熄屏状态下,当通过配置的距离传感器检测到第一遮挡物且该第一遮挡物与该终端的屏幕之间的距离小于第一预设距离时,说明可能是用户靠近该终端的屏幕。为了能够进一步确定该用户是否有查看屏幕的需求,启动该终端的前置摄像头,并通过该前置摄像头采集第一图像。之后,对该第一图像进行图像处理,如果经过图像处理后确定该第一图像中包括第一人脸图像,则说明用户正对着该终端,即用户有查看屏幕的需求,此时,从熄屏状态切换至亮屏状态,如此,无需用户手动操作,自动实现了亮屏控制,提高了操作的便捷性,从而提高了亮屏控制效率。In this embodiment of the present disclosure, when the terminal is in a screen-off state, when a first obstruction is detected by the configured distance sensor and the distance between the first obstruction and the screen of the terminal is less than the first preset distance, The description may be that the user is close to the screen of the terminal. In order to further determine whether the user needs to view the screen, the front camera of the terminal is activated, and a first image is collected through the front camera. After that, image processing is performed on the first image. If it is determined that the first image includes the first face image after image processing, it means that the user is facing the terminal, that is, the user needs to view the screen. The screen-off state is switched to the screen-on state. In this way, the screen-on-screen control is automatically realized without the need for manual operation by the user, which improves the convenience of operation and improves the efficiency of screen-on-screen control.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图4是根据一示例性实施例示出的一种亮屏控制装置400的框图。例如,装置400可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 4 is a block diagram of a screen brightening control device 400 according to an exemplary embodiment. For example, apparatus 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图4,装置400可以包括以下一个或多个组件:处理组件402,存储器404,电源组件406,多媒体组件408,音频组件410,输入/输出(I/O)的接口412,传感器组件414,以及通信组件416。4, the apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power supply component 406, a multimedia component 408, an audio component 410, an input/output (I/O) interface 412, a sensor component 414, and communication component 416 .

处理组件402通常控制装置400的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件402可以包括一个或多个处理器420来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件402可以包括一个或多个模块,便于处理组件402和其他组件之间的交互。例如,处理组件402可以包括多媒体模块,以方便多媒体组件408和处理组件402之间的交互。The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 402 may include one or more modules that facilitate interaction between processing component 402 and other components. For example, processing component 402 may include a multimedia module to facilitate interaction between multimedia component 408 and processing component 402.

存储器404被配置为存储各种类型的数据以支持在装置400的操作。这些数据的示例包括用于在装置400上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器404可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 404 is configured to store various types of data to support operations at device 400 . Examples of such data include instructions for any application or method operating on device 400, contact data, phonebook data, messages, pictures, videos, and the like. Memory 404 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件406为装置400的各种组件提供电源。电源组件406可以包括电源管理系统,一个或多个电源,及其他与为装置400生成、管理和分配电源相关联的组件。Power supply assembly 406 provides power to the various components of device 400 . Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 400 .

多媒体组件408包括在所述装置400和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件408包括一个前置摄像头和/或后置摄像头。当装置400处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 408 includes screens that provide an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, multimedia component 408 includes a front-facing camera and/or a rear-facing camera. When the apparatus 400 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件410被配置为输出和/或输入音频信号。例如,音频组件410包括一个麦克风(MIC),当装置400处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器404或经由通信组件416发送。在一些实施例中,音频组件410还包括一个扬声器,用于输出音频信号。Audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when device 400 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 404 or transmitted via communication component 416 . In some embodiments, audio component 410 also includes a speaker for outputting audio signals.

I/O接口412为处理组件402和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 412 provides an interface between the processing component 402 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件414包括一个或多个传感器,用于为装置400提供各个方面的状态评估。例如,传感器组件414可以检测到装置400的打开/关闭状态,组件的相对定位,例如所述组件为装置400的显示器和小键盘,传感器组件414还可以检测装置400或装置400一个组件的位置改变,用户与装置400接触的存在或不存在,装置400方位或加速/减速和装置400的温度变化。传感器组件414可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件414还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件414还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 414 includes one or more sensors for providing status assessment of various aspects of device 400 . For example, the sensor assembly 414 can detect the open/closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect a change in the position of the device 400 or a component of the device 400 , the presence or absence of user contact with the device 400 , the orientation or acceleration/deceleration of the device 400 and the temperature change of the device 400 . Sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

通信组件416被配置为便于装置400和其他设备之间有线或无线方式的通信。装置400可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件416经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件416还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 416 is configured to facilitate wired or wireless communication between apparatus 400 and other devices. Device 400 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置400可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图1或图2A所示实施例提供的亮屏控制方法。In an exemplary embodiment, apparatus 400 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components are used to implement the bright screen control method provided by the embodiment shown in FIG. 1 or FIG. 2A.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器404,上述指令可由装置400的处理器420执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 404 including instructions, executable by the processor 420 of the apparatus 400 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行上述图1或图2A所示实施例提供的亮屏控制方法。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal can execute the bright screen control method provided by the embodiment shown in FIG. 1 or FIG. 2A .

一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述图1或图2A所示实施例提供的亮屏控制方法。A computer program product containing instructions, when running on a computer, causes the computer to execute the bright screen control method provided by the embodiment shown in FIG. 1 or FIG. 2A.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (4)

1.一种亮屏控制方法,应用于终端中,其特征在于,所述方法包括:1. A bright-screen control method, applied in a terminal, wherein the method comprises: 在所述终端处于熄屏状态下,当通过配置于所述终端前端的距离传感器检测到第一遮挡物且所述第一遮挡物与所述终端的屏幕之间的距离小于第一预设距离时,启动所述终端的前置摄像头;When the terminal is in a screen-off state, when a distance sensor disposed at the front end of the terminal detects a first obstruction and the distance between the first obstruction and the screen of the terminal is less than a first preset distance , start the front camera of the terminal; 通过所述前置摄像头采集第一图像,并对所述第一图像进行图像处理;当经过图像处理后确定所述第一图像中包括第一人脸图像时,从所述熄屏状态切换至亮屏状态;确定所述第一人脸图像与预先存储的人脸校验图像之间的相似度,所述人脸校验图像为对所述终端具有使用权限的用户的人脸图像,所述人脸校验图像是所述用户利用所述终端的摄像装置拍摄的,或者是利用除所述终端之外的其他终端拍摄的;当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作;Collect a first image through the front camera, and perform image processing on the first image; when it is determined that the first image includes a first face image after image processing, switch from the screen-off state to Bright screen state; determine the similarity between the first face image and a pre-stored face verification image, where the face verification image is a face image of a user who has permission to use the terminal, so The face verification image is taken by the user with the camera device of the terminal, or taken with a terminal other than the terminal; when the first face image is verified with the face verification When the similarity between the images is greater than or equal to the preset similarity, perform the unlocking operation; 所述当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作之后,还包括:When the similarity between the first face image and the face verification image is greater than or equal to a preset similarity, after the unlocking operation is performed, the method further includes: 当通过所述距离传感器未检测到所述第一遮挡物,且通过所述前置摄像头采集的图像中不包括所述第一人脸图像时,执行锁屏操作,并从所述亮屏状态切换至所述熄屏状态;When the first obstruction is not detected by the distance sensor, and the first face image is not included in the image captured by the front camera, the screen lock operation is performed, and the screen is turned on from the bright screen state. switch to the screen-off state; 所述方法还包括:The method also includes: 在指定应用场景下,当通过所述距离传感器检测到第二遮挡物且所述第二遮挡物与所述终端的屏幕之间的距离小于第二预设距离时,通过所述前置摄像头采集第二图像,并对所述第二图像进行图像处理,所述指定应用场景是指需要进行隐私保护的应用场景;当经过图像处理后确定所述第二图像中包括第二人脸图像时,对所述屏幕当前显示的内容进行模糊处理,所述第二人脸图像为与所述第一人脸图像不同的任一人脸图像;In a specified application scenario, when a second obstruction is detected by the distance sensor and the distance between the second obstruction and the screen of the terminal is less than a second preset distance, the front camera is used to collect a second image, and perform image processing on the second image, and the specified application scenario refers to an application scenario requiring privacy protection; when it is determined that the second image includes a second face image after image processing, Blur the content currently displayed on the screen, and the second face image is any face image different from the first face image; 当通过所述距离传感器未检测到所述第二遮挡物,且通过所述前置摄像头采集的图像中不包括所述第二人脸图像时,取消对所述屏幕当前显示的内容的模糊处理;当接收到取消模糊处理指令时,取消终端对该屏幕当前显示的内容的模糊处理,所述取消模糊处理指令为所述用户在不需要所述终端对当前显示的内容进行模糊处理时对取消模糊处理选项的点击操作触发的。When the second occluder is not detected by the distance sensor, and the image captured by the front camera does not include the second face image, cancel the blurring processing of the content currently displayed on the screen ; When receiving a cancel blurring instruction, cancel the blurring of the content currently displayed on the screen by the terminal, and the cancel blurring instruction is for the user to cancel the blurring of the currently displayed content when the terminal does not need to be blurred. Triggered by a click action on the obfuscation option. 2.一种亮屏控制装置,配置于终端中,其特征在于,所述装置包括:2. A screen brightening control device, configured in a terminal, wherein the device comprises: 启动模块,用于在所述终端处于熄屏状态下,当通过配置于所述终端前端的距离传感器检测到第一遮挡物且所述第一遮挡物与所述终端的屏幕之间的距离小于第一预设距离时,启动所述终端的前置摄像头;A startup module, used for when the terminal is in a screen-off state, when a distance sensor configured at the front end of the terminal detects a first obstruction and the distance between the first obstruction and the screen of the terminal is less than At the first preset distance, start the front camera of the terminal; 第一采集处理模块,用于通过所述前置摄像头采集第一图像,并对所述第一图像进行图像处理;a first acquisition and processing module, configured to acquire a first image through the front camera, and perform image processing on the first image; 切换模块,用于当经过图像处理后确定所述第一图像中包括第一人脸图像时,从所述熄屏状态切换至亮屏状态;a switching module, configured to switch from the screen-off state to the screen-on state when it is determined that the first image includes a first face image after image processing; 确定模块,用于确定所述第一人脸图像与预先存储的人脸校验图像之间的相似度,所述人脸校验图像为对所述终端具有使用权限的用户的人脸图像,所述人脸校验图像是所述用户利用所述终端的摄像装置拍摄的,或者是利用除所述终端之外的其他终端拍摄的;a determination module, configured to determine the similarity between the first face image and a pre-stored face verification image, where the face verification image is a face image of a user who has permission to use the terminal, The face verification image is taken by the user using the camera device of the terminal, or taken using a terminal other than the terminal; 解锁模块,用于当所述第一人脸图像与所述人脸校验图像之间的相似度大于或等于预设相似度时,执行解锁操作;an unlocking module, configured to perform an unlocking operation when the similarity between the first face image and the face verification image is greater than or equal to a preset similarity; 所述切换模块还用于:The switching module is also used for: 当通过所述距离传感器未检测到所述第一遮挡物,且通过所述前置摄像头采集的图像中不包括所述第一人脸图像时,执行锁屏操作,并从所述亮屏状态切换至所述熄屏状态;When the first obstruction is not detected by the distance sensor, and the first face image is not included in the image captured by the front camera, the screen lock operation is performed, and the screen is turned on from the bright screen state. switch to the screen-off state; 所述装置还包括:The device also includes: 第二采集处理模块,用于在指定应用场景下,当通过所述距离传感器检测到第二遮挡物且所述第二遮挡物与所述终端的屏幕之间的距离小于第二预设距离时,通过所述前置摄像头采集第二图像,并对所述第二图像进行图像处理,所述指定应用场景是指需要进行隐私保护的应用场景;The second acquisition and processing module is configured to, in a specified application scenario, when a second obstruction is detected by the distance sensor and the distance between the second obstruction and the screen of the terminal is less than a second preset distance , collecting a second image through the front camera, and performing image processing on the second image, and the specified application scenario refers to an application scenario that requires privacy protection; 模糊处理模块,用于当经过图像处理后确定所述第二图像中包括第二人脸图像时,对所述屏幕当前显示的内容进行模糊处理,所述第二人脸图像为与所述第一人脸图像不同的任一人脸图像;The blurring processing module is configured to perform blur processing on the content currently displayed on the screen when it is determined that the second image includes a second face image after image processing, and the second face image is the same as the second face image. Any face image with a different face image; 取消模块,用于当通过所述距离传感器未检测到所述第二遮挡物,且通过所述前置摄像头采集的图像中不包括所述第二人脸图像时,取消对所述屏幕当前显示的内容的模糊处理;当接收到取消模糊处理指令时,取消终端对该屏幕当前显示的内容的模糊处理,所述取消模糊处理指令为所述用户在不需要所述终端对当前显示的内容进行模糊处理时对取消模糊处理选项的点击操作触发的。a cancellation module, configured to cancel the current display on the screen when the distance sensor does not detect the second obstruction and the image collected by the front camera does not include the second face image The blurring of the content of the screen; when receiving the unblurring instruction, the terminal will cancel the blurring of the content currently displayed on the screen, and the unblurring instruction is that the user does not need the terminal to perform the currently displayed content. Triggered by a click on the unblur option during blurring. 3.一种亮屏控制装置,配置于终端中,其特征在于,所述装置包括:3. A screen brightening control device, configured in a terminal, wherein the device comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为执行权利要求1所述的方法的步骤。wherein the processor is configured to perform the steps of the method of claim 1 . 4.一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,其特征在于,所述指令被处理器执行时实现权利要求1所述的方法的步骤。4. A computer-readable storage medium on which instructions are stored, wherein when the instructions are executed by a processor, the steps of the method of claim 1 are implemented.
CN201710875651.9A 2017-09-25 2017-09-25 Bright screen control method and device and storage medium Active CN109557999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710875651.9A CN109557999B (en) 2017-09-25 2017-09-25 Bright screen control method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710875651.9A CN109557999B (en) 2017-09-25 2017-09-25 Bright screen control method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109557999A CN109557999A (en) 2019-04-02
CN109557999B true CN109557999B (en) 2022-08-26

Family

ID=65862587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710875651.9A Active CN109557999B (en) 2017-09-25 2017-09-25 Bright screen control method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109557999B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597561A (en) * 2019-09-09 2019-12-20 上海赛连信息科技有限公司 Method, medium and device for displaying identification and computing equipment
WO2021092811A1 (en) * 2019-11-13 2021-05-20 Oppo广东移动通信有限公司 Proximity detection method, terminal and storage medium
CN111368670A (en) * 2020-02-26 2020-07-03 上海依图信息技术有限公司 Face recognition method and device, readable medium and system
CN111383597B (en) * 2020-03-25 2021-07-06 武汉华星光电半导体显示技术有限公司 Pixel circuit and full-screen display equipment
CN111736725A (en) * 2020-06-10 2020-10-02 京东方科技集团股份有限公司 Smart mirror and smart mirror wake-up method
CN114125143B (en) * 2020-08-31 2023-04-07 华为技术有限公司 Voice interaction method and electronic equipment
CN116112597B (en) 2020-09-03 2023-10-20 荣耀终端有限公司 Electronic equipment with off-screen display function, method for displaying off-screen interface of electronic equipment and storage medium
CN113190119A (en) * 2021-05-06 2021-07-30 Tcl通讯(宁波)有限公司 Mobile terminal screen lighting control method and device, mobile terminal and storage medium
CN113674671A (en) * 2021-08-18 2021-11-19 惠科股份有限公司 Control method, peripheral controller, and display device
CN116450067A (en) 2022-01-10 2023-07-18 荣耀终端有限公司 Screen-off display control method, electronic device and storage medium
CN114125148B (en) * 2022-01-11 2022-06-24 荣耀终端有限公司 Control method for operating mode of electronic device, electronic device and readable storage medium
CN114739632A (en) * 2022-04-01 2022-07-12 珠海读书郎软件科技有限公司 A rapid test method, storage medium and device for display screen based on the whole machine
CN115529405B (en) * 2022-09-22 2025-07-15 维沃移动通信有限公司 Image display method and device for front camera
CN115602137A (en) * 2022-09-27 2023-01-13 深圳绿米联创科技有限公司(Cn) Target equipment control method and device, target equipment and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202483A (en) * 2014-08-20 2014-12-10 厦门美图移动科技有限公司 Display screen switch controller of mobile terminal
WO2015188516A1 (en) * 2014-06-13 2015-12-17 中兴通讯股份有限公司 Terminal application self-adaptive display method and device
CN105549739A (en) * 2015-12-10 2016-05-04 魅族科技(中国)有限公司 Screen lighting method and terminal
CN106295596A (en) * 2016-08-17 2017-01-04 深圳市金立通信设备有限公司 A kind of unlocking method based on recognition of face and terminal
CN106326867A (en) * 2016-08-26 2017-01-11 维沃移动通信有限公司 Face recognition method and mobile terminal
CN106599716A (en) * 2016-11-30 2017-04-26 广东欧珀移动通信有限公司 Method, device and mobile terminal for protecting message content
CN107015745A (en) * 2017-05-19 2017-08-04 广东小天才科技有限公司 Screen operation method and device, terminal equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015188516A1 (en) * 2014-06-13 2015-12-17 中兴通讯股份有限公司 Terminal application self-adaptive display method and device
CN104202483A (en) * 2014-08-20 2014-12-10 厦门美图移动科技有限公司 Display screen switch controller of mobile terminal
CN105549739A (en) * 2015-12-10 2016-05-04 魅族科技(中国)有限公司 Screen lighting method and terminal
CN106295596A (en) * 2016-08-17 2017-01-04 深圳市金立通信设备有限公司 A kind of unlocking method based on recognition of face and terminal
CN106326867A (en) * 2016-08-26 2017-01-11 维沃移动通信有限公司 Face recognition method and mobile terminal
CN106599716A (en) * 2016-11-30 2017-04-26 广东欧珀移动通信有限公司 Method, device and mobile terminal for protecting message content
CN107015745A (en) * 2017-05-19 2017-08-04 广东小天才科技有限公司 Screen operation method and device, terminal equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109557999A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN109557999B (en) Bright screen control method and device and storage medium
CN105159640B (en) Display interface rotating method and device and mobile terminal
US10292004B2 (en) Method, device and medium for acquiring location information
CN106357934B (en) Screen locking control method and device
CN105260732A (en) Image processing method and device
CN105868709B (en) Method and device for closing fingerprint identification function
CN105956486B (en) Remote control method and device
WO2017071050A1 (en) Mistaken touch prevention method and device for terminal with touch screen
US20170344177A1 (en) Method and device for determining operation mode of terminal
CN109992946A (en) Method, apparatus, and computer-readable storage medium for unlocking an application
CN105245775A (en) Method and device for camera imaging, and mobile terminal
CN107102801A (en) Terminal screen spinning solution and device
CN105678133A (en) Terminal unlocking method and device
CN105930721B (en) A kind of method and apparatus managing application program
CN111385456A (en) Photographing preview method and device and storage medium
WO2017201891A1 (en) Method and apparatus for controlling state of touch control screen, and electronic device
CN106547462B (en) Photographing control method and device and mobile terminal
CN104850643B (en) Image comparison method and device
CN104360875B (en) Privacy mode starts method and apparatus
CN105208378B (en) Camera head protecting method, apparatus and terminal
CN106611112A (en) Application program safe processing method, device and equipment
CN105915806A (en) Picture shooting method and device
CN106570381B (en) Fingerprint unlocking method and device
CN106778198A (en) Perform the safety certifying method and device of operation
CN107948876B (en) Method, device and medium for controlling sound box equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载