Summary of the invention
In order to solve the problem; the invention provides a kind of television remote control device detected based on audience status; by the detection that volume and the TV set image of television set surrounding environment exist; judge the current operating conditions of television set; determine whether spectators enter sleep state by efficient image detection technique targetedly; and judge whether to need automatic shutdown according to the running status of television set and spectators' current state, thus while energy savings, protect the sleep of spectators interference-free.
According to an aspect of the present invention, provide a kind of television remote control device detected based on audience status, described television remote control device hangs on the roof between spectators and TV, comprise infrared remote control switch, image acquisition device, image processor and AT89C51 single-chip microcomputer, described infrared remote control switch is for controlling the opening and closing of TV, described image acquisition device is for gathering spectators' face-image, described image processor is connected with described image acquisition device, image procossing is carried out to described spectators' face-image, described single-chip microcomputer is connected respectively with described infrared remote control switch and described image processor, described infrared remote control switch is controlled based on described processing result image.
More specifically, in the described television remote control device detected based on audience status, also comprise: volume detector, comprise the transaudient unit of condenser type, front end amplifying unit, attenuation units, rear end amplifying unit and spectrum overlapping network, the transaudient unit of described condenser type converts tones into the signal of telecommunication, the described signal of telecommunication is again by described front end amplifying unit transforming impedance, the transaudient unit of described condenser type is mated with described attenuation units, the output signal of described front end amplifying unit is added to described spectrum overlapping network by described rear end amplifying unit, by described spectrum overlapping network, spectrum overlapping is carried out to output signal, the output of described spectrum overlapping network is again after described attenuation units and described rear end amplifying unit carry out decaying and amplify process, result exports as volume value, picture detector, comprise cmos image sensing unit, micro-control unit and output unit, described cmos image sensing unit televising screen is to obtain television image, described micro-control unit determines whether to there is television image according to the content of described television image, and the result of determination that whether there is television image exports by described output unit, user's input key, for the operation according to user, input eyelid upper limit gray threshold, eyelid lower limit gray threshold, catacleisis degree threshold value, closing time threshold value, default volume threshold and default phone number, described eyelid upper limit gray threshold and described eyelid lower limit gray threshold are used for the eyelid in image and background separation, described catacleisis degree threshold value is a percentage threshold, for judging whether spectators enter sleep state, described default phone number is the phone number of TV owner, memory, is connected with described user's input key, receives and stores described eyelid upper limit gray threshold, described eyelid lower limit gray threshold, described catacleisis degree threshold value, described closing time threshold value, described default volume threshold and described default phone number, described image acquisition device with 1920 × 1080 resolution acquisition described in spectators' face-image, described image processor is connected respectively with described image acquisition device and described memory, comprise median filter unit, gray processing processing unit, eyelid cutting unit and catacleisis degree determining unit, described median filter unit is connected with described image acquisition device, filter window based on 3 pixel × 3 pixels performs medium filtering to described spectators' face-image, with output filtering image, described gray processing processing unit is connected with described median filter unit, gray processing process is performed to described filtering image, to obtain gray level image, described eyelid cutting unit is connected respectively with described gray processing processing unit and described memory, the pixel identification of gray value in described gray level image between described eyelid upper limit gray threshold and described eyelid lower limit gray threshold is formed eyelid sub pattern, described catacleisis degree determining unit and described memory, described eyelid cutting unit is connected respectively with described timer, detect the catacleisis degree in eyelid sub pattern, and accumulative catacleisis degree is more than or equal to the time of described catacleisis degree threshold value to export as the closed cumulative time, described single-chip microcomputer is connected respectively with described infrared remote control switch, described volume detector, described picture detector, described memory and described catacleisis degree determining unit, when the volume value that described volume detector exports is less than or equal to described default volume threshold and described picture detector judges there is not television image, send TV shutdown signal, when the volume value that described volume detector exports is greater than described default volume threshold or described picture detector it is determined that the presence of television image, send TV run signal, and enter audience status detecting pattern, wireless communication interface, is connected respectively with described single-chip microcomputer and described memory, for TV shutdown signal, TV run signal or spectators' sleep signal being sent in real time the mobile terminal of default phone number, wherein, described single-chip microcomputer is in described audience status detecting pattern, described closing time threshold value is less than when the closed cumulative time received, export spectators to regain consciousness signal, described closing time threshold value is more than or equal to when the closed cumulative time received, export spectators' sleep signal, and control described infrared remote control switch closing television, described median filter unit, described gray processing processing unit, described eyelid cutting unit and described catacleisis degree determining unit adopt different fpga chips to realize respectively, and described image acquisition device, described image processor, described memory and described single-chip microcomputer are integrated on one piece of surface-mounted integrated circuit.
More specifically, in the described television remote control device detected based on audience status, also comprise: power supply, for providing necessary power supply for each electronic equipment of described television remote control device.
More specifically, in the described television remote control device detected based on audience status, replace the way of realization adopting different fpga chips respectively, described median filter unit, described gray processing processing unit, described eyelid cutting unit and described catacleisis degree determining unit are integrated in one piece of fpga chip.
More specifically, in the described television remote control device detected based on audience status, described wireless communication interface is the one in GPRS mobile communication interface, 3G mobile communication interface or 4G mobile communication interface.
More specifically, in the described television remote control device detected based on audience status, the output unit of described picture detector is RS-232 serial communication interface.
Embodiment
Below with reference to accompanying drawings the embodiment of the television remote control device based on audience status detection of the present invention is described in detail.
Television set is by Fei Luofaen Ellsworth, Wella Di meter Er Si Fuluojin and Baird three people independent invention separately, but the TV of three people's inventions is distinguishing.
The TV of Baird (his full name is John Luo Ji Baird) is mechanical scanning TV, and the TV of Fei Luofaen Ellsworth and Wella Di meter Er Si Fuluojin is electronic television.People regard the image that October 2 nineteen twenty-five Scotsman John Luo Ji Baird (John Logie Baird) in the once experiment in London " scanning " goes out puppet as the mark that TV is born as usually, and he is referred to as " father of TV ".But this view is controversial; Because, also be in that year, Russian's Wella Di meter Er Si Fuluojin (Vladimir Zworykin) (he illustrates his television system in Westinghouse Electric (Westinghouse) to his boss) and nineteen twenty-seven Fei Luofaen Ellsworth two people have also invented TV respectively.Although the time is identical, John Luo Ji Baird (JohnLogie Baird) has very big difference with Wella Di meter Er Si Fuluojin (Vladimir Zworykin) and the television system of Fei Luofaen Ellsworth.The television system of John Luo Ji Baird (JohnLogie Baird) is called mechanical television by history, and the television system of Wella Di meter Er Si Fuluojin and Fei Luofaen Ellsworth is then called as electronic television.This difference is mainly because the difference of transmission and record principle.
To nineteen twenty-eight, the RCA TV station of the U.S. takes the lead in broadcasting first set telefilm " FelixTheCat ", and from then on, television set starts to change the life of the mankind, Information Communication and the mode of thinking.The mankind start to have stepped into the TV epoch.From black and white to color, from analog to digital, from sphere to plane.
Along with increasingly the enriching of TV programme, the covering for 24 hours and television image increasingly clear of period of televising, the more people of TV attraction spend the more time to watch, but long-term viewing TV still can bring certain harm: on health, long-term maintenance one viewing posture, certain influence is brought to vertebra and cervical vertebra, more intuitively, the damage of long-term viewing TV to eyes is very big; Psychologically, long-term viewing TV can bring some psychological problems.
And, because TV programme is too tediously long or spectators are too tired, spectators may can't help entering sleep state in viewing TV process, at this moment the operation not only wastes power energy keeping TV is continued, and affect the sleep quality of spectators, although timing shutdown technology of the prior art to some extent solves this problem, real-time is not high, control logic is reasonable not, still can bring certain puzzlement to spectators.
The present invention has built a kind of television remote control device detected based on audience status, the mode of timing shutdown can be substituted, the testing result whether sleep state and TV run whether is entered based on spectators, determine whether to perform automatic shutdown, thus improve real-time and the reasonability of shutdown control, reduce energy spending, avoid spectators to sleep and continued to bother.
Fig. 1 is the block diagram of the television remote control device based on audience status detection illustrated according to an embodiment of the present invention, described television remote control device hangs on the roof between spectators and TV, described television remote control device comprises: infrared remote control switch 1, image acquisition device 2, image processor 3, AT89C51 single-chip microcomputer 4, volume detector 5, picture detector 6 and power supply 7, described AT89C51 single-chip microcomputer 4 and described infrared remote control switch 1, described image acquisition device 2, described image processor 3, described volume detector 5, described picture detector 6 is connected respectively with described power supply 7.
Wherein, described infrared remote control switch 1 is for controlling the opening and closing of TV, described image acquisition device 2 is for gathering spectators' face-image, described image processor 3 is for carrying out image procossing to described spectators' face-image, described AT89C51 single-chip microcomputer 4 controls described infrared remote control switch based on described processing result image, and described power supply 7 is for providing necessary power supply for each electronic equipment of described television remote control device.
Then, continue to be further detailed the concrete structure of the television remote control device based on audience status detection of the present invention.
Described volume detector 5 comprises the transaudient unit of condenser type, front end amplifying unit, attenuation units, rear end amplifying unit and spectrum overlapping network, the transaudient unit of described condenser type converts tones into the signal of telecommunication, the described signal of telecommunication is again by described front end amplifying unit transforming impedance, the transaudient unit of described condenser type is mated with described attenuation units, the output signal of described front end amplifying unit is added to described spectrum overlapping network by described rear end amplifying unit, by described spectrum overlapping network, spectrum overlapping is carried out to output signal, the output of described spectrum overlapping network is again after described attenuation units and described rear end amplifying unit carry out decaying and amplify process, result exports as volume value.
Described picture detector 6 comprises cmos image sensing unit, micro-control unit and output unit, described cmos image sensing unit televising screen is to obtain television image, described micro-control unit determines whether to there is television image according to the content of described television image, and the result of determination that whether there is television image exports by described output unit.
Described television remote control device also comprises: user's input key, for the operation according to user, input eyelid upper limit gray threshold, eyelid lower limit gray threshold, catacleisis degree threshold value, closing time threshold value, default volume threshold and default phone number, described eyelid upper limit gray threshold and described eyelid lower limit gray threshold are used for the eyelid in image and background separation, described catacleisis degree threshold value is a percentage threshold, for judging whether spectators enter sleep state, described default phone number is the phone number of TV owner.
Described television remote control device also comprises: memory, be connected with described user's input key, receive and store described eyelid upper limit gray threshold, described eyelid lower limit gray threshold, described catacleisis degree threshold value, described closing time threshold value, described default volume threshold and described default phone number.
Described image acquisition device 2 with 1920 × 1080 resolution acquisition described in spectators' face-image.Described image processor 3 is connected respectively with described image acquisition device 2 and described memory, described image processor 3 comprises median filter unit, gray processing processing unit, eyelid cutting unit and catacleisis degree determining unit, described median filter unit is connected with described image acquisition device 2, filter window based on 3 pixel × 3 pixels performs medium filtering to described spectators' face-image, with output filtering image, described gray processing processing unit is connected with described median filter unit, gray processing process is performed, to obtain gray level image to described filtering image.
Described eyelid cutting unit is connected respectively with described gray processing processing unit and described memory, the pixel identification of gray value in described gray level image between described eyelid upper limit gray threshold and described eyelid lower limit gray threshold is formed eyelid sub pattern, described catacleisis degree determining unit is connected respectively with described memory, described eyelid cutting unit and described timer, detect the catacleisis degree in eyelid sub pattern, and accumulative catacleisis degree is more than or equal to the time of described catacleisis degree threshold value to export as the closed cumulative time.
Described single-chip microcomputer 4 is connected respectively with described infrared remote control switch 1, described volume detector 5, described picture detector 6, described memory and described catacleisis degree determining unit, when the volume value that described volume detector 5 exports is less than or equal to described default volume threshold and described picture detector 6 judges to there is not television image, send TV shutdown signal, when the volume value that described volume detector 5 exports is greater than described default volume threshold or described picture detector 6 it is determined that the presence of television image, send TV run signal, and enter audience status detecting pattern.
Described television remote control device also comprises: wireless communication interface, is connected respectively with described single-chip microcomputer 4 and described memory, for TV shutdown signal, TV run signal or spectators' sleep signal being sent in real time the mobile terminal of default phone number.
Wherein, described single-chip microcomputer 4 is in described audience status detecting pattern, described closing time threshold value is less than when the closed cumulative time received, export spectators to regain consciousness signal, described closing time threshold value is more than or equal to when the closed cumulative time received, export spectators' sleep signal, and control described infrared remote control switch 1 closing television; Described median filter unit, described gray processing processing unit, described eyelid cutting unit and described catacleisis degree determining unit adopt different fpga chips to realize respectively, and described image acquisition device 2, described image processor 3, described memory and described single-chip microcomputer 4 are integrated on one piece of surface-mounted integrated circuit.
Wherein, in described television remote control device, replace the way of realization adopting different fpga chips respectively, can described median filter unit, described gray processing processing unit, described eyelid cutting unit and described catacleisis degree determining unit be integrated in one piece of fpga chip, described wireless communication interface is chosen as the one in GPRS mobile communication interface, 3G mobile communication interface or 4G mobile communication interface, and the output unit of described picture detector is chosen as RS-232 serial communication interface.
In addition, FPGA (Field-Programmable Gate Array), i.e. field programmable gate array, he is the product further developed on the basis of the programming devices such as PAL, GAL, CPLD, occur as a kind of semi-custom circuit in application-specific integrated circuit (ASIC) (ASIC) field, he solves the deficiency of custom circuit, also overcomes the shortcoming that original programming device gate circuit number is limited.
As far back as 1980 mid-nineties 90s, FPGA takes root in PLD equipment.CPLD and FPGA includes the Programmadle logic unit of some relatively large amount.The density of CPLD gate is between several thousand to several ten thousand logical blocks, and FPGA normally arrives millions of several ten thousand.The main distinction of CPLD and FPGA is their system configuration.CPLD is a somewhat restrictive structure.This structure is arranged by the logical groups of one or more editable result sum and forms with the register of the locking of some relatively small amounts.Such result lacks editor's flexibility, but but have the time of delay and logical block that can estimate to the advantage of linkage unit height ratio.And FPGA has a lot of linkage units, although allow him edit more flexibly like this, structure is complicated many.The difference of CPLD and FPGA another one is that most FPGA contains high-level built-in module (such as adder and multiplier) and built-in memory body.Therefore relevant important difference be much new FPGA support completely or part system in reconfigure.Allow their design along with system upgrade or dynamically reconfigure and change.Some FPGA can allow a part for equipment update and other parts continue normal operation.
FPGA have employed logical cell array LCA (Logic Cell Array) such concept, and inside comprises configurable logic blocks CLB (Configurable Logic Block), input/output module IOB (Input Output Block) and interconnector (Interconnect) three parts.
Field programmable gate array (FPGA) is programming device, and as compared to conventional logic circuit and gate array (as PAL, GAL and CPLD device), FPGA has different structures.FPGA utilizes small-sized look-up table (16 × 1RAM) to realize combinational logic, each look-up table is connected to the input of a d type flip flop, trigger drives other logical circuits again or drives I/O, thus constitute the basic logic unit module that not only can realize combination logic function but also can realize sequential logic function, these intermodules utilize metal connecting line to be connected to each other or are connected to I/O module.
Adopt the television remote control device detected based on audience status of the present invention,, control logic irrational technical problem not high for existing TV control mode real-time, volume detection technique and television image detection technique is adopted to judge whether TV runs, whether spectators enter sleep state to adopt image detecting technique targetedly to determine, and utilize the automatic closing television of infrared ray control technology, whole control procedure real-time is high, control is reasonable in time, on the one hand, energy consumption can be reduced, on the other hand, can ensure that spectators enter glitch-free sleep environment as early as possible.
Be understandable that, although the present invention with preferred embodiment disclose as above, but above-described embodiment and be not used to limit the present invention.For any those of ordinary skill in the art, do not departing under technical solution of the present invention ambit, the technology contents of above-mentioned announcement all can be utilized to make many possible variations and modification to technical solution of the present invention, or be revised as the Equivalent embodiments of equivalent variations.Therefore, every content not departing from technical solution of the present invention, according to technical spirit of the present invention to any simple modification made for any of the above embodiments, equivalent variations and modification, all still belongs in the scope of technical solution of the present invention protection.