CN104252828B - Protect display methods, display device and the terminal device of eyesight - Google Patents
Protect display methods, display device and the terminal device of eyesight Download PDFInfo
- Publication number
- CN104252828B CN104252828B CN201310270914.5A CN201310270914A CN104252828B CN 104252828 B CN104252828 B CN 104252828B CN 201310270914 A CN201310270914 A CN 201310270914A CN 104252828 B CN104252828 B CN 104252828B
- Authority
- CN
- China
- Prior art keywords
- user
- terminal
- difference
- value
- 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
Links
Landscapes
- Studio Devices (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本发明实施例提供一种保护视力的显示方法、显示装置和终端设备。该保护视力的显示方法,通过获取当前用户的面部图像;接着,根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。从而实现了终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。
Embodiments of the present invention provide a display method, a display device, and a terminal device for protecting eyesight. In the display method for protecting eyesight, the face image of the current user is acquired; then, the image displayed on the screen of the terminal is adjusted according to the face image and the user's vision value. Thus, the terminal device can adjust the image displayed on the terminal screen in real time according to the current usage situation of the user, thereby bringing greater convenience to the user.
Description
技术领域technical field
本发明实施例涉及通信技术,尤其涉及一种保护视力的显示方法、显示装置和终端设备。Embodiments of the present invention relate to communication technologies, and in particular, to a display method, a display device, and a terminal device for protecting eyesight.
背景技术Background technique
随着科技的发展,人们越来越多的在使用多媒体终端设备,例如,智能手机、平板电脑等。With the development of science and technology, people are using more and more multimedia terminal devices, such as smart phones and tablet computers.
同时,多媒体终端设备也给人们带来了越来越便利的生活,例如,人们可以随时随地的通过多媒体终端设备浏览网页、内容查询、阅读电子书,甚至玩游戏。At the same time, multimedia terminal devices have brought more and more convenient life to people. For example, people can browse webpages, query content, read e-books, and even play games anytime and anywhere through multimedia terminal devices.
然而,人们在使用多媒体终端设备的过程中,在用户自身感觉到需要调整手机屏幕显示的字体和图片的大小,以及显示亮度时,进行手动调节,无法根据当前视力情况、使用距离情况实时的进行显示处理,从而使用户使用不方便。However, in the process of using multimedia terminal equipment, when the user himself feels the need to adjust the size of the fonts and pictures displayed on the mobile phone screen, as well as the display brightness, manual adjustments are performed, which cannot be performed in real time according to the current vision conditions and the distance of use. Display processing, thereby making it inconvenient for users to use.
发明内容Contents of the invention
本发明实施例提供一种保护视力的显示方法、显示装置和终端设备,可以解决无法根据用户当前的视力情况、使用距离情况实时的进行显示处理。Embodiments of the present invention provide a display method, a display device, and a terminal device for protecting eyesight, which can solve the problem that real-time display processing cannot be performed according to the user's current eyesight condition and usage distance.
第一个方面,提供一种保护视力的显示方法,包括:In the first aspect, a display method for protecting eyesight is provided, including:
获取当前用户的面部图像;Get the face image of the current user;
根据所述面部图像以及所述用户的视力值,对所述终端的屏幕上显示的图像进行调节。The image displayed on the screen of the terminal is adjusted according to the facial image and the vision value of the user.
在第一方面的第一种可能的实现方式中,所述根据所述面部图像以及所述用户的视力值,对所述终端的屏幕上显示的图像进行调节,包括:In a first possible implementation manner of the first aspect, the adjusting the image displayed on the screen of the terminal according to the facial image and the vision value of the user includes:
识别所述面部图像,获取所述面部图像尺寸;Recognize the facial image, and obtain the size of the facial image;
将所述面部图像尺寸与标准面部图像尺寸比对,获得第一差值,所述标准面部图像尺寸为所述用户的习惯距离对应的所述用户的面部图像尺寸,其中,所述习惯距离为检测所述用户的面部与所述终端镜头之间的多次使用距离的均值,或所述用户自定义的距离;Comparing the facial image size with a standard facial image size to obtain a first difference, the standard facial image size is the user's facial image size corresponding to the user's customary distance, wherein the customary distance is Detecting the average value of the distance between the user's face and the terminal lens, or the distance defined by the user;
若所述第一差值的绝对值大于第一预设值时,则对所述终端的所述屏幕上显示的所述图像进行调节。If the absolute value of the first difference is greater than a first preset value, adjusting the image displayed on the screen of the terminal.
在第一方面或是第一方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述根据所述面部图像以及所述用户的视力值,对所述终端的屏幕上显示的图像进行调节,包括:In the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner, according to the facial image and the vision value of the user, the screen of the terminal adjustments to the image shown above, including:
根据所述第一差值与所述图像尺寸缩放倍数的对应关系及所述用户的视力值与所述图像尺寸缩放倍数的对应关系,对所述终端屏幕上显示的所述图像的尺寸进行调节,所述图像尺寸缩放倍数为所述标准面部图像尺寸与所述面部图像尺寸的比值;或者Adjust the size of the image displayed on the terminal screen according to the corresponding relationship between the first difference and the image size scaling factor and the corresponding relationship between the user's vision value and the image size scaling factor , the image size scaling factor is the ratio of the standard facial image size to the facial image size; or
根据所述第一差值与所述图像的对比度和/或亮度的变化量的对应关系及所述用户的视力值与所述图像的对比度和/或亮度的变化量的对应关系,对所述终端屏幕上显示的所述图像的对比度和/或亮度进行调节。According to the corresponding relationship between the first difference and the amount of change in contrast and/or brightness of the image and the corresponding relationship between the visual acuity value of the user and the amount of change in contrast and/or brightness of the image, the The contrast and/or brightness of the image displayed on the terminal screen is adjusted.
在第一方面至第一方面的第二种可能的实现方式中,在第三种可能的实现方式中,所述将所述面部图像尺寸与标准面部图像尺寸比对,获得第一差值之后,还包括:In the second possible implementation manner of the first aspect to the first aspect, in the third possible implementation manner, after comparing the facial image size with the standard facial image size and obtaining the first difference ,Also includes:
若所述第一差值的绝对值大于预设差值时,根据所述第一差值与所述面部与所述终端镜头之间的距离变化量的对应关系,获取当前所述用户的所述面部与所述终端镜头之间的当前距离;If the absolute value of the first difference is greater than the preset difference, according to the corresponding relationship between the first difference and the distance change between the face and the terminal lens, obtain all the current user's The current distance between the face and the terminal lens;
将所述用户的面部与所述终端的镜头之间的习惯距离与所述当前距离进行比较,获得第二差值;Comparing the customary distance between the user's face and the lens of the terminal with the current distance to obtain a second difference;
若所述第二差值的绝对值大于第二预设差值,则根据所述第二差值及所述用户的视力值,对所述终端的屏幕上显示的所述图像进行调节。If the absolute value of the second difference is greater than a second preset difference, the image displayed on the screen of the terminal is adjusted according to the second difference and the vision value of the user.
在第一方面的第三种可能的实现方式中,在第四种可能的实现方式中,所述获取当前用户的面部图像之后,还包括:In the third possible implementation manner of the first aspect, in the fourth possible implementation manner, after acquiring the facial image of the current user, further include:
将所述面部图像尺寸与标准面部图像尺寸进行相比,获得的第一比值;Comparing the facial image size with a standard facial image size to obtain a first ratio;
若所述第一比值大于第一预设比值,则向所述用户发送第一提示信息,用以提示所述用户当前与所述终端镜头的距离较远;If the first ratio is greater than the first preset ratio, sending first prompt information to the user to remind the user that the distance between the user and the terminal lens is relatively far;
若所述第一比值小于第二预设比值,则向所述用户发送第二提示信息,用以提示所述用户当前与所述终端镜头的距离较近。If the first ratio is smaller than the second preset ratio, sending second prompt information to the user to remind the user that the distance between the user and the terminal lens is relatively short.
在第一方面的第四种可能的实现方式中,在第五种可能的实现方式中,通过接收用户在所述终端的屏幕上显示的视力表的输入操作,对所述用户的视力进行测试,获取所述用户的视力值;或者In the fourth possible implementation manner of the first aspect, in the fifth possible implementation manner, the user's vision is tested by receiving an input operation of the eye chart displayed on the screen of the terminal by the user , to obtain the vision value of the user; or
所述终端接收所述用户输入的所述用户视力值。The terminal receives the user vision value input by the user.
第二个方面,提供一种保护视力的显示装置,包括:In the second aspect, a display device for protecting eyesight is provided, including:
获取模块,用于获取当前用户的面部图像;An acquisition module, configured to acquire the facial image of the current user;
处理模块,用于根据所述面部图像以及所述用户的视力值,对所述终端的屏幕上显示的图像进行调节。A processing module, configured to adjust the image displayed on the screen of the terminal according to the facial image and the vision value of the user.
在第二方面的第一种可能的实现方式中,所述处理模块,包括:In a first possible implementation manner of the second aspect, the processing module includes:
获取单元,用于识别所述面部图像,获取所述面部图像尺寸;an acquisition unit, configured to identify the facial image and acquire the size of the facial image;
计算单元,用于将所述面部图像尺寸与标准面部图像尺寸比对,获得第一差值,所述标准面部图像尺寸为所述用户的习惯距离对应的所述用户的面部图像尺寸,其中,所述习惯距离为检测所述用户的面部与所述终端镜头之间的多次使用距离的均值,或所述用户自定义的距离;A calculation unit, configured to compare the facial image size with a standard facial image size to obtain a first difference, the standard facial image size being the user's facial image size corresponding to the user's customary distance, wherein, The customary distance is the average value of the distance between the user's face and the terminal lens, or the distance defined by the user;
调节单元,用于若所述第一差值的绝对值大于第一预设值时,则对所述终端的所述屏幕上显示的所述图像进行调节。An adjustment unit, configured to adjust the image displayed on the screen of the terminal if the absolute value of the first difference is greater than a first preset value.
在第二方面或是第二方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述根据所述面部图像以及所述用户的视力值,对所述终端的屏幕上显示的图像进行调节,包括:In the second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner, according to the facial image and the vision value of the user, the screen of the terminal adjustments to the image shown above, including:
所述调节单元,具体用于根据所述第一差值与所述图像尺寸缩放倍数的对应关系及所述用户的视力值与所述图像尺寸缩放倍数的对应关系,对所述终端屏幕上显示的所述图像的尺寸进行调节,所述图像尺寸缩放倍数为所述标准面部图像尺寸与所述面部图像尺寸的比值;或者,根据所述第一差值与所述图像的对比度和/或亮度的变化量的对应关系及所述用户的视力值与所述图像的对比度和/或亮度的变化量的对应关系,对所述终端屏幕上显示的所述图像的对比度和/或亮度进行调节。The adjustment unit is specifically configured to, according to the corresponding relationship between the first difference and the image size scaling factor and the corresponding relationship between the user's vision value and the image size scaling factor, display on the terminal screen The size of the image is adjusted, and the image size scaling factor is the ratio of the standard facial image size to the facial image size; or, according to the contrast and/or brightness of the first difference and the image and the corresponding relationship between the visual acuity value of the user and the contrast and/or brightness of the image, and adjust the contrast and/or brightness of the image displayed on the terminal screen.
在第二方面至第二方面的第二种可能的实现方式中,在第三种可能的实现方式中所述处理模块,还包括:比较单元,In the second possible implementation manner of the second aspect to the second aspect, in the third possible implementation manner, the processing module further includes: a comparison unit,
所述获取单元,还用于若所述第一差值的绝对值大于预设差值时,根据所述第一差值与所述面部与所述终端镜头之间的距离变化量的对应关系,获取当前所述用户的所述面部与所述终端镜头之间的当前距离;The acquisition unit is further configured to: if the absolute value of the first difference is greater than a preset difference, according to the corresponding relationship between the first difference and the distance variation between the face and the terminal lens , obtaining the current distance between the face of the current user and the lens of the terminal;
所述比较单元,用于将所述用户的面部与所述终端的镜头之间的习惯距离与所述当前距离进行比较,获得第二差值;The comparison unit is configured to compare the customary distance between the user's face and the lens of the terminal with the current distance to obtain a second difference;
所述调节单元,具体用于若所述第二差值的绝对值大于第二预设差值,则根据所述第二差值及所述用户的视力值,对所述终端的屏幕上显示的所述图像进行调节。The adjustment unit is specifically configured to display on the screen of the terminal according to the second difference and the user's vision value if the absolute value of the second difference is greater than the second preset difference. The image is adjusted.
在第二方面的第三种可能的实现方式中,在第四种可能的实现方式中,还包括:比较模块和提示模块,In the third possible implementation manner of the second aspect, in the fourth possible implementation manner, it further includes: a comparison module and a prompt module,
所述比较模块,用于将所述面部图像尺寸与标准面部图像尺寸进行相比,获得的第一比值;The comparison module is used to compare the facial image size with the standard facial image size to obtain the first ratio;
所述提示模块,用于若所述第一比值大于第一预设比值,则向所述用户发送第一提示信息,用以提示所述用户当前与所述终端镜头的距离较远;若所述第一比值小于第二预设比值,则向所述用户发送第二提示信息,用以提示所述用户当前与所述终端镜头的距离较近。The prompt module is configured to send a first prompt message to the user if the first ratio is greater than a first preset ratio, to remind the user that the distance between the user and the terminal lens is relatively far; if the If the first ratio is smaller than the second preset ratio, second prompt information is sent to the user to remind the user that the distance between the user and the terminal lens is relatively short.
在第二方面的第四种可能的实现方式中,在第五种可能的实现方式中,所述获取模块,还用于通过接收用户在所述终端的屏幕上显示的视力表的输入操作,对所述用户的视力进行测试,获取所述用户的视力值;或者接受所述用户输入的所述用户视力值。In the fourth possible implementation manner of the second aspect, in the fifth possible implementation manner, the obtaining module is further configured to receive an input operation of the eye chart displayed on the screen of the terminal by the user, Test the user's vision to obtain the user's vision value; or accept the user's vision value input by the user.
第三个方面,提供一种终端设备,包括:如上述第二方面至第二方面的任一可能的实现方式中任意一项所述的保护视力的终端显示装置。In a third aspect, there is provided a terminal device, including: the terminal display device for protecting eyesight according to any one of the possible implementation manners of the second aspect to the second aspect.
本发明实施例提供的保护视力的显示方法、显示装置和终端设备,通过获取当前用户的面部图像;接着,根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。从而实现了终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。The display method, display device, and terminal device for protecting eyesight provided by the embodiments of the present invention obtain the facial image of the current user; then, adjust the image displayed on the terminal screen according to the facial image and the user's vision value. Thus, the terminal device can adjust the image displayed on the terminal screen in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings on the premise of not paying creative efforts.
图1为本发明保护视力的显示方法一实施例的流程示意图;FIG. 1 is a schematic flowchart of an embodiment of the display method for protecting eyesight of the present invention;
图2为本发明保护视力的显示方法另一实施例的流程示意图;FIG. 2 is a schematic flowchart of another embodiment of the display method for protecting eyesight of the present invention;
图3为本发明保护视力的显示方法再一实施例的流程示意图;Fig. 3 is a schematic flowchart of another embodiment of the display method for protecting eyesight of the present invention;
图4为本发明保护视力的显示装置一实施例的结构示意图;4 is a schematic structural view of an embodiment of a display device for protecting eyesight of the present invention;
图5为本发明保护视力的显示装置另一实施例的结构示意图;Fig. 5 is a schematic structural view of another embodiment of the display device for protecting eyesight of the present invention;
图6为本发明保护视力的显示装置再一实施例的结构示意图。FIG. 6 is a schematic structural diagram of another embodiment of the display device for protecting eyesight according to the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供的保护视力的显示方法具体可以应用于用户正在使用终端设备时,该终端设备可以是智能手机或是平板电脑等。本实施例提供的保护视力的显示方法具体可以通过保护视力的显示装置来执行,该保护视力的显示装置可以集成在终端设备中,该保护视力的显示装置可以采用软件和/或硬件的方式来实现。以下对本实施例提供的保护视力的显示方法进行详细地说明。The display method for protecting eyesight provided by the embodiments of the present invention can be specifically applied when a user is using a terminal device, and the terminal device may be a smart phone or a tablet computer. The vision-protecting display method provided in this embodiment can be specifically implemented by a vision-protecting display device, which can be integrated into a terminal device, and the vision-protecting display device can use software and/or hardware to implement accomplish. The display method for protecting eyesight provided by this embodiment will be described in detail below.
图1为本发明保护视力的显示方法一实施例的流程示意图,如图1所示,本实施例的方法可以由保护视力的显示装置来执行,该显示装置可以通过硬件和/或软件的方式实现,可集成于终端设备中,该显示装置一般配置有镜头和显示屏幕。该方法包括如下步骤:Fig. 1 is a schematic flowchart of an embodiment of the display method for protecting eyesight of the present invention. As shown in Fig. 1, the method of this embodiment can be executed by a display device for protecting eyesight, and the display device can be implemented by means of hardware and/or software Realized, it can be integrated into a terminal device, and the display device is generally equipped with a lens and a display screen. The method comprises the steps of:
步骤101、获取当前用户的面部图像。Step 101, acquire the facial image of the current user.
在本实施例中,保护视力的显示装置可以周期性的获取当前用户的面部图像,或者,用户通过拍摄的方式使终端获取当前用户的面部图像。其中,面部图像可以是用户当前的整个脸部图像,也可以是用户的某个器官,如,眼睛等。In this embodiment, the vision-protecting display device may periodically acquire the facial image of the current user, or the user may make the terminal acquire the facial image of the current user by taking pictures. Wherein, the facial image may be the current entire facial image of the user, or may be a certain organ of the user, such as eyes.
步骤102、根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。Step 102, adjust the image displayed on the screen of the terminal according to the face image and the user's vision value.
具体的,根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节的适用场景至少包括有两种:Specifically, according to the facial image and the user's vision value, there are at least two applicable scenarios for adjusting the image displayed on the screen of the terminal:
第一种适用场景,识别面部图像,获取面部图像尺寸;接着,将面部图像尺寸与标准面部图像尺寸比对,获得第一差值,该标准面部图像尺寸为用户的习惯距离对应的用户的面部图像尺寸,其中,习惯距离为检测用户的面部与终端镜头之间的多次使用距离的均值,或用户自定义的距离;然后,若第一差值的绝对值大于第一预设值时,则对终端的屏幕上显示的图像进行调节。The first applicable scenario is to identify the facial image and obtain the size of the facial image; then, compare the size of the facial image with the size of the standard facial image to obtain the first difference. The standard facial image size is the user’s face corresponding to the user’s customary distance Image size, where the customary distance is the average value of the multiple-use distances between the detected user's face and the terminal lens, or a user-defined distance; then, if the absolute value of the first difference is greater than the first preset value, Then adjust the image displayed on the screen of the terminal.
第二种适用场景,识别面部图像,获取面部图像尺寸;接着,将面部图像尺寸与标准面部图像尺寸比对,获得第一差值,若第一差值的绝对值大于预设差值时,根据第一差值与面部与终端镜头之间的距离变化量的对应关系,获取当前用户的面部与终端镜头之间的当前距离;然后,将用户的面部与终端的镜头之间的习惯距离与当前距离进行比较,获得第二差值;若第二差值的绝对值大于第二预设差值,则根据第二差值及用户的视力值,对终端的屏幕上显示的图像进行调节。The second applicable scenario is to identify the facial image and obtain the facial image size; then, compare the facial image size with the standard facial image size to obtain the first difference, if the absolute value of the first difference is greater than the preset difference, According to the corresponding relationship between the first difference and the distance variation between the face and the terminal lens, the current distance between the current user's face and the terminal lens is obtained; then, the customary distance between the user's face and the terminal lens is compared with Comparing the current distances to obtain a second difference; if the absolute value of the second difference is greater than the second preset difference, adjusting the image displayed on the screen of the terminal according to the second difference and the user's vision value.
需要说明的是,不论是上述的哪种适用场景,对终端的屏幕上显示的图像进行调节的实现方式至少包括以下两种:It should be noted that no matter which of the above applicable scenarios, the implementation of adjusting the image displayed on the screen of the terminal includes at least the following two methods:
第一种实现方式,根据第一差值与图像尺寸缩放倍数的对应关系及用户的视力值所述图像尺寸缩放倍数的对应关系,对终端屏幕上显示的图像的尺寸进行调节,图像尺寸缩放倍数为标准面部图像尺寸与面部图像尺寸的比值;或者The first implementation mode is to adjust the size of the image displayed on the terminal screen according to the corresponding relationship between the first difference value and the zoom factor of the image size and the corresponding relationship between the zoom factor of the image size of the user's vision value, and the zoom factor of the image size is the ratio of the standard facial image size to the facial image size; or
第二种实现方式,根据第一差值与图像的对比度和/或亮度的变化量的对应关系及用户的视力值图像的对比度和/或亮度的变化量的对应关系,对终端屏幕上显示的图像的对比度和/或亮度进行调节。In the second implementation mode, according to the corresponding relationship between the first difference value and the contrast and/or brightness change of the image and the corresponding relationship between the contrast and/or brightness change of the user's visual acuity value image, the terminal screen displays the The contrast and/or brightness of the image can be adjusted.
需要说明的是,本实施例中用户的面部与终端镜头之间的当前距离至少是终端镜头焦距的两倍。It should be noted that, in this embodiment, the current distance between the user's face and the terminal lens is at least twice the focal length of the terminal lens.
本发明实施例提供的保护视力的显示方法,通过获取当前用户的面部图像;接着,根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。从而实现了终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。The display method for protecting eyesight provided by the embodiment of the present invention obtains the facial image of the current user; then, adjusts the image displayed on the screen of the terminal according to the facial image and the user's vision value. Thus, the terminal device can adjust the image displayed on the terminal screen in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
图2为本发明保护视力的显示方法另一实施例的流程示意图,如图2所示,该方法包括如下步骤:Fig. 2 is a schematic flowchart of another embodiment of the display method for protecting eyesight of the present invention. As shown in Fig. 2, the method includes the following steps:
步骤201、获取当前用户的面部图像。Step 201, acquire the facial image of the current user.
本实施例中的步骤201与步骤101的实现原理类似,在此不再赘述。The implementation principle of step 201 in this embodiment is similar to that of step 101, and will not be repeated here.
步骤202、识别面部图像,获取该面部图像尺寸。Step 202, identifying the face image, and acquiring the size of the face image.
在本实施例中,保护视力的显示装置通过对当前用户的面部图像的识别,可以获取该面部图像尺寸,即用户的面部在终端镜头上成像的尺寸,例如,面部图像的高度值和/或者宽度值,单位可以是厘米或是像素,在本实施例中对面部标准成像尺寸的单位不做限制。In this embodiment, the vision-protecting display device can obtain the size of the facial image by recognizing the facial image of the current user, that is, the size of the user's face imaged on the terminal lens, for example, the height value of the facial image and/or The unit of the width value may be centimeter or pixel, and there is no limitation on the unit of the standard imaging size of the face in this embodiment.
步骤203、将面部图像尺寸与标准面部图像尺寸比对,获得第一差值。Step 203, comparing the facial image size with the standard facial image size to obtain a first difference.
在本实施例中,该标准面部图像尺寸为用户的习惯距离对应的用户的面部图像尺寸,其中,该习惯距离为检测用户的面部与终端镜头之间的多次使用距离的均值,例如,用户使用终端设备的初期,根据终端设备上设置的测量设备周期性获取的用户的面部与终端镜头之间的距离,再经过均值计算最终获得该习惯距离,或者,用户自定义的距离为习惯距离,例如,用户在终端中输入一个数值作为习惯距离。In this embodiment, the standard facial image size is the user's facial image size corresponding to the user's customary distance, wherein the customary distance is the average value of multiple use distances between the user's face and the terminal lens, for example, the user At the initial stage of using the terminal device, the distance between the user's face and the terminal lens is periodically obtained according to the measuring device set on the terminal device, and then the customary distance is finally obtained through average calculation, or the user-defined distance is the customary distance. For example, the user inputs a value in the terminal as the customary distance.
举例来讲,将面部图像尺寸与标准面部图像尺寸比对的实现方式可以具体为:显示装置周期性的将面部图像尺寸与标准面部图像尺寸的高度值进行比较,获得第一差值,或是,显示装置将面部图像尺寸与标准面部图像尺寸的宽度值进行比较,获得第一差值。For example, the implementation of comparing the size of the face image with the size of the standard face image may specifically be: the display device periodically compares the size of the face image with the height value of the size of the standard face image to obtain the first difference, or , the display device compares the size of the facial image with the width value of the standard facial image size to obtain a first difference.
步骤204、若第一差值的绝对值大于第一预设值时,则对终端的屏幕上显示的图像进行调节。Step 204, if the absolute value of the first difference is greater than the first preset value, adjust the image displayed on the screen of the terminal.
具体的,若第一差值的绝对值大于第一预设值时,则对终端的所述屏幕上显示的图像进行调节,包括至少有两种实现方式:Specifically, if the absolute value of the first difference is greater than the first preset value, the image displayed on the screen of the terminal is adjusted, including at least two implementations:
第一种实现方式,根据第一差值与图像尺寸缩放倍数的对应关系及用户的视力值,对终端屏幕上显示的所述图像的尺寸进行调节,其中,图像尺寸缩放倍数为面部图像尺寸与标准面部图像尺寸的比值。The first implementation mode is to adjust the size of the image displayed on the terminal screen according to the corresponding relationship between the first difference and the image size scaling factor and the user's vision value, wherein the image size scaling factor is the facial image size and Ratio of standard face image dimensions.
具体的,若第一差值大于零时,则将面部图像尺寸与标准面部图像尺寸的比值作为图像尺寸缩放倍数,即缩小倍数,并根据用户的视力值,对终端屏幕上显示的图像的尺寸进行调节,即缩小。若第一差值小于零时,则将面部图像尺寸与标准面部图像尺寸的比值作为图像尺寸缩放倍数,即放大倍数,并根据用户的视力值与图像尺寸缩放倍数的对应关系,对终端屏幕上显示的所述图像的尺寸进行调节,即放大。Specifically, if the first difference is greater than zero, the ratio of the facial image size to the standard facial image size is used as the image size scaling factor, that is, the reduction factor, and the size of the image displayed on the terminal screen is adjusted according to the user's vision value. Make adjustments, i.e. zoom out. If the first difference is less than zero, the ratio of the facial image size to the standard facial image size is used as the image size scaling factor, that is, the magnification factor, and according to the corresponding relationship between the user's vision value and the image size scaling factor, on the terminal screen The size of the displayed image is adjusted, ie enlarged.
举例来讲,将标准面部图像尺寸与面部图像尺寸相除,获得的比值作为显示倍数,并根据该比值对终端屏幕上显示的图像尺寸进行调节,例如,用户的视力值为1.0,用户与终端屏幕之间的习惯距离为30厘米,在用户使用终端设备的初期,显示装置获得用户的标准面部图像为4厘米,终端屏幕上显示的图像尺寸是根据该用户的视力值与习惯距离进行显示的,在用户使用终端设备的过程中,终端设备可以获得用户的面部图像的高度尺寸为5厘米,可以根据4/5的比例来缩小终端屏幕上的图像尺寸。For example, the standard facial image size is divided by the facial image size, and the obtained ratio is used as the display multiple, and the image size displayed on the terminal screen is adjusted according to the ratio. For example, the user's vision value is 1.0, and the user and the terminal The customary distance between the screens is 30 centimeters. At the initial stage of the user’s use of the terminal device, the standard facial image obtained by the display device is 4 centimeters. The size of the image displayed on the terminal screen is based on the user’s vision value and customary distance. , when the user uses the terminal device, the terminal device can obtain the user's face image with a height of 5 cm, and the image size on the terminal screen can be reduced according to the ratio of 4/5.
第二种实现方式,根据第一差值与图像的对比度和/或亮度的变化量的对应关系及用户的视力值与图像的对比度和/或亮度的变化量的对应关系,对终端屏幕上显示的图像的对比度和/或亮度进行调节。In the second implementation mode, according to the corresponding relationship between the first difference value and the amount of change in the contrast and/or brightness of the image and the corresponding relationship between the user's vision value and the amount of change in the contrast and/or brightness of the image, the information displayed on the terminal screen to adjust the contrast and/or brightness of the image.
具体的,若第一差值大于零时,可以确定用户与终端镜头的距离小于习惯距离,则根据图像的对比度和/或亮度的变化量的对应关系及用户的视力值与图像的对比度和/或亮度的变化量的对应关系,降低终端屏幕上显示的图像的对比度和/或亮度。若第一差值小于零时,可以确定用户与终端镜头的距离大于习惯距离,则根据图像的对比度和/或亮度的变化量的对应关系及用户的视力值,调高终端屏幕上显示的图像的对比度和/或亮度。Specifically, if the first difference is greater than zero, it can be determined that the distance between the user and the terminal lens is less than the customary distance, then according to the corresponding relationship between the contrast and/or brightness change of the image and the contrast and/or contrast between the user's vision value and the image or the corresponding relationship of the change amount of the brightness, and reduce the contrast and/or brightness of the image displayed on the terminal screen. If the first difference is less than zero, it can be determined that the distance between the user and the terminal lens is greater than the customary distance, then adjust the height of the image displayed on the terminal screen according to the corresponding relationship between the image contrast and/or brightness change and the user's vision value contrast and/or brightness.
需要说明的是,若该第一差值的绝对值小于第一预设差值,则认为是用户身体抖动产生的用户与终端屏幕之间距离的变化,从而不调节终端屏幕上显示的图像尺寸;若该第一差值的绝对值大于预设差值,则对终端屏幕上显示的图像尺寸按照上述的比值进行调节,即将当前距离与习惯距离的比值乘以调节前终端屏幕上显示的图像尺寸作为当前终端屏幕上显示的图像尺寸。It should be noted that if the absolute value of the first difference is smaller than the first preset difference, it is considered to be a change in the distance between the user and the terminal screen caused by the shaking of the user's body, so that the image size displayed on the terminal screen is not adjusted. ; If the absolute value of the first difference is greater than the preset difference, the size of the image displayed on the terminal screen is adjusted according to the above-mentioned ratio, that is, the ratio of the current distance to the customary distance is multiplied by the image displayed on the terminal screen before adjustment Size as the image size displayed on the current terminal screen.
在本实施例提供的保护视力的显示方法,通过获取当前用户的面部图像,并识别面部图像,获取该面部图像尺寸,接着,将面部图像尺寸与标准面部图像尺寸比对,获得第一差值,然后,若第一差值的绝对值大于第一预设值时,则对终端的屏幕上显示的图像进行调节。从而实现了终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。In the display method for protecting eyesight provided in this embodiment, by acquiring the facial image of the current user, and identifying the facial image, the size of the facial image is obtained, and then comparing the facial image size with the standard facial image size to obtain the first difference , and then, if the absolute value of the first difference is greater than the first preset value, adjusting the image displayed on the screen of the terminal. Thus, the terminal device can adjust the image displayed on the terminal screen in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
进一步的,在上述实施例的基础上,在步骤203、将面部图像尺寸与标准面部图像尺寸比对,获得第一差值之后,还可以包括:Further, on the basis of the above-mentioned embodiments, after step 203, comparing the facial image size with the standard facial image size and obtaining the first difference, it may also include:
若第一差值的绝对值大于预设差值时,根据第一差值与面部与终端镜头之间的距离变化量的对应关系,获取当前用户的面部与终端镜头之间的当前距离;If the absolute value of the first difference is greater than the preset difference, according to the corresponding relationship between the first difference and the distance variation between the face and the terminal lens, the current distance between the current user's face and the terminal lens is obtained;
将用户的面部与终端的镜头之间的习惯距离与当前距离进行比较,获得第二差值;Comparing the customary distance between the user's face and the lens of the terminal with the current distance to obtain a second difference;
若第二差值的绝对值大于第二预设差值,则根据第二差值及用户的视力值,对终端的屏幕上显示的图像进行调节。If the absolute value of the second difference is greater than the second preset difference, the image displayed on the screen of the terminal is adjusted according to the second difference and the vision value of the user.
在本实施例中,获取当前用户的面部与终端镜头之间的当前距离的实现方式至少包括三种:In this embodiment, there are at least three ways to obtain the current distance between the current user's face and the terminal lens:
第一种实现方式,用户可以在终端上输入用户的面部与终端镜头的当前距离。In the first implementation manner, the user may input the current distance between the user's face and the terminal lens on the terminal.
第二种实现方式,终端显示装置可以根据设置在终端的测量设备测量到用户的面部与终端镜头的当距离。In the second implementation manner, the display device of the terminal may measure the proper distance between the user's face and the lens of the terminal according to the measuring equipment set on the terminal.
第三种实现方式,将用户的标准面部图像尺寸与终端镜头的焦距的乘积,再与当前人脸成像尺寸相除,获得该用户与终端镜头之间的当前距离,其中,标准面部图像尺寸为人脸标准成像尺寸与终端镜头的焦距相乘,再将获得的该乘积与习惯距离相除获得的,The third implementation method is to divide the product of the user's standard facial image size and the focal length of the terminal lens by the current face imaging size to obtain the current distance between the user and the terminal lens, where the standard facial image size is human The standard imaging size of the face is multiplied by the focal length of the terminal lens, and then the obtained product is divided by the customary distance.
在本实施例中,将用户的面部与终端的镜头之间的习惯距离与当前距离进行比较,获得的第二差值的绝对值大于第二预设差值,即用户的面部与终端的镜头之间的当前距离与习惯距离的差值超过一个范围之后,将对终端的屏幕上显示的图像进行调节,具体调节方式与上述实施例的原理与效果类似,在此不再赘述。In this embodiment, the customary distance between the user's face and the terminal's lens is compared with the current distance, and the absolute value of the second difference obtained is greater than the second preset difference, that is, the user's face and the terminal's lens After the difference between the current distance and the customary distance exceeds a range, the image displayed on the screen of the terminal will be adjusted. The specific adjustment method is similar to the principle and effect of the above embodiment, and will not be repeated here.
图3为本发明保护视力的显示方法再一实施例的流程示意图,如图3所示,该方法包括如下步骤:Fig. 3 is a schematic flowchart of another embodiment of the display method for protecting eyesight according to the present invention. As shown in Fig. 3, the method includes the following steps:
步骤301、获取当前用户的面部图像。Step 301, acquire the facial image of the current user.
本实施例中的步骤301与步骤101的实现原理类似,在此不再赘述。The implementation principle of step 301 in this embodiment is similar to that of step 101, and details are not repeated here.
步骤302、将面部图像尺寸与标准面部图像尺寸进行相比,获得的第一比值。Step 302: Comparing the facial image size with the standard facial image size to obtain a first ratio.
步骤303、将第一比值与预设比值进行比较,并根据比较结果,向用户发送提示信息。Step 303, comparing the first ratio with a preset ratio, and sending prompt information to the user according to the comparison result.
具体的,将第一比值与第一预设比值进行比较,若第一比值大于第一预设比值,则确定当前距离大于习惯距离,向用户发送第一提示信息,用以提示用户当前与终端镜头的距离较远;或者,Specifically, the first ratio is compared with the first preset ratio, and if the first ratio is greater than the first preset ratio, it is determined that the current distance is greater than the customary distance, and a first prompt message is sent to the user to remind the user that the current distance with the terminal is The lens is located at a greater distance; or,
将第一比值与第二预设比值进行比较,若第一比值小于第二预设比值,则确定若当前距离小于习惯距离,向用户发送第二提示信息,用以提示用户当前与终端镜头的距离较近。Comparing the first ratio with the second preset ratio, if the first ratio is smaller than the second preset ratio, it is determined that if the current distance is smaller than the customary distance, a second prompt message is sent to the user to remind the user of the current distance with the terminal lens The distance is relatively close.
其中,所述第一比值包括第一比值的大小及方向,所述第一预设比值大于所述第二预设比值。Wherein, the first ratio includes the magnitude and direction of the first ratio, and the first preset ratio is greater than the second preset ratio.
本发明实施例提供的保护视力的显示方法,通过获取当前用户的面部图像,接着,将面部图像尺寸与标准面部图像尺寸进行相比,获得的第一比值,然后将第一比值与预设比值进行比较,并根据比较结果,向用户发送提示信息。从而实现了终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。The display method for protecting eyesight provided by the embodiment of the present invention obtains the facial image of the current user, and then compares the facial image size with the standard facial image size to obtain the first ratio, and then compares the first ratio with the preset ratio Make a comparison, and send a prompt message to the user according to the comparison result. Thus, the terminal device can adjust the image displayed on the terminal screen in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
进一步的,在向用户发送提示信息的同时,还可以对终端的屏幕上显示的图像进行调节。对终端的屏幕上显示的图像进行调节具体方式与上述实施例类似,在此不再赘述。Furthermore, while sending the prompt information to the user, the image displayed on the screen of the terminal can also be adjusted. The specific manner of adjusting the image displayed on the screen of the terminal is similar to the foregoing embodiment, and will not be repeated here.
在上述实施例的基础上,该保护视力的显示方法中,还可以包括:获取用户的视力值,具体实现方式为:On the basis of the above-mentioned embodiments, the display method for protecting eyesight may further include: acquiring the user's eyesight value, and the specific implementation method is as follows:
第一种实现方式,通过接收用户在所述终端的屏幕上显示的视力表的输入操作,对用户的视力进行测试,获取用户的视力值。The first implementation manner is to test the user's vision and obtain the user's vision value by receiving an input operation of the user's vision chart displayed on the screen of the terminal.
具体的,终端开机或是解锁之后,用户可以通过该终端进行视力检测,即用户在与终端保持习惯距离,如在30厘米的下进行视力检测,其中,该终端设置有视力检测软件。进行视力检测的具体方法可以为,终端屏幕上首先显示视力为1.0的字符,通过手指滑动判断字符E的开口方向,如果指向错误,则终端屏幕显示视力为0.8的字符,用户继续手指滑动来确定字符E的开口方向,直至检测正确,同时终端显示装置记录最近一次的字符对应的视力值作为用户视力值,并建立视力档案,该视力档案可以包括:测试时间,视力值,用户习惯距离,用户舒适亮度等信息,如时间:2012-12-20,视力值0.8,习惯距离30cm,舒适亮度65%,其中,习惯距离可以是用户手动输入的,舒适亮度可以是用户手动输入或是出厂时携带的默认值。Specifically, after the terminal is turned on or unlocked, the user can perform vision testing through the terminal, that is, the user maintains a customary distance from the terminal, such as 30 cm, for vision testing, wherein the terminal is provided with vision testing software. The specific method for visual acuity detection can be as follows: firstly display the character with visual acuity of 1.0 on the terminal screen, and judge the opening direction of character E by sliding the finger. If the direction is wrong, the terminal screen will display the character with visual acuity of 0.8, and the user continues to slide the finger to determine The opening direction of the character E until the detection is correct, and at the same time the terminal display device records the visual acuity value corresponding to the last character as the user visual acuity value, and establishes a visual acuity file. The visual acuity file can include: test time, visual acuity value, user habitual distance, user Comfortable brightness and other information, such as time: 2012-12-20, vision value 0.8, habitual distance 30cm, comfortable brightness 65%, among which, the habitual distance can be manually input by the user, and the comfortable brightness can be manually input by the user or carried when leaving the factory the default value for .
需要说明的是,本实施例中根据终端屏幕上显示的视力表获取用户视力值的方法,不限于上述描述,还可以根据本领域技术人员所能想到的任何方法进行实施。It should be noted that, in this embodiment, the method for obtaining the user's visual acuity value according to the visual acuity chart displayed on the terminal screen is not limited to the above description, and can also be implemented according to any method conceivable by those skilled in the art.
第二种实现方式,终端接收所述用户输入的所述用户视力值。In a second implementation manner, the terminal receives the user vision value input by the user.
终端开机或是解锁之后,用户需要在填写视力档案时输入视力值,该视力档案的内容与上述实施例中的视力档案的内容类似,在此不再赘述。After the terminal is powered on or unlocked, the user needs to input the vision value when filling in the vision file. The content of the vision file is similar to the content of the vision file in the above embodiment, and will not be repeated here.
第三种实现方式,根据当前距离与习惯距离的差值,检测用户的视力,并获得用户的视力值。The third implementation way is to detect the user's eyesight according to the difference between the current distance and the customary distance, and obtain the user's eyesight value.
在用户使用终端的过程中,当确定当前距离与习惯距离之间的差值超过预设值是,可以检测用户的视力,并获得用户的视力值,其中,检测用户视力的具体方式与上述实施例类似,在此不再赘述。When the user is using the terminal, when it is determined that the difference between the current distance and the customary distance exceeds the preset value, the user's vision can be detected and the user's vision value can be obtained, wherein the specific method of detecting the user's vision is the same as the above implementation Examples are similar and will not be repeated here.
本实施例提供的方法,在用户使用终端的初期,或者在用户使用终端的过程中,用户可以在检测视力之后,得知自己的视力是否下降,从而自行的确定使用终端的情况,进而可以为用户自动保护视力提供条件。With the method provided in this embodiment, at the initial stage of the user's use of the terminal, or during the user's use of the terminal, the user can know whether his vision has declined after the vision is detected, so as to determine the situation of using the terminal by himself, and then can provide Users automatically protect eyesight to provide conditions.
图4为本发明保护视力的显示装置一实施例的结构示意图,如图4所示,该显示装置,包括:获取模块401和处理模块402,其中,获取模块401,用于获取当前用户的面部图像;处理模块402,用于根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。FIG. 4 is a schematic structural diagram of an embodiment of a display device for protecting eyesight of the present invention. As shown in FIG. 4 , the display device includes: an acquisition module 401 and a processing module 402, wherein the acquisition module 401 is used to acquire the current user's face An image; a processing module 402, configured to adjust the image displayed on the screen of the terminal according to the face image and the user's vision value.
本发明实施例提供的保护视力的显示方法,通过获取当前用户的面部图像;接着,根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。从而实现终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。The display method for protecting eyesight provided by the embodiment of the present invention obtains the facial image of the current user; then, adjusts the image displayed on the screen of the terminal according to the facial image and the user's vision value. In this way, the terminal device can adjust the image displayed on the terminal screen in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
图5为本发明保护视力的显示装置另一实施例的结构示意图,如图5所示,在上述实施例的基础上,处理模块402,可以包括:获取单元4021、计算单元4022和调节单元4023。其中,获取单元4021,用于识别面部图像,获取面部图像尺寸;计算单元4022,用于将面部图像尺寸与标准面部图像尺寸比对,获得第一差值,标准面部图像尺寸为用户的习惯距离对应的用户的面部图像尺寸,其中,习惯距离为检测用户的面部与终端镜头之间的多次使用距离的均值,或用户自定义的距离;调节单元4023,用于若第一差值的绝对值大于第一预设值时,对终端的屏幕上显示的图像进行调节。Fig. 5 is a schematic structural diagram of another embodiment of the display device for protecting eyesight according to the present invention. As shown in Fig. 5, on the basis of the above embodiment, the processing module 402 may include: an acquisition unit 4021, a calculation unit 4022 and an adjustment unit 4023 . Among them, the acquisition unit 4021 is used to identify the facial image and obtain the facial image size; the calculation unit 4022 is used to compare the facial image size with the standard facial image size to obtain the first difference. The standard facial image size is the user's customary distance The size of the corresponding user's facial image, wherein the customary distance is the average value of the multiple use distances between the detected user's face and the terminal lens, or a user-defined distance; the adjustment unit 4023 is used to determine the absolute value of the first difference When the value is greater than the first preset value, the image displayed on the screen of the terminal is adjusted.
进一步的,在上述实施例的基础上,调节单元4023,具体用于根据第一差值与图像尺寸缩放倍数的对应关系及用户的视力值与图像尺寸缩放倍数的对应关系,对终端屏幕上显示的图像的尺寸进行调节,图像尺寸缩放倍数为面部图像尺寸与标准面部图像尺寸的比值;或者,根据第一差值与图像的对比度和/或亮度的变化量的对应关系及用户的视力值与图像的对比度和/或亮度的变化量的对应关系,对终端屏幕上显示的图像的对比度和/或亮度进行调节。Further, on the basis of the above-mentioned embodiments, the adjusting unit 4023 is specifically configured to, according to the corresponding relationship between the first difference value and the zoom factor of the image size and the corresponding relationship between the user's vision value and the zoom factor of the image size, display on the terminal screen. The size of the image is adjusted, and the zoom factor of the image size is the ratio of the size of the face image to the size of the standard face image; or, according to the corresponding relationship between the first difference and the amount of change in the contrast and/or brightness of the image and the user's visual acuity value and The corresponding relationship of the contrast and/or brightness change of the image adjusts the contrast and/or brightness of the image displayed on the terminal screen.
可选的,在上述实施例的基础上,获取单元4021,还用于若第一差值的绝对值大于预设差值时,根据第一差值与面部与终端镜头之间的距离变化量的对应关系,获取当前用户的面部与终端镜头之间的当前距离;Optionally, on the basis of the above-mentioned embodiments, the acquisition unit 4021 is further configured to: if the absolute value of the first difference is greater than the preset difference, according to the first difference and the distance change between the face and the terminal lens Corresponding relationship, obtain the current distance between the current user's face and the terminal lens;
计算单元4022,用于将用户的面部与终端的镜头之间的习惯距离与当前距离进行比较,获得第二差值;A calculation unit 4022, configured to compare the customary distance between the user's face and the lens of the terminal with the current distance to obtain a second difference;
调节单元4023,具体用于若第二差值的绝对值大于第二预设差值,则根据第二差值及用户的视力值,对终端的屏幕上显示的图像进行调节。The adjustment unit 4023 is specifically configured to adjust the image displayed on the screen of the terminal according to the second difference and the user's vision value if the absolute value of the second difference is greater than the second preset difference.
进一步的,可选的,该显示装置还可以包括:比较模块403和提示模块404,其中,Further, optionally, the display device may also include: a comparison module 403 and a prompt module 404, wherein,
比较模块403,用于将面部图像尺寸与标准面部图像尺寸进行相比,获得的第一比值;Comparison module 403, used to compare the size of the face image with the size of the standard face image, and obtain the first ratio;
提示模块404,用于若第一比值大于第一预设比值,则向用户发送第一提示信息,用以提示用户当前与终端镜头的距离较远;若第一比值小于第二预设比值,则向用户发送第二提示信息,用以提示用户当前与终端镜头的距离较近。The prompt module 404 is configured to send the first prompt message to the user if the first ratio is greater than the first preset ratio, to remind the user that the distance between the user and the terminal lens is relatively far; if the first ratio is smaller than the second preset ratio, Then, the second prompt information is sent to the user to remind the user that the distance between the user and the terminal lens is relatively short.
进一步的,获取模块401,还用于通过接收用户在终端的屏幕上显示的视力表的输入操作,对用户的视力进行测试,获取用户的视力值;或者接受用户输入的用户视力值。Further, the obtaining module 401 is also configured to test the user's vision and obtain the user's vision value by receiving an input operation of the user's vision chart displayed on the terminal screen; or accept the user's vision value input by the user.
图6为本发明保护视力的显示装置再一实施例的结构示意图,如图6所示,该显示装置,包括:显示器601、输入设备602、摄像头603和处理器604,显示器601,用于在保护视力的显示装置上显示图像;输入设备602,用于接收用户的输入操作;其中,摄像头603,用于获取当前用户的面部图像;处理器604,用于根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。Fig. 6 is a schematic structural diagram of another embodiment of a display device for protecting eyesight according to the present invention. As shown in Fig. 6, the display device includes: a display 601, an input device 602, a camera 603 and a processor 604, and the display 601 is used for displaying An image is displayed on the display device for protecting eyesight; the input device 602 is used to receive the input operation of the user; wherein, the camera 603 is used to obtain the facial image of the current user; the processor 604 is used to, according to the facial image and the user's vision value, The image displayed on the screen of the terminal is adjusted.
本发明实施例提供的保护视力的显示方法,通过获取当前用户的面部图像;接着,根据面部图像以及用户的视力值,对终端的屏幕上显示的图像进行调节。从而实现终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,进而为用户的使用带来较大的便利。The display method for protecting eyesight provided by the embodiment of the present invention obtains the facial image of the current user; then, adjusts the image displayed on the screen of the terminal according to the facial image and the user's vision value. In this way, the terminal device can adjust the image displayed on the terminal screen in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
在上述实施例的基础上,处理器604,具体用于识别面部图像,获取面部图像尺寸;将面部图像尺寸与标准面部图像尺寸比对,获得第一差值,标准面部图像尺寸为用户的习惯距离对应的用户的面部图像尺寸,其中,习惯距离为检测用户的面部与终端镜头之间的多次使用距离的均值,或用户自定义的距离;若第一差值的绝对值大于第一预设值时,对终端的屏幕上显示的图像进行调节。On the basis of the above-mentioned embodiments, the processor 604 is specifically used to identify the facial image and obtain the facial image size; compare the facial image size with the standard facial image size to obtain the first difference, and the standard facial image size is the user's habit The size of the user's face image corresponding to the distance, wherein, the customary distance is the average value of multiple use distances between the detected user's face and the terminal lens, or a user-defined distance; if the absolute value of the first difference is greater than the first preset When setting the value, adjust the image displayed on the screen of the terminal.
进一步的,在上述实施例的基础上,处理器604,具体用于根据第一差值与图像尺寸缩放倍数的对应关系及用户的视力值与图像尺寸缩放倍数的对应关系,对终端屏幕上显示的图像的尺寸进行调节,图像尺寸缩放倍数为面部图像尺寸与标准面部图像尺寸的比值;或者,根据第一差值与图像的对比度和/或亮度的变化量的对应关系及用户的视力值与图像的对比度和/或亮度的变化量的对应关系,对终端屏幕上显示的图像的对比度和/或亮度进行调节。Further, on the basis of the above-mentioned embodiments, the processor 604 is specifically configured to, according to the corresponding relationship between the first difference value and the image size scaling factor and the corresponding relationship between the user's vision value and the image size scaling factor, display on the terminal screen. The size of the image is adjusted, and the zoom factor of the image size is the ratio of the size of the face image to the size of the standard face image; or, according to the corresponding relationship between the first difference and the amount of change in the contrast and/or brightness of the image and the user's visual acuity value and The corresponding relationship of the contrast and/or brightness change of the image adjusts the contrast and/or brightness of the image displayed on the terminal screen.
可选的,在上述实施例的基础上,处理器604,还用于若第一差值的绝对值大于预设差值时,根据第一差值与面部与终端镜头之间的距离变化量的对应关系,获取当前用户的面部与终端镜头之间的当前距离;将用户的面部与终端的镜头之间的习惯距离与当前距离进行比较,获得第二差值;若第二差值的绝对值大于第二预设差值,则根据第二差值及用户的视力值,对终端的屏幕上显示的图像进行调节。Optionally, on the basis of the above-mentioned embodiments, the processor 604 is further configured to: if the absolute value of the first difference is greater than the preset difference, according to the first difference and the amount of change in the distance between the face and the terminal lens Corresponding relationship, obtain the current distance between the current user's face and the terminal lens; compare the customary distance between the user's face and the terminal lens with the current distance, and obtain the second difference; if the absolute value of the second difference If the value is greater than the second preset difference value, the image displayed on the screen of the terminal is adjusted according to the second difference value and the vision value of the user.
进一步的,可选的,处理器604,还用于将面部图像尺寸与标准面部图像尺寸进行相比,获得的第一比值;若第一比值大于第一预设比值,则向用户发送第一提示信息,用以提示用户当前与终端镜头的距离较远;若第一比值小于第二预设比值,则向用户发送第二提示信息,用以提示用户当前与终端镜头的距离较近。Further, optionally, the processor 604 is also used to compare the facial image size with the standard facial image size to obtain a first ratio; if the first ratio is greater than the first preset ratio, send the first ratio to the user. The prompt information is used to remind the user that the current distance from the terminal lens is far; if the first ratio is smaller than the second preset ratio, the second prompt information is sent to the user to remind the user that the current distance from the terminal lens is relatively short.
进一步的,处理器604,还用于通过接收用户在终端的屏幕上显示的视力表的输入操作,对用户的视力进行测试,获取用户的视力值;或者接受用户输入的用户视力值。Further, the processor 604 is also configured to test the user's vision and obtain the user's vision value by receiving an input operation of the user's vision chart displayed on the terminal screen; or accept the user's vision value input by the user.
在本实施例中,可以实现终端设备根据用户当前的使用情况实时对终端屏幕上显示的图像进行调节,从而为用户的使用带来较大的便利In this embodiment, the terminal device can adjust the image displayed on the terminal screen in real time according to the current usage of the user, thereby bringing greater convenience to the user
本发明实施例终端设备中,包括:上述实施例中提供的任意一种显示装置。The terminal device in this embodiment of the present invention includes: any one of the display devices provided in the foregoing embodiments.
本发明实施例提供的终端设备,可以通过获取当前用户与终端镜头之间的当前距离,对终端屏幕上显示的图像尺寸进行调节。从而实现终端显示装置根据用户当前的使用情况实时对终端显示的图像尺寸进行调节,进而为用户的使用带来较大的便利。The terminal device provided by the embodiment of the present invention can adjust the image size displayed on the terminal screen by acquiring the current distance between the current user and the terminal lens. Therefore, the display device of the terminal can adjust the size of the image displayed on the terminal in real time according to the current use situation of the user, thereby bringing great convenience to the use of the user.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310270914.5A CN104252828B (en) | 2013-06-29 | 2013-06-29 | Protect display methods, display device and the terminal device of eyesight |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310270914.5A CN104252828B (en) | 2013-06-29 | 2013-06-29 | Protect display methods, display device and the terminal device of eyesight |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104252828A CN104252828A (en) | 2014-12-31 |
CN104252828B true CN104252828B (en) | 2018-06-05 |
Family
ID=52187681
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310270914.5A Active CN104252828B (en) | 2013-06-29 | 2013-06-29 | Protect display methods, display device and the terminal device of eyesight |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104252828B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104915095B (en) * | 2015-05-25 | 2018-07-06 | 广东欧珀移动通信有限公司 | A kind of method and terminal of the information display state for adjusting terminal display interface |
CN105373775A (en) * | 2015-10-14 | 2016-03-02 | 广东小天才科技有限公司 | Method and device for protecting user eyesight |
CN106445124B (en) * | 2016-09-09 | 2019-08-02 | 京东方科技集团股份有限公司 | The frame parameter adjusting method and its device for showing equipment, showing equipment |
CN110111747A (en) * | 2019-04-24 | 2019-08-09 | 上海闻泰电子科技有限公司 | Adjust the method and device of screen backlight |
CN110109546A (en) * | 2019-05-05 | 2019-08-09 | 南京信息职业技术学院 | Character scaling device and method based on eyesight |
CN110727316A (en) * | 2019-10-12 | 2020-01-24 | 北京硬壳科技有限公司 | Method and device for automatically adjusting position of display and display |
CN111522250B (en) * | 2020-05-28 | 2022-01-14 | 华为技术有限公司 | Intelligent household system and control method and device thereof |
CN113486802A (en) * | 2021-07-07 | 2021-10-08 | 北京百度网讯科技有限公司 | Method and device for providing eye protection mode, storage medium and mobile device |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101409784A (en) * | 2007-10-10 | 2009-04-15 | 联想(北京)有限公司 | Camera device and information-prompting apparatus |
CN101470460B (en) * | 2007-12-29 | 2011-07-27 | 联想(北京)有限公司 | Method for sight protection when using computer, and computer thereof |
CN101271678A (en) * | 2008-04-30 | 2008-09-24 | 深圳华为通信技术有限公司 | Screen font zooming method and terminal unit |
CN101751209B (en) * | 2008-11-28 | 2012-10-10 | 联想(北京)有限公司 | Method and computer for adjusting screen display element |
JP2010176170A (en) * | 2009-01-27 | 2010-08-12 | Sony Ericsson Mobilecommunications Japan Inc | Display apparatus, display control method, and display control program |
CN101707056A (en) * | 2009-09-28 | 2010-05-12 | 宇龙计算机通信科技(深圳)有限公司 | Method, system and mobile terminal for adjusting and displaying font size |
CN102693067B (en) * | 2011-03-25 | 2017-12-12 | 吕洋波 | The adjustment system and method for font size |
CN102724398B (en) * | 2011-03-31 | 2017-02-08 | 联想(北京)有限公司 | Image data providing method, combination method thereof, and presentation method thereof |
CN102846305B (en) * | 2012-10-15 | 2014-11-26 | 上海华勤通讯技术有限公司 | Handhold equipment for inspecting vision and method |
CN103019384B (en) * | 2012-12-21 | 2016-05-11 | 广东欧珀移动通信有限公司 | A kind of method and apparatus of in terminal, display interface being adjusted |
-
2013
- 2013-06-29 CN CN201310270914.5A patent/CN104252828B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104252828A (en) | 2014-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104252828B (en) | Protect display methods, display device and the terminal device of eyesight | |
US9509916B2 (en) | Image presentation method and apparatus, and terminal | |
US9326675B2 (en) | Virtual vision correction for video display | |
US20190244369A1 (en) | Display device and method for image processing | |
CN105653032B (en) | Display adjusting method and device | |
TWI571860B (en) | Font size adjustment system and method | |
CN104767888A (en) | Method and device for adjusting screen brightness | |
CN104167196B (en) | The control method of a kind of backlight illumination, device and electronic equipment | |
CN111626166B (en) | Image processing method, device, electronic equipment and storage medium | |
US20170372679A1 (en) | Mobile Terminal for Automatically Adjusting a Text Size and a Method Thereof | |
EP2755164A2 (en) | Display apparatus and control method for adjusting the eyes of a photographed user | |
CN107133008B (en) | Method for automatically adjusting output of mobile terminal | |
CN103716539A (en) | Photographing method and apparatus | |
CN105868235A (en) | Image preview method and apparatus of intelligent terminal | |
CN107948399A (en) | Eye protection method and device for mobile terminal, mobile terminal and storage medium | |
CN107993630A (en) | Eye protection method and device for display terminal, terminal and storage medium | |
CN107436681A (en) | Mobile terminal and method for automatically adjusting display size of characters | |
CN105430269B (en) | A kind of photographic method and device applied to mobile terminal | |
CN111340691A (en) | Image processing method, device, electronic device and storage medium | |
US10162997B2 (en) | Electronic device, computer readable storage medium and face image display method | |
TW201506812A (en) | Method and device for switching display direction, electronic device and machine-readable storage medium | |
CN106814959A (en) | A method, device and terminal for beautifying and taking photos | |
WO2018219290A1 (en) | Information terminal | |
TWI603225B (en) | Viewing angle adjusting method and apparatus of liquid crystal display | |
CN115083325A (en) | Equipment control method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171030 Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Applicant after: Huawei terminal (Dongguan) Co.,Ltd. Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No. Applicant before: HUAWEI DEVICE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171101 Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Applicant after: Huawei terminal (Dongguan) Co.,Ltd. Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No. Applicant before: HUAWEI DEVICE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee after: HUAWEI DEVICE Co.,Ltd. Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee before: Huawei terminal (Dongguan) Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210428 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Device Co.,Ltd. Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Patentee before: HUAWEI DEVICE Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |