[go: up one dir, main page]

CN104504374A - Method and system for automatically monitoring distance from human eyes to screen - Google Patents

Method and system for automatically monitoring distance from human eyes to screen Download PDF

Info

Publication number
CN104504374A
CN104504374A CN201410798460.3A CN201410798460A CN104504374A CN 104504374 A CN104504374 A CN 104504374A CN 201410798460 A CN201410798460 A CN 201410798460A CN 104504374 A CN104504374 A CN 104504374A
Authority
CN
China
Prior art keywords
distance
pixel value
screen
human eye
user
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.)
Pending
Application number
CN201410798460.3A
Other languages
Chinese (zh)
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.)
HEFEI UFLYVISION TECHNOLOGY Co Ltd
University of Science and Technology of China USTC
Original Assignee
HEFEI UFLYVISION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HEFEI UFLYVISION TECHNOLOGY Co Ltd filed Critical HEFEI UFLYVISION TECHNOLOGY Co Ltd
Priority to CN201410798460.3A priority Critical patent/CN104504374A/en
Publication of CN104504374A publication Critical patent/CN104504374A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Eye Examination Apparatus (AREA)

Abstract

本发明公开了一种自动监控人眼到屏幕距离的方法及系统,其中,该方法包括:获取用户信息;通过摄像头采集当前用户的人脸图像;根据人脸图像中头部和眼球的位置,计算当前用户的瞳距像素值;根据当前用户的瞳距像素值、摄像头的视角与分辨率,以及所述用户信息来计算人眼到屏幕的距离。通过采用本发明公开的方法及系统可以快速、准确的计算人眼到屏幕距离,提高了用户体验。

The invention discloses a method and system for automatically monitoring the distance from the human eye to the screen, wherein the method includes: obtaining user information; collecting the face image of the current user through a camera; according to the positions of the head and eyeballs in the face image, Calculate the pixel value of the pupil distance of the current user; calculate the distance from the human eye to the screen according to the pixel value of the pupil distance of the current user, the viewing angle and resolution of the camera, and the user information. By adopting the method and system disclosed in the present invention, the distance from the human eye to the screen can be calculated quickly and accurately, and the user experience is improved.

Description

一种自动监控人眼到屏幕距离的方法及系统A method and system for automatically monitoring the distance from human eyes to screen

技术领域technical field

本发明涉及人机交互技术领域,尤其涉及一种自动监控人眼到屏幕距离的方法及系统The present invention relates to the field of human-computer interaction technology, in particular to a method and system for automatically monitoring the distance from the human eye to the screen

背景技术Background technique

目前,由于智能设备特别是手持智能设备的快速普及,给人们的生活带来很多便捷和享受,但随之使得视力保护工作变得愈加严峻。根据最近的2009年调查数据显示,我国城市中高中生的近视发病率高达84.80%,城市中初中生近视发病率高达53.65%,近视发病更有幼龄化的趋势。另外,即使是成年人近视程度一般不再发展,但由于其每天使用智能设备的时间增加,导致眼疲劳,使得老花等疾病的发病时间愈发提前。研究表明,当眼-屏幕距离超出合理范围,特别是距离过近后,视力会有明显损伤。由于现有治疗方法很难彻底解决近视、视疲劳等问题,因此如何养成良好的人机交互中的用眼习惯成为一个亟需解决的社会问题。At present, due to the rapid popularization of smart devices, especially handheld smart devices, it brings a lot of convenience and enjoyment to people's life, but it makes the vision protection work more and more severe. According to the latest survey data in 2009, the incidence of myopia among urban middle and high school students is as high as 84.80%, and that of urban middle and high school students is as high as 53.65%. The incidence of myopia tends to be younger. In addition, even if the degree of myopia in adults generally no longer develops, due to the increase in the time they use smart devices every day, it leads to eye fatigue, which makes the onset of diseases such as presbyopia more advanced. Studies have shown that when the eye-screen distance exceeds a reasonable range, especially if the distance is too close, vision will be significantly damaged. Since existing treatment methods are difficult to completely solve problems such as myopia and visual fatigue, how to develop good eye habits in human-computer interaction has become a social problem that needs to be solved urgently.

现阶段,智能设备广泛应用人脸检测技术,并有部分设备监控人眼视线,但对人眼到屏幕距离监控较少,难以在使用中给予用户,特别是还未养成良好用眼习惯的未成年用户科学合理的建议。而现有的距离、姿态监控要配合多前置摄像头如微软Kinect等专用设备,现在亟需一种利用智能终端现有单前置摄像头,结合人脸检测、识别就可以进行距离监控的技术与方法。At this stage, face detection technology is widely used in smart devices, and some devices monitor the human eye line of sight, but there is less monitoring of the distance from the human eye to the screen, which is difficult to give users in use, especially those who have not yet developed good eye habits. Scientific and reasonable advice for underage users. However, the existing distance and attitude monitoring needs to cooperate with special equipment such as multi-front cameras such as Microsoft Kinect. Now there is an urgent need for a technology and technology that uses the existing single front camera of the smart terminal and combines face detection and recognition to perform distance monitoring. method.

目前,计算眼-屏幕距离的方法,其通过在监控人眼到屏幕距离前由用户参与标定标准距离,再以该距离为标准来监控眼到屏幕距离,因而不能直接估算人眼到屏幕的距离。一方面使得距离监控的有效性打了折扣,用户可以在标定时就选择一个较近的距离,使得在后续使用中即使距离屏幕过近也不会出发提醒,这一点在儿童上尤为严重;另一方面增加了用户使用前的工作量,增大了使用难度。At present, the method of calculating the eye-screen distance is to calibrate the standard distance by the user before monitoring the distance from the human eye to the screen, and then use this distance as a standard to monitor the distance from the eye to the screen, so the distance from the human eye to the screen cannot be directly estimated . On the one hand, the effectiveness of distance monitoring is compromised. Users can choose a closer distance during calibration, so that in subsequent use, even if the distance from the screen is too close, the reminder will not be triggered, which is especially serious for children; On the one hand, it increases the user's workload before use and increases the difficulty of use.

发明内容Contents of the invention

本发明的目的是提供一种自动监控人眼到屏幕距离的方法及系统,可以快速、准确的计算人眼到屏幕距离,提高了用户体验。The purpose of the present invention is to provide a method and system for automatically monitoring the distance from the human eye to the screen, which can quickly and accurately calculate the distance from the human eye to the screen and improve user experience.

本发明的目的是通过以下技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:

一种自动监控人眼到屏幕距离的方法,该方法包括:A method for automatically monitoring the distance from a human eye to a screen, the method comprising:

获取用户信息;Obtain user information;

通过摄像头采集当前用户的人脸图像;Collect the face image of the current user through the camera;

根据人脸图像中头部和眼球的位置,计算当前用户的瞳距像素值;Calculate the pixel value of the pupil distance of the current user according to the position of the head and eyeballs in the face image;

根据当前用户的瞳距像素值、摄像头的视角与分辨率,以及所述用户信息来计算人眼到屏幕的距离。Calculate the distance from the human eye to the screen according to the pixel value of the current user's pupil distance, the viewing angle and resolution of the camera, and the user information.

进一步的,所述计算当前用户的瞳距像素值包括:Further, the calculation of the pixel value of the pupil distance of the current user includes:

定位当前用户的头部及眼球,获得初始瞳距像素值;Locate the current user's head and eyeballs, and obtain the initial pupil distance pixel value;

计算该初始瞳距像素值与之前T秒内的瞳距像素值的平均值μ和标准差σ,去除超过μ±σ范围的瞳距像素值,计算余下瞳距像素值的平均值作为当前用户的瞳距像素值。Calculate the average value μ and standard deviation σ of the initial pupil distance pixel value and the pupil distance pixel value in the previous T seconds, remove the pupil distance pixel value beyond the range of μ±σ, and calculate the average value of the remaining pupil distance pixel value as the current user The pixel value of the pupil distance.

进一步的,所述根据当前用户的瞳距像素值以及所述用户信息来计算人眼到屏幕的距离包括:Further, calculating the distance from the human eye to the screen according to the current user's pupil distance pixel value and the user information includes:

计算表征人眼到屏幕的距离X的函数F1(A,I,V,H),表示为:Calculate the function F 1 (A, I, V, H) representing the distance X from the human eye to the screen, expressed as:

其中,A表示当前用户的瞳距像素值,V表示摄像头的视角,H表示摄像头的分辨率,I表示用户信息,w1表示用户信息中的用户年龄。Among them, A represents the pixel value of the pupil distance of the current user, V represents the viewing angle of the camera, H represents the resolution of the camera, I represents the user information, and w 1 represents the age of the user in the user information.

进一步的,该方法还包括:Further, the method also includes:

根据预设的人眼到屏幕的距离值Y对当前用户人眼到屏幕的距离X进行评分,表示为:Score the distance X of the current user's eye to the screen according to the preset distance value Y from the human eye to the screen, expressed as:

其中,S表示评分,δ表示误差;Among them, S represents the score, and δ represents the error;

当获得的评分S未达到预定评分值时,则向该用户发出包含纠正人眼到屏幕距离的提示信息。When the obtained score S does not reach the predetermined score value, a prompt message including correcting the distance from the human eye to the screen is sent to the user.

一种自动监控人眼到屏幕距离的系统,该系统包括:A system for automatically monitoring the distance from human eyes to the screen, the system comprising:

用户信息获取模块,用于获取用户信息;A user information acquisition module, configured to acquire user information;

人脸图像采集模块,用于通过摄像头采集当前用户的人脸图像;Face image acquisition module, used to collect the current user's face image through the camera;

瞳距像素值计算模块,用于根据人脸图像中头部和眼球的位置,计算当前用户的瞳距像素值;The pupil distance pixel value calculation module is used to calculate the pupil distance pixel value of the current user according to the positions of the head and eyeballs in the face image;

人眼到屏幕距离计算模块,用于根据当前用户的瞳距像素值、摄像头的视角与分辨率,以及所述用户信息来计算人眼到屏幕的距离。The human eye-to-screen distance calculation module is used to calculate the distance from the human eye to the screen according to the pixel value of the current user's pupil distance, the viewing angle and resolution of the camera, and the user information.

进一步的,所述计算当前用户的瞳距像素值包括:Further, the calculation of the pixel value of the pupil distance of the current user includes:

定位当前用户的头部及眼球,获得初始瞳距像素值;Locate the current user's head and eyeballs, and obtain the initial pupil distance pixel value;

计算该初始瞳距像素值与之前T秒内的瞳距像素值的平均值μ和标准差σ,去除超过μ±σ范围的瞳距像素值,计算余下瞳距像素值的平均值作为当前用户的瞳距像素值。Calculate the average value μ and standard deviation σ of the initial pupil distance pixel value and the pupil distance pixel value in the previous T seconds, remove the pupil distance pixel value beyond the range of μ±σ, and calculate the average value of the remaining pupil distance pixel value as the current user The pixel value of the pupil distance.

进一步的,所述根据当前用户的瞳距像素值以及所述用户信息来计算人眼到屏幕的距离包括:Further, calculating the distance from the human eye to the screen according to the current user's pupil distance pixel value and the user information includes:

计算人眼到屏幕的距离X,表示为:Calculate the distance X from the human eye to the screen, expressed as:

其中,A表示当前用户的瞳距像素值,V表示摄像头的视角,H表示摄像头的分辨率,I表示用户信息,w1表示用户信息中的用户年龄。Among them, A represents the pixel value of the pupil distance of the current user, V represents the viewing angle of the camera, H represents the resolution of the camera, I represents the user information, and w 1 represents the age of the user in the user information.

进一步的,该系统还包括:Further, the system also includes:

评分模块,用于根据预设的人眼到屏幕的距离值Y对当前用户人眼到屏幕的距离X进行评分,表示为:The scoring module is used to score the distance X of the current user's eye to the screen according to the preset distance value Y from the human eye to the screen, expressed as:

其中,S表示评分,δ表示误差;Among them, S represents the score, and δ represents the error;

提示模块,用于当获得的评分S未达到预定评分值时,则向该用户发出包含纠正人眼到屏幕距离的提示信息。The prompting module is configured to send a prompt message to the user including correcting the distance from the human eye to the screen when the obtained score S does not reach the predetermined score value.

由上述本发明提供的技术方案可以看出,根据用户信息并结合摄像头的分辨率、视角,以及采集的瞳距像素值,计算人眼到屏幕距离;使得距离判断的无需用户预先标定,过程简便,提高了用户体验;另外,可以快速、准确的计算人眼到屏幕距离,以便矫正不健康的人眼到屏幕距离,减少不正确使用给用户带来的负面健康影响,为用户提供智能化、人性化服务。It can be seen from the above-mentioned technical solution provided by the present invention that the distance from the human eye to the screen is calculated according to the user information combined with the resolution and viewing angle of the camera, and the pixel value of the collected pupil distance; the distance judgment does not require user pre-calibration, and the process is simple , which improves the user experience; in addition, it can quickly and accurately calculate the distance from the human eye to the screen, so as to correct the unhealthy distance from the human eye to the screen, reduce the negative health impact of incorrect use on the user, and provide users with intelligent, humane services.

附图说明Description of drawings

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

图1为本发明实施例一提供的一种自动监控人眼到屏幕距离的方法的流程图;FIG. 1 is a flow chart of a method for automatically monitoring the distance from human eyes to the screen provided by Embodiment 1 of the present invention;

图2为本发明实施例一提供的一种用户设备的示意图;FIG. 2 is a schematic diagram of a user equipment provided in Embodiment 1 of the present invention;

图3为本发明实施例一提供的又一种自动监控人眼到屏幕距离的方法的流程图;Fig. 3 is a flowchart of another method for automatically monitoring the distance from the human eye to the screen provided by Embodiment 1 of the present invention;

图4为本发明实施例二提供的一种自动监控人眼到屏幕距离的系统的示意图。FIG. 4 is a schematic diagram of a system for automatically monitoring the distance from human eyes to the screen provided by Embodiment 2 of the present invention.

具体实施方式Detailed ways

下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明的保护范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. 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.

实施例一Embodiment one

本发明实施例一提供的一种自动监控人眼到屏幕距离的方法,其主要包括如下步骤:Embodiment 1 of the present invention provides a method for automatically monitoring the distance from the human eye to the screen, which mainly includes the following steps:

步骤11、获取用户信息。Step 11, acquiring user information.

步骤12、通过摄像头采集当前用户的人脸图像。Step 12, collect the face image of the current user through the camera.

步骤13、根据人脸图像中头部和眼球的位置,计算当前用户的瞳距像素值。Step 13. Calculate the pixel value of the pupil distance of the current user according to the positions of the head and eyeballs in the face image.

所述瞳距为两个瞳孔之间的距离。The interpupillary distance is the distance between two pupils.

本发明实施例中,所述计算当前用户的瞳距像素值包括:定位当前用户的头部及眼球,获得初始瞳距像素值;计算该初始瞳距像素值与之前T秒内的瞳距像素值的平均值μ和标准差σ,去除超过μ±σ范围的瞳距像素值,计算余下瞳距像素值的平均值作为当前用户的瞳距像素值。In the embodiment of the present invention, the calculation of the pixel value of the pupil distance of the current user includes: positioning the head and eyeballs of the current user to obtain the pixel value of the initial pupil distance; calculating the pixel value of the initial pupil distance and the pixel value of the pupil distance of the previous T seconds The average value μ and standard deviation σ of the value, remove the IPD pixel values exceeding the range of μ±σ, and calculate the average value of the remaining IPD pixel values as the current user’s IPD pixel value.

