CN107741814B - Display control method and mobile terminal - Google Patents

Display control method and mobile terminal Download PDF

Info

Publication number
CN107741814B
CN107741814B CN201710959040.2A CN201710959040A CN107741814B CN 107741814 B CN107741814 B CN 107741814B CN 201710959040 A CN201710959040 A CN 201710959040A CN 107741814 B CN107741814 B CN 107741814B
Authority
CN
China
Prior art keywords
display
real
mobile terminal
target object
distance
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
CN201710959040.2A
Other languages
Chinese (zh)
Other versions
CN107741814A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710959040.2A priority Critical patent/CN107741814B/en
Publication of CN107741814A publication Critical patent/CN107741814A/en
Application granted granted Critical
Publication of CN107741814B publication Critical patent/CN107741814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/143Sensing or illuminating at different wavelengths
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明提供一种显示控制方法及移动终端,涉及通信技术领域。该显示控制方法,包括:获取移动终端操作者的面部与移动终端的显示屏之间的实时距离;基于所述实时距离,调节移动终端的显示屏显示的目标对象的显示比例。本发明的方案用于解决现有缩放控制方式中因用户手动操作的局限性而降低移动终端的使用便捷性的问题。

Figure 201710959040

The present invention provides a display control method and a mobile terminal, which relate to the technical field of communications. The display control method includes: acquiring the real-time distance between the face of the mobile terminal operator and the display screen of the mobile terminal; and adjusting the display scale of the target object displayed on the display screen of the mobile terminal based on the real-time distance. The solution of the present invention is used to solve the problem that the convenience of use of the mobile terminal is reduced due to the limitation of manual operation by the user in the existing zoom control mode.

Figure 201710959040

Description

一种显示控制方法及移动终端A display control method and mobile terminal

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种显示控制方法及移动终端。The present invention relates to the field of communication technologies, and in particular, to a display control method and a mobile terminal.

背景技术Background technique

随着通信技术的飞速发展,移动终端的功能越来越多样化,给人们的生活 带来了极大的便利。尤其是对于移动终端显示的内容,用户在浏览过程中,往 往会根据个人需求,对某些内容进行放大或缩小查看。With the rapid development of communication technology, the functions of mobile terminals are becoming more and more diversified, which brings great convenience to people's lives. Especially for the content displayed by the mobile terminal, during the browsing process, the user often zooms in or zooms out some content to view according to personal needs.

现有的缩放方式,一种需要用两个手指在移动终端屏幕上做划开或者并拢 的操作,一种需要对显示内容双击操作,才可触发显示内容的缩放。然而,第 一种方式不便于用户在需要单手操作的场景完成缩放操作;第二种方式拘于同 一个操作,不能针对用户需求进行选择缩放。因此,现有的缩放方式具有一定 的局限性,降低了移动终端的使用便捷性。In the existing zooming methods, one requires two fingers to swipe away or close together on the screen of the mobile terminal, and another requires a double-click operation on the displayed content to trigger the zooming of the displayed content. However, the first method is inconvenient for the user to complete the zoom operation in a scene requiring one-handed operation; the second method is limited to the same operation, and cannot be selected and zoomed according to the user's needs. Therefore, the existing scaling method has certain limitations, which reduces the convenience of using the mobile terminal.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种显示控制方法及移动终端,以解决现有的缩放控制 方式中因用户手动操作的局限性而降低移动终端的使用便捷性的问题。Embodiments of the present invention provide a display control method and a mobile terminal, so as to solve the problem that the convenience of use of the mobile terminal is reduced due to the limitation of manual operation by the user in the existing zoom control method.

为了解决上述技术问题,本发明是这样实现的:一种显示控制方法,包括:In order to solve the above-mentioned technical problems, the present invention is realized as follows: a display control method, comprising:

获取移动终端操作者的面部与移动终端的显示屏之间的实时距离;Obtain the real-time distance between the mobile terminal operator's face and the display screen of the mobile terminal;

基于所述实时距离,调节移动终端的显示屏显示的目标对象的显示比例。Based on the real-time distance, the display scale of the target object displayed on the display screen of the mobile terminal is adjusted.

第一方面,本发明的实施例还提供了一种移动终端,包括:In a first aspect, an embodiment of the present invention further provides a mobile terminal, including:

获取模块,用于获取移动终端操作者的面部与移动终端的显示屏之间的实 时距离;an acquisition module for acquiring the real-time distance between the mobile terminal operator's face and the display screen of the mobile terminal;

调节模块,用于基于所述实时距离,调节移动终端的显示屏显示的目标对 象的显示比例。An adjustment module, configured to adjust the display scale of the target object displayed on the display screen of the mobile terminal based on the real-time distance.

第二方面,本发明实施例还提供了一种移动终端,包括处理器、存储器及 存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序 被所述处理器执行时实现如上所述的显示控制方法的步骤。In a second aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor When executed, the steps of the display control method as described above are realized.

第三方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机 可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上 所述的显示控制方法的步骤。In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the display control method as described above is implemented. step.

这样,本发明实施例中,首先将获取移动终端操作者的面部与移动终端的 显示屏之间的实时距离;然后基于该实时距离,调节移动终端的显示屏显示的 目标对象的显示比例,完成用户需要的查看。由于调节目标对象的显示比例主 要所依据的是显示屏和操作者面部之间的实时距离,能够适用更多的场景,有 效解决了现有方式的手动缩放控制操作的局限性,提升了移动终端的使用便捷 性。In this way, in the embodiment of the present invention, the real-time distance between the face of the mobile terminal operator and the display screen of the mobile terminal is obtained first; then based on the real-time distance, the display ratio of the target object displayed on the display screen of the mobile terminal is adjusted to complete the User needs to view. Since the adjustment of the display ratio of the target object is mainly based on the real-time distance between the display screen and the operator's face, it can be applied to more scenarios, effectively solving the limitations of the existing manual zoom control operation, and improving the mobile terminal. ease of use.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述 中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本 发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的 前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1为本发明实施例的显示控制方法的流程示意图之一;FIG. 1 is one of the schematic flowcharts of the display control method according to the embodiment of the present invention;

图2为本发明实施例的显示控制方法的流程示意图之二;2 is a second schematic flowchart of a display control method according to an embodiment of the present invention;

图3为用户的面部与显示屏的距离示意图之一;Fig. 3 is one of the schematic diagrams of the distance between the user's face and the display screen;

图4为用户的面部与显示屏的距离示意图之二;Fig. 4 is the second schematic diagram of the distance between the user's face and the display screen;

图5为用户的面部与显示屏的距离示意图之三;Fig. 5 is the third schematic diagram of the distance between the user's face and the display screen;

图6为本发明实施例的显示控制方法的流程示意图之三;6 is a third schematic flowchart of a display control method according to an embodiment of the present invention;

图7为本发明实施例的显示控制方法的流程示意图之四;FIG. 7 is a fourth schematic flowchart of a display control method according to an embodiment of the present invention;

图8为本发明实施例的移动终端的结构示意图之一;FIG. 8 is one of schematic structural diagrams of a mobile terminal according to an embodiment of the present invention;

图9为本发明实施例的移动终端的结构示意图之二;FIG. 9 is a second schematic structural diagram of a mobile terminal according to an embodiment of the present invention;

图10为本发明实施例的移动终端的结构示意图之三;FIG. 10 is a third schematic structural diagram of a mobile terminal according to an embodiment of the present invention;

图11为本发明另一实施例的移动终端的结构示意图。FIG. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部 的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

如图1所示,本发明实施例的显示控制方法,包括:As shown in FIG. 1, a display control method according to an embodiment of the present invention includes:

步骤101,获取移动终端操作者的面部与移动终端的显示屏之间的实时距 离。Step 101: Obtain the real-time distance between the face of the mobile terminal operator and the display screen of the mobile terminal.

本步骤中,应用本发明实施例的显示控制方法的移动终端,将通过获取移 动终端的显示屏与操作该移动终端的操作者的面部之间的实时距离,来为下一 步的控制提供基础。In this step, the mobile terminal applying the display control method of the embodiment of the present invention will provide a basis for the next control by obtaining the real-time distance between the display screen of the mobile terminal and the face of the operator operating the mobile terminal.

步骤102,基于所述实时距离,调节移动终端的显示屏显示的目标对象的 显示比例。Step 102: Based on the real-time distance, adjust the display scale of the target object displayed on the display screen of the mobile terminal.

本步骤中,在步骤101获取到显示屏与操作者的面部之间的实时距离后, 就能够依据该实时距离,了解到用户对目标对象的查看需求,进而进行对应的 控制操作,以便于用户查看。In this step, after the real-time distance between the display screen and the operator's face is acquired in step 101, the user's viewing requirements for the target object can be learned according to the real-time distance, and corresponding control operations can be performed to facilitate the user Check.

通过上述步骤101和步骤102,本发明实施例的显示控制方法,首先将获 取移动终端的显示屏与操作该移动终端的操作者的面部之间的实时距离;然后 基于该实时距离,来调节目标对象在显示屏显示的显示比例,进行对应的缩小 或放大操作,完成用户需要的查看。由于调节目标对象的显示比例主要所依据 的是显示屏和操作者面部之间的实时距离,能够适用更多的场景,有效解决了 现有方式的手动缩放控制操作的局限性,提升了移动终端的使用便捷性。Through the above steps 101 and 102, the display control method of the embodiment of the present invention first acquires the real-time distance between the display screen of the mobile terminal and the face of the operator who operates the mobile terminal; and then adjusts the target based on the real-time distance. The display scale of the object displayed on the display screen, and the corresponding zoom-in or zoom-in operation is performed to complete the viewing required by the user. Since the adjustment of the display ratio of the target object is mainly based on the real-time distance between the display screen and the operator's face, it can be applied to more scenarios, effectively solving the limitations of the existing manual zoom control operation, and improving the mobile terminal. ease of use.

应该知道的是,应用了本发明实施例的显示控制方法的移动终端,若一直 进行显示屏与操作者的面部之间的距离获取,将造成资源的浪费。所以,只有 在显示屏的当前显示内容为具有缩放需求时,才会生效,优选的,移动终端将 对显示屏的当前显示内容进行确认,若当前显示内容为预设的具有缩放需求的 应用类型,才会执行上述步骤101和102;反之,则不会执行上述步骤。It should be known that, for the mobile terminal to which the display control method of the embodiment of the present invention is applied, if the distance between the display screen and the operator's face is continuously acquired, resources will be wasted. Therefore, it will only take effect when the current display content of the display screen has a zoom requirement. Preferably, the mobile terminal will confirm the current display content of the display screen. If the current display content is a preset application type with zoom requirements , the above steps 101 and 102 will be executed; otherwise, the above steps will not be executed.

其中,预设的具有缩放需求的应用类型,可以是图片、地图或者新闻应用 等。因为这些应用类型有时为了对其某个细节看的更清楚,需要其或其中某个 部分放大,因此往往会定义为具有缩放需求的应用类型。而对于音乐播放器、 应用商城或者游戏商城等,由于没有什么场景需要对其进行缩放,也不会将其 定义为具有缩放需求的应用类型。Among them, the preset application type with zoom requirements may be a picture, a map, or a news application. Because these application types sometimes need to be enlarged in order to see a certain detail more clearly, they are often defined as application types with zoom requirements. For music players, application malls or game malls, etc., since there are no scenarios that need to be scaled, they will not be defined as application types with scaling requirements.

在当前显示内容为预设的具有缩放需求的应用类型时,如图1所示,按照 步骤101和步骤102来实现对目标对象的显示比例的调节。为得到更为精确的 距离,具体的,步骤101包括:When the currently displayed content is a preset application type with scaling requirements, as shown in FIG. 1 , the adjustment of the display scale of the target object is implemented according to steps 101 and 102. In order to obtain a more accurate distance, specifically, step 101 includes:

通过所述移动终端的结构光模组对操作者进行面部识别,并在识别到面部 后,获取所述操作者的面部与所述显示屏之间的实时距离。Carry out facial recognition to the operator by the structured light module of the mobile terminal, and after recognizing the face, obtain the real-time distance between the operator's face and the display screen.

移动终端的结构光模组包括两个部分:红外发射器和红外摄像头。这里, 红外发射器会发射具有特定图案的红外光,照射到物体表面之后反射,红外摄 像头接收反射的红外光图案后,即能够解析计算出物体与移动终端的距离。而 红外摄像头还能够对物体进行面部识别,因此,通过结构光模组获取到的实时 距离,将能够确定为操作者的面部与显示屏之间的实时距离,避免由于其它遮 挡物而出现误差。The structured light module of the mobile terminal includes two parts: an infrared transmitter and an infrared camera. Here, the infrared transmitter emits infrared light with a specific pattern, which is reflected on the surface of the object. After receiving the reflected infrared light pattern, the infrared camera can analyze and calculate the distance between the object and the mobile terminal. The infrared camera can also perform facial recognition on objects. Therefore, the real-time distance obtained by the structured light module can be determined as the real-time distance between the operator's face and the display screen, avoiding errors due to other obstructions.

而在获取到该实时距离后,即可基于该实时距离,进行目标对象的显示比 例的调节。优选的,步骤102包括:After the real-time distance is obtained, the display scale of the target object can be adjusted based on the real-time distance. Preferably, step 102 includes:

检测所述实时距离的变化信息;detecting the change information of the real-time distance;

根据所述变化信息,确定所述目标对象的比例调节参数;According to the change information, determine the scale adjustment parameter of the target object;

按照所述比例调节参数,调节移动终端的显示屏显示的目标对象的显示比 例。According to the scale adjustment parameter, the display scale of the target object displayed on the display screen of the mobile terminal is adjusted.

该实施例中,在结构光模组开启之后,通过该结构光模组将能够获取到实 时检测到的显示屏与操作者的面部之间的距离,因此,对应的能够进一步检测 到该实时距离的变化信息,然后由变化信息来明确出目标对象的比例调节参数, 并按照该比例调节参数,调节移动终端的显示屏显示的目标对象的显示比例, 对目标对象进行缩小或放大显示。In this embodiment, after the structured light module is turned on, the real-time detected distance between the display screen and the operator's face can be obtained through the structured light module. Therefore, the corresponding real-time distance can be further detected. Then, the scale adjustment parameter of the target object is specified by the change information, and according to the scale adjustment parameter, the display scale of the target object displayed on the display screen of the mobile terminal is adjusted, and the target object is reduced or enlarged to display.

其中,由于变化是相对的,为了更好的了解距离的变化,在上述实施例中, 所述检测所述实时距离的变化信息的步骤,包括:Wherein, since the change is relative, in order to better understand the change of the distance, in the above embodiment, the step of detecting the change information of the real-time distance includes:

获取所述操作者的面部和显示屏之间的初始距离;obtaining the initial distance between the operator's face and the display screen;

将所述初始距离确定为基准距离;determining the initial distance as a reference distance;

检测所述实时距离相对所述基准距离的变化信息。Change information of the real-time distance relative to the reference distance is detected.

这里,首先会获取操作者的面部和显示屏之间的初始距离,然后将获取到 的初始距离确定为基准距离,之后就能够检测该实时距离相对于基准距离的变 化信息,以得到更为明确的变化信息。其中,初始距离常选用启用结构光模组 后,得到的第一个显示屏与操作者的面部之间的距离。Here, the initial distance between the operator's face and the display screen is obtained first, and then the obtained initial distance is determined as the reference distance, and then the change information of the real-time distance relative to the reference distance can be detected to obtain a more precise change information. Among them, the initial distance is usually the distance between the first display screen and the operator's face obtained after enabling the structured light module.

但是,考虑到实际应用中,许多场景中会发生距离的变化,如在浏览图片 时,用户可能因其它事情直接将移动终端放到桌面上,距离发生了变化,却并 不需要对目标对象进行缩小或放大显示。若单纯的根据距离的增大或减小来确 定对目标对象进行缩小或放大显示,并不能符合实际的应用需求。所以,本发 明实施例中,优选的,移动终端将通过判断发生了距离迅速变化并迅速回到基 准距离的事件,进行相应的操作。However, considering that in practical applications, the distance will change in many scenarios. For example, when browsing pictures, the user may directly put the mobile terminal on the desktop due to other things. Zoom out or zoom in. If it is determined to reduce or enlarge the target object simply according to the increase or decrease of the distance, it cannot meet the actual application requirements. Therefore, in this embodiment of the present invention, preferably, the mobile terminal will perform corresponding operations by judging that an event in which the distance changes rapidly and returns to the reference distance quickly occurs.

因此,所述变化信息包括:所述实时距离相对所述基准距离的变化方向, 所述实时距离与所述基准距离的绝对差值从增大到减小至预设阈值的时间,和 所述绝对差值的最大值。Therefore, the change information includes: the change direction of the real-time distance relative to the reference distance, the time when the absolute difference between the real-time distance and the reference distance increases to a preset threshold value, and the The maximum value of the absolute difference.

其中,实时距离相对基准距离的变化方向,是指实时距离与基准距离相比 是增大还是减小,若操作者较基准距离的位置远离该移动终端的显示屏,则确 定变化方向为增大;若作者较基准距离的位置靠近该移动终端的显示屏,则确 定变化方向为减小。且在回到基准距离的过程中,考虑到人为无法达到完全准 确,还设定了预设阈值,来避免误判断,该预设阈值并不为一个具体值,优选 为一个范围值。The change direction of the real-time distance relative to the reference distance refers to whether the real-time distance increases or decreases compared with the reference distance. If the operator is farther from the display screen of the mobile terminal than the reference distance, the change direction is determined to be increasing. ; If the author is closer to the display screen of the mobile terminal than the reference distance, the change direction is determined to be decreasing. And in the process of returning to the reference distance, considering that human beings cannot achieve complete accuracy, a preset threshold value is also set to avoid misjudgment, the preset threshold value is not a specific value, preferably a range value.

进一步地,所述按照所述比例调节参数,调节移动终端的显示屏显示的目 标对象的显示比例的步骤,包括:Further, the described proportional adjustment parameter, the step of adjusting the display ratio of the target object displayed on the display screen of the mobile terminal, includes:

若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基 准距离的变化为先增大后减小,则按照所述绝对差值的最大值对应的第一显示 比例,对所述目标对象进行放大显示;If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance is to increase first and then decrease, then the first display scale corresponding to the maximum value of the absolute difference will be used. , the target object is enlarged and displayed;

若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基 准距离的变化为先减小后增大,则按照所述绝对差值的最大值对应的第二显示 比例,对所述目标对象进行缩小显示。If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance first decreases and then increases, then the second display scale corresponding to the maximum value of the absolute difference will be used. to display the target object in a reduced size.

