CN101033955B - A method, device and display for realizing vision protection - Google Patents
A method, device and display for realizing vision protection Download PDFInfo
- Publication number
- CN101033955B CN101033955B CN2007100984956A CN200710098495A CN101033955B CN 101033955 B CN101033955 B CN 101033955B CN 2007100984956 A CN2007100984956 A CN 2007100984956A CN 200710098495 A CN200710098495 A CN 200710098495A CN 101033955 B CN101033955 B CN 101033955B
- Authority
- CN
- China
- Prior art keywords
- pixel distance
- user
- eyes
- unit
- reminder
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Image Analysis (AREA)
- Eye Examination Apparatus (AREA)
Abstract
本发明公开了一种实现视力保护的方法、装置以及一种显示器,用以解决现有技术中存在的视力保护装置的视力保护效果差,发出的提醒信息不准确的问题。本发明方法,用于向用户发送与观看对象保持一定距离的提醒信息,该方法包括以下步骤:A.通过图像采集设备采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;B.当所述像素距离大于或等于预先设定的像素距离阈值时,向所述用户发出提醒信息。本发明还公开了一种实现视力保护的装置,以及一种显示器。本发明用于提醒用户与观看对象保持一定的距离,从而实现保护用户不会因为与观看对象距离过近而造成对视力的伤害。
The invention discloses a method, a device and a display for realizing vision protection, which are used to solve the problems in the prior art that the vision protection device has poor vision protection effect and the reminder information sent out is inaccurate. The method of the present invention is used to send reminder information to the user to keep a certain distance from the viewing object, and the method includes the following steps: A. Collect an image including both eyes of the user through an image acquisition device, and calculate the distance between the eyes of the user on the image. B. When the pixel distance is greater than or equal to a preset pixel distance threshold, a reminder message is sent to the user. The invention also discloses a device for realizing vision protection and a display. The invention is used to remind the user to keep a certain distance from the viewing object, so as to protect the user from damage to eyesight due to too close distance to the viewing object.
Description
技术领域technical field
本发明涉及电子技术领域,尤其涉及一种实现视力保护的方法、装置及一种显示器。The invention relates to the field of electronic technology, in particular to a method, a device and a display for realizing vision protection.
背景技术Background technique
人们获取信息的80%来自于眼睛,随着电脑和电视的普及,越来越多的人需要长时间观看显示器,如果距离显示器太近,会造成对视力的损害,因此,越来越多的人因为长时间近距离观看显示器而近视。80% of people's information comes from eyes. With the popularity of computers and TVs, more and more people need to watch the monitor for a long time. If the distance from the monitor is too close, it will cause damage to vision. Therefore, more and more People are near-sighted due to watching the monitor at close range for a long time.
现有技术存在着一些保护视力的装置,其中包括采用机械方式测量物体距离和采用红外线等传感器来测量物体之间距离的方式。There are some devices for protecting eyesight in the prior art, including the methods of measuring the distance of objects in a mechanical way and using sensors such as infrared rays to measure the distance between objects.
采用机械方式测量物体距离的方式,需要人佩戴一些类似头套的装置,通过拉杆距离来限定人距离书或者显示器的距离,这些装置会让人有不舒适感,会影响人学习工作时的情绪,具有侵犯性,而且,距离测定范围有限。The method of measuring the distance of objects mechanically requires people to wear some headgear-like devices, and the distance between people and books or displays is limited by the distance of the rod. These devices will make people feel uncomfortable and affect people's emotions when studying and working. Invasive and, moreover, limited distance measurement range.
采用传感器测量物体之间距离的方式,一般采用发射装置主动发射诸如红外线或超声波等,并且采用接收装置来接收物体反射回来的红外线或超声波等,通过测定发射红外线或超声波和接收红外线或超声波的时间间隔或者相位差的方式来测定物体之间的距离,但是,采用传感器测量物体之间距离的方式,会有很大的干扰,无论是人在传感器前,或者是书、椅子、小动物等各种物体在传感器前,传感器都会认为是人,并且测定距离,当距离小于允许值时发出提醒,造成错误提示,此外,对于人在传感器前的情况,当人没有看显示器时,视力保护装置也会发出提醒,比如,对于一个测定人距离显示器距离的视力保护装置,当一个人在电脑前走动时,测距装置测定人距离显示器的距离,从而发出错误的提醒信息,而实际上,此时,人并没有看显示器,无论其距离显示器多近,多么久,都不应该发出提醒信息。The method of measuring the distance between objects by using a sensor generally uses a transmitting device to actively emit infrared rays or ultrasonic waves, etc., and uses a receiving device to receive infrared rays or ultrasonic waves reflected back from objects, by measuring the time for emitting infrared rays or ultrasonic waves and receiving infrared rays or ultrasonic waves However, the method of measuring the distance between objects with a sensor will cause great interference, whether it is a person in front of the sensor, or a book, chair, small animal, etc. If any object is in front of the sensor, the sensor will consider it as a person and measure the distance. When the distance is less than the allowable value, a reminder will be issued, resulting in an error prompt. A reminder will be issued. For example, for a vision protection device that measures the distance between a person and the display, when a person walks in front of the computer, the distance measuring device measures the distance between the person and the display, thereby sending out a wrong reminder message. In fact, at this time , People do not look at the monitor, no matter how close or how long they are away from the monitor, no reminder message should be sent.
综上所述,现有技术的视力保护装置的视力保护效果差,发出的提醒信息不准确。To sum up, the eyesight protection device in the prior art has a poor eyesight protection effect, and the reminder information issued is inaccurate.
发明内容Contents of the invention
本发明提供一种实现视力保护的方法及装置,用以解决现有技术中存在的视力保护装置的视力保护效果差,发出的提醒信息不准确的问题。The invention provides a method and device for realizing vision protection, which are used to solve the problems in the prior art that the vision protection device has poor vision protection effect and the reminder information sent out is inaccurate.
本发明提供的一种实现视力保护的方法,用于向用户发送与观看对象保持一定距离的提醒信息,该方法包括以下步骤:A method for realizing vision protection provided by the present invention is used to send reminder information to the user to keep a certain distance from the viewing object. The method includes the following steps:
A.通过图像采集设备采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;A. Collect an image including both eyes of the user through an image acquisition device, and calculate the pixel distance between the eyes on the image;
B.当所述像素距离大于或等于预先设定的像素距离阈值时,向所述用户发出提醒信息。B. When the pixel distance is greater than or equal to a preset pixel distance threshold, a reminder message is sent to the user.
所述的像素距离为根据分辨率进行归一化后的像素距离。The pixel distance mentioned above is the pixel distance normalized according to the resolution.
当所述像素距离大于或等于所述像素距离阈值时,步骤B进一步包括步骤:计算所述像素距离大于或等于所述像素距离阈值的持续时间;When the pixel distance is greater than or equal to the pixel distance threshold, step B further includes the step of: calculating the duration of the pixel distance greater than or equal to the pixel distance threshold;
则进一步当所述持续时间大于或等于预先设定的时间门限值时,向所述用户发出所述提醒信息。Then further, when the duration is greater than or equal to a preset time threshold, the reminder message is sent to the user.
所述预先设定像素距离阈值的步骤包括:The step of presetting the pixel distance threshold includes:
当若干用户的双眼与所述图像采集设备存在一定距离时,分别通过所述图像采集设备采集所述若干用户的双眼图像,并分别计算所述若干用户的双眼图像上的双眼之间的像素距离,得到若干像素距离;When there is a certain distance between the eyes of several users and the image acquisition device, respectively collect the binocular images of the plurality of users through the image acquisition device, and respectively calculate the pixel distance between the eyes on the binocular images of the several users , get several pixel distances;
将所述若干像素距离的平均值作为所述像素距离阈值。The average value of the several pixel distances is used as the pixel distance threshold.
所述预先设定像素距离阈值的步骤包括:The step of presetting the pixel distance threshold includes:
当所述用户的双眼与所述图像采集设备存在一定距离时,通过所述图像采集设备采集所述用户双眼图像,并计算所述图像上的双眼之间的像素距离,将该像素距离作为所述像素距离阈值。When there is a certain distance between the user's eyes and the image acquisition device, the image of the user's eyes is collected by the image acquisition device, and the pixel distance between the eyes on the image is calculated, and the pixel distance is used as the The above pixel distance threshold.
本发明提供的一种实现视力保护的装置,用于向用户发送与观看对象保持一定距离的提醒信息,该装置包括:A device for realizing vision protection provided by the present invention is used to send reminder information to the user to keep a certain distance from the viewing object. The device includes:
信息获取单元,用于采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;an information acquiring unit, configured to acquire an image including both eyes of the user, and calculate a pixel distance between the eyes on the image;
提醒单元,用于当所述像素距离大于或等于预先存储的像素距离阈值时,向所述用户发出提醒信息。A reminder unit, configured to send a reminder message to the user when the pixel distance is greater than or equal to a pre-stored pixel distance threshold.
所述信息获取单元包括:The information acquisition unit includes:
采集单元,用于采集包括所述用户双眼的图像;an acquisition unit, configured to acquire images including both eyes of the user;
信息单元,用于计算所述图像上的双眼之间的像素距离,该像素距离为根据分辨率进行归一化后的像素距离。The information unit is used to calculate the pixel distance between the two eyes on the image, where the pixel distance is the pixel distance normalized according to the resolution.
所述提醒单元包括:The reminder unit includes:
第一判断单元,用于当所述像素距离大于或等于预先存储的像素距离阈值时,触发发送提醒信息单元;The first judging unit is used to trigger the sending reminder information unit when the pixel distance is greater than or equal to the pre-stored pixel distance threshold;
发送提醒信息单元,用于接收到所述第一判断单元发送的触发信号时,向所述用户发出提醒信息。The reminder information sending unit is configured to send reminder information to the user when the trigger signal sent by the first judging unit is received.
所述提醒单元还包括:The reminder unit also includes:
第二判断单元,用于当所述像素距离大于或等于所述像素距离阈值时,计算所述像素距离大于或等于所述像素距离阈值的持续时间,当所述持续时间大于或等于预先设定的时间门限值时,触发所述发送提醒信息单元;A second judging unit, configured to calculate a duration for which the pixel distance is greater than or equal to the pixel distance threshold when the pixel distance is greater than or equal to the pixel distance threshold, and when the duration is greater than or equal to a preset When the time threshold value is set, the sending reminder information unit is triggered;
则,所述发送提醒信息单元,用于接收到所述第一判断单元以及所述第二判断单元发送的触发信号时,向所述用户发出提醒信息。Then, the sending reminder information unit is configured to send reminder information to the user when receiving the trigger signals sent by the first judging unit and the second judging unit.
该装置还包括:The unit also includes:
第一设置单元,用于向用户提供至少一种提醒信息,并将所述用户设定的提醒信息发送给所述提醒单元;A first setting unit, configured to provide at least one kind of reminder information to the user, and send the reminder information set by the user to the reminder unit;
则所述提醒单元,当所述像素距离大于或等于预先存储的像素距离阈值时,向所述用户发出所述用户设定的提醒信息。Then, the reminding unit sends the reminding information set by the user to the user when the pixel distance is greater than or equal to a pre-stored pixel distance threshold.
该装置还包括:The unit also includes:
第二设置单元,用于保存所述用户预先设置的时间门限值,并将该时间门限值发送给所述提醒单元。The second setting unit is configured to save the time threshold value preset by the user, and send the time threshold value to the reminder unit.
本发明提供的一种显示器,向用户发送与自身保持一定距离的提醒信息,该显示器包括:A display provided by the present invention sends reminder information to the user to keep a certain distance from itself, and the display includes:
视力保护装置,用于采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离,当所述像素距离大于或等于预先存储的像素距离阈值时,向所述用户发出提醒信息。A vision protection device, configured to collect an image including both eyes of the user, and calculate the pixel distance between the two eyes on the image, and send a message to the user when the pixel distance is greater than or equal to a pre-stored pixel distance threshold reminder message.
所述视力保护装置包括:The eye protection devices include:
信息获取单元,用于采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离,该像素距离为根据分辨率进行归一化后的像素距离;An information acquisition unit, configured to collect an image including both eyes of the user, and calculate a pixel distance between the two eyes on the image, where the pixel distance is a pixel distance normalized according to the resolution;
提醒单元,用于当所述像素距离大于或等于预先存储的像素距离阈值时,向所述用户发出提醒信息。A reminder unit, configured to send a reminder message to the user when the pixel distance is greater than or equal to a pre-stored pixel distance threshold.
本发明用于向用户发送与观看对象保持一定距离的提醒信息,通过图像采集设备采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离,当所述像素距离大于或等于预先设定的像素距离阈值时,向所述用户发出提醒信息,通过该技术方案,实现了当用户观看显示器或书本等观看对象时,提醒用户与所述观看对象保持一定距离,从而达到视力保护的目的,并且采用该视力保护方式发出的提醒信息更加准确,更加符合用户要求。The present invention is used to send reminder information to the user to keep a certain distance from the viewing object, collect an image including both eyes of the user through an image acquisition device, and calculate the pixel distance between the two eyes on the image, when the pixel distance is greater than or equal to the preset pixel distance threshold, a reminder message is sent to the user. Through this technical solution, when the user watches the viewing object such as a display or a book, the user is reminded to keep a certain distance from the viewing object, thereby achieving The purpose of vision protection, and the reminder information sent by this vision protection method is more accurate and more in line with user requirements.
附图说明Description of drawings
图1为现有技术凸透镜成像原理示意图;Fig. 1 is the schematic diagram of prior art convex lens imaging principle;
图2为本发明装置实施例的结构示意图;Fig. 2 is the structural representation of device embodiment of the present invention;
图3为本发明装置实施例中眼睛特征点定位方法的流程示意图;Fig. 3 is a schematic flow chart of a method for locating eye feature points in an embodiment of the device of the present invention;
图4为本发明显示器实施例的结构示意图;FIG. 4 is a schematic structural diagram of a display embodiment of the present invention;
图5为本发明方法实施例的流程示意图;Fig. 5 is a schematic flow diagram of a method embodiment of the present invention;
图6为本发明方法实施例的流程示意图。Fig. 6 is a schematic flowchart of a method embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种实现视力保护的方法及装置,用于提醒用户与观看对象保持一定距离,保护所述用户的视力,通过图像采集设备采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;当所述像素距离大于或等于预先设定的像素距离阈值时,向所述用户发出提醒信息,通过该技术方案,实现了当用户观看显示器或书本等观看对象时,提醒用户与所述观看对象保持一定距离,从而达到视力保护的目的,并且采用该视力保护方式发出的提醒信息更加准确,更加符合用户要求。Embodiments of the present invention provide a method and device for realizing vision protection, which are used to remind the user to keep a certain distance from the viewing object, protect the user's vision, collect images including both eyes of the user through an image acquisition device, and calculate the The pixel distance between the two eyes on the image; when the pixel distance is greater than or equal to the preset pixel distance threshold, a reminder message is sent to the user. Through this technical solution, when the user watches a display or a book, etc. When viewing an object, the user is reminded to keep a certain distance from the viewing object, so as to achieve the purpose of vision protection, and the reminder information sent by this vision protection method is more accurate and more in line with user requirements.
参见图1,以摄像头成像为例,摄像头正常使用时,物距大于二倍焦距2f时,成倒立实像,根据凸透镜成像原理,当物距处于2f之外时,分别用H表示物的大小,h表示像的大小,A表示物距,a表示像距,则根据光线的几何关系有:所以有即像的大小h和物距A成反比,则当焦距f不变,像距a不变,物的大小H近似不变时,便可以通过像的大小来判断物距大小,而数码相机,数码摄像机等其他图像采集设备的成像原理和摄像头相似,也存在相同的结论。Referring to Figure 1, taking camera imaging as an example, when the camera is in normal use, when the object distance is greater than twice the
对于某个固定的图像采集设备(包括摄像头、数码相机和摄像机等),根据成像原理,当其镜头和焦距固定时,所成图像的大小就取决于物距和物体的大小,而当感光器件面积固定时,图像的大小就体现为该图像所占的像素面积,像上两点的距离体现为该图像上两点之间的像素数目。For a fixed image acquisition device (including camera, digital camera and video camera, etc.), according to the imaging principle, when the lens and focal length are fixed, the size of the formed image depends on the object distance and the size of the object, and when the photosensitive device When the area is fixed, the size of the image is represented by the pixel area occupied by the image, and the distance between two points on the image is represented by the number of pixels between the two points on the image.
眼睛是人身体上位置相对最固定的器官之一,如果预先设定图像采集设备的镜头和焦距,以及感光器件的尺寸,当人正面面对图像采集设备时,如果忽略不同人双眼之间距离的差异,可以认为所成图像中两眼之间的距离仅仅受到人眼的物距的影响,那么,通过采集图像中人双眼之间的像素距离便可以判定人距离镜头的物距大小,从而可以判定人眼到图像采集设备的距离是否符合用户要求。The eye is one of the most fixed organs on the human body. If the lens and focal length of the image acquisition device and the size of the photosensitive device are preset, when the person faces the image acquisition device, if the distance between the eyes of different people is ignored It can be considered that the distance between the two eyes in the resulting image is only affected by the object distance of the human eye. Then, by collecting the pixel distance between the two eyes of the person in the image, the object distance between the human and the lens can be determined, and thus It can determine whether the distance from the human eye to the image acquisition device meets the user's requirements.
因此,如果可以测定像平面上双眼图像之间的像素数目,即像素距离,便可以通过判定双眼像之间像素距离大小的方法来判定眼睛距离图像采集设备距离是否在所要求范围之内,当所述图像采集设备与用户双眼的距离等于观看对象与所述用户双眼的距离,且所述图像采集设备与所述观看对象正对所述用户双眼时,通过本发明提供的装置便可以达到保护所述用户视力的目的。Therefore, if the number of pixels between the binocular images on the image plane can be measured, that is, the pixel distance, it can be determined whether the distance between the eyes and the image acquisition device is within the required range by judging the pixel distance between the binocular images. The distance between the image acquisition device and the user's eyes is equal to the distance between the viewing object and the user's eyes, and when the image acquisition device and the viewing object are facing the user's eyes, the device provided by the present invention can achieve protection The purpose of the user's vision.
下面结合附图,分别说明本发明装置实施例以及方法实施例是如何实现的。How to implement the device embodiment and the method embodiment of the present invention will be respectively described below in conjunction with the accompanying drawings.
参见图2,本发明装置实施例用于向用户发送与观看对象保持一定距离的提醒信息,从而保护所述用户的视力,该装置包括:信息获取单元21、提醒单元22、第一设置单元23和第二设置单元24;Referring to Fig. 2, the device embodiment of the present invention is used to send reminder information to the user to keep a certain distance from the viewing object, thereby protecting the user's eyesight, the device includes: an
所述信息获取单元21包括:采集单元211和信息单元212;The
所述提醒单元22包括:第一判断单元221、第二判断单元222和发送提醒信息单元223;The
所述信息获取单元21,用于采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;The
其中,所述采集单元211,用于采集包括所述用户双眼的图像;Wherein, the
所述信息单元212,用于计算所述图像上的双眼之间的像素距离,该像素距离为根据分辨率进行归一化后的像素距离;The
其中,所述用户的双眼与所述采集单元211之间的距离等于所述用户双眼与观看对象之间的距离,即所述观看对象和所述装置同时正面对着用户的眼睛,并且与用户的眼睛的距离相等,从而可以起到保护用户视力的作用。Wherein, the distance between the user's eyes and the
通过信息单元212自动判定图像中左右眼睛位置定位到左右眼睛位置后,便可以采用图像平面坐标两点间求取距离的方式获得左右眼睛在像平面上成像点之间的像素距离,即所述用户双眼图像之间的像素距离为图像上两点坐标之间的距离;After the
例如,所述采集单元211采集到了包含人脸的图像后,信息单元212通过以下方法定位眼睛特征点位置,参见图3,该方法具体包括如下步骤:For example, after the
S301、通过人脸检测获得人脸位置和大小信息,并采用统计方式确定左眼搜索区域和右眼搜索区域;S301. Obtain the position and size information of the face through face detection, and determine the left-eye search area and the right-eye search area by means of statistics;
即确定左眼和右眼在图像中的可能出现位置范围,将每个可能的位置称为初选位置;That is, determine the range of possible positions of the left eye and the right eye in the image, and call each possible position a primary position;
S302、在所述左眼与右眼搜索区域内,分别采用左眼局部特征检测器与右眼局部特征检测器,对所有左眼初选位置和右眼初选位置进行判别,并为每个初选位置确定一个单眼相似度数值;S302. In the left-eye and right-eye search areas, respectively use a left-eye local feature detector and a right-eye local feature detector to discriminate all left-eye primary locations and right-eye primary locations, and generate The primary location determines a monocular similarity value;
相似度越大,使得真实眼睛位置的可能性越大;The greater the similarity, the greater the possibility of the real eye position;
S303、从所有左眼初选位置与右眼初选位置中,分别选择相似度数值最大的前N个位置作为左眼候选位置和右眼候选位置,并将所有左眼和右眼候选位置配成双眼候选对,以每一个候选对为基准确定双眼区域;S303. From all the primary left-eye positions and right-eye primary positions, respectively select the top N positions with the largest similarity values as left-eye candidate positions and right-eye candidate positions, and match all left-eye and right-eye candidate positions. Form a binocular candidate pair, and determine the binocular area based on each candidate pair;
S304、采用双眼区域检测器作为全局约束,对所述每一个双眼区域进行判别,为其中每个双眼候选对确定一个双眼相似度数值;S304. Using a binocular region detector as a global constraint, discriminate each binocular region, and determine a binocular similarity value for each binocular candidate pair;
S305、选择双眼相似度数值最大的前M个双眼候选对,对其中的所有左眼候选位置与所有右眼候选位置分别计算平均值;S305. Select the top M binocular candidate pairs with the largest binocular similarity, and calculate average values for all left-eye candidate positions and all right-eye candidate positions;
将所有左眼候选位置的平均值作为左眼特征点位置;Use the average of all left eye candidate positions as the left eye feature point position;
将所有右眼候选位置的平均值作为右眼特征点位置。The average of all right eye candidate positions is taken as the right eye feature point position.
本发明实施例所述采集单元211为数字化图像采集设备,所采集到的图像用二维矩阵来表示。图像上的每一个点,都有一个数字化的坐标(x,y)。例如,对于一个640×480分辨率的图像,某点的坐标(x,y)的位置满足:The
{(x,y)|x>=0&&x<640,y>=0&&y<480};{(x, y)|x>=0&&x<640, y>=0&&y<480};
则,通过所述左眼特征点位置坐标与所述右眼特征点位置坐标之间的距离便可以计算出图像上左眼与右眼之间的像素距离。Then, the pixel distance between the left eye and the right eye on the image can be calculated according to the distance between the position coordinates of the left eye feature point and the right eye feature point position coordinates.
在对感光器件获得的模拟图像进行数字化的过程中,假设感光器件的面积为B*C,分辨率为W*D,则有B/W=C/D,所述模拟图像对应的单位尺寸的数字图像的像素个数为B/W,如果数字图像上两点之间的像素个数(像素距离)为m,则所成的模拟图像上所述两点距离为h=m*B/W,可见模拟图像(真实像)上的两点间距离与所述两点在数字图像上的像素距离成正比,因而可以采用像素距离来判定模拟图像上两点之间距离是否在限定范围内,当所述像素距离小于预先存储的像素距离阈值时,说明模拟图像上两点之间距离在限定范围内,也就是说实际物距为安全的。In the process of digitizing the analog image obtained by the photosensitive device, assuming that the area of the photosensitive device is B*C and the resolution is W*D, then there is B/W=C/D, and the corresponding unit size of the analog image is The number of pixels of the digital image is B/W, if the number of pixels (pixel distance) between two points on the digital image is m, then the distance between the two points on the resulting analog image is h=m*B/W , it can be seen that the distance between two points on the analog image (real image) is proportional to the pixel distance of the two points on the digital image, so the pixel distance can be used to determine whether the distance between two points on the analog image is within a limited range, When the pixel distance is smaller than the pre-stored pixel distance threshold, it means that the distance between two points on the simulated image is within a limited range, that is to say, the actual object distance is safe.
对于同一个图像采集设备(如摄像头),可以通过软件设置其输出图像的分辨率,比如可以设定分辨率为640×480,也可以设定分辨率为320×240,对于同一个人与同一个图像采集设备保持同样的距离所采集到的图像中,虽然所采集到的图像大小相同,但是由于分辨率不同,图像上的双眼之间的距离h和图像上的双眼之间的像素距离的关系发生了变化,采用像素距离来判定模拟图像上两点之间距离是否在限定范围内便需要为不同的分辨率分别设定相应的像素距离阈值。For the same image acquisition device (such as a camera), the resolution of the output image can be set by software, for example, the resolution can be set to 640×480, or the resolution can be set to 320×240. For the same person and the same In the images collected by the image acquisition device at the same distance, although the collected images are of the same size, due to the different resolutions, the relationship between the distance h between the two eyes on the image and the pixel distance between the two eyes on the image is If the pixel distance is used to determine whether the distance between two points on the simulated image is within a limited range, it is necessary to set corresponding pixel distance thresholds for different resolutions.
因此,较佳地,本发明实施例为了避免分辨率的影响,所述像素距离为根据分辨率进行归一化后的像素距离,所述像素距离阈值也为根据分辨率进行归一化后的像素距离阈值;Therefore, preferably, in order to avoid the influence of resolution in the embodiment of the present invention, the pixel distance is the pixel distance normalized according to the resolution, and the pixel distance threshold is also normalized according to the resolution pixel distance threshold;
信息单元212对计算得到的像素距离根据分辨率进行归一化处理,所述归一化后的像素距离为采集到的数字图像上两点之间的像素距离与当前水平方向上的分辨率之比,或者为采集到的数字图像上两点之间的像素距离与当前垂直方向上的分辨率之比,例如,当感光器件的尺寸A不变时,h与m/W成正比。对于分辨率为640×480的情况,水平方向上的分辨率为640,对于320×240的情况,水平方向分辨率为320;The
这样,采用了归一化后的像素距离来判定模拟图像上两点之间距离是否在限定范围内,使得可以采用同一个归一化后的像素距离阈值处理不同分辨率的情况,避免了为不同的分辨率需要分别设定相应的像素距离阈值的繁琐。In this way, the normalized pixel distance is used to determine whether the distance between two points on the simulated image is within a limited range, so that the same normalized pixel distance threshold can be used to process different resolutions, avoiding the need for Different resolutions require the cumbersome setting of corresponding pixel distance thresholds.
所述提醒单元22,用于当所述像素距离大于或等于预先存储的像素距离阈值时,并且,当所述像素距离大于或等于所述像素距离阈值的持续时间大于或等于预先设定的时间门限值时,向所述用户发出提醒信息;The
其中,所述预先存储的像素距离阈值可以通过以下方式预先设置:Wherein, the pre-stored pixel distance threshold can be preset in the following manner:
方式一:设定一个距离值,该值为人眼距离观看对象的安全距离值,即人眼与所述观看对象大于或等于该距离值时认为是安全的,不会造成视力伤害;Method 1: Set a distance value, which is the safe distance value between the human eye and the viewing object, that is, when the human eye and the viewing object are greater than or equal to the distance value, it is considered safe and will not cause visual damage;
将摄像头固定在观看对象上,并调整角度使之刚好拍摄到观看对象前用户的脸部;测定并统计各种类型人正面面对图像采集设备且与所述观看对象的距离为所述设定的距离时,所述图像采集设备采集到的图像上的双眼之间的像素距离;Fix the camera on the viewing object, and adjust the angle so that it just captures the face of the user in front of the viewing object; measure and count various types of people facing the image acquisition device and the distance from the viewing object is the set When the distance is , the pixel distance between the two eyes on the image collected by the image acquisition device;
将不同人对应的图像上的双眼的像素距离的均值作为所述像素距离阈值,将该阈值预先存储在提醒单元22中。The average value of the pixel distance between the two eyes on images corresponding to different people is used as the pixel distance threshold, and the threshold is pre-stored in the
方式二:考虑到各种人之间的双眼距离的差异,尤其是男女之间的差异,以及成人和儿童之间的差异,将预先存储的阈值分为三类:成人男,成人女,孩子,当然根据需要也可以有其他的分类方法;Method 2: Considering the differences in binocular distance between various people, especially the differences between men and women, and the differences between adults and children, the pre-stored thresholds are divided into three categories: adult male, adult female, and child , of course, there can be other classification methods as needed;
在实际应用中,所述实现视力保护的装置可以为用户提供类型选择,用户可以根据上述分类,选择成年男选项对应的像素距离阈值、成年女选项对应的像素距离阈值或者小孩选项对应的像素距离阈值,从而使得接收到的提醒信息更加精确;In practical applications, the device for realizing vision protection can provide users with type selection, and the user can select the pixel distance threshold corresponding to the adult male option, the pixel distance threshold corresponding to the adult female option, or the pixel distance corresponding to the child option according to the above classification. Threshold, so that the received reminder information is more accurate;
方式三:在实际应用中,根据用户需要,由用户选择一定的距离,当该用户的双眼与观看对象存在所述一定距离时,通过观看对象上固定的图像采集设备采集所述用户双眼图像,并计算所述图像上的双眼之间的像素距离,将该像素距离作为所述像素距离阈值;Method 3: In practical applications, according to the needs of the user, the user selects a certain distance, and when the user's eyes and the viewing object have the certain distance, the images of the user's eyes are collected through the fixed image acquisition device on the viewing object, And calculate the pixel distance between the two eyes on the image, and use the pixel distance as the pixel distance threshold;
那么,该用户在实际应用中,便可以根据自己设定的像素距离阈值,接收所述提醒单元22发出的提醒信息,这样就更加准确。Then, in actual application, the user can receive the reminder information sent by the
所述第一设置单元23,用于向用户提供至少一种提醒信息,并将所述用户设定的提醒信息发送给所述提醒单元22;The
则,所述提醒单元22向所述用户发出的提醒信息为所述用户设定的提醒信息,发出所述的提醒信息可以采用输出信号、声音、图像提示等任何形式以及任意几种形式的组合的方式发出提醒信息;Then, the reminder information sent by the
所述第二设置单元24,用于保存所述用户预先设置的时间门限值(例如1秒钟),并将该时间门限值发送给所述提醒单元22;The
其中,所述第一判断单元221,用于当所述像素距离大于或等于预先存储的像素距离阈值时,触发所述发送提醒信息单元223;Wherein, the first judging unit 221 is configured to trigger the sending
所述第二判断单元222,用于计算所述像素距离大于或等于所述像素距离阈值的持续时间,当所述持续时间大于或等于预先设定的时间门限值时,触发所述发送提醒信息单元223;The
则,所述发送提醒信息单元223,用于接收到所述第一判断单元221以及所述第二判断单元222发送的触发信号时,向所述用户发出所述用户设定的提醒信息。Then, the sending
例如,当所述观看对象为显示器时,假定需要设计一种当用户眼睛与显示器的距离小于50cm且持续时间大于1秒钟时会自动向该用户发出提醒信息的视力保护装置;For example, when the viewing object is a display, it is assumed that it is necessary to design a vision protection device that will automatically send a reminder message to the user when the distance between the user's eyes and the display is less than 50 cm and lasts longer than 1 second;
为了节省成本,所述的采集单元211,即图像采集设备可以采用比较低廉的摄像头,将摄像头固定在显示器的上端,并调整角度使之刚好拍摄到显示器前用户的脸部;In order to save costs, the
采集单元211采集当用户正面观看显示器,且用户眼睛与显示器距离在50cm时的人脸图像,并通过信息单元212计算该图像中眼睛之间的像素距离,并将该像素距离作为像素距离阈值dT;The
实际应用时,采集单元211采集图像,信息单元212定位图像中的眼睛,如果图像中存在眼睛则计算眼睛间像素距离,第一判断单元221判定眼睛间像素距离是否大于或等于阈值dT,当所述眼睛间像素距离大于或等于预先存储的像素距离阈值dT时,第二判断单元222计算眼睛间像素距离大于或等于阈值dT的持续时间t,如果t大于或等于预先设定的时间门限值tT(可以为1秒)时,则发送提醒信息单元223向所述用户发出提醒信息,提醒用户远离显示器。In practical applications, the
同时,本发明实施例还提供了一种显示器,该显示器具有保护用户视力的功能,参见图4,该显示器包括:视力保护装置41;At the same time, the embodiment of the present invention also provides a display, which has the function of protecting the eyesight of the user, as shown in FIG. 4 , the display includes: a vision protection device 41;
所述的视力保护装置包括:信息获取单元411和提醒单元412;The eyesight protection device includes: an information acquisition unit 411 and a reminder unit 412;
所述视力保护装置41,用于采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离,当所述像素距离大于或等于预先存储的像素距离阈值时,向所述用户发出提醒信息。The eyesight protection device 41 is configured to collect an image including both eyes of the user, and calculate a pixel distance between the two eyes on the image, and when the pixel distance is greater than or equal to a pre-stored pixel distance threshold, send the image to the user. The user sends a reminder message.
其中,所述信息获取单元411,用于采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;Wherein, the information acquisition unit 411 is configured to acquire an image including both eyes of the user, and calculate the pixel distance between the eyes on the image;
所述提醒单元412,用于当所述像素距离大于或等于预先存储的像素距离阈值时,向所述用户发出提醒信息;The reminder unit 412 is configured to send a reminder message to the user when the pixel distance is greater than or equal to a pre-stored pixel distance threshold;
较佳地,所述像素距离为根据分辨率进行归一化后的像素距离;所述像素距离阈值为根据分辨率进行归一化后的像素距离阈值。Preferably, the pixel distance is a pixel distance normalized according to resolution; the pixel distance threshold is a pixel distance threshold normalized according to resolution.
参见图5,本发明方法实施例,用于向用户发送与观看对象保持一定距离的提醒信息,该方法包括步骤:Referring to Fig. 5, an embodiment of the method of the present invention is used to send reminder information to the user to keep a certain distance from the viewing object. The method includes steps:
S501、通过图像采集设备采集包括所述用户双眼的图像,并计算所述图像上的双眼之间的像素距离;S501. Collect an image including both eyes of the user through an image collection device, and calculate a pixel distance between the two eyes on the image;
S502、当所述像素距离大于或等于预先设定的像素距离阈值时,向所述用户发出提醒信息;S502. When the pixel distance is greater than or equal to a preset pixel distance threshold, send a reminder message to the user;
其中,可以通过以下两种方法预先设定像素距离阈值:Among them, the pixel distance threshold can be preset by the following two methods:
方法一:当若干用户的双眼与所述图像采集设备存在一定距离时,分别通过所述图像采集设备采集所述若干用户的双眼图像,并分别计算所述若干图像上的双眼之间的像素距离,得到所述若干像素距离;将所述若干像素距离的平均值作为所述像素距离阈值。Method 1: When there is a certain distance between the eyes of several users and the image acquisition device, respectively collect the binocular images of the plurality of users through the image acquisition device, and calculate the pixel distance between the eyes of the plurality of images respectively , to obtain the several pixel distances; the average value of the several pixel distances is used as the pixel distance threshold.
方法二:当所述用户的双眼与所述图像采集设备存在一定距离时,通过所述图像采集设备采集所述用户双眼图像,并计算所述图像上的双眼之间的像素距离,将该像素距离作为所述像素距离阈值。Method 2: When there is a certain distance between the user's eyes and the image acquisition device, the image acquisition device collects the image of the user's eyes, and calculates the pixel distance between the eyes on the image, and the pixel distance as the pixel distance threshold.
参见图6,本发明方法实施例,用于向用户发送与观看对象保持一定距离的提醒信息,该方法包括步骤:Referring to FIG. 6 , the embodiment of the method of the present invention is used to send reminder information to the user to keep a certain distance from the viewing object. The method includes steps:
S601、采集包括所述用户双眼的图像;S601. Collect images including both eyes of the user;
S602、计算所述图像上的双眼之间的像素距离;S602. Calculate the pixel distance between the two eyes on the image;
所述像素距离为根据分辨率进行归一化后的像素距离;The pixel distance is the pixel distance normalized according to the resolution;
S603、当所述像素距离大于或等于预先设定的像素距离阈值时,计算所述像素距离大于或等于所述像素距离阈值的持续时间,当所述持续时间大于或等于预先设定的时间门限值时,向所述用户发出提醒信息;S603. When the pixel distance is greater than or equal to the preset pixel distance threshold, calculate the duration of the pixel distance greater than or equal to the pixel distance threshold, and when the duration is greater than or equal to the preset time gate When the limit value is exceeded, a reminder message is sent to the user;
所述的像素距离阈值为根据分辨率进行归一化后的像素距离阈值。The pixel distance threshold is a pixel distance threshold normalized according to the resolution.
综上所述,通过本发明提供的技术方案,采用眼睛成像距离来判定人眼与观看对象的实际物距,提醒用户与显示器保持一定的距离,从而实现保护用户不会因为与观看对象距离过近而造成对视力的伤害;同时本发明避免了现有技术由于书本、手、身体等干扰造成的错误提醒,本发明具有较强的抗干扰能力;同时,用户可以很方便地调节提醒所依据的像素距离阈值和时间,因此,给用户的应用带来了便利,更加符合用户需求,且可扩展性强。In summary, through the technical solution provided by the present invention, the eye imaging distance is used to determine the actual object distance between the human eye and the viewing object, and the user is reminded to keep a certain distance from the display, so as to protect the user from being too far away from the viewing object. Nearly causing damage to eyesight; at the same time, the present invention avoids the wrong reminders caused by the interference of books, hands, and bodies in the prior art, and the present invention has strong anti-interference ability; The pixel distance threshold and time, therefore, bring convenience to the user's application, better meet the user's needs, and have strong scalability.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007100984956A CN101033955B (en) | 2007-04-18 | 2007-04-18 | A method, device and display for realizing vision protection |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007100984956A CN101033955B (en) | 2007-04-18 | 2007-04-18 | A method, device and display for realizing vision protection |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101033955A CN101033955A (en) | 2007-09-12 |
| CN101033955B true CN101033955B (en) | 2010-10-06 |
Family
ID=38730615
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2007100984956A Active CN101033955B (en) | 2007-04-18 | 2007-04-18 | A method, device and display for realizing vision protection |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101033955B (en) |
Families Citing this family (25)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101409784A (en) | 2007-10-10 | 2009-04-15 | 联想(北京)有限公司 | Camera device and information-prompting apparatus |
| CN101178769B (en) * | 2007-12-10 | 2013-03-27 | 北京中星微电子有限公司 | Health protecting equipment and realization method thereof |
| CN101470460B (en) * | 2007-12-29 | 2011-07-27 | 联想(北京)有限公司 | Method for sight protection when using computer, and computer thereof |
| CN101874234B (en) * | 2008-09-29 | 2014-09-24 | 松下电器产业株式会社 | User interface device, user interface method, and recording medium |
| CN101893858B (en) * | 2010-07-15 | 2012-01-25 | 华中科技大学 | Method for controlling distance between eyes of user and screen of electronic equipment |
| CN102480587A (en) * | 2010-11-23 | 2012-05-30 | 英业达股份有限公司 | Network camera device and operating method thereof |
| CN103000004B (en) * | 2011-09-13 | 2014-09-17 | 三星电子(中国)研发中心 | Monitoring method for visibility range from eyes to screen |
| CN103186609A (en) * | 2011-12-30 | 2013-07-03 | 深圳富泰宏精密工业有限公司 | System and method for relieving visual fatigue during electronic device usage |
| CN102542739A (en) * | 2012-02-09 | 2012-07-04 | 苏州大学 | Vision protection method and system |
| CN103377643B (en) * | 2012-04-26 | 2017-02-15 | 富泰华工业(深圳)有限公司 | System and method for adjusting fonts |
| CN103063193A (en) * | 2012-11-30 | 2013-04-24 | 青岛海信电器股份有限公司 | Method and device for ranging by camera and television |
| CN103294910A (en) * | 2013-05-23 | 2013-09-11 | 西北工业大学 | Eye protection method for users in front of video display terminal |
| CN103528562A (en) * | 2013-10-26 | 2014-01-22 | 吉林大学 | Method for detecting distance of human eyes and display terminal based on single camera |
| CN103646637B (en) * | 2013-11-04 | 2016-06-22 | 广东明创软件科技有限公司 | The method of protection vision |
| CN103700229B (en) * | 2013-12-06 | 2017-03-22 | 乐视致新电子科技(天津)有限公司 | Reminding method and electronic equipment |
| CN104076879A (en) * | 2014-07-07 | 2014-10-01 | 安庆市鸿裕工业产品设计有限公司 | Display with resolution changeable in terms of distance |
| CN107133008B (en) * | 2014-09-29 | 2020-05-15 | 华勤通讯技术有限公司 | Method for automatically adjusting output of mobile terminal |
| CN104391579A (en) * | 2014-12-08 | 2015-03-04 | 钟志刚 | Interactive eye protecting method of display equipment |
| CN104504374A (en) * | 2014-12-19 | 2015-04-08 | 合肥科飞视觉科技有限公司 | Method and system for automatically monitoring distance from human eyes to screen |
| CN105630163A (en) * | 2015-12-21 | 2016-06-01 | 惠州Tcl移动通信有限公司 | Eye protection method for intelligent terminal and intelligent terminal |
| CN105472174A (en) * | 2016-01-29 | 2016-04-06 | 四川工业科技学院 | Intelligent eye protecting method achieved by controlling distance between mobile terminal and eyes |
| CN106025082B (en) * | 2016-07-08 | 2020-12-01 | 四川京龙光电科技有限公司 | Multi-primary color distance measurement liquid crystal display |
| CN106919256A (en) * | 2017-02-27 | 2017-07-04 | 深圳市金立通信设备有限公司 | A kind of method and terminal of protection terminal user's eye health |
| CN114353744A (en) * | 2021-03-18 | 2022-04-15 | 武汉星辰北斗科技有限公司 | GPS elevation fitting method and system based on SRTM1 and EGM2008 |
| CN114049671A (en) * | 2021-11-18 | 2022-02-15 | 展讯通信(上海)有限公司 | Image processing method, image processing device, chip and chip module |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE3808260C1 (en) * | 1988-03-12 | 1989-03-16 | Fred 6991 Igersheim De Henneberg | Screen device |
| CN1687959A (en) * | 2005-04-30 | 2005-10-26 | 清华大学 | Man face image identifying method based on man face geometric size normalization |
| CN1889136A (en) * | 2005-06-30 | 2007-01-03 | 上海市延安中学 | Apparatus for fatigue driving prealarming system |
-
2007
- 2007-04-18 CN CN2007100984956A patent/CN101033955B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE3808260C1 (en) * | 1988-03-12 | 1989-03-16 | Fred 6991 Igersheim De Henneberg | Screen device |
| CN1687959A (en) * | 2005-04-30 | 2005-10-26 | 清华大学 | Man face image identifying method based on man face geometric size normalization |
| CN1889136A (en) * | 2005-06-30 | 2007-01-03 | 上海市延安中学 | Apparatus for fatigue driving prealarming system |
Non-Patent Citations (2)
| Title |
|---|
| CN 1889136 A,全文. |
| JP特开平11-203572A 1999.07.30 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101033955A (en) | 2007-09-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101033955B (en) | A method, device and display for realizing vision protection | |
| CN100578531C (en) | A display, device and method for realizing vision protection | |
| TWI466655B (en) | Image controlling system for detecting electrooculography (eog) | |
| CN103927250B (en) | A method for detecting user posture of a terminal device | |
| US20110249117A1 (en) | Imaging device, distance measuring method, and non-transitory computer-readable recording medium storing a program | |
| EP2991027B1 (en) | Image processing program, image processing method and information terminal | |
| EP3651457B1 (en) | Pupillary distance measurement method, wearable eye equipment and storage medium | |
| TWI474173B (en) | Assistance system and assistance method | |
| CN110378244B (en) | Abnormal posture detection method and device | |
| JP5110182B2 (en) | Video display device | |
| CN106377264A (en) | Human height measuring method and device and intelligent mirror | |
| US20160127657A1 (en) | Imaging system | |
| KR20120057033A (en) | Gaze tracking system and method for controlling internet protocol tv at a distance | |
| US20130301007A1 (en) | Apparatus to measure accommodation of the eye | |
| JP2010533308A5 (en) | ||
| CN102833486A (en) | Method and device for real-time adjusting face display scale in video image | |
| CN109523755A (en) | Stereoscopic vision sitting posture reminder and based reminding method | |
| TW200842665A (en) | Cursor controlling device and method for image apparatus and image system | |
| JP2016177393A (en) | Image processing apparatus, face recognition method, and program | |
| CN113589296A (en) | Human body sitting posture detection device and method | |
| CN107509043A (en) | Image processing method and device | |
| US20190281280A1 (en) | Parallax Display using Head-Tracking and Light-Field Display | |
| JP5016959B2 (en) | Visibility determination device | |
| US12171711B2 (en) | Walking assisting systems and methods | |
| TWI317084B (en) | Pointer positioning device and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20171221 Address after: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16 Patentee after: Zhongxing Technology Co.,Ltd. Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor Patentee before: VIMICRO Corp. |
|
| TR01 | Transfer of patent right | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16 Patentee after: Zhongxing Technology Co.,Ltd. Address before: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16 Patentee before: Zhongxing Technology Co.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| CP03 | Change of name, title or address |
Address after: 519031 Guangdong Province, Hengqin New Area, Zhuhai City, Huajin Street No. 58, Unit 1201-2 Patentee after: Zhongxing Micro Technology Co.,Ltd. Country or region after: China Address before: 100083 Haidian District, Xueyuan Road, No. 35, the world building, the second floor of the building on the ground floor, No. 16 Patentee before: Zhongxing Technology Co.,Ltd. Country or region before: China |
|
| CP03 | Change of name, title or address |