步骤14、根据当前用户的瞳距像素值、摄像头的视角与分辨率,以及所述用户信息来计算人眼到屏幕的距离。Step 14: Calculate the distance from the human eye to the screen according to the pixel value of the current user's pupil distance, the viewing angle and resolution of the camera, and the user information.

本发明实施例中,所述根据当前用户的瞳距像素值以及所述用户信息来计算人眼到屏幕的距离包括:In the embodiment of the present invention, calculating the distance from the human eye to the screen according to the current user's pupil distance pixel value and the user information includes:

计算表征人眼到屏幕的距离X的函数F1(A,I,V,H),表示为:Calculate the function F 1 (A, I, V, H) representing the distance X from the human eye to the screen, expressed as:

其中,A表示当前用户的瞳距像素值,V表示摄像头的视角,H表示摄像头的分辨率,I表示用户信息,w1表示用户信息中的用户年龄,48.54与0.76为公式中的两个常数,是公式的一种形式。Among them, A represents the pixel value of the pupil distance of the current user, V represents the viewing angle of the camera, H represents the resolution of the camera, I represents the user information, w 1 represents the age of the user in the user information, and 48.54 and 0.76 are two constants in the formula , is a form of the formula.

另外,该方法还包括:根据预设的人眼到屏幕的距离值Y对当前用户人眼到屏幕的距离X进行评分,表示为:In addition, the method further includes: scoring the distance X of the current user's eye to the screen according to the preset distance value Y from the human eye to the screen, expressed as:

其中,S表示评分,δ表示误差;Among them, S represents the score, and δ represents the error;

当获得的评分S未达到预定评分值时,则向该用户发出包含纠正人眼到屏幕距离的提示信息。When the obtained score S does not reach the predetermined score value, a prompt message including correcting the distance from the human eye to the screen is sent to the user.

为了便于理解,下面结合附图2-3做进一步的说明。For ease of understanding, further description will be made below in conjunction with accompanying drawings 2-3.

本发明实施例所提供的方法可通过如图2所示的用户设备UE来实现,用户设备可以但不仅限于智能手机、智能手持终端、平板电脑、笔记本电脑、个人电脑等设备。该用户设备还进一步包含摄像头21和屏幕22。摄像头21可以被调整以正对操作者(例如,智能手机的前置摄像头),以采集用户眼部图像。屏幕22所显示内容包括但不限于文字、视频、游戏、图标、图像等。The method provided by the embodiment of the present invention can be implemented by user equipment UE as shown in FIG. 2 , and the user equipment can be but not limited to smart phones, smart handheld terminals, tablet computers, notebook computers, personal computers and other devices. The user equipment further includes a camera 21 and a screen 22 . The camera 21 can be adjusted to face the operator (for example, a front-facing camera of a smart phone) to collect images of the user's eyes. The content displayed on the screen 22 includes but not limited to text, video, game, icon, image and so on.

如图3所示,本发明实施例提供的自动监控人眼到屏幕距离的方法主要包括如下步骤:As shown in Figure 3, the method for automatically monitoring the distance from the human eye to the screen provided by the embodiment of the present invention mainly includes the following steps:

步骤301、开始初始化。Step 301, start initialization.

监控人眼到屏幕距离的具体方法及摄像头信息此处在UE上初始化。The specific method of monitoring the distance from the human eye to the screen and the camera information are initialized on the UE here.

步骤302、获取用户信息。Step 302, acquire user information.

该信息可从UE的缓存区获取,或提示用户输入;该信息为用户的人种、性别、年龄的全部或部分;如果本步骤中信息获取失败,则转入步骤311;反之若获取成功,则开始步骤303。This information can be obtained from the buffer area of the UE, or the user is prompted to input; the information is all or part of the user's race, gender, and age; if the information acquisition fails in this step, then go to step 311; otherwise, if the acquisition is successful, Then step 303 starts.

步骤303、开始监控。Step 303, start monitoring.

步骤304、捕捉用户人脸图像。Step 304, capture the user's face image.

UE通过其摄像头21捕捉操作者图像,摄像头21可以被调整以正对操作者。如果本步骤中人脸图像捕捉失败,则转入步骤311;反之若图像捕捉成功,则转入步骤305。The UE captures an image of the operator through its camera 21, which can be adjusted to face the operator. If the face image capture fails in this step, then proceed to step 311; otherwise, if the image capture is successful, then proceed to step 305.

步骤305、利用人像识别技术,定位操作者的头部及眼球,获得初始瞳距像素值。Step 305 , using the portrait recognition technology to locate the operator's head and eyeballs, and obtain the initial pixel value of the interpupillary distance.

步骤306、将获得的初始瞳距像素值存储入其缓冲区中。Step 306, storing the obtained initial pupil distance pixel value into its buffer.

步骤307、由缓冲区中计算获得表观瞳距像素值。该表观瞳距像素值可以是缓冲区中历史数据变换,例如其平均或遵循先进先出的原则。示例性的,选取过去T秒(T为正实数)内的瞳距像素值共N个(N为>0的整数),计算平均值μ和标准差σ,去除超过μ±σ范围的瞳距像素值,对余下的M个(M为>0的整数)取平均得到表观瞳距像素值。若获取失败,则转入步骤311;反之若表观瞳距像素值获取成功,则转入步骤307。Step 307, obtain the apparent pupil distance pixel value calculated from the buffer. The pixel value of the apparent pupil distance may be the transformation of historical data in the buffer, for example, its average or follow the first-in-first-out principle. Exemplarily, select a total of N pupil distance pixel values in the past T seconds (T is a positive real number) (N is an integer > 0), calculate the average value μ and standard deviation σ, and remove the pupil distance exceeding the range of μ±σ Pixel value, average the remaining M (M is an integer > 0) to obtain the apparent pupil distance pixel value. If the acquisition fails, go to step 311; otherwise, if the apparent pupil distance pixel value is successfully obtained, go to step 307.