这样,在变化信息中的时间小于预设时长时,就能够确定发生了距离迅速 变化并迅速回到基准距离的事件,需要调节目标对象的显示比例,进行放大或 缩小操作。并且移动终端中预设了不同显示比例与绝对差值的最大值的对应关 系,由变化信息中绝对差值的最大值,确定出将要使用的显示比例。在变化方 向表示该距离相对基准距离的变化为先增大后减小时,将按照变化信息中绝对 差值的最大值对应的第一显示比例,对该目标对象进行放大显示;而在变化方 向表示距离相对基准距离的变化为先减小后增大时,按照绝对差值的最大值对 应的第二显示比例,对目标对象进行缩小显示。In this way, when the time in the change information is less than the preset time period, it can be determined that an event in which the distance changes rapidly and returns to the reference distance quickly, and it is necessary to adjust the display scale of the target object and perform zoom-in or zoom-out operations. And the corresponding relationship between different display ratios and the maximum value of the absolute difference is preset in the mobile terminal, and the display ratio to be used is determined by the maximum value of the absolute difference in the change information. When the change direction indicates that the change of the distance relative to the reference distance is to increase first and then decrease, the target object will be enlarged and displayed according to the first display scale corresponding to the maximum value of the absolute difference in the change information; When the change of the distance relative to the reference distance is to decrease first and then increase, the target object is displayed in a reduced size according to the second display ratio corresponding to the maximum value of the absolute difference.

当然,为了区别缩小和放大的比例,需结合变化方向,在对应的缩小比例 预设关系或放大比例预设关系中确定各自的显示比例。Of course, in order to distinguish the reduction ratio and the enlargement ratio, it is necessary to determine the respective display ratios in the corresponding reduction ratio preset relationship or enlargement ratio preset relationship according to the change direction.

例如用户A操作移动终端浏览图片,由于图片为预设的具有缩放需求的 应用类型,故,如图2所示:For example, user A operates a mobile terminal to browse pictures, because the picture is a preset application type with scaling requirements, therefore, as shown in Figure 2:

步骤201,将通过移动终端的结构光模组对操作者(用户A)进行面部识 别,并获取该操作者的面部与显示屏的实时距离。In step 201, the operator (user A) will be recognized by the structured light module of the mobile terminal, and the real-time distance between the operator's face and the display screen will be obtained.

步骤202,将获取到的初始距离确定为基准距离。Step 202, determining the obtained initial distance as the reference distance.

在打开结构光模组时,检测到的第一个显示屏与操作者的面部之间的距离 如图3所示为L1。When the structured light module is turned on, the detected distance between the first display screen and the operator's face is L1 as shown in Figure 3.

步骤203,确定实时距离相对基准距离的变化信息。Step 203: Determine the change information of the real-time distance relative to the reference distance.

打开的结构光模组实时检测用户A浏览图片时,其面部与显示屏的距离, 得到相对步骤202确定的基准距离的变化信息,该变化信息包括:实时距离相 对基准距离的变化方向,实时距离与基准距离的绝对差值从增大到减小至预设 阈值的时间,和绝对差值的最大值。The opened structured light module detects the distance between user A's face and the display screen in real time when browsing pictures, and obtains change information relative to the reference distance determined in step 202, the change information includes: the change direction of the real-time distance relative to the reference distance, the real-time distance The time for the absolute difference from the reference distance from increasing to decreasing to the preset threshold, and the maximum value of the absolute difference.

步骤204,若时间小于预设时长,且变化方向表示实时距离相对基准距离 的变化为先增大后减小,则按照绝对差值的最大值对应的显示比例,对目标对 象进行放大显示;若时间小于预设时长,且变化方向表示实时距离相对基准距 离的变化为先减小后增大时,按照绝对差值的最大值对应的显示比例,对目标 对象进行缩小显示。Step 204, if the time is less than the preset duration, and the change direction indicates that the change of the real-time distance relative to the reference distance is to increase first and then decrease, then according to the display ratio corresponding to the maximum value of the absolute difference, the target object is enlarged and displayed; if When the time is less than the preset time length, and the change direction indicates that the change of the real-time distance relative to the reference distance first decreases and then increases, the target object is displayed in a reduced size according to the display ratio corresponding to the maximum value of the absolute difference.

通过变化信息,了解到其中的时间小于预设时长,就能够确定发生了距离 迅速变化并迅速回到基准距离的事件,之后,再结合变化方向和绝对差值的最 大值来完成对目标对象的相应操作。假设实时距离相对基准距离的变化为先增 大后减小,且如图4所示,用户A的面部移动到与显示屏的最远距离为L2, 则由|L2-L1|在放大比例预设关系中确定出对应显示比例,然后将图片按照该显 示比例进行放大。假设距离相对基准距离的变化为先减小后增大,且如图5 所示,用户A的面部移动到与显示屏的最近距离为L3,则由|L3-L1|在缩小比 例预设关系中确定出对应显示比例,然后将图片按照该显示比例进行缩小。Through the change information, knowing that the time is less than the preset time length, it can be determined that the event that the distance changes rapidly and quickly returns to the reference distance, and then combines the change direction and the maximum value of the absolute difference to complete the target object. Operate accordingly. Assuming that the change of the real-time distance relative to the reference distance is to increase first and then decrease, and as shown in Fig. 4, the farthest distance between the face of user A and the display screen is L2, then by |L2-L1| The corresponding display ratio is determined in the setting relationship, and then the picture is enlarged according to the display ratio. Assuming that the change of the distance relative to the reference distance is to decrease first and then increase, and as shown in Figure 5, the closest distance between the face of user A and the display screen is L3, then the relationship between |L3-L1| is preset in the reduction ratio Determine the corresponding display ratio in the , and then reduce the picture according to the display ratio.

此外,在本发明实施例中,移动终端还能够通过判断发生了距离变化并触 发了缩放指令的事件,进行相应的操作。因此,所述根据所述变化信息,确定 所述目标对象的比例调节参数的步骤之前,还包括:In addition, in this embodiment of the present invention, the mobile terminal can also perform corresponding operations by judging that a distance change occurs and an event that triggers a zoom instruction. Therefore, before the step of determining the scale adjustment parameter of the target object according to the change information, it also includes:

检测是否接收到缩放指令;Detect whether a zoom command is received;

若接收到用户输入的缩放指令,则执行所述根据所述变化信息,确定所述 目标对象的比例调节参数的步骤。If the zoom instruction input by the user is received, the step of determining the scale adjustment parameter of the target object according to the change information is performed.

其中,所述变化信息包括:所述实时距离相对所述基准距离的变化方向, 和所述实时距离与所述基准距离的绝对差值的最大值。The change information includes: the change direction of the real-time distance relative to the reference distance, and the maximum value of the absolute difference between the real-time distance and the reference distance.

这样,在接收到该缩放指令,了解到用户具有对目标对象的缩放需求时, 就会根据实时距离相对基准距离的变化方向,以及实时距离与基准距离的绝对 差值的最大值来进行相应的操作。其中,为便于用户输入,该缩放指令的触发 方式可以是操作者的手指对显示屏的触摸,也可以是虚拟按键或者物理按键的 按压(如设置在移动终端正面、侧面或者背面的指纹识别按键)等等,在此不 再赘述。In this way, when the zoom command is received and it is learned that the user has a zoom requirement for the target object, the corresponding adjustment will be made according to the change direction of the real-time distance relative to the reference distance and the maximum value of the absolute difference between the real-time distance and the reference distance. operate. Wherein, in order to facilitate user input, the triggering method of the zoom instruction can be the touch of the operator's finger on the display screen, or the pressing of a virtual key or a physical key (such as a fingerprint identification key arranged on the front, side or back of the mobile terminal) ) and so on, which will not be repeated here.

进一步具体的,所述按照所述比例调节参数,调节移动终端的显示屏显示 的目标对象的显示比例的步骤,包括:Further specifically, the step of adjusting the parameter according to the ratio to adjust the display ratio of the target object displayed on the display screen of the mobile terminal includes:

在所述变化方向表示所述实时距离相对所述基准距离的变化为增大时,按 照所述绝对差值的最大值对应的第三显示比例,对所述目标对象进行放大显示;When the change direction indicates that the change of the real-time distance relative to the reference distance is an increase, the target object is enlarged and displayed according to the third display scale corresponding to the maximum value of the absolute difference;

在所述变化方向表示所述实时距离相对所述基准距离的变化为减小时,按 照所述绝对差值的最大值对应的第四显示比例,对所述目标对象进行缩小显示。When the change direction indicates that the change of the real-time distance relative to the reference distance is decreasing, the target object is displayed in a reduced size according to a fourth display scale corresponding to the maximum value of the absolute difference.

