Summary of the invention
In order to solve the problems referred to above, the invention provides a kind of TV remote based on audience status detection
Equipment, the detection existed by volume and the TV set image of television set surrounding, it is judged that television set
Current operating conditions, determine whether spectators enter by efficient image detection technique targetedly and sleep
Dormancy state, and the running status and spectators' current state according to television set judge whether to need automatically to close
Machine, thus interference-free saving the sleep protecting spectators while the energy.
According to an aspect of the present invention, it is provided that a kind of TV remote based on audience status detection sets
Standby, described television remote control device hangs on the roof between spectators and TV, including infrared remote control switch,
Image acquisition device, image processor and AT89C51 single-chip microcomputer, described infrared remote control switch is used for controlling
The opening and closing of TV, described image acquisition device is used for gathering spectators' face-image, at described image
Reason device is connected with described image acquisition device, and described spectators' face-image is carried out image procossing, described list
Sheet machine is connected respectively with described infrared remote control switch and described image processor, based on described image procossing
Infrared remote control switch described in output control.
More specifically, in described television remote control device based on audience status detection, also include: sound
Amount detector, amplifies single including the transaudient unit of condenser type, front end amplifying unit, attenuation units, rear end
Unit and spectrum overlapping network, the transaudient unit of described condenser type converts tones into the signal of telecommunication, described telecommunications
Number again by described front end amplifying unit transforming impedance, make the transaudient unit of described condenser type single with described decay
Unit's coupling, the output signal of described front end amplifying unit is added to described frequency by described rear end amplifying unit
Weighting network, is carried out spectrum overlapping, described spectrum overlapping by described spectrum overlapping network to output signal
The output of network carries out decaying and processing and amplifying through described attenuation units and described rear end amplifying unit again
After, result exports as volume value;Picture detector, including cmos image sensing unit,
Micro-control unit and output unit, described cmos image sensing unit televising screen is to obtain electricity
Visible image, according to the content of described television image, described micro-control unit determines whether that there is TV draws
Whether face, will there is the result of determination output of TV image in described output unit;User inputs button,
For the operation according to user, input eyelid upper limit gray threshold, eyelid lower limit gray threshold, eyelid
Closure threshold value, closing time threshold value, default volume threshold and default phone number, on described eyelid
Limit gray threshold and described eyelid lower limit gray threshold are for by the eyelid in image and background separation, institute
Stating catacleisis degree threshold value is a percentage threshold, is used for judging whether spectators enter sleep state,
Described default phone number is the phone number of TV owner;Memorizer, presses with described user input
Bonded, receive and store described eyelid upper limit gray threshold, described eyelid lower limit gray threshold, institute
State catacleisis degree threshold value, described closing time threshold value, described default volume threshold and described default hands
Plane No. code;Described image acquisition device is with spectators' face-image described in the resolution acquisition of 1920 × 1080;
Described image processor is connected respectively with described image acquisition device and described memorizer, including medium filtering
Unit, gray processing processing unit, eyelid cutting unit and catacleisis degree determine unit, described intermediate value
Filter unit is connected with described image acquisition device, and filter windows based on 3 pixel × 3 pixels are to described
Spectators' face-image performs medium filtering, to export filtering image, described gray processing processing unit and institute
State median filter unit to connect, described filtering image is performed gray processing and processes, to obtain gray processing figure
Picture, described eyelid cutting unit is connected respectively with described gray processing processing unit and described memorizer, will
In described gray level image, gray value is in described eyelid upper limit gray threshold and described eyelid lower limit gray scale
Pixel identification between threshold value also forms eyelid sub pattern, and described catacleisis degree determines that unit is with described
Memorizer, described eyelid cutting unit and described timer connect respectively, in detection eyelid sub pattern
Catacleisis degree, and accumulative catacleisis degree more than or equal to described catacleisis degree threshold value time with make
For the output of Guan Bi cumulative time;Described single-chip microcomputer and described infrared remote control switch, described volume detector,
Described picture detector, described memorizer and described catacleisis degree determine that unit connects respectively, in institute
State the volume value of volume detector output less than or equal to described default volume threshold and the detection of described picture
When device judges to there is not TV image, send TV shutdown signal, when the output of described volume detector
When volume value it is determined that the presence of TV image more than described default volume threshold or described picture detector, send out
Go out TV run signal, and enter audience status detection pattern;Wireless communication interface, with described monolithic
Machine and described memorizer connect respectively, for TV shutdown signal, TV run signal or spectators being slept
Dormancy signal is sent to preset the mobile terminal of phone number in real time;Wherein, described single-chip microcomputer is in described sight
In many state-detection patterns, when the Guan Bi cumulative time received is less than described closing time threshold value, defeated
Go out spectators to regain consciousness signal, when the Guan Bi cumulative time received is more than or equal to described closing time threshold value,
Output spectators' sleep signal, and control described infrared remote control switch closing television;Described medium filtering list
Gray processing processing unit first, described, described eyelid cutting unit and described catacleisis degree determine unit
Be respectively adopted different fpga chips to realize, described image acquisition device, described image processor,
Described memorizer and described single-chip microcomputer are integrated on one piece of surface-mounted integrated circuit.
More specifically, in described television remote control device based on audience status detection, also include: electricity
Source, for providing the power supply of necessity for each electronic equipment of described television remote control device.
More specifically, in described television remote control device based on audience status detection, replace and adopt respectively
By the way of realization of different fpga chips, described median filter unit, described gray processing are processed
Unit, described eyelid cutting unit and described catacleisis degree determine that unit is integrated in one piece of FPGA core
In sheet.
More specifically, in described television remote control device based on audience status detection, described channel radio
Letter interface is in GPRS mobile communication interface, 3G mobile communication interface or 4G mobile communication interface
A kind of.
More specifically, in described television remote control device based on audience status detection, described picture is examined
The output unit surveying device is RS-232 serial communication interface.
Detailed description of the invention
The reality of television remote control device based on audience status detection to the present invention below with reference to accompanying drawings
The scheme of executing is described in detail.
Television set is by Fei Luofaen Ellsworth, Wella base of a fruit Mil Si Fuluojin and Baird three people
Respective independent invention, but the TV of three people's inventions is distinguishing.
The TV of Baird (his full name is John's Luo Ji Baird) is mechanical scanning TV, takes
The TV of Luo Faen Ellsworth and Wella base of a fruit Mil Si Fuluojin is electronic television.People's generally handle
Scotsman John Luo Ji Baird on October 2 nineteen twenty-five (John Logie Baird) is in human relations
In honest once experiment, " scanning " goes out the image of puppet and regards the mark that TV is born as, and he is referred to as
" father of TV ".But, this view is controversial;Because being also in that year, Russia sieve
(he is in Westinghouse Electric for this person's Wella base of a fruit Mil Si Fuluojin (Vladimir Zworykin)
(Westinghouse) his television system is illustrated to his boss) and nineteen twenty-seven Fei Luofaen
Ellsworth two people has invented TV the most respectively.Although the time is identical, but John Luo Ji Baird (John
Logie Baird) and Wella base of a fruit Mil Si Fuluojin (Vladimir Zworykin) and Fei Luofa
The television system of grace Ellsworth has very big difference.By John Luo Ji Baird (John in history
Logie Baird) television system be referred to as mechanical television, and Wella base of a fruit Mil Si Fuluojin and taking
The television system of Luo Faen Ellsworth is then referred to as electronic television.This difference is primarily due to pass
The defeated difference with record principle.
To nineteen twenty-eight, the RCA television station of the U.S. takes the lead in broadcasting first set video film " FelixTheCat ",
From this, television set starts to change the life of the mankind, Information Communication and mode of thinking.The mankind start step
The TV epoch are entered.From black and white to color, from analog to digital, from sphere to plane.
Along with increasingly the enriching of TV programme, the covering in 24 hours of period of televising and TV are drawn
Face increasingly clear, the more people of TV attraction spend the more time to watch, but watch for a long time
TV still can bring certain harm: on health, one viewing posture of long-term holding, right
Vertebra and cervical vertebra bring certain impact, and more intuitively, long-term viewing TV is very big to the damage of eyes;
Psychologically, long-term viewing TV can bring some psychological problems.
Being additionally, since that TV programme are the most tediously long or spectators are the most tired, spectators may be at viewing electricity
Can't help entering sleep state during depending on, at this moment continue to keep the operation of TV not only to waste electric power
The energy, and affect the sleep quality of spectators, although timing shutdown technology of the prior art is necessarily
Solve this problem in degree, but real-time is the highest, it is not reasonable to control logic, still can give and see
Crowd brings certain puzzlement.
The present invention has built a kind of television remote control device based on audience status detection, it is possible to substitute timing
Whether the mode of shutdown, enter sleep state based on spectators and testing result that whether TV runs,
Determine whether to perform automatic shutdown, thus improve real-time and the reasonability that shutdown controls, reduce the energy
Spending, it is to avoid spectators' sleep is persistently bothered.
Fig. 1 is according to the television remote control device based on audience status detection shown in embodiment of the present invention
Block diagram, described television remote control device hangs on the roof between spectators and TV, described electricity
Include depending on remote control equipment: 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
With described infrared remote control switch 1, described image acquisition device 2, described image processor 3, described volume
Detector 5, described picture detector 6 and described power supply 7 connect respectively.
Wherein, described infrared remote control switch 1 is for controlling the opening and closing of TV, and described image is adopted
Storage 2 is used for gathering spectators' face-image, and described image processor 3 is for described spectators' face figure
As carrying out image procossing, described AT89C51 single-chip microcomputer 4 controls described based on described processing result image
Infrared remote control switch, described power supply 7 provides for each electronic equipment for described television remote control device
Necessary power supply.
Then, the concrete structure of the television remote control device based on audience status detection to the present invention is continued
It is further detailed.
Described volume detector 5 include 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 telecommunications
Number, the described signal of telecommunication by described front end amplifying unit transforming impedance, makes the transaudient unit of described condenser type again
Mating with described attenuation units, described rear end amplifying unit is by the output signal of described front end amplifying unit
It is added to described spectrum overlapping network, described spectrum overlapping network output signal is carried out spectrum overlapping,
The output of described spectrum overlapping network declines through described attenuation units and described rear end amplifying unit again
Subtract with processing and amplifying after, result as volume value export.
Described picture detector 6 includes cmos image sensing unit, micro-control unit and output unit,
Described cmos image sensing unit televising screen to obtain television image, described micro-control unit
Content according to described television image determines whether to exist TV image, and whether described output unit will be deposited
Result of determination in TV image exports.
Described television remote control device also includes: user inputs button, for the operation according to user, defeated
Enter 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, under described eyelid upper limit gray threshold and described eyelid
Limit gray threshold is for by the eyelid in image and background separation, and described catacleisis degree threshold value is one
Percentage threshold, is used for judging whether spectators enter sleep state, described default phone number is TV
The phone number of owner.
Described television remote control device also includes: memorizer, with described user input by bonded, receives
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 is with spectators' face-image described in the resolution acquisition of 1920 × 1080.
Described image processor 3 is connected respectively with described image acquisition device 2 and described memorizer, described image
Processor 3 includes median filter unit, gray processing processing unit, eyelid cutting unit and catacleisis
Degree determine that unit, described median filter unit are connected with described image acquisition device 2, based on 3 pixels ×
The filter window of 3 pixels performs medium filtering to described spectators' face-image, to export filtering image,
Described gray processing processing unit is connected with described median filter unit, and described filtering image is performed gray scale
Change processes, to obtain gray level image.
Described eyelid cutting unit is connected respectively with described gray processing processing unit and described memorizer, will
In described gray level image, gray value is in described eyelid upper limit gray threshold and described eyelid lower limit gray scale
Pixel identification between threshold value also forms eyelid sub pattern, and described catacleisis degree determines that unit is with described
Memorizer, described eyelid cutting unit and described timer connect respectively, in detection eyelid sub pattern
Catacleisis degree, and accumulative catacleisis degree more than or equal to described catacleisis degree threshold value time with make
For the output of Guan Bi cumulative time.
Described single-chip microcomputer 4 and described infrared remote control switch 1, described volume detector 5, described picture
Detector 6, described memorizer and described catacleisis degree determine that unit connects respectively, in described volume
The volume value of detector 5 output is sentenced less than or equal to described default volume threshold and described picture detector 6
When determining to there is not TV image, send TV shutdown signal, when the sound of described volume detector 5 output
When value it is determined that the presence of TV image more than described default volume threshold or described picture detector 6, send out
Go out TV run signal, and enter audience status detection pattern.
Described television remote control device also includes: wireless communication interface, with described single-chip microcomputer 4 and described deposit
Reservoir connects respectively, for by real-time to TV shutdown signal, TV run signal or spectators' sleep signal
It is sent to preset the mobile terminal of phone number.
Wherein, described single-chip microcomputer 4 is in described audience status detection pattern, when the Guan Bi received is tired out
Less than described closing time threshold value between timing, output spectators regain consciousness signal, when the Guan Bi received adds up
Time is more than or equal to described closing time threshold value, exports spectators' sleep signal, and controls described infrared distant
Control switch 1 closing television;Described median filter unit, described gray processing processing unit, described eyelid
Cutting unit and described catacleisis degree determine that unit is respectively adopted different fpga chips and realizes,
Described image acquisition device 2, described image processor 3, described memorizer and described single-chip microcomputer 4 are collected
On Cheng Yi block surface-mounted integrated circuit.
Wherein, in described television remote control device, replace the reality being respectively adopted different fpga chips
Existing form, can be by described median filter unit, described gray processing processing unit, the segmentation of described eyelid
Unit and described catacleisis degree determine that unit is integrated in one piece of fpga chip, described radio communication
Interface is chosen as in GPRS mobile communication interface, 3G mobile communication interface or 4G mobile communication interface
One, the output unit of described picture detector is chosen as RS-232 serial communication interface.
It addition, FPGA (Field-Programmable Gate Array), i.e. field programmable gate
Array, he is the product of development further on the basis of the programming devices such as PAL, GAL, CPLD
Thing, is to occur as a kind of semi-custom circuit in special IC (ASIC) field, he
Solve the deficiency of custom circuit, also overcome 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
Include the Programmadle logic unit of some relatively large amount.The density of CPLD gate arrives thousand of
Between several ten thousand logical blocks, and FPGA is typically several ten thousand to millions of.CPLD and FPGA
The main distinction be their system structure.CPLD is a somewhat restrictive structure.This knot
Structure is arranged by the logical groups of one or more editable result sum and the locking of some relatively small amounts
Depositor composition.Such result be a lack of edit motility, but but have it is anticipated that delay
Time and the logical block advantage to connecting unit height ratio.And FPGA is to have a lot of connection lists
Unit, although so allowing him edit more flexibly, but structure is complicated many.CPLD and
The difference of FPGA another one is that most FPGA contains high-level built-in module (such as addition
Device and multiplier) and built-in memory body.Therefore a relevant important difference is the newest FPGA
Support to reconfigure completely or in the system of part.Allow their design along with system upgrade or
Person dynamically reconfigures and changes.Some FPGA can allow a part for equipment update and other
Part continues properly functioning.
FPGA have employed logical cell array LCA (Logic Cell Array) such a concept,
Inside includes configurable logic blocks CLB (Configurable Logic Block), input and output mould
Block IOB (Input Output Block) and three parts of interconnector (Interconnect).
Field programmable gate array (FPGA) is programming device, with conventional logic circuit and gate array
Row (such as PAL, GAL and CPLD device) are compared, and FPGA has different structures.FPGA
Utilizing small-sized look-up table (16 × 1RAM) to realize combination logic, each look-up table is connected to one
The input of d type flip flop, trigger drives other logic circuits again or drives I/O, thus constituting
Not only can realize combination logic function but also the basic logic unit module of sequential logic function can be realized, this
A little intermodules utilize metal connecting line interconnect or be connected to I/O module.
Use the television remote control device based on audience status detection of the present invention, control for existing TV
Mode real-time is the highest, control the irrational technical problem of logic, uses volume detection technique and TV
Picture detection technique judges whether TV runs, and uses image detecting technique targetedly to determine spectators
Whether enter sleep state, and utilize infrared ray control technology to be automatically switched off TV, whole control process
Real-time is high, control the most rationally, on the one hand, can reduce energy consumption, on the other hand, it is possible to ensure
Spectators enter glitch-free sleep environment as early as possible.
Although it is understood that the present invention discloses as above with preferred embodiment, but above-mentioned enforcement
Example is not limited to the present invention.For any those of ordinary skill in the art, without departing from
Under technical solution of the present invention ambit, all may utilize the technology contents of the disclosure above to the technology of the present invention
Scheme makes many possible variations and modification, or is revised as the Equivalent embodiments of equivalent variations.Therefore,
Every content without departing from technical solution of the present invention, the technical spirit of the foundation present invention is to above example
Any simple modification, equivalent variations and the modification done, all still falls within technical solution of the present invention protection
In the range of.