步骤308、估算人眼到屏幕的距离。Step 308, estimating the distance from the human eye to the screen.

本发明实施例中,利用步骤302获得的用户信息、步骤307获得表观瞳距像素值,以及摄像头的参数(视角与分辨率)来估算人眼到屏幕的距离。In the embodiment of the present invention, the user information obtained in step 302, the apparent pupil distance pixel value obtained in step 307, and the parameters of the camera (viewing angle and resolution) are used to estimate the distance from the human eye to the screen.

示例性的,利用X表示人眼到屏幕的距离,A表示当前用户的瞳距像素值,V表示摄像头的视角,H表示摄像头的分辨率,I表示用户信息,w1表示用户年龄;则该计算公式可表示为:Exemplarily, use X to represent the distance from the human eye to the screen, A to represent the pixel value of the current user's pupil distance, V to represent the viewing angle of the camera, H to represent the resolution of the camera, I to represent the user information, w 1 to represent the age of the user; then the The calculation formula can be expressed as:

步骤309、判断估算到的人眼到屏幕的距离是否符合要求。Step 309 , judging whether the estimated distance from the human eye to the screen meets the requirement.

本发明实施例中,将预设的人眼到屏幕的距离值Y作为标准值与步骤308获得的人眼到屏幕的距离进行比较,来判定当前用户状态是否符合要求;如不符合,则转入步骤310;若符合则转入步骤311。In the embodiment of the present invention, compare the preset distance value Y from the human eye to the screen as a standard value with the distance from the human eye to the screen obtained in step 308 to determine whether the current user status meets the requirements; if not, go to Go to step 310; if yes, go to step 311.

示例性的,可以计算表征人眼到屏幕的距离评分S的评价函数F2(X,δ,Y),其公式为:Exemplarily, the evaluation function F 2 (X, δ, Y) representing the distance score S from the human eye to the screen can be calculated, and its formula is:

其中,S表示评分。Among them, S represents the score.

我国成年男性瞳距平均在62mm左右,女性在58mm左右,上下浮动一般不超过10%;我国儿童在发育过程中5~15岁间瞳距一直处于增长变动,由平均52.2mm增长到60.1mm,达到成人水平并保持稳定。正由于瞳距在同人种、同年龄段中保持相似的水平,故可以作为一个“标准尺”来以10%的误差监控人眼到屏幕的距离。即上式中δ表示误差,且 The average interpupillary distance of adult males in my country is about 62mm, and that of females is about 58mm, and the fluctuation generally does not exceed 10%. During the development process of children in my country, the interpupillary distance between the ages of 5 and 15 has been increasing and changing, from an average of 52.2mm to 60.1mm. Reach adult levels and remain stable. Just because the interpupillary distance maintains a similar level in the same race and age group, it can be used as a "standard ruler" to monitor the distance from the human eye to the screen with an error of 10%. That is, δ in the above formula represents the error, and

步骤310、向该用户发出包含纠正人眼到屏幕距离的提示信息。Step 310, sending a prompt message including correcting the distance from the human eye to the screen to the user.

所述提示信息包括但不限于通过屏幕22以直接的文字、图像、视频或通过UE以声音、震动、闪光等直接提醒方式。The prompt information includes, but is not limited to, direct text, image, and video through the screen 22 or direct prompting methods such as sound, vibration, and flash through the UE.

本步骤操作完成后,转入步骤311。After the operation of this step is completed, go to step 311.

步骤311、判断是否结束。Step 311, judging whether to end.

具体来说:Specifically:

1、若判定结束,则转入步骤312,包括以下几种情况:1)若由步骤302跳转而来,且长时间、或多次地获得信息失败,则转入步骤312;2)若由步骤304跳转而来,且长时间、或多次地捕捉图像失败,则转入步骤312;3)若由步骤307跳转而来,且长时间、或多次地获得表观瞳距像素值失败,则转入步骤312;4)若由步骤310跳转而来,且用户主动关闭、UE节电、以及无需距离监控等情况下,则转入步骤312。1. If the judgment is over, then go to step 312, including the following situations: 1) If you jump from step 302, and fail to obtain information for a long time or multiple times, then go to step 312; 2) if Jump from step 304 and fail to capture images for a long time or multiple times, then go to step 312; 3) If jump from step 307, and obtain the apparent pupillary distance for a long time or multiple times If the pixel value fails, go to step 312; 4) If jump from step 310, and the user actively shuts down, UE power saving, and does not need distance monitoring, etc., go to step 312.