这样,在接收到该缩放指令后,就能够基于移动终端中预设的不同显示比 例与绝对差值的最大值的对应关系,由变化信息中绝对差值的最大值,确定将 要使用的显示比例。然后,在变化方向表示实时距离相对基准距离的变化为增 大时,按照绝对差值的最大值对应的第三显示比例,对目标对象进行放大显示; 在变化方向表示实时距离相对基准距离的变化为减小时,按照绝对差值的最大 值对应的第四显示比例,对目标对象进行缩小显示。同样的为了区别缩小和放 大的比例,需结合变化方向,在对应的缩小比例预设关系或放大比例预设关系 中确定各自的显示比例。In this way, after receiving the zoom command, the display scale to be used can be determined from the maximum value of the absolute difference value in the change information based on the corresponding relationship between different display scales preset in the mobile terminal and the maximum value of the absolute difference value. . Then, when the change direction indicates that the change of the real-time distance relative to the reference distance is increasing, the target object is enlarged and displayed according to the third display ratio corresponding to the maximum value of the absolute difference; the change direction indicates that the change of the real-time distance relative to the reference distance In order to reduce, the target object is displayed in a reduced size according to the fourth display ratio corresponding to the maximum value of the absolute difference. Similarly, in order to distinguish the reduction and enlargement ratios, it is necessary to determine the respective display ratios in the corresponding reduction ratio preset relationship or enlargement ratio preset relationship according to the change direction.

例如用户B操作移动终端浏览地图,由于地图为预设的具有缩放需求的 应用类型,故,如图6所示:For example, user B operates the mobile terminal to browse the map, because the map is a preset application type with zooming requirements, therefore, as shown in Figure 6:

步骤601,将通过移动终端的结构光模组对操作者(用户B)进行面部识 别,并获取该操作者的面部与显示屏的实时距离。In step 601, the operator (user B) will be recognized by the structured light module of the mobile terminal, and the real-time distance between the operator's face and the display screen will be obtained.

步骤602,将获取到的初始距离确定为基准距离。Step 602, determining the obtained initial distance as the reference distance.

在打开结构光模组时,检测到的第一个显示屏与操作者的面部之间的距离。The detected distance between the first display screen and the operator's face when the structured light module is turned on.

步骤603,确定实时距离相对基准距离的变化信息。Step 603: Determine the change information of the real-time distance relative to the reference distance.

打开的结构光模组实时检测用户B浏览地图时,其面部与显示屏的距离, 得到相对步骤602确定的基准距离的变化信息,该变化信息包括:实时距离相 对基准距离的变化方向,实时距离与基准距离的绝对差值的最大值。The opened structured light module detects the distance between user B's face and the display screen in real time when user B browses the map, and obtains change information relative to the reference distance determined in step 602. The change information includes: the change direction of the real-time distance relative to the reference distance, the real-time distance The maximum value of the absolute difference from the reference distance.

步骤604,接收到用户输入的缩放指令时,在变化方向表示实时距离相对 基准距离的变化为增大时,按照绝对差值的最大值对应的显示比例,对目标对 象进行放大显示;在变化方向表示实时距离相对基准距离的变化为减小时,按 照绝对差值的最大值对应的显示比例,对目标对象进行缩小显示。Step 604, when receiving the zoom instruction input by the user, when the change direction indicates that the change of the real-time distance relative to the reference distance is increasing, the target object is enlarged and displayed according to the display ratio corresponding to the maximum value of the absolute difference; Indicates that when the change of the real-time distance relative to the reference distance is decreasing, the target object is displayed in a reduced size according to the display scale corresponding to the maximum value of the absolute difference.

接收到缩放指令后,即可了解用户具有对地图的缩放需求,之后,就将结 合变化信息中的变化方向和绝对差值的最大值来完成对目标对象的相应操作。 假设实时距离相对基准距离的变化为增大,即用户B的面部较基准距离的位 置远离显示屏,则由变化信息中绝对差值的最大值在放大比例预设关系中确定 出对应显示比例,然后将地图按照该显示比例进行放大。假设实时距离相对基 准距离的变化为减小,即用户B的面部较基准距离的位置靠近显示屏,则由 变化信息中绝对差值的最大值在缩小比例预设关系中确定出对应显示比例,然 后将地图按照该显示比例进行缩小。After receiving the zoom command, it can be understood that the user has the zoom requirement for the map, and then the corresponding operation on the target object will be completed in combination with the change direction in the change information and the maximum value of the absolute difference. Assuming that the change of the real-time distance relative to the reference distance is an increase, that is, the position of user B's face is farther from the display screen than the reference distance, then the corresponding display scale is determined from the maximum value of the absolute difference in the change information in the preset magnification scale relationship, The map is then enlarged according to the display scale. Assuming that the change of the real-time distance relative to the reference distance is reduced, that is, the position of user B's face is closer to the display screen than the reference distance, then the corresponding display scale is determined by the maximum value of the absolute difference in the change information in the reduction scale preset relationship, Then zoom out the map according to the display scale.

还应该知道的是,在上述实施例中,缩小或放大的目标对象多是指当前显 示内容。然而,用户需要的可能仅是针对其中某个部分的缩小或放大,因此, 在上述实施例的基础上,在所述根据所述变化信息,确定所述目标对象的比例 调节参数的步骤之前,包括:It should also be known that, in the above embodiments, the target object to be reduced or enlarged mostly refers to the currently displayed content. However, what the user needs may only be the reduction or enlargement of a certain part. Therefore, on the basis of the above embodiment, before the step of determining the scale adjustment parameter of the target object according to the change information, include:

检测用户在显示屏中的触控操作;Detect the user's touch operation in the display screen;

若检测到触控操作,则获取所述触控操作的操作位置;If a touch operation is detected, obtaining the operation position of the touch operation;

根据所述显示屏的当前显示内容,检测所述操作位置是否位于显示组件的 显示区域内;According to the current display content of the display screen, detect whether the operation position is located in the display area of the display component;

若所述操作位置位于所述显示组件的显示区域内,则将所述显示组件确定 为目标对象;If the operating position is located in the display area of the display component, then the display component is determined as the target object;

若所述操作位置未位于所述显示组件的显示区域内,则将当前显示内容确 定为目标对象。If the operation position is not located in the display area of the display component, the current display content is determined as the target object.

这样,在检测到操作者对显示屏的触摸操作时,就能够通过获取该操作在 显示屏上的操作位置,结合显示屏的当前显示内容,检测该操作位置是否位于 显示组件的显示区域内,进而,当操作位置位于显示组件的显示区域内,则将 显示组件确定为目标对象;若操作位置未位于显示组件的显示区域内,则将当 前显示内容确定为目标对象。之后,再根据变化信息对确定的目标对象进行相 应的操作。In this way, when the operator's touch operation on the display screen is detected, it is possible to detect whether the operation position is located in the display area of the display component by acquiring the operation position of the operation on the display screen and combining with the current display content of the display screen, Further, when the operation position is located in the display area of the display component, the display component is determined as the target object; if the operation position is not located in the display area of the display component, the current display content is determined as the target object. Afterwards, corresponding operations are performed on the determined target object according to the change information.

其中,显示组件在当前显示内容中大小以及坐标往往会由开发者预先定义, 系统是能够获取到这些数据信息的,所以在获取操作者触摸的操作位置时,即 可由操作位置是否在显示组件对应的坐标范围内确定该操作位置是否位于显 示组件的显示区域内。当然,上述对目标对象确定的步骤,与获取实时距离的 变化信息是不分先后的,可以先获取变化信息再进行目标对象的确定,也可以 先进行目标对象的确定再获取变化信息,在此不再赘述。Among them, the size and coordinates of the display component in the current display content are often pre-defined by the developer, and the system can obtain these data information, so when obtaining the operation position touched by the operator, it can be determined whether the operation position corresponds to the display component or not. Determines whether the operation position is within the display area of the display component within the coordinate range of . Of course, the above steps of determining the target object are in no particular order with obtaining the change information of the real-time distance. The change information can be obtained first and then the target object can be determined, or the target object can be determined first and then the change information can be obtained. Here No longer.

一般而言,选择指令也可以是上述用户对显示屏触摸触发缩放指令时同时 触发的。Generally speaking, the selection instruction may also be triggered simultaneously when the above-mentioned user touches the display screen to trigger the zoom instruction.

例如用户C操作移动终端浏览新闻应用,由于新闻应用为预设的具有缩 放需求的应用类型,故,如图7所示:For example, user C operates the mobile terminal to browse the news application, because the news application is a preset application type with scaling requirements, so as shown in Figure 7:

步骤701,将通过移动终端的结构光模组对操作者(用户C)进行面部识 别,并获取该操作者的面部与显示屏的实时距离。In step 701, the operator (user C) will be recognized by the structured light module of the mobile terminal, and the real-time distance between the operator's face and the display screen will be obtained.

步骤702,将获取到的初始距离确定为基准距离。Step 702: Determine the obtained initial distance as the reference distance.

在打开结构光模组时,检测到的第一个显示屏与操作者的面部之间的距离。The detected distance between the first display screen and the operator's face when the structured light module is turned on.

步骤703,确定实时距离相对基准距离的变化信息。Step 703: Determine the change information of the real-time distance relative to the reference distance.

打开的结构光模组实时检测用户C浏览新闻应用时,其面部与显示屏的 距离,得到相对步骤702确定的基准距离的变化信息,该变化信息包括:实时 距离相对基准距离的变化方向,实时距离与基准距离的绝对差值的最大值。The opened structured light module detects the distance between user C's face and the display screen when user C browses the news application in real time, and obtains change information relative to the reference distance determined in step 702, and the change information includes: the change direction of the real-time distance relative to the reference distance, the real-time The maximum value of the absolute difference between the distance and the reference distance.

步骤704,接收到用户输入的缩放指令时,获取该指令在显示屏上的触发 位置(即用户的操作位置);根据显示屏的当前显示内容,检测触发位置是否 位于显示组件的显示区域内;若触发位置位于显示组件的显示区域内,则将显 示组件确定为目标对象;若触发位置未位于显示组件的显示区域内,则将当前 显示内容确定为目标对象。Step 704, when receiving the zoom command input by the user, obtain the trigger position of the command on the display screen (that is, the user's operation position); according to the current display content of the display screen, detect whether the trigger position is located in the display area of the display component; If the trigger position is located in the display area of the display component, the display component is determined as the target object; if the trigger position is not located in the display area of the display component, the current display content is determined as the target object.

假设用户C手指触摸的坐标为(80,90),而新闻应用的某一条新闻所在 的区域起始坐标为(60,70),该新闻显示的区域长为100,宽为40,则可以 判定手指触摸的为该新闻条目的区域,要缩放的目标对象即为该新闻。如果用 户手指触摸的坐标是(10,20),则判定手指触摸的为所有新闻的公共区域, 要缩放的目标对象即为当前显示内容的整个新闻应用界面的内容。Assuming that the coordinates of user C's finger touch are (80, 90), and the starting coordinates of the area where a certain piece of news in the news application is located is (60, 70), the length of the area displayed by the news is 100 and the width is 40, it can be determined that The area that the finger touches is the news item, and the target object to be zoomed is the news. If the coordinates touched by the user's finger are (10, 20), it is determined that the finger touched is the common area of all news, and the target object to be zoomed is the content of the entire news application interface currently displaying the content.

步骤705,在变化方向表示实时距离相对基准距离的变化为增大时,按照 绝对差值的最大值对应的显示比例,对目标对象进行放大显示;在变化方向表 示实时距离相对基准距离的变化为减小时,按照绝对差值的最大值对应的显示 比例,对目标对象进行缩小显示。Step 705, when the change direction indicates that the change of the real-time distance relative to the reference distance is increased, the target object is enlarged and displayed according to the display ratio corresponding to the maximum value of the absolute difference; the change direction indicates that the change of the real-time distance relative to the reference distance is: When reducing, the target object is displayed in a reduced size according to the display ratio corresponding to the maximum value of the absolute difference.

基于步骤704确定的目标对象,在实时距离相对基准距离的变化为增大, 即用户C的面部较基准距离的位置远离显示屏,则由变化信息中绝对差值的 最大值在放大比例预设关系中确定出对应显示比例,然后将目标对象(该新闻 或者整个新闻应用界面的内容)按照该显示比例进行放大。假设实时距离相对 基准距离的变化为减小,即用户C的面部较基准距离的位置靠近显示屏,则 由变化信息中绝对差值的最大值在缩小比例预设关系中确定出对应显示比例, 然后将目标对象(该新闻或者整个新闻应用界面的内容)按照该缩小比例进行 缩小。Based on the target object determined in step 704, the change of the real-time distance relative to the reference distance is an increase, that is, the position of the face of user C is farther from the display screen than the reference distance, then the maximum value of the absolute difference in the change information is preset in the magnification ratio The corresponding display ratio is determined in the relationship, and then the target object (the content of the news or the entire news application interface) is enlarged according to the display ratio. Assuming that the change of the real-time distance relative to the reference distance is reduced, that is, the position of the face of the user C is closer to the display screen than the reference distance, then the corresponding display scale is determined by the maximum value of the absolute difference in the change information in the reduction scale preset relationship, Then the target object (the news or the content of the entire news application interface) is reduced according to the reduction ratio.

综上所述,本发明实施例的显示控制方法,首先将获取移动终端操作者的 面部与移动终端的显示屏之间的实时距离;然后基于该实时距离,调节移动终 端的显示屏显示的目标对象的显示比例,完成用户需要的查看。由于调节目标 对象的显示比例主要所依据的是显示屏和操作者面部之间的实时距离,能够适 用更多的场景,有效解决了现有方式的手动缩放控制操作的局限性,提升了移 动终端的使用便捷性。To sum up, in the display control method of the embodiment of the present invention, firstly, the real-time distance between the face of the mobile terminal operator and the display screen of the mobile terminal is obtained; then, based on the real-time distance, the target displayed on the display screen of the mobile terminal is adjusted. The display scale of the object to complete the viewing required by the user. Since the adjustment of the display ratio of the target object is mainly based on the real-time distance between the display screen and the operator's face, it can be applied to more scenarios, effectively solving the limitations of the existing manual zoom control operation, and improving the mobile terminal. ease of use.

图8是本发明一个实施例的移动终端的框图。图8所示的移动终端800包 括获取模块801和调节模块802。FIG. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 800 shown in FIG. 8 includes an acquisition module 801 and an adjustment module 802.

获取模块801,用于获取移动终端的显示屏与操作所述移动终端的操作者 的面部之间的距离;Obtaining module 801, for obtaining the distance between the display screen of the mobile terminal and the face of the operator operating the mobile terminal;

调节模块802,用于基于所述实时距离,调节移动终端的显示屏显示的目 标对象的显示比例。The adjustment module 802 is configured to adjust the display scale of the target object displayed on the display screen of the mobile terminal based on the real-time distance.

可选地,所述获取模块801进一步用于:Optionally, the obtaining module 801 is further configured to:

通过所述移动终端的结构光模组对操作者进行面部识别,并在识别到面部 后,获取所述操作者的面部与所述显示屏之间的实时距离。Carry out facial recognition to the operator by the structured light module of the mobile terminal, and after recognizing the face, obtain the real-time distance between the operator's face and the display screen.

在图8的基础上,可选地,如图9所示,所述调节模块802包括:On the basis of FIG. 8 , optionally, as shown in FIG. 9 , the adjustment module 802 includes:

第一检测子模块8021,用于检测所述实时距离的变化信息;The first detection sub-module 8021 is used to detect the change information of the real-time distance;

确定子模块8022,用于根据所述变化信息,确定所述目标对象的比例调 节参数;Determining submodule 8022, for determining the proportional adjustment parameter of the target object according to the change information;

第一处理子模块8023,用于按照所述比例调节参数,调节移动终端的显 示屏显示的目标对象的显示比例。The first processing sub-module 8023 is configured to adjust the parameter according to the ratio, and adjust the display ratio of the target object displayed on the display screen of the mobile terminal.

可选地,所述第一检测子模块8021包括:Optionally, the first detection sub-module 8021 includes:

获取单元80211,用于获取所述操作者的面部和显示屏之间的初始距离;an acquisition unit 80211, used to acquire the initial distance between the operator's face and the display screen;

确定单元80212,用于将所述初始距离确定为基准距离;a determining unit 80212, configured to determine the initial distance as a reference distance;

检测单元80213,用于检测所述距离相对所述基准距离的变化信息。The detection unit 80213 is configured to detect the change information of the distance relative to the reference distance.

可选地,所述变化信息包括:所述实时距离相对所述基准距离的变化方向, 所述实时距离与所述基准距离的绝对差值从增大到减小至预设阈值的时间,和 所述绝对差值的最大值。Optionally, the change information includes: the change direction of the real-time distance relative to the reference distance, the time when the absolute difference between the real-time distance and the reference distance increases to a preset threshold value, and The maximum value of the absolute difference.

可选地,所述第一处理子模块8023进一步用于:Optionally, the first processing submodule 8023 is further configured to:

若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基 准距离的变化为先增大后减小,则按照所述绝对差值的最大值对应的第一显示 比例,对所述目标对象进行放大显示;If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance is to increase first and then decrease, then the first display scale corresponding to the maximum value of the absolute difference will be used. , the target object is enlarged and displayed;

若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基 准距离的变化为先减小后增大,则按照所述绝对差值的最大值对应的第二显示 比例,对所述目标对象进行缩小显示。If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance first decreases and then increases, then the second display scale corresponding to the maximum value of the absolute difference will be used. to display the target object in a reduced size.

可选地,所述调节模块802还包括:Optionally, the adjustment module 802 further includes:

第二检测子模块8024,用于检测是否接收到缩放指令;The second detection sub-module 8024 is used to detect whether a scaling instruction is received;

第二处理子模块8025,用于若接收到用户输入的缩放指令,则执行所述 根据所述变化信息,确定所述目标对象的比例调节参数的步骤。The second processing sub-module 8025 is configured to execute the step of determining the scale adjustment parameter of the target object according to the change information if a scaling instruction input by the user is received.

可选地,所述变化信息包括:所述实时距离相对所述基准距离的变化方向, 和所述实时距离与所述基准距离的绝对差值的最大值。Optionally, the change information includes: a change direction of the real-time distance relative to the reference distance, and a maximum value of an absolute difference between the real-time distance and the reference distance.

可选地,所述第一处理子模块8023进一步用于:Optionally, the first processing submodule 8023 is further configured to:

在所述变化方向表示所述实时距离相对所述基准距离的变化为增大时,按 照所述绝对差值的最大值对应的第三显示比例,对所述目标对象进行放大显示;When the change direction indicates that the change of the real-time distance relative to the reference distance is an increase, the target object is enlarged and displayed according to the third display scale corresponding to the maximum value of the absolute difference;

在所述变化方向表示所述实时距离相对所述基准距离的变化为减小时,按 照所述绝对差值的最大值对应的第四显示比例,对所述目标对象进行缩小显示。When the change direction indicates that the change of the real-time distance relative to the reference distance is decreasing, the target object is displayed in a reduced size according to a fourth display scale corresponding to the maximum value of the absolute difference.

在图8的基础上,可选地,如图10所示,所述调节模块802还包括:On the basis of FIG. 8 , optionally, as shown in FIG. 10 , the adjustment module 802 further includes:

第三检测子模块8026,用于检测用户在显示屏中的触控操作;The third detection sub-module 8026 is used to detect the user's touch operation on the display screen;

获取子模块8027,用于若检测到触控操作,则获取所述触控操作的操作 位置;an acquisition sub-module 8027, configured to acquire the operation position of the touch operation if a touch operation is detected;

第四检测子模块8028,用于根据所述显示屏的当前显示内容,检测所述 操作位置是否位于显示组件的显示区域内;The fourth detection sub-module 8028 is used to detect whether the operating position is located in the display area of the display assembly according to the current display content of the display screen;

第三处理子模块8029,用于若所述操作位置位于所述显示组件的显示区 域内,则将所述显示组件确定为目标对象;The third processing submodule 8029 is used to determine the display component as a target object if the operation position is located in the display area of the display component;

第四处理子模块80210,用于若所述操作位置未位于所述显示组件的显示 区域内,则将当前显示内容确定为目标对象。The fourth processing sub-module 80210 is configured to determine the current display content as the target object if the operation position is not located in the display area of the display component.

移动终端800能够实现图1至图7的方法实施例中移动终端实现的各个过 程,为避免重复,这里不再赘述。本发明实施例的显示控制方法,首先将获取 移动终端操作者的面部与移动终端的显示屏之间的实时距离;然后基于该实时 距离,调节移动终端的显示屏显示的目标对象的显示比例,完成用户需要的查 看。由于调节目标对象的显示比例主要所依据的是显示屏和操作者面部之间的 实时距离,能够适用更多的场景,有效解决了现有方式的手动缩放控制操作的 局限性,提升了移动终端的使用便捷性。The mobile terminal 800 can implement each process implemented by the mobile terminal in the method embodiments of FIG. 1 to FIG. 7 , and in order to avoid repetition, details are not repeated here. In the display control method of the embodiment of the present invention, first, the real-time distance between the face of the mobile terminal operator and the display screen of the mobile terminal is obtained; then based on the real-time distance, the display ratio of the target object displayed on the display screen of the mobile terminal is adjusted, Complete the viewing required by the user. Since the adjustment of the display ratio of the target object is mainly based on the real-time distance between the display screen and the operator's face, it can be applied to more scenarios, effectively solving the limitations of the existing manual zoom control operation, and improving the mobile terminal. ease of use.

图11为实现本发明各个实施例的一种移动终端的硬件结构示意图,该移 动终端1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、 输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元 1108、存储器1109、处理器1110、以及电源1111等部件。本领域技术人员可 以理解,图11中示出的移动终端结构并不构成对移动终端的限定,移动终端 可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。 在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌 上电脑、车载终端、可穿戴设备、以及计步器等。11 is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, and a display unit 1106 , user input unit 1107 , interface unit 1108 , memory 1109 , processor 1110 , and power supply 1111 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 11 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the mobile terminal includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器1110,用于获取移动终端操作者的面部与移动终端的显示 屏之间的实时距离;基于所述实时距离,调节移动终端的显示屏显示的目标对 象的显示比例。The processor 1110 is configured to acquire the real-time distance between the mobile terminal operator's face and the display screen of the mobile terminal; based on the real-time distance, adjust the display scale of the target object displayed on the display screen of the mobile terminal.

可见,该移动终端首先将获取移动终端操作者的面部与移动终端的显示屏 之间的实时距离;然后基于该实时距离,调节移动终端的显示屏显示的目标对 象的显示比例,完成用户需要的查看。由于调节目标对象的显示比例主要所依 据的是显示屏和操作者面部之间的实时距离,能够适用更多的场景,有效解决 了现有方式的手动缩放控制操作的局限性,提升了移动终端的使用便捷性。It can be seen that the mobile terminal will first obtain the real-time distance between the mobile terminal operator's face and the display screen of the mobile terminal; then based on the real-time distance, adjust the display ratio of the target object displayed on the display screen of the mobile terminal, so as to meet the needs of the user. Check. Since the adjustment of the display ratio of the target object is mainly based on the real-time distance between the display screen and the operator's face, it can be applied to more scenarios, effectively solving the limitations of the existing manual zoom control operation, and improving the mobile terminal. ease of use.

应理解的是,本发明实施例中,射频单元1101可用于收发信息或通话过 程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器 1110处理;另外,将上行的数据发送给基站。通常,射频单元1101包括但不 限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。 此外,射频单元1101还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 1101 may be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1110; The uplink data is sent to the base station. Typically, the radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1101 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块1102为用户提供了无线的宽带互联网访问,如帮 助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides the user with wireless broadband Internet access through the network module 1102, such as helping the user to send and receive emails, browse web pages and access streaming media.

音频输出单元1103可以将射频单元1101或网络模块1102接收的或者在 存储器1109中存储的音频数据转换成音频信号并且输出为声音。而且,音频 输出单元1103还可以提供与移动终端1100执行的特定功能相关的音频输出 (例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元113包括扬声 器、蜂鸣器以及受话器等。The audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into audio signals and output as sound. Also, the audio output unit 1103 may also provide audio output related to a specific function performed by the mobile terminal 1100 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 113 includes a speaker, a buzzer, a receiver, and the like.

输入单元1104用于接收音频或视频信号。输入单元1104可以包括图形处 理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041 对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态 图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元11006 上。经图形处理器11041处理后的图像帧可以存储在存储器1109(或其它存 储介质)中或者经由射频单元1101或网络模块1102进行发送。麦克风11042 可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可 以在电话通话模式的情况下转换为可经由射频单元1101发送到移动通信基站的格式输出。The input unit 1104 is used to receive audio or video signals. The input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 can capture still pictures or images of videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frame can be displayed on the display unit 11006 . The image frames processed by the graphics processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio frequency unit 1101 or the network module 1102. The microphone 11042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 1101 for output in the case of a phone call mode.

移动终端1100还包括至少一种传感器1105,比如光传感器、运动传感器 以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中, 环境光传感器可根据环境光线的明暗来调节显示面板11061的亮度,接近传感 器可在移动终端1100移动到耳边时,关闭显示面板11061和/或背光。作为运 动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大 小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖 屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲 击)等;传感器1105还可以包括指纹传感器、压力传感器、虹膜传感器、分 子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘 述。The mobile terminal 1100 also includes at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 11061 and the proximity sensor when the mobile terminal 1100 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; sensors 1105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., are not repeated here.

显示单元1106用于显示由用户输入的信息或提供给用户的信息。显示单 元1106可包括显示面板11061,可以采用液晶显示器(Liquid Crystal Display, LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置 显示面板11061。The display unit 1106 is used to display information input by the user or information provided to the user. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元1107可用于接收输入的数字或字符信息,以及产生与移动 终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1107 包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸 屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适 合的物体或附件在触控面板11071上或在触控面板11071附近的操作)。触控 面板11071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置 检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器; 触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给 处理器1110,接收处理器1110发来的命令并加以执行。此外,可以采用电阻 式、电容式、红外线以及表面声波等多种类型实现触控面板11071。除了触控 面板11071,用户输入单元1107还可以包括其他输入设备11072。具体地,其 他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、 开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1107 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072 . The touch panel 11071, also known as the touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 11071). operate). The touch panel 11071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 1110, the command sent by the processor 1110 is received and executed. In addition, the touch panel 11071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 11071, the user input unit 1107 may also include other input devices 11072. Specifically, other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板11071可覆盖在显示面板11061上,当触控面板11071 检测到在其上或附近的触摸操作后,传送给处理器1110以确定触摸事件的类 型,随后处理器1110根据触摸事件的类型在显示面板1161上提供相应的视觉 输出。虽然在图11中,触控面板11071与显示面板11061是作为两个独立的 部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面 板11071与显示面板11061集成而实现移动终端的输入和输出功能,具体此处 不做限定。Further, the touch panel 11071 can be covered on the display panel 11061. When the touch panel 11071 detects a touch operation on or near it, it transmits it to the processor 1110 to determine the type of the touch event, and then the processor 1110 determines the type of the touch event according to the touch The type of event provides corresponding visual output on display panel 1161 . Although in FIG. 11 , the touch panel 11071 and the display panel 11061 are used as two independent components to realize the input and output functions of the mobile terminal, but in some embodiments, the touch panel 11071 and the display panel 11061 can be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.

接口单元1108为外部装置与移动终端1100连接的接口。例如,外部装置 可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或 无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入 /输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1108可以用于接收 来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到 移动终端1100内的一个或多个元件或者可以用于在移动终端110和外部装置 之间传输数据。The interface unit 1108 is an interface for connecting an external device to the mobile terminal 1100 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 1108 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 1100 or may be used to communicate between the mobile terminal 110 and the external Transfer data between devices.

存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括 存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能 所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存 储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储 器119可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少 一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 119 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器1110是移动终端的控制中心,利用各种接口和线路连接整个移动 终端的各个部分,通过运行或执行存储在存储器1109内的软件程序和/或模块, 以及调用存储在存储器119内的数据,执行移动终端的各种功能和处理数据, 从而对移动终端进行整体监控。处理器1110可包括一个或多个处理单元;优 选的,处理器1110可集成应用处理器和调制解调处理器,其中,应用处理器 主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通 信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。The processor 1110 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 1109, and calls the data stored in the memory 119. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1110.

移动终端1100还可以包括给各个部件供电的电源1111(比如电池),优选 的,电源1111可以通过电源管理系统与处理器111逻辑相连,从而通过电源 管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 1100 may also include a power supply 1111 (such as a battery) for supplying power to various components. Preferably, the power supply 1111 may be logically connected to the processor 111 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. and other functions.

另外,移动终端1100包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 1100 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器1110,存储器 1109,存储在存储器1109上并可在所述处理器1110上运行的计算机程序,该 计算机程序被处理器1110执行时实现上述显示控制方法实施例的各个过程, 且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 1110, a memory 1109, and a computer program stored in the memory 1109 and running on the processor 1110, when the computer program is executed by the processor 1110 Each process of the above-mentioned embodiment of the display control method is implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存 储有计算机程序,该计算机程序被处理器执行时实现上述显示控制方法实施例 的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中, 所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、 随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing display control method embodiment can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意 在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装 置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为 这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由 语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物 品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实 施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬 件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方 案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包 括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者 网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述 的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本 领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保 护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (16)

1.一种显示控制方法,其特征在于,包括:1. a display control method, is characterized in that, comprises: 获取移动终端操作者的面部与移动终端的显示屏之间的实时距离;Obtain the real-time distance between the mobile terminal operator's face and the display screen of the mobile terminal; 基于所述实时距离,调节移动终端的显示屏显示的目标对象的显示比例;Based on the real-time distance, adjusting the display scale of the target object displayed on the display screen of the mobile terminal; 所述基于所述实时距离,调节移动终端的显示屏显示的目标对象的显示比例的步骤,包括:The step of adjusting the display scale of the target object displayed on the display screen of the mobile terminal based on the real-time distance includes: 检测所述实时距离的变化信息;detecting the change information of the real-time distance; 根据所述变化信息,确定所述目标对象的比例调节参数;According to the change information, determine the scale adjustment parameter of the target object; 按照所述比例调节参数,调节移动终端的显示屏显示的目标对象的显示比例;Adjust the parameter according to the ratio, adjust the display ratio of the target object displayed on the display screen of the mobile terminal; 所述检测所述实时距离的变化信息的步骤,包括:The step of detecting the change information of the real-time distance includes: 获取所述操作者的面部和显示屏之间的初始距离;obtaining the initial distance between the operator's face and the display screen; 将所述初始距离确定为基准距离;determining the initial distance as a reference distance; 检测所述实时距离相对所述基准距离的变化信息;Detecting the change information of the real-time distance relative to the reference distance; 所述变化信息包括:所述实时距离相对所述基准距离的变化方向,所述实时距离与所述基准距离的绝对差值从增大到减小至预设阈值的时间,和所述绝对差值的最大值。The change information includes: the change direction of the real-time distance relative to the reference distance, the time when the absolute difference between the real-time distance and the reference distance increases to a preset threshold value, and the absolute difference. the maximum value of the value. 2.根据权利要求1所述的显示控制方法,其特征在于,所述获取移动终端操作者的面部与移动终端的显示屏之间的实时距离的步骤,包括:2. The display control method according to claim 1, wherein the step of obtaining the real-time distance between the face of the mobile terminal operator and the display screen of the mobile terminal comprises: 通过所述移动终端的结构光模组对操作者进行面部识别,并在识别到面部后,获取所述操作者的面部与所述显示屏之间的实时距离。The operator's face is recognized by the structured light module of the mobile terminal, and after the face is recognized, the real-time distance between the operator's face and the display screen is obtained. 3.根据权利要求1所述的显示控制方法,其特征在于,所述按照所述比例调节参数,调节移动终端的显示屏显示的目标对象的显示比例的步骤,包括:3. The display control method according to claim 1, wherein the step of adjusting the parameter according to the ratio to adjust the display ratio of the target object displayed on the display screen of the mobile terminal comprises: 若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基准距离的变化为先增大后减小,则按照所述绝对差值的最大值对应的第一显示比例,对所述目标对象进行放大显示;If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance is to increase first and then decrease, then the first display scale corresponding to the maximum value of the absolute difference will be used. , the target object is enlarged and displayed; 若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基准距离的变化为先减小后增大,则按照所述绝对差值的最大值对应的第二显示比例,对所述目标对象进行缩小显示。If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance first decreases and then increases, then the second display scale corresponding to the maximum value of the absolute difference will be used. to display the target object in a reduced size. 4.根据权利要求1所述的显示控制方法,其特征在于,所述根据所述变化信息,确定所述目标对象的比例调节参数的步骤之前,还包括:4. The display control method according to claim 1, wherein before the step of determining the scale adjustment parameter of the target object according to the change information, the method further comprises: 检测是否接收到缩放指令;Detect whether a zoom command is received; 若接收到用户输入的缩放指令,则执行所述根据所述变化信息,确定所述目标对象的比例调节参数的步骤。If a zoom instruction input by the user is received, the step of determining the scale adjustment parameter of the target object according to the change information is performed. 5.根据权利要求4所述的显示控制方法,其特征在于,所述变化信息包括:所述实时距离相对所述基准距离的变化方向,和所述实时距离与所述基准距离的绝对差值的最大值。5. The display control method according to claim 4, wherein the change information comprises: a change direction of the real-time distance relative to the reference distance, and an absolute difference between the real-time distance and the reference distance the maximum value of . 6.根据权利要求5所述的显示控制方法,其特征在于,所述按照所述比例调节参数,调节移动终端的显示屏显示的目标对象的显示比例的步骤,包括:6. The display control method according to claim 5, wherein the step of adjusting the parameter according to the ratio to adjust the display ratio of the target object displayed on the display screen of the mobile terminal comprises: 在所述变化方向表示所述实时距离相对所述基准距离的变化为增大时,按照所述绝对差值的最大值对应的第三显示比例,对所述目标对象进行放大显示;When the change direction indicates that the change of the real-time distance relative to the reference distance is increasing, the target object is enlarged and displayed according to a third display scale corresponding to the maximum value of the absolute difference; 在所述变化方向表示所述实时距离相对所述基准距离的变化为减小时,按照所述绝对差值的最大值对应的第四显示比例,对所述目标对象进行缩小显示。When the change direction indicates that the change of the real-time distance relative to the reference distance is decreasing, the target object is displayed in a reduced size according to a fourth display scale corresponding to the maximum value of the absolute difference. 7.根据权利要求1所述的显示控制方法,其特征在于,所述根据所述变化信息,确定所述目标对象的比例调节参数的步骤之前,包括:7. The display control method according to claim 1, wherein before the step of determining the scale adjustment parameter of the target object according to the change information, the method comprises: 检测用户在显示屏中的触控操作;Detect the user's touch operation in the display screen; 若检测到触控操作,则获取所述触控操作的操作位置;If a touch operation is detected, obtaining the operation position of the touch operation; 根据所述显示屏的当前显示内容,检测所述操作位置是否位于显示组件的显示区域内;According to the current display content of the display screen, detect whether the operation position is located in the display area of the display component; 若所述操作位置位于所述显示组件的显示区域内,则将所述显示组件确定为目标对象;If the operation position is located in the display area of the display component, determining the display component as the target object; 若所述操作位置未位于所述显示组件的显示区域内,则将当前显示内容确定为目标对象。If the operation position is not located in the display area of the display component, the current display content is determined as the target object. 8.一种移动终端,其特征在于,包括:8. A mobile terminal, comprising: 获取模块,用于获取移动终端操作者的面部与移动终端的显示屏之间的实时距离;an acquisition module for acquiring the real-time distance between the mobile terminal operator's face and the display screen of the mobile terminal; 调节模块,用于基于所述实时距离,调节移动终端的显示屏显示的目标对象的显示比例;an adjustment module, configured to adjust the display ratio of the target object displayed on the display screen of the mobile terminal based on the real-time distance; 所述调节模块包括:The adjustment module includes: 第一检测子模块,用于检测所述实时距离的变化信息;a first detection submodule for detecting the change information of the real-time distance; 确定子模块,用于根据所述变化信息,确定所述目标对象的比例调节参数;a determination sub-module for determining the scale adjustment parameter of the target object according to the change information; 第一处理子模块,用于按照所述比例调节参数,调节移动终端的显示屏显示的目标对象的显示比例;a first processing submodule, configured to adjust the parameter according to the ratio, and adjust the display ratio of the target object displayed on the display screen of the mobile terminal; 所述第一检测子模块包括:The first detection submodule includes: 获取单元,用于获取所述操作者的面部和显示屏之间的初始距离;an acquisition unit for acquiring the initial distance between the operator's face and the display screen; 确定单元,用于将所述初始距离确定为基准距离;a determining unit for determining the initial distance as a reference distance; 检测单元,用于检测所述距离相对所述基准距离的变化信息;a detection unit for detecting the change information of the distance relative to the reference distance; 所述变化信息包括:所述实时距离相对所述基准距离的变化方向,所述实时距离与所述基准距离的绝对差值从增大到减小至预设阈值的时间,和所述绝对差值的最大值。The change information includes: the change direction of the real-time distance relative to the reference distance, the time when the absolute difference between the real-time distance and the reference distance increases to a preset threshold value, and the absolute difference. the maximum value of the value. 9.根据权利要求8所述的移动终端,其特征在于,所述获取模块进一步用于:9. The mobile terminal according to claim 8, wherein the acquisition module is further configured to: 通过所述移动终端的结构光模组对操作者进行面部识别,并在识别到面部后,获取所述操作者的面部与所述显示屏之间的实时距离。The operator's face is recognized by the structured light module of the mobile terminal, and after the face is recognized, the real-time distance between the operator's face and the display screen is obtained. 10.根据权利要求8所述的移动终端,其特征在于,所述第一处理子模块进一步用于:10. The mobile terminal according to claim 8, wherein the first processing submodule is further configured to: 若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基准距离的变化为先增大后减小,则按照所述绝对差值的最大值对应的第一显示比例,对所述目标对象进行放大显示;If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance is to increase first and then decrease, then the first display scale corresponding to the maximum value of the absolute difference will be used. , the target object is enlarged and displayed; 若所述时间小于预设时长,且所述变化方向表示所述实时距离相对所述基准距离的变化为先减小后增大,则按照所述绝对差值的最大值对应的第二显示比例,对所述目标对象进行缩小显示。If the time is less than the preset time, and the change direction indicates that the change of the real-time distance relative to the reference distance first decreases and then increases, then the second display scale corresponding to the maximum value of the absolute difference will be used. to display the target object in a reduced size. 11.根据权利要求8所述的移动终端,其特征在于,所述调节模块还包括:11. The mobile terminal according to claim 8, wherein the adjustment module further comprises: 第二检测子模块,用于检测是否接收到缩放指令;a second detection sub-module for detecting whether a scaling instruction is received; 第二处理子模块,用于若接收到用户输入的缩放指令,则执行所述根据所述变化信息,确定所述目标对象的比例调节参数的步骤。The second processing sub-module is configured to execute the step of determining the scale adjustment parameter of the target object according to the change information if the zoom instruction input by the user is received. 12.根据权利要求11所述的移动终端,其特征在于,所述变化信息包括:所述实时距离相对所述基准距离的变化方向,和所述实时距离与所述基准距离的绝对差值的最大值。12 . The mobile terminal according to claim 11 , wherein the change information comprises: a change direction of the real-time distance relative to the reference distance, and a difference between the absolute difference between the real-time distance and the reference distance. 13 . maximum value. 13.根据权利要求12所述的移动终端,其特征在于,所述第一处理子模块进一步用于:13. The mobile terminal according to claim 12, wherein the first processing submodule is further configured to: 在所述变化方向表示所述实时距离相对所述基准距离的变化为增大时,按照所述绝对差值的最大值对应的第三显示比例,对所述目标对象进行放大显示;When the change direction indicates that the change of the real-time distance relative to the reference distance is increasing, the target object is enlarged and displayed according to a third display scale corresponding to the maximum value of the absolute difference; 在所述变化方向表示所述实时距离相对所述基准距离的变化为减小时,按照所述绝对差值的最大值对应的第四显示比例,对所述目标对象进行缩小显示。When the change direction indicates that the change of the real-time distance relative to the reference distance is decreasing, the target object is displayed in a reduced size according to a fourth display scale corresponding to the maximum value of the absolute difference. 14.根据权利要求8所述的移动终端,其特征在于,所述调节模块还包括:14. The mobile terminal according to claim 8, wherein the adjustment module further comprises: 第三检测子模块,用于检测用户在显示屏中的触控操作;The third detection sub-module is used to detect the user's touch operation on the display screen; 获取子模块,用于若检测到触控操作,则获取所述触控操作的操作位置;an acquisition sub-module, configured to acquire the operation position of the touch operation if a touch operation is detected; 第四检测子模块,用于根据所述显示屏的当前显示内容,检测所述操作位置是否位于显示组件的显示区域内;a fourth detection sub-module, configured to detect whether the operation position is located in the display area of the display component according to the current display content of the display screen; 第三处理子模块,用于若所述操作位置位于所述显示组件的显示区域内,则将所述显示组件确定为目标对象;a third processing submodule, configured to determine the display component as a target object if the operation position is located in the display area of the display component; 第四处理子模块,用于若所述操作位置未位于所述显示组件的显示区域内,则将当前显示内容确定为目标对象。The fourth processing sub-module is configured to determine the current display content as the target object if the operation position is not located in the display area of the display component. 15.一种移动终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的显示控制方法的步骤。15. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the right The steps of the display control method described in any one of claims 1 to 7. 16.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的显示控制方法的步骤。16. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program according to any one of claims 1 to 7 is implemented. Shows the steps of the control method.
CN201710959040.2A 2017-10-16 2017-10-16 Display control method and mobile terminal Active CN107741814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710959040.2A CN107741814B (en) 2017-10-16 2017-10-16 Display control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710959040.2A CN107741814B (en) 2017-10-16 2017-10-16 Display control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107741814A CN107741814A (en) 2018-02-27
CN107741814B true CN107741814B (en) 2020-03-03

