Summary of the invention
Embodiments of the invention provide a kind of based reminding method and electronic equipment, can cross reminding user when near at user distance electronic equipment screen, prevent that user from excessively approaching electronic equipment screen, effectively protected user's eyesight.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of based reminding method, and described method comprises:
Electronic equipment obtains the distance of user and screen; Described screen is the screen of described electronic equipment;
Described electronic equipment obtains corresponding alert condition according to the device attribute of described electronic equipment, or obtain the alert condition pre-seting according to described user's attribute, and judge according to described alert condition whether the distance of described user and screen meets described alert condition;
If the distance of described user and screen meets described alert condition, described electronic equipment sends the prompting message of hypotelorism to described user.
In conjunction with first aspect, in the possible implementation of the first, the distance that described electronic equipment obtains user and screen comprises:
Described electronic equipment adopts recognition of face to obtain described user's facial state by camera, when described user's face is faced described screen, and when the angle of described face and described screen is greater than predetermined angle, obtain the distance of described face and described screen as the distance of described user and screen; Or
Described electronic equipment adopts face recognition to obtain described user's facial state by described camera, and when described user's face is in the face of described screen, and the angle of described face and described screen is while being greater than described predetermined angle, obtains the face-image of described face;
Described electronic equipment carries out apart from computing according to described face-image, obtains the distance of described face and described screen as the distance of described user and screen; Or
Described electronic equipment obtains described user's current location by distance-sensor, when described user is when the described current location residence time surpasses Preset Time threshold value, obtain the distance of described current location and described screen as the distance of described user and screen.
In conjunction with first aspect, in the possible implementation of the second, described alert condition comprises prompting distance; Described electronic equipment obtains corresponding alert condition according to the device attribute of described electronic equipment, or obtains the alert condition pre-seting according to described user's attribute and comprise:
Described electronic equipment, according to pre-stored device attribute and the corresponding relation of reminding distance, obtains the corresponding distance of reminding of device attribute of described electronic equipment; Wherein, described device attribute comprises the display size of described screen, the brightness of the current demonstration of described screen, the colourity of the current demonstration of described screen, at least one in the radiation value of the demonstration power of described screen and described electronic equipment; Or
Described electronic equipment obtains the prompting distance pre-seting according to described user's attribute, and described user's attribute comprises described user's eyesight.
In conjunction with first aspect, in the third possible implementation, describedly according to described alert condition, judge whether the distance of described user and screen meets described alert condition and comprise:
Described electronic equipment compares the distance of described user and screen and described prompting distance;
If the distance of described user and screen is greater than described prompting distance, determine that the distance of described user and screen does not meet described alert condition;
If the distance of described user and screen is less than or equal to described prompting distance, determine that the distance of described user and screen meets described alert condition.
In conjunction with first aspect, in the 4th kind of possible implementation, the prompting message that described electronic equipment sends hypotelorism to described user comprises:
Described electronic equipment is to the give a warning prompt tone of hypotelorism of described user; And/or
Described electronic equipment shows word and/or the image information that warning distance is excessively near on described screen.
Second aspect, provides a kind of electronic equipment, and described electronic equipment comprises:
Range cells, for obtaining the distance of user and screen; Described screen is the screen of described electronic equipment;
Judging unit, for obtaining corresponding alert condition according to the device attribute of described electronic equipment, or obtain the alert condition pre-seting according to described user's attribute, and judge according to described alert condition whether the distance of described user and screen meets described alert condition;
Reminding unit, if meet described alert condition for the distance of described user and screen, sends the prompting message of hypotelorism to described user.
In conjunction with second aspect, in the possible implementation of the first, described range cells comprises camera and/or distance-sensor;
Described camera, for adopting recognition of face to obtain described user's facial state, when described user's face is in the face of described screen, and the angle of described face and described screen is while being greater than predetermined angle, obtains the distance of described face and described screen as the distance of described user and screen; Or
Described camera, for adopting face recognition to obtain described user's facial state, when described user's face is in the face of described screen, and the angle of described face and described screen is while being greater than described predetermined angle, obtains the face-image of described face;
Described electronic equipment also comprises processing unit, for carrying out apart from computing according to described face-image, obtains the distance of described face and described screen as the distance of described user and screen;
Described distance-sensor, for obtaining described user's current location, when described user is when the described current location residence time arrives Preset Time threshold value, obtains the distance of described current location and described screen as the distance of described user and screen.
In conjunction with second aspect, in the possible implementation of the second, described judging unit comprises:
Alert condition selected cell, for according to pre-stored device attribute and the corresponding relation of reminding distance, obtains the corresponding distance of reminding of device attribute of described electronic equipment; Wherein, described device attribute comprises the display size of described screen, the brightness of the current demonstration of described screen, the colourity of the current demonstration of described screen, at least one in the radiation value of the demonstration power of described screen and described electronic equipment; Or
Described alert condition selected cell, for obtaining the prompting distance pre-seting according to described user's attribute, described user's attribute comprises described user's eyesight.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, described judging unit also comprises:
Comparing unit, for comparing the distance of described user and screen and described prompting distance;
If the distance of described user and screen is greater than described prompting distance, determine that the distance of described user and screen does not meet described alert condition;
If the distance of described user and screen is less than or equal to described prompting distance, determine that the distance of described user and screen meets described alert condition.
In conjunction with second aspect, in the 4th kind of possible implementation, described reminding unit specifically for:
To the give a warning prompt tone of hypotelorism of described user; And/or
On described screen, show word and/or image information that warning distance is excessively near.
The embodiment of the present invention provides a kind of based reminding method and electronic equipment, first electronic equipment obtains the distance of user and screen, then according to the device attribute of electronic equipment, obtain corresponding alert condition, or obtain the alert condition pre-seting according to user's attribute, and judge according to alert condition whether the distance of user and screen meets alert condition, if the distance of user and screen meets alert condition, to user, send the prompting message of hypotelorism.Can cross reminding user when near at user distance electronic equipment screen, prevent that user from excessively approaching electronic equipment screen, thereby effectively protected user's eyesight.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term "and/or", is only a kind of incidence relation of describing affiliated partner herein, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/", generally represents that forward-backward correlation is to liking a kind of relation of "or" herein.
The embodiment of the present invention provides a kind of based reminding method, and as shown in Figure 1, the method comprises:
101, electronic equipment obtains the distance of user and screen; Screen is the screen of electronic equipment.
102, electronic equipment obtains corresponding alert condition according to the device attribute of electronic equipment, or obtains the alert condition pre-seting according to user's attribute, and judges according to alert condition whether the distance of user and screen meets alert condition.
If the distance of 103 users and screen meets alert condition, to user, send the prompting message of hypotelorism.
The embodiment of the present invention provides a kind of based reminding method, first electronic equipment obtains the distance of user and screen, then according to the device attribute of electronic equipment, obtain corresponding alert condition, or obtain the alert condition pre-seting according to user's attribute, and judge according to alert condition whether the distance of user and screen meets alert condition, if the distance of user and screen meets alert condition, to user, send the prompting message of hypotelorism.Thereby can cross when near reminding user timely at user distance electronic equipment screen, prevent that user from excessively approaching electronic equipment screen, thereby effectively protected user's eyesight.
In order to make those skilled in the art can more clearly understand the technical scheme that the embodiment of the present invention provides, below by specific embodiment, the another kind of based reminding method that the embodiment of the present invention is provided is elaborated, and as shown in Figure 2, the method comprises:
201, electronic equipment obtains the distance of user and screen.
Exemplary, electronic equipment can obtain the distance of user and screen in the following manner:
In one implementation, electronic equipment can adopt the technology of recognition of face to obtain user's facial state by camera, when user's face is in the face of screen, and the angle of face and screen is while being greater than predetermined angle, obtains the distance of face and screen as the distance of user and screen.Wherein, the minimum visible angle that predetermined angle can be obtained according to the angular field of view of screen.Be like this because, take TV as example, when user's face is not faced screen, illustrate that user is not watching TV, there is no the necessity of reminding, and when user faces screen, for user, there is an angular field of view of watching TV, when user's face and the angle of screen are less than above-mentioned minimum visible angle, possibly cannot watch normally TV, so can think that when user's face and the angle of screen are less than this minimum visible angle user does not watch TV, can not remind.
Wherein, this camera can be the Laser video camera head with distance measurement function, distance-finding method can be as shown in Figure 3, Laser video camera head comprises camera and generating laser, this generating laser can be launched the laser beam (being generally invisible) of pointing to user, camera can obtain the reference point of camera and the angle theta of the determined straight line of the drop point of laser beam on user's face and line of reference, wherein line of reference is previously selected, be generally the axis of camera, reference point is a bit on axis.Then, according to the distance h (known) of angle theta and line of reference and laser beam, just can obtain the distance d of Laser video camera head and user's face, conventionally camera be mounted in screen the place ahead with this screen in same plane, so the d obtaining is exactly the distance of user's face and screen.
Or this camera can be the infrared camera with distance measurement function, this infrared camera, by irradiating infrared ray to user's face, just can obtain the distance of user's face and screen according to the mistiming of transmitted wave and reflection wave.
In another kind of implementation, electronic equipment can adopt face recognition to obtain user's facial state by camera, and when user's face is over against screen, and face is when parallel with screen, obtains facial face-image;
Then, according to face-image, carry out apart from computing, obtain the distance of face and screen as the distance of user and screen.
Wherein, this camera does not possess apart from computing power, is therefore merely able to first obtain user's face-image, and face-image is sent to the processing unit of electronic equipment internal according to face-image, calculate the distance of user's face and screen.
In another kind of implementation, electronic equipment can not adopt camera, and adopt distance-sensor to obtain user's current location, this distance-sensor can be proximity transducer, and this proximity transducer can be electromagnetic wave type proximity transducer, infrared-type proximity transducer or capacitive proximity sensor.
When user is when the above-mentioned current location residence time having obtained arrives Preset Time threshold value, obtain the distance of current location and screen as the distance of user and screen.Due to, proximity transducer can only obtain the distance of user and screen, can not obtain user's facial state, thereby cannot learn whether user is seeing the content of watching in screen.Therefore, a time threshold need to be set, when user is when the above-mentioned current location residence time having obtained arrives Preset Time threshold value, illustrate that this user is very long in this position residence time, watch probability very high of screen, so can think that this user is watching the content of screen, so the distance of user and screen is now recorded.
202, electronic equipment obtains the alert condition pre-seting.
Wherein, alert condition can be for reminding distance, and this reminds distance is the lower limit of user and screen distance.Obtaining of this prompting distance can be passed through:
Electronic equipment can, according to pre-stored device attribute and the corresponding relation of reminding distance, obtain the corresponding distance of reminding of device attribute of electronic equipment.
Wherein, device attribute comprise the display size of screen, the colourity of the brightness of the current demonstration of screen, the current demonstration of screen, at least one in the radiation value of the demonstration power of screen and electronic equipment; Wherein display size refers to the size of the content actual displayed in screen, with resolution, weigh and be of a size of example, such as display size can be 800 * 600,1024 * 768,1440 * 900,1920 * 1080 etc., the prompting distance different according to different selection of dimension.Concrete, can set in advance an above-mentioned parameter and the record sheet of reminding distance correspondence, this table is stored in electronic equipment.
Or electronic equipment can obtain the prompting distance pre-seting according to user's attribute, user's attribute comprises user's eyesight.
Concrete, the prompting distance pre-seting according to user's attribute can be by a pre-stored visual chart in this electronic equipment, when user uses this distance prompt functions first, user can learn by visual chart the eyesight level of oneself, and electronic equipment can be calculated a best prompting distance according to user's eyesight leveler.
In addition, when user's eyesight level changes, can also be again according to the up-to-date eyesight of user, calculate the most applicable user's prompting distance.
203, electronic equipment judges according to alert condition whether the distance of user and screen meets alert condition.If meet alert condition, carry out 204, if do not meet alert condition, since 201, do not re-execute.
Exemplary, electronic equipment can compare the distance of user and screen with reminding distance.
If the distance of user and screen is greater than prompting distance, determine that the distance of user and screen does not meet alert condition.
If the distance of user and screen is less than or equal to prompting distance, determine that the distance of user and screen meets alert condition.
204, electronic equipment sends the prompting message of hypotelorism to user.
Exemplary, can to user, send in the following manner the prompting message of hypotelorism:
Electronic equipment is to the give a warning prompt tone of hypotelorism of user; And/or
Electronic equipment shows word and/or the image information that warning distance is excessively near on screen.
Preferably, as shown in Figure 4, the method can also comprise:
205, electronic equipment judges whether to open compulsory mode, if open compulsory mode, carries out 206; If do not open and re-execute since 201.
206, electronic equipment starts to calculate the residence time of user in reminding distance, and judges whether this residence time arrives the time threshold of compulsory execution.If the residence time, while having arrived the time threshold of compulsory execution, carries out 207; If do not arrive, do not continue to carry out 206.
207, electronic equipment stops the content on screen to show.
Due to the program for more excellent, user is compulsive near screen sometimes, particularly, for children, lack especially ability of self control, may turn a deaf ear to the prompting of electronic equipment, therefore for guardian, need a kind of pressure mechanism, avoid the long-time in-plant program of watching of child, when starting compulsory mode, once user is reminding distance with the interior certain hour that surpasses, will automatically stop broadcast program, until user gets back to, remind distance position in addition.
In addition, it should be noted that, the electronic equipment mentioned in embodiments of the present invention can be the equipment that televisor, computer etc. have screen.
The embodiment of the present invention provides a kind of based reminding method, first electronic equipment obtains the distance of user and screen, then according to the device attribute of electronic equipment, obtain corresponding alert condition, or obtain the alert condition pre-seting according to user's attribute, and judge according to alert condition whether the distance of user and screen meets alert condition, if the distance of user and screen meets alert condition, to user, send the prompting message of hypotelorism.Thereby can cross when near reminding user timely at user distance electronic equipment screen; prevent that user from excessively approaching electronic equipment screen; thereby effectively protected user's eyesight; and introduced a kind of pressure mechanism; can be when user has no control over oneself when opening this mechanism; help user to remain on rational viewing distance, particularly, for low age user, further protected user's eyesight.
The embodiment of the present invention provides a kind of electronic equipment 01, and as shown in Figure 5, electronic equipment 01 comprises:
Range cells 011, for obtaining the distance of user and screen; Screen is the screen of electronic equipment 01;
Judging unit 012, for obtaining corresponding alert condition according to the device attribute of electronic equipment 01, or obtains the alert condition pre-seting according to user's attribute, and judges according to alert condition whether the distance of user and screen meets alert condition;
Reminding unit 013, if meet alert condition for the distance of user and screen, sends the prompting message of hypotelorism to user.
Optionally, as shown in Figure 6, range cells 011 comprises camera 0111 and/or distance-sensor 0112;
Wherein, if camera 0111 is while having the camera of range observation ability, during such as laser ranging camera or infrared camera, this camera 0111, for adopting recognition of face to obtain user's facial state, when user's face is in the face of screen, and the angle of face and screen is while being greater than predetermined angle, obtains the distance of face and screen as the distance of user and screen; Or
If camera 0111 is while there is no the camera of range observation ability, this camera 0111, for adopting face recognition to obtain user's facial state, when user's face is faced screen, and when face and screen angle are greater than predetermined angle, obtain facial face-image;
Electronic equipment 01 also comprises processing unit 014, for carrying out apart from computing according to face-image, obtains the distance of face and screen as the distance of user and screen, as shown in Figure 7;
Distance-sensor 0112, for obtaining user's current location, when user is when the current location residence time arrives Preset Time threshold value, obtains the distance of current location and screen as the distance of user and screen.
Optionally, as shown in Figure 8, judging unit 012 comprises:
Alert condition selected cell 0121, for according to pre-stored device attribute and the corresponding relation of reminding distance, obtains the corresponding distance of reminding of device attribute of electronic equipment 01; Wherein, device attribute comprise the display size of screen, the colourity of the brightness of the current demonstration of screen, the current demonstration of screen, at least one in the radiation value of the demonstration power of screen and electronic equipment; Or
Alert condition selected cell 0121, for obtaining the prompting distance pre-seting according to user's attribute, user's attribute comprises user's eyesight.
Judging unit 012 also comprises:
Comparing unit 0122, for comparing the distance of user and screen with reminding distance;
If the distance of user and screen is greater than prompting distance, determine that the distance of user and screen does not meet alert condition;
If the distance of user and screen is less than or equal to prompting distance, determine that the distance of user and screen meets alert condition.
Optionally, reminding unit 013 specifically for:
To the give a warning prompt tone of hypotelorism of user; And/or
On screen, show word and/or image information that warning distance is excessively near.
Wherein, the electronic equipment 01 that the embodiment of the present invention provides can be the equipment that televisor, computer etc. have screen.
The embodiment of the present invention provides a kind of electronic equipment, first electronic equipment obtains the distance of user and screen, then according to the device attribute of electronic equipment, obtain corresponding alert condition, or obtain the alert condition pre-seting according to user's attribute, and judge according to alert condition whether the distance of user and screen meets alert condition, if the distance of user and screen meets alert condition, to user, send the prompting message of hypotelorism.Thereby can cross when near reminding user timely at user distance electronic equipment screen, prevent that user from excessively approaching electronic equipment screen, thereby effectively protected user's eyesight.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device be divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed method and apparatus can be realized by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.