2、若判定继续,则包括以下几种情况:1)若由步骤302跳转而来,则继续提示并等待用户输入用户信息;2)若由步骤304跳转而来,则继续捕捉用户人脸图像;3)若由步骤307跳转而来,则继续获取表观瞳距像素值,或者返回至步骤303开始新的流程;4)若由步骤310跳转而来,则继续对用户进行监控,重新回到步骤303。2. If it is determined to continue, it includes the following situations: 1) If it jumps from step 302, continue to prompt and wait for the user to input user information; 2) If it jumps from step 304, continue to capture the user’s profile Face image; 3) If it jumps from step 307, then continue to obtain the apparent pupil distance pixel value, or return to step 303 to start a new process; 4) If it jumps from step 310, continue to process the user Monitoring, return to step 303.

步骤312、结束流程。Step 312, end the process.

本发明实施例根据用户信息并结合摄像头的分辨率、视角,以及采集的瞳距像素值,计算人眼到屏幕距离;使得距离判断的无需用户预先标定,过程简便,提高了用户体验;另外,可以快速、准确的计算人眼到屏幕距离,以便矫正不健康的人眼到屏幕距离,减少不正确使用给用户带来的负面健康影响,为用户提供智能化、人性化服务。The embodiment of the present invention calculates the distance from the human eye to the screen according to the user information combined with the resolution, viewing angle, and pixel value of the collected interpupillary distance; the distance judgment does not require the user to pre-calibrate, the process is simple, and the user experience is improved; In addition, It can quickly and accurately calculate the distance from the human eye to the screen, so as to correct the unhealthy distance from the human eye to the screen, reduce the negative health impact of incorrect use on users, and provide users with intelligent and humanized services.

实施例二Embodiment two

图4为本发明实施例二提供的一种自动监控人眼到屏幕距离的系统的示意图。如图4所示,该系统主要包括:FIG. 4 is a schematic diagram of a system for automatically monitoring the distance from human eyes to the screen provided by Embodiment 2 of the present invention. As shown in Figure 4, the system mainly includes:

用户信息获取模块41,用于获取用户信息;User information acquisition module 41, configured to acquire user information;

人脸图像采集模块42,用于通过摄像头采集当前用户的人脸图像;Facial image acquisition module 42, for collecting the facial image of current user by camera;

瞳距像素值计算模块43,用于根据人脸图像中头部和眼球的位置,计算当前用户的瞳距像素值;Pupil distance pixel value calculation module 43, for calculating the current user's pupil distance pixel value according to the positions of the head and eyeballs in the face image;

人眼到屏幕距离计算模块44,用于根据当前用户的瞳距像素值、摄像头的视角与分辨率,以及所述用户信息来计算人眼到屏幕的距离。The eye-to-screen distance calculation module 44 is used to calculate the distance from the human eye to the screen according to the pixel value of the current user's pupil distance, the viewing angle and resolution of the camera, and the user information.

进一步的,所述计算当前用户的瞳距像素值包括:Further, the calculation of the pixel value of the pupil distance of the current user includes:

定位当前用户的头部及眼球,获得初始瞳距像素值;Locate the current user's head and eyeballs, and obtain the initial pupil distance pixel value;

计算该初始瞳距像素值与之前T秒内的瞳距像素值的平均值μ和标准差σ,去除超过μ±σ范围的瞳距像素值,计算余下瞳距像素值的平均值作为当前用户的瞳距像素值。Calculate the average value μ and standard deviation σ of the initial pupil distance pixel value and the pupil distance pixel value in the previous T seconds, remove the pupil distance pixel value beyond the range of μ±σ, and calculate the average value of the remaining pupil distance pixel value as the current user The pixel value of the pupil distance.

进一步的,所述根据当前用户的瞳距像素值以及所述用户信息来计算人眼到屏幕的距离包括:Further, calculating the distance from the human eye to the screen according to the current user's pupil distance pixel value and the user information includes:

计算人眼到屏幕的距离X,表示为:Calculate the distance X from the human eye to the screen, expressed as:

其中,A表示当前用户的瞳距像素值,V表示摄像头的视角,H表示摄像头的分辨率,I表示用户信息,w1表示用户信息中的用户年龄。Among them, A represents the pixel value of the pupil distance of the current user, V represents the viewing angle of the camera, H represents the resolution of the camera, I represents the user information, and w 1 represents the age of the user in the user information.

进一步的,该系统还包括:Further, the system also includes:

评分模块45,用于根据预设的人眼到屏幕的距离值Y对当前用户人眼到屏幕的距离X进行评分,表示为:The scoring module 45 is used to score the distance X from the current user's eyes to the screen according to the preset distance value Y from the eyes to the screen, expressed as:

其中,S表示评分,δ表示误差;Among them, S represents the score, and δ represents the error;

提示模块46,用于当获得的评分S未达到预定评分值时,则向该用户发出包含纠正人眼到屏幕距离的提示信息。The prompting module 46 is configured to send a prompt to the user including correcting the distance from the human eye to the screen when the obtained score S does not reach the predetermined score value.

需要说明的是,上述系统中包含的各个功能模块所实现的功能的具体实现方式在前面的各个实施例中已经有详细描述,故在这里不再赘述。It should be noted that the specific implementation manners of the functions implemented by the various functional modules included in the above system have been described in detail in the previous embodiments, so details will not be repeated here.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将系统的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structure of the system is divided into different functional modules to complete all or part of the functions described above.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例可以通过软件实现,也可以借助软件加必要的通用硬件平台的方式来实现。基于这样的理解,上述实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the implementation manners, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions of the above-mentioned embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present invention.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person familiar with the technical field can easily conceive of changes or changes within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (8)

1. automatic monitoring human eye is to a method for screen distance, it is characterized in that, the method comprises:
Obtain user profile;
By the facial image of camera collection active user;
According to the position of head in facial image and eyeball, calculate the interpupillary distance pixel value of active user;
According to the interpupillary distance pixel value of active user, the visual angle of camera and resolution, and described user profile calculates the distance of human eye to screen.
2. method according to claim 1, is characterized in that, the interpupillary distance pixel value of described calculating active user comprises:
The head of location active user and eyeball, obtain initial interpupillary distance pixel value;
Calculate average value mu and the standard deviation sigma of this initial interpupillary distance pixel value and the interpupillary distance pixel value in T before second, remove the interpupillary distance pixel value more than μ ± σ scope, calculate the interpupillary distance pixel value of mean value as active user of remaining interpupillary distance pixel value.
3. method according to claim 1, is characterized in that, the described interpupillary distance pixel value according to active user and described user profile calculate human eye and comprises to the distance of screen:
Computational representation human eye is to the function F of the distance X of screen 1(A, I, V, H), is expressed as:
X = Δ F 1 ( A , I , V , H ) = ( 48.54 + 0.76 w 1 ) · H / ( A · V ) ;
Wherein, A represents the interpupillary distance pixel value of active user, and V represents the visual angle of camera, and H represents the resolution of camera, and I represents user profile, w 1represent the age of user in user profile.
4., according to the method for claim 1 or 3, it is characterized in that, the method also comprises:
According to the distance value Y of the human eye preset to screen, the distance X of active user's human eye to screen is marked, is expressed as:
S = Δ F 2 ( X , δ , Y ) = Δ 100 - ( Y - δ - X ) ;
δ = Δ X · 0.1 ;
Wherein, S represents scoring, and δ represents error;
When the scoring S obtained does not reach predetermined score value, then send to comprise to this user and correct the information of human eye to screen distance.
5. automatic monitoring human eye is to a system for screen distance, it is characterized in that, this system comprises:
User profile acquisition module, for obtaining user profile;
Man face image acquiring module, for the facial image by camera collection active user;
Interpupillary distance calculated for pixel values module, for the position according to head in facial image and eyeball, calculates the interpupillary distance pixel value of active user;
Human eye is to screen distance computing module, and for according to the interpupillary distance pixel value of active user, the visual angle of camera and resolution, and described user profile calculates the distance of human eye to screen.
6. system according to claim 5, is characterized in that, the interpupillary distance pixel value of described calculating active user comprises:
The head of location active user and eyeball, obtain initial interpupillary distance pixel value;
Calculate average value mu and the standard deviation sigma of this initial interpupillary distance pixel value and the interpupillary distance pixel value in T before second, remove the interpupillary distance pixel value more than μ ± σ scope, calculate the interpupillary distance pixel value of mean value as active user of remaining interpupillary distance pixel value.
7. system according to claim 5, is characterized in that, the described interpupillary distance pixel value according to active user and described user profile calculate human eye and comprises to the distance of screen:
Calculate human eye to the distance X of screen, be expressed as:
X = Δ F 1 ( A , I , V , H ) = ( 48.54 + 0.76 w 1 ) · H / ( A · V ) ;
Wherein, A represents the interpupillary distance pixel value of active user, and V represents the visual angle of camera, and H represents the resolution of camera, and I represents user profile, w 1represent the age of user in user profile.
8. according to the system of claim 1 or 3, it is characterized in that, this system also comprises:
Grading module, for marking to the distance X of active user's human eye to screen according to the distance value Y of the human eye preset to screen, is expressed as:
S = Δ F 2 ( X , δ , Y ) = Δ 100 - ( Y - δ - X ) ;
δ = Δ X · 0.1 ;
Wherein, S represents scoring, and δ represents error;
Reminding module, during for not reaching predetermined score value as the scoring S obtained, then sends to comprise to this user and corrects the information of human eye to screen distance.
CN201410798460.3A 2014-12-19 2014-12-19 Method and system for automatically monitoring distance from human eyes to screen Pending CN104504374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410798460.3A CN104504374A (en) 2014-12-19 2014-12-19 Method and system for automatically monitoring distance from human eyes to screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410798460.3A CN104504374A (en) 2014-12-19 2014-12-19 Method and system for automatically monitoring distance from human eyes to screen

Publications (1)

Publication Number Publication Date
CN104504374A true CN104504374A (en) 2015-04-08

Family

ID=52945770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410798460.3A Pending CN104504374A (en) 2014-12-19 2014-12-19 Method and system for automatically monitoring distance from human eyes to screen

Country Status (1)