Family

ID=61237608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710959040.2A Active CN107741814B (en) 2017-10-16 2017-10-16 Display control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107741814B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737645A (en) * 2018-04-26 2018-11-02 网易(杭州)网络有限公司 The reminding method and device and storage medium and terminal of message
CN108600647A (en) * 2018-07-24 2018-09-28 努比亚技术有限公司 Shooting preview method, mobile terminal and storage medium
CN110866071B (en) * 2018-08-14 2022-08-30 海能达通信股份有限公司 Map object display method, device, equipment and storage medium
CN111152732A (en) * 2018-11-07 2020-05-15 宝沃汽车(中国)有限公司 Adjusting method of display screen in vehicle, display screen rotating assembly in vehicle and vehicle
CN113535109B (en) * 2021-09-17 2021-12-10 南昌龙旗信息技术有限公司 Display terminal and display method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090023917A (en) * 2007-09-03 2009-03-06 엘지전자 주식회사 User interface
CN101931692A (en) * 2010-07-14 2010-12-29 康佳集团股份有限公司 Mobile terminal and method for automatically adjusting display size of image
CN102955664A (en) * 2011-08-19 2013-03-06 鸿富锦精密工业(深圳)有限公司 Method and system for electronic book display adjustment
CN103677581A (en) * 2012-09-19 2014-03-26 上海斐讯数据通信技术有限公司 Mobile terminal and method for automatically controlling terminal display
CN103793173A (en) * 2014-01-29 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Displaying method and device
CN107203313A (en) * 2017-05-24 2017-09-26 维沃移动通信有限公司 Adjust desktop and show object method, mobile terminal and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI547858B (en) * 2011-12-30 2016-09-01 富智康(香港)有限公司 System and method for controlling document scaling and rotation on a touch screen
US20130321617A1 (en) * 2012-05-30 2013-12-05 Doron Lehmann Adaptive font size mechanism
KR20150047387A (en) * 2013-10-24 2015-05-04 엘지전자 주식회사 Terminal and control method thereof
CN106201414B (en) * 2016-06-28 2019-05-17 Oppo广东移动通信有限公司 Control method, control device and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090023917A (en) * 2007-09-03 2009-03-06 엘지전자 주식회사 User interface
CN101931692A (en) * 2010-07-14 2010-12-29 康佳集团股份有限公司 Mobile terminal and method for automatically adjusting display size of image
CN102955664A (en) * 2011-08-19 2013-03-06 鸿富锦精密工业(深圳)有限公司 Method and system for electronic book display adjustment
CN103677581A (en) * 2012-09-19 2014-03-26 上海斐讯数据通信技术有限公司 Mobile terminal and method for automatically controlling terminal display
CN103793173A (en) * 2014-01-29 2014-05-14 宇龙计算机通信科技(深圳)有限公司 Displaying method and device
CN107203313A (en) * 2017-05-24 2017-09-26 维沃移动通信有限公司 Adjust desktop and show object method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN107741814A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN108182019B (en) Suspension control display processing method and mobile terminal
CN108536411A (en) A kind of method for controlling mobile terminal and mobile terminal
CN107741814B (en) Display control method and mobile terminal
CN107957839A (en) A kind of display control method and mobile terminal
WO2020143663A1 (en) Display method and mobile terminal
CN111562896A (en) Screen projection method and electronic equipment
WO2019184947A1 (en) Image viewing method and mobile terminal
CN107817939A (en) A kind of image processing method and mobile terminal
CN109710349B (en) Screen capturing method and mobile terminal
WO2020238497A1 (en) Icon moving method and terminal device
CN108536509B (en) A kind of application avatar method and mobile terminal
CN108287650A (en) One-handed performance method based on mobile terminal and mobile terminal
CN108287655A (en) A kind of interface display method, interface display apparatus and mobile terminal
CN110531915A (en) Screen operation method and terminal equipment
CN107608606A (en) A kind of image display method, mobile terminal and computer-readable recording medium
CN111443815A (en) A vibration reminder method and electronic device
CN107678672A (en) A kind of display processing method and mobile terminal
CN108307036A (en) A kind of screenshotss method and terminal device
CN109710130B (en) Display method and terminal
CN108958593A (en) A kind of method and mobile terminal of determining communication object
CN108388396A (en) A kind of interface switching method and mobile terminal
CN110719531A (en) Video playback progress adjustment method and electronic device
CN110333803A (en) A multimedia object selection method and terminal equipment
CN109871253A (en) A display method and terminal
WO2020156119A1 (en) Application program interface adjustment method and mobile terminal

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