Summary of the invention
The invention provides a kind of TV control method and device, effectively reduced unnecessary energy waste, extended the useful life of equipment.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of TV control method, comprising:
In the first Preset Time, obtain continuously N pictures, and after obtaining a pictures, detect in described picture whether comprise facial image at every turn, wherein, N is greater than 1 integer;
If all comprise the first spectators' facial image in described N pictures, according to described the first spectators' facial image, determine that described the first spectators are current and whether watching described TV;
If described the first spectators, watching described TV, do not switch to park mode by the operating state of described TV.
In the possible implementation of first aspect the first, in conjunction with first aspect, whether comprise facial image in the described picture of described detection after, also comprise:
If comprise described facial image in described picture, determine the eye state in described facial image according to preset algorithm;
If all comprise the first spectators' facial image in described N pictures, determine that described the first spectators are current whether watching described TV specifically to comprise:
The picture number that the eye state that calculates the first spectators described in described N pictures is closed-eye state accounts for the first ratio of described N pictures;
If described the first ratio is greater than the first preset value, determine that described the first spectators are current not watch described TV.
In the possible implementation of first aspect the second, in conjunction with the possible implementation of first aspect the first, describedly according to preset algorithm, determine that the eye state in described facial image specifically comprises:
According to described preset algorithm, in described facial image, search the image of opening eyes;
If search less than the described image of opening eyes, determine that the eye state in described facial image is closed-eye state in described facial image;
If open eyes image described in finding in described facial image, determine that the eye state in described facial image is the state of opening eyes.
In the third possible implementation of first aspect, in conjunction with first aspect, to any one in the possible implementation of first aspect the second, whether comprise facial image in the described picture of described detection after, also comprise:
If all do not comprise facial image in described N pictures, the operating state of described TV switched to park mode.
In the 4th kind of possible implementation of first aspect, in conjunction with the third possible implementation of first aspect, after the described operating state by described TV switches to park mode, also comprise:
In described the first Preset Time, obtain continuously a N pictures, and after obtaining a pictures at every turn, detect in described picture, whether to comprise facial image;
If all comprise the second spectators' facial image in a described N pictures, and determine that according to described the second spectators' facial image described the second spectators are watching described TV, the operating state of described TV is switched to normal mode of operation by park mode, so that described TV normal play.
Second aspect, provides a kind of television control apparatus, comprising:
Acquiring unit, detecting unit, determining unit, mode switch element,
Described acquiring unit, in the first Preset Time, obtains N pictures continuously;
Described detecting unit, for after described acquiring unit obtains a pictures at every turn, detects in described picture whether comprise facial image, and wherein, N is greater than 1 integer;
Described determining unit, if detect for described detecting unit the facial image that described N pictures all comprises the first spectators, determines according to described the first spectators' facial image that described the first spectators are current and whether is watching described TV;
Described mode switch element, if determine that for described determining unit described the first spectators, not watching described TV, switch to park mode by the operating state of described TV.
In the possible implementation of second aspect the first, in conjunction with second aspect, after described detecting unit detects and whether comprises facial image in described picture,
Described determining unit, comprises described facial image if also detect described picture for described detecting unit, according to preset algorithm, determines the eye state in described facial image;
Described determining unit, if all comprise the first spectators' facial image for described N pictures, determine that described the first spectators are current whether watching described TV specifically to comprise:
The picture number that the eye state that calculates the first spectators described in described N pictures is closed-eye state accounts for the first ratio of described N pictures;
If described the first ratio is greater than the first preset value, determine that described the first spectators are current not watch described TV.
In the possible implementation of second aspect the second, in conjunction with the possible implementation of second aspect the first, described determining unit determines that according to preset algorithm the eye state in described facial image specifically comprises:
According to described preset algorithm, in described facial image, search the image of opening eyes;
If search less than the described image of opening eyes, determine that the eye state in described facial image is closed-eye state in described facial image;
If open eyes image described in finding in described facial image, determine that the eye state in described facial image is the state of opening eyes.
In the third possible implementation of second aspect, in conjunction with second aspect to any one in the possible implementation of second aspect the second, described mode switch element, also for detecting at described detecting unit after whether described picture comprise facial image, if all do not comprise facial image in described N pictures, the operating state of described TV switched to park mode.
In the 4th kind of possible implementation of second aspect, in conjunction with the third possible implementation of second aspect, described acquiring unit, also for after described mode switch element switches to park mode by the operating state of described TV, in described the first Preset Time, obtain continuously a N pictures;
Described detecting unit.Also for after described acquiring unit obtains a pictures at every turn, detect in described picture, whether to comprise facial image;
Described determining unit, if also detect for described detecting unit the facial image that a described N pictures all comprises the second spectators, and determines according to described the second spectators' facial image whether described the second spectators are watching described TV;
Described mode switch element, if also determine that for described determining unit described the second spectators, watching described TV, switch to normal mode of operation by the operating state of described TV by park mode, so that described TV normal play.
The invention provides a kind of TV control method and device, the method comprises, in the first Preset Time, obtains continuously N pictures, and after obtaining a pictures at every turn, detect in picture whether comprise facial image, wherein, N is greater than 1 integer, if all comprise the first spectators' facial image in N pictures, according to the first spectators' facial image, determine that the first spectators are current and whether watching TV, if the first spectators are not watching TV, the operating state of TV is switched to park mode.This programme can be by judging whether whether user enter park mode, effectively reduced the unnecessary wasting of resources, and extended the useful life of equipment watching TV to control TV.
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.
Embodiment mono-,
The embodiment of the present invention provides a kind of TV control method, and specifically as shown in Figure 1, the method comprises:
S101, television control apparatus, in the first Preset Time, obtain N pictures continuously, and after obtaining a pictures, detect in picture whether comprise facial image at every turn, and wherein, N is greater than 1 integer.
Concrete, in a kind of TV control method providing in the embodiment of the present invention, by the first Preset Time, obtain continuously N pictures, and after obtaining a pictures at every turn, in detection picture, whether comprise facial image and determine whether to play TV, like this can saving resource.
Exemplary, in 10 minutes, by camera, to TV, can watch the image in scope to take continuously, take altogether 30 pictures, after every shooting one pictures, all detect in this picture whether comprise facial image, according to 30 pictures of this shooting, whether comprise facial image and can determine whether to play TV.
It should be noted that, the first Preset Time can be the time being pre-configured in television control apparatus, the time of can also user carrying out self-defined setting, this embodiment of the present invention is not done to concrete restriction.Certainly, from numerical value, the first Preset Time can be 10 minutes, can be also other numerical value, the embodiment of the present invention is not done concrete restriction yet to this.
If all comprise the first spectators' facial image in S102 N pictures, television control apparatus is determined according to the first spectators' facial image that the first spectators are current and whether is being watched TV.
Concrete, if all comprise the first spectators' facial image in N pictures, illustrate that before television set, someone exists always, if now play TV always, and these first spectators may not watch TV, still may cause the waste of resource.
Exemplary, when user is watching in the process of TV, may cause in seeing the process of TV sleeping because of sleepiness, if now obtain continuously N in the first Preset Time, open photo, N opens the facial image that all comprises this user in photo, but in sleeping time period, TV, always in broadcast state, so still easily causes the waste of resource user.
In a kind of TV control method providing in the embodiment of the present invention, if all comprise the first spectators' facial image in N pictures, also need further according to the first spectators' facial image, to this, to the first spectators are current, whether watching TV to judge.
In a kind of possible implementation, be by human eye detection, to determine that the first spectators are current whether to watch TV, specifically comprise:
Whether comprise facial image in detecting picture after, if comprise facial image in picture, according to preset algorithm, determine the eye state in facial image;
If all comprise the first spectators' facial image in N pictures, determine that the first spectators are current whether watching TV specifically to comprise:
The picture number that the eye state that calculates the first spectators in N pictures is closed-eye state accounts for the first ratio of N pictures;
If the first ratio is greater than the first preset value, determine that the first spectators are current not watch TV.
Concrete, according to preset algorithm, determine that the eye state in facial image can comprise:
According to preset algorithm, in facial image, search the image of opening eyes;
If search less than the image of opening eyes, determine that the eye state in facial image is closed-eye state in facial image;
If find the image of opening eyes in facial image, determine that the eye state in facial image is the state of opening eyes.
Exemplary, the first Preset Time is 10 minutes, the first preset value is 80%, in 10 minutes, by camera, to TV, can watch the image in scope to take continuously, take altogether 30 pictures, after every shooting one pictures, all detect and in this picture, whether comprise facial image, if 30 pictures of this shooting all comprise facial image, according to preset algorithm, determine the eye state in facial image again, if having 25 pictures in 30 pictures is closed-eye state, to account for the ratio of total picture be 83.3% to the picture number of closed-eye state, 83.3% is greater than 80%, determine that the first spectators are current and do not watching TV.
It should be noted that, what above-mentioned the first preset value reflected is the sensitivity of television control apparatus to the reaction of televiewer's fatigue state, can obtain an adequate sensitivity by different fatigue degree televiewer being carried out to the experiment of fatigue data measuring and calculating, so that television control apparatus can be too not sensitive, thereby the more spectators' of the judgement fatigue that causes blinking because spectators are normal is in sleeping state, can be too not blunt yet, thereby the spectators that often do not blink for some do not make a determination, this first preset value can be set as 80%, also can be other numerical value, this embodiment of the present invention is not specifically limited.Above-mentioned preset algorithm can be AdaBoost algorithm, can be also other algorithm, and the embodiment of the present invention is not specifically limited this.
If S103 the first spectators are not watching TV, television control apparatus switches to park mode by the operating state of TV.
Concrete, if television control apparatus determine that the first spectators are current and do not watching TV, the operating state of TV is switched to park mode, so that TV enters park mode.
The invention provides a kind of TV control method, the method comprises, television control apparatus, in the first Preset Time, obtains N pictures continuously, and after obtaining a pictures at every turn, detect in picture whether comprise facial image, wherein, N is greater than 1 integer, if all comprise the first spectators' facial image in N pictures, according to the first spectators' facial image, determine that the first spectators are current and whether watching TV, if the first spectators are not watching TV, the operating state of TV is switched to park mode.This programme can be by judging whether whether user enter park mode, effectively reduced the unnecessary wasting of resources, and extended the useful life of equipment watching TV to control TV.
Embodiment bis-,
The embodiment of the present invention provides a kind of TV control method, and specifically as shown in Figure 2, the method comprises:
S201, television control apparatus, in the first Preset Time, obtain N pictures continuously, and after obtaining a pictures, detect in picture whether comprise facial image at every turn, and wherein, N is greater than 1 integer.
Concrete, in a kind of TV control method providing in the embodiment of the present invention, by the first Preset Time, obtain continuously N pictures, and after obtaining a pictures at every turn, in detection picture, whether comprise facial image and determine whether to play TV, like this can saving resource.
Exemplary, in 10 minutes, by camera, to TV, can watch the image in scope to take continuously, take altogether 30 pictures, after every shooting one pictures, all detect in this picture whether comprise facial image, according to 30 pictures of this shooting, whether comprise facial image and can determine whether to play TV.
It should be noted that, the first Preset Time can be the time being pre-configured in television control apparatus, the time of can also user carrying out self-defined setting, this embodiment of the present invention is not done to concrete restriction.Certainly, from numerical value, the first Preset Time can be 10 minutes, can be also other numerical value, the embodiment of the present invention is not done concrete restriction yet to this.
If comprise facial image in picture, execution step S202;
If do not comprise facial image in picture, execution step S206.
If comprise facial image in S202 picture, television control apparatus is determined the eye state in facial image according to preset algorithm.
Concrete, if comprise facial image in picture, illustrate that before television set, someone exists always, if now play TV always, and these first spectators may not watch TV, still may cause the waste of resource.
Exemplary, when user is watching in the process of TV, may cause in seeing the process of TV sleeping because of sleepiness, if now obtain continuously N in the first Preset Time, open photo, N opens the facial image that all comprises this user in photo, but in sleeping time period, TV, always in broadcast state, so still easily causes the waste of resource user.
In a kind of TV control method providing in the embodiment of the present invention, specifically by determining that according to preset algorithm the eye state in facial image determines whether spectators are watching TV, and wherein, eye state comprises closed-eye state or the state of opening eyes.
Concrete, according to preset algorithm, determine that the eye state in facial image comprises:
According to preset algorithm, in facial image, search the image of opening eyes;
If search less than the image of opening eyes, determine that the eye state in facial image is closed-eye state in facial image;
If find the image of opening eyes in facial image, determine that the eye state in facial image is the state of opening eyes.
It should be noted that, above-mentioned preset algorithm can be AdaBoost algorithm, can be also other algorithm, and the embodiment of the present invention is not specifically limited this.
The picture number that in S203, television control apparatus calculating N pictures, the first spectators' eye state is closed-eye state accounts for the first ratio of N pictures.
Concrete, the picture number that television control apparatus is closed-eye state according to the eye state of the first spectators in N pictures accounts for the first ratio of N pictures and determines whether spectators are watching TV.
Exemplary, in 10 minutes, by camera, to TV, can watch the image in scope to take continuously, take altogether 30 pictures, if there are 25 pictures in 30 pictures, are closed-eye state, to account for the ratio of total picture be 83.3% to the picture number of closed-eye state.
If S204 the first ratio is greater than the first preset value, television control apparatus is determined that the first spectators are current and is not being watched TV.
Concrete, if accounting for the first ratio of N pictures, the picture number that in N pictures, the first spectators' eye state is closed-eye state is greater than the first preset value, television control apparatus is determined that the first spectators are current and is not being watched TV.For example, the first preset value is 80%, and the ratio that the picture number of closed-eye state accounts for total picture is 85%, 85% to be greater than 80%, and television control apparatus is determined that the first spectators are current and do not watched TV.
It should be noted that, what this first preset value reflected is the sensitivity of television control apparatus to the reaction of televiewer's fatigue state, can obtain an adequate sensitivity by different fatigue degree televiewer being carried out to the experiment of fatigue data measuring and calculating, so that television control apparatus can be too not sensitive, thereby cause because of to such an extent as to normal nictation of spectators the more spectators' of judging fatigue in the state of falling asleep, can be too not blunt yet, thereby the spectators that often do not blink for some do not make a determination, this first preset value can be set as 80%, also can be other numerical value, this embodiment of the present invention is not specifically limited.
S205, television control apparatus switch to park mode by the operating state of TV.
Concrete, if television control apparatus determine that the first spectators are current and do not watching TV, the operating state of TV is switched to park mode, so that TV enters park mode.
If all do not comprise facial image in S206 N pictures, television control apparatus switches to park mode by the operating state of TV.
Concrete, if all do not comprise facial image in N pictures, illustrate current unmannedly before television set, for saving resource, in the extension device life-span, now the operating state of TV can be switched to park mode, so that TV enters park mode.
Further, also there is a kind of like this scene, after having had a rest for a moment in user is watching the process of TV, while wanting to continue to watch TV again, TV has entered park mode, and now user wishes to open TV, in order to promote user, experience, reduce user's operation, the method also comprises:
Television control apparatus, in the first Preset Time, obtains a N pictures continuously, and after obtaining a pictures, detects in picture whether comprise facial image at every turn;
If all comprise the second spectators' facial image in a N pictures, and determine that according to the second spectators' facial image the second spectators are watching TV, the operating state of TV is switched to normal mode of operation by park mode, so that TV normal play.
Wherein, above-mentioned normal mode of operation is the state of televising, and park mode is that TV stops playing the state in closing.
Concrete, in a kind of TV control method providing in the embodiment of the present invention, if all comprise the second spectators' facial image in a N pictures, also need further according to the second spectators' facial image, to the second spectators are current, whether watching TV to judge.Concrete execution mode can reference example one in the description of step S102, the embodiment of the present invention does not repeat them here.
It should be noted that, the one N pictures is the picture that TV obtains continuously when park mode, N pictures is the picture that TV obtains continuously when play mode, and a N pictures and N pictures are the pictures that TV obtains when different mode, and both numerical value is identical.Above-mentioned the second spectators are spectators in the detection range of television control apparatus, can be same persons with the first spectators, can not be also same persons, can be people, can be also several individuals, and the embodiment of the present invention is not specifically limited this.
The invention provides a kind of TV control method, the method comprises, television control apparatus, in the first Preset Time, obtains N pictures continuously, and after obtaining a pictures at every turn, detect in picture whether comprise facial image, wherein, N is greater than 1 integer, if all comprise the first spectators' facial image in N pictures, according to the first spectators' facial image, determine that the first spectators are current and whether watching TV, if the first spectators are not watching TV, the operating state of TV is switched to park mode.This programme can be by judging whether whether user enter park mode, effectively reduced the unnecessary wasting of resources, and extended the useful life of equipment watching TV to control TV.
Embodiment tri-,
The embodiment of the present invention provides a kind of television control apparatus 1, specifically as shown in Figure 3, comprising: acquiring unit 10, detecting unit 11, determining unit 12, mode switch element 13.
Acquiring unit 10, in the first Preset Time, obtains N pictures continuously.
Detecting unit 11, for after acquiring unit 10 obtains a pictures at every turn, detects in picture whether comprise facial image, and wherein, N is greater than 1 integer.
Determining unit 12, if detect for detecting unit 11 facial image that N pictures all comprise the first spectators, determines according to the first spectators' facial image that the first spectators are current and whether is watching TV.
Mode switch element 13, if determine that for determining unit 12 the first spectators are not watching TV, switches to park mode by the operating state of TV.
Further, whether comprise facial image in detecting unit 11 detects picture after,
Determining unit 12, comprises facial image if also detect picture for detecting unit 11, according to preset algorithm, determines the eye state in facial image, and wherein, eye state comprises closed-eye state or the state of opening eyes.
Determining unit 12, if all comprise the first spectators' facial image for N pictures, determine that the first spectators are current whether watching TV specifically to comprise:
The picture number that the eye state that calculates the first spectators in N pictures is closed-eye state accounts for the first ratio of N pictures;
If the first ratio is greater than the first preset value, determine that the first spectators are current not watch TV.
In a kind of possible implementation, determining unit 12 determines that according to preset algorithm the eye state in facial image specifically comprises:
According to preset algorithm, in facial image, search the image of opening eyes;
If search less than the image of opening eyes, determine that the eye state in facial image is closed-eye state in facial image;
If find the image of opening eyes in facial image, determine that the eye state in facial image is the state of opening eyes.
Further, television mode switch unit 13, also, for after whether detecting unit 11 detection pictures comprise facial image, if all do not comprise facial image in N pictures, switches to park mode by the operating state of TV.
Further, acquiring unit 10, also for after mode switch element 13 switches to park mode by the operating state of TV, in the first Preset Time, obtains a N pictures continuously.
Detecting unit 11, also for after acquiring unit 10 obtains a pictures at every turn, detects in picture whether comprise facial image.
Determining unit 12, all comprises the second spectators' facial image if also detect a N pictures for detecting unit 11, and determines according to the second spectators' facial image whether the second spectators are watching TV.
Mode switch element 13, if also determine that for determining unit 12 the second spectators are watching TV, switches to normal mode of operation by the operating state of TV by park mode, so that TV normal play.
Concrete, by television control apparatus, carrying out the method for TV control can reference example one or the description of embodiment bis-, and the embodiment of the present invention does not repeat them here.
The invention provides a kind of television control apparatus, this television control apparatus is in the first Preset Time, obtain continuously N pictures, and after obtaining a pictures, detect in picture whether comprise facial image at every turn, wherein, N is greater than 1 integer, if all comprise the first spectators' facial image in N pictures, determines that the first spectators are current whether watching TV according to the first spectators' facial image, if the first spectators are not watching TV, the operating state of TV is switched to park mode.This programme can be by judging whether whether user enter park mode, effectively reduced the unnecessary wasting of resources, and extended the useful life of equipment watching TV to control TV.
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 internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of 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.
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 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 each embodiment method 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, 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 range of claim.