Country Link
CN (1) CN104504374A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049598A (en) * 2015-06-01 2015-11-11 广东小天才科技有限公司 Method for detecting eyesight distance of user and mobile terminal
CN105373775A (en) * 2015-10-14 2016-03-02 广东小天才科技有限公司 Method and device for protecting user eyesight
CN107066089A (en) * 2017-03-08 2017-08-18 北京互讯科技有限公司 A kind of mobile phone eye posture guard method based on computer vision technique
CN107909100A (en) * 2017-11-10 2018-04-13 广州视源电子科技股份有限公司 Method, device and equipment for determining distance and storage medium
CN107906694A (en) * 2017-09-30 2018-04-13 珠海格力电器股份有限公司 Air conditioner control device and method, computer readable storage medium and air conditioner
CN109034071A (en) * 2018-07-28 2018-12-18 浙江凯美特电器科技有限公司 A kind of pre- myopic-preventing method
CN113780045A (en) * 2020-12-21 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for training distance prediction model
CN114910052A (en) * 2022-05-27 2022-08-16 深圳市立体通技术有限公司 Camera-based distance measurement method, control method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101033955A (en) * 2007-04-18 2007-09-12 北京中星微电子有限公司 Method, device and display for implementing eyesight protection
US20090324024A1 (en) * 2008-06-25 2009-12-31 Postureminder Ltd System and method for improving posture
CN101950550A (en) * 2010-09-28 2011-01-19 冠捷显示科技(厦门)有限公司 Display device for displaying pictures at different angles based on visual angle of viewer
CN104076925A (en) * 2014-06-30 2014-10-01 天马微电子股份有限公司 Method for reminding user of distance between eyes and screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101033955A (en) * 2007-04-18 2007-09-12 北京中星微电子有限公司 Method, device and display for implementing eyesight protection
US20090324024A1 (en) * 2008-06-25 2009-12-31 Postureminder Ltd System and method for improving posture
CN101950550A (en) * 2010-09-28 2011-01-19 冠捷显示科技(厦门)有限公司 Display device for displaying pictures at different angles based on visual angle of viewer
CN104076925A (en) * 2014-06-30 2014-10-01 天马微电子股份有限公司 Method for reminding user of distance between eyes and screen

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049598A (en) * 2015-06-01 2015-11-11 广东小天才科技有限公司 Method for detecting eyesight distance of user and mobile terminal
CN105049598B (en) * 2015-06-01 2019-11-05 广东小天才科技有限公司 A method and mobile terminal for detecting user vision distance
CN105373775A (en) * 2015-10-14 2016-03-02 广东小天才科技有限公司 Method and device for protecting user eyesight
CN107066089A (en) * 2017-03-08 2017-08-18 北京互讯科技有限公司 A kind of mobile phone eye posture guard method based on computer vision technique
CN107906694A (en) * 2017-09-30 2018-04-13 珠海格力电器股份有限公司 Air conditioner control device and method, computer readable storage medium and air conditioner
CN107909100A (en) * 2017-11-10 2018-04-13 广州视源电子科技股份有限公司 Method, device and equipment for determining distance and storage medium
CN109034071A (en) * 2018-07-28 2018-12-18 浙江凯美特电器科技有限公司 A kind of pre- myopic-preventing method
CN113780045A (en) * 2020-12-21 2021-12-10 北京沃东天骏信息技术有限公司 Method and apparatus for training distance prediction model
CN113780045B (en) * 2020-12-21 2024-09-20 北京沃东天骏信息技术有限公司 Method and apparatus for training distance prediction model
CN114910052A (en) * 2022-05-27 2022-08-16 深圳市立体通技术有限公司 Camera-based distance measurement method, control method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN104504374A (en) Method and system for automatically monitoring distance from human eyes to screen
JP6900516B2 (en) Gaze point determination method and devices, electronic devices and computer storage media
CN104168384B (en) A kind of mobile terminal and healthalert control method thereof
CN104951084B (en) Eye-controlling focus method and device
CN104580693B (en) A kind of user's heads-down posture detection method and device
CN107454250A (en) Eye protection method and device during use of mobile terminal, mobile terminal and storage medium
CN105892647A (en) Display screen adjusting method and device as well as display device
CN110020628B (en) Sitting posture detection method, system and equipment based on face detection and storage medium
CN107948399A (en) Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN104252828B (en) Protect display methods, display device and the terminal device of eyesight
CN105763829A (en) Image processing method and electronic device
CN109815805A (en) Method, device, storage medium and electronic device for automatically identifying drowning
CN108261178B (en) Animal pain index judgment method and device and storage medium
WO2020252918A1 (en) Human body-based gesture recognition method and apparatus, device, and storage medium
CN107436681A (en) Mobile terminal and method for automatically adjusting display size of characters
US20250157252A1 (en) Machine learning to determine facial measurements via captured images
CN111881706A (en) Living body detection, image classification and model training method, device, equipment and medium
US11295117B2 (en) Facial modelling and matching systems and methods
CN106910322A (en) A kind of pre- myopia prevention device of wear-type based on stereoscopic vision and behavioural analysis
US20160035247A1 (en) Visual feedback generation in tracing a pattern
WO2017152592A1 (en) Mobile terminal application operation method and mobile terminal
CN113157416B (en) Anti-addiction method, device, electronic device and storage medium
CN115100728A (en) Method, apparatus, storage medium and program product for detecting visual acuity status
CN113132642B (en) Image display method and device, electronic equipment
CN117132869A (en) Training of gaze deviation estimation model, correction method and device of gaze deviation value

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151027

Address after: 230094, building 707, building A3, animation industry park, Wangjiang West Road, 800 hi tech Zone, Anhui, Hefei

Applicant after: Hefei Uflyvision Technology Co., Ltd.

Applicant after: Advanced technology research institute of China Science & Technology University

Address before: 230094, building 707, building A3, animation industry park, Wangjiang West Road, 800 hi tech Zone, Anhui, Hefei

Applicant before: Hefei Uflyvision Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150408