Summary of the invention
In order to solve the technical problem that prior art exists, the invention provides a kind of Smart Home air cleaner method, based on the mouth opening degree of personnel in the oxygen concentration testing result in room and room, the calculating of the reference value of air interaction is carried out with the reasonable weighted value pre-set, determine whether that the air started between each room in house is interactive based on result of calculation, thus avoid occurring the unbalanced situation of oxygen between room, ensure the necessary oxygen supply in people room.
According to an aspect of the present invention, provide a kind of Smart Home air cleaner method, the method comprises the following steps: 1) a kind of Smart Home air self-adaption interactive system is provided, described interaction systems be arranged on there is multiple room house in, comprise embedded processing equipment and multiple rooms oxygen concentration checkout equipment, each room oxygen concentration checkout equipment is arranged in a room, for detecting the oxygen concentration in corresponding room, described embedded processing equipment is connected respectively with described multiple rooms oxygen concentration checkout equipment, air self-adaption interactive strategy between determining described multiple room based on the oxygen concentration in the multiple rooms received, 2) use described system to carry out air cleaner.
More specifically, in described Smart Home air self-adaption interactive system, also comprise: interactive ventilation equipment, comprise a ventilation motor and the outlet of multiple ventilation shaft, a ventilation shaft outlet is set in each room, described ventilation motor under the control of described embedded processing equipment by described multiple ventilation shaft outlet to multiple room between perform air interaction, to balance the oxygen concentration between multiple room, multiple infrared image pickup device, each infrared image pickup device is arranged in a room, for taking corresponding room, to obtain infrared room images, multiple infrared detection equipment, each infrared detection equipment is arranged in a room, and for detecting in corresponding room whether there are personnel, the personnel that send when personnel being detected exist signal, and the personnel that send when personnel not detected do not exist signal, USB input interface, for holding outside USB flash disk, with receive in outside USB flash disk store default gray threshold, presetted pixel amount threshold, ventilate evaluation threshold value, oxygen concentration weight, infrared image weight, lip upper limit gray threshold and lip lower limit gray threshold, described lip upper limit gray threshold and described lip lower limit gray threshold are used for the personnel's lip in image and background separation, portable hard drive, be connected with described USB input interface, for receiving and storing described default gray threshold, described presetted pixel amount threshold, described ventilation evaluation threshold value, described oxygen concentration weight, described infrared image weight, described lip upper limit gray threshold and described lip lower limit gray threshold, infrared image processing equipment, be connected respectively with described portable hard drive and described multiple infrared image pickup device, comprise multiple image procossing subset, each image procossing subset and an infrared image pickup device connect to receive corresponding infrared room images, and multiple image procossing subset is used for the infrared room images in the multiple room of parallel processing respectively, each image procossing subset comprises contrast enhancer, gray processing processor, bianry image wave filter, lip identifier and mouth opening degree identifier, described contrast enhancer and corresponding infrared image pickup device connect to receive corresponding infrared room images and carry out contrast enhancement processing to corresponding infrared room images, obtain infrared enhancing image, described gray processing processor is connected to perform gray processing process to described infrared enhancing image with described contrast enhancer, obtain infrared hybrid optical system, described bianry image wave filter and described gray processing processor and described portable hard drive are connected with the bianry image filtering performed described infrared hybrid optical system based on regional connectivity respectively, obtain infrared filtering image, described lip identifier is connected respectively with described bianry image wave filter and described portable hard drive, by the combination of pixels of gray value in described infrared filtering image between described lip upper limit gray threshold and described lip lower limit gray threshold to obtain infrared lip sub pattern, described mouth opening degree identifier is connected with described lip identifier, determine corresponding mouth opening degree based on described infrared lip sub pattern and export, wherein, if the infrared lip sub pattern that described lip identifier exports is multiple, the mouth opening degree that then described mouth opening degree identifier exports is the mean value of multiple mouth opening degrees corresponding to multiple infrared lip sub pattern, described embedded processing equipment and described interactive ventilation equipment, described portable hard drive, described infrared image processing equipment, described multiple rooms oxygen concentration checkout equipment, described multiple infrared image pickup device is connected respectively with described multiple infrared detection equipment, when receiving personnel that an infrared detection equipment sends and there is signal, start the personnel that send and there is infrared image pickup device in the corresponding room of infrared detection equipment of signal and room oxygen concentration checkout equipment, to receive oxygen concentration and mouth opening degree in corresponding room, oxygen concentration weight is multiplied with the oxygen concentration received, by the reciprocal multiplication of infrared image weight with the mouth opening degree received, obtain two product addition are determined whether start the interactive ventilation evaluation numerical value ventilated to obtain, when described ventilation evaluation numerical value is less than or equal to ventilation evaluation threshold value, described embedded processing equipment controls described ventilation motor and performs air interaction by described multiple ventilation shaft outlet between multiple room, to balance the oxygen concentration between multiple room, wherein, described the bianry image filtering that described infrared hybrid optical system performs based on regional connectivity specifically to be comprised: using each pixel in described infrared hybrid optical system as detected pixel, adopt the connected region of 5 × 5 pixel filter windows foundation centered by described detected pixel, calculate gray value in described connected region and be greater than the number of pixels of default gray threshold, if the number of pixels calculated is more than or equal to presetted pixel amount threshold, then described detected pixel is non-noise point, retain described detected pixel, if the number of pixels calculated is less than presetted pixel amount threshold, then described detected pixel is noise spot, filtering is carried out to described detected pixel, described contrast enhancer, described gray processing processor, described bianry image wave filter, described lip identifier and described mouth opening degree identifier adopt different fpga chips to realize respectively, described embedded processing equipment, when receiving personnel that an infrared detection equipment sends and there is not signal, is closed the personnel that send and be there is not infrared image pickup device in the corresponding room of infrared detection equipment of signal and room oxygen concentration checkout equipment.
More specifically, in described Smart Home air self-adaption interactive system: described embedded processing equipment is ARM11 processor.
More specifically, in described Smart Home air self-adaption interactive system, also comprise: display device, with described embedded processing equipment connection, for showing oxygen concentration in each room and mouth opening degree.
More specifically, in described Smart Home air self-adaption interactive system, also comprise: power supply unit, comprise solar powered device, lithium battery, change-over switch and electric pressure converter, described change-over switch is connected respectively with described solar powered device and described lithium battery, dump energy according to lithium battery determines whether be switched to described solar powered device to be powered by described solar powered device, described electric pressure converter is connected with described change-over switch, with the 5V voltage transitions will inputted by change-over switch for 3.3V voltage.
More specifically, in described Smart Home air self-adaption interactive system, also comprise: haze concentration detection device, be arranged on outside described house, for detecting the haze concentration of house extraneous air in real time.
More specifically, in described Smart Home air self-adaption interactive system: described haze concentration detection device and described embedded processing equipment connection, during to be less than or equal to default haze concentration threshold in the haze concentration detected, send outdoor ventilation interactive signal to described embedded processing equipment.
More specifically, in described Smart Home air self-adaption interactive system: described interactive ventilation equipment also comprise the outdoor ventilation shaft outlet be arranged on outside house; Described embedded processing equipment is also when receiving described outdoor ventilation interactive signal, and the air controlled inside and outside described interactive ventilation equipment execution house is interactive.
Detailed description of the invention
Below with reference to accompanying drawings the embodiment of Smart Home air self-adaption interactive system of the present invention is described in detail.
For haze weather, people often pay close attention to closedown housing window, using the mode of air purifier to reduce the haze impact healthy on people, but easily ignoring when closing housing window, house is inner multiple the unbalanced problem of the oxygen supply between people room.
In order to overcome above-mentioned deficiency, the present invention has built a kind of Smart Home air self-adaption interactive system, to people room oxygen concentration be had and have people room personnel's mouth opening degree to be combined the air interaction judging whether to need to start between room by weighting scheme, thus effectively solve the problems of the technologies described above.
Fig. 1 is the block diagram of the Smart Home air self-adaption interactive system illustrated according to an embodiment of the present invention, described interaction systems be arranged on there is multiple room house in, comprise embedded processing equipment 1 and n room oxygen concentration checkout equipment 2, n be greater than 1 natural number, each room oxygen concentration checkout equipment 2 is arranged in a room, for detecting the oxygen concentration in corresponding room, described embedded processing equipment 1 is connected respectively with described n room oxygen concentration checkout equipment 2, air self-adaption interactive strategy between determining described multiple room based on the oxygen concentration in the multiple rooms received.
Then, continue to be further detailed the concrete structure of Smart Home air self-adaption interactive system of the present invention.
Described interaction systems also comprises: interactive ventilation equipment, comprise a ventilation motor and the outlet of multiple ventilation shaft, a ventilation shaft outlet is set in each room, described ventilation motor under the control of described embedded processing equipment by described multiple ventilation shaft outlet to multiple room between perform air interaction, to balance the oxygen concentration between multiple room.
Described interaction systems also comprises: multiple infrared image pickup device, and each infrared image pickup device is arranged in a room, for taking corresponding room, to obtain infrared room images.
Described interaction systems also comprises: multiple infrared detection equipment, each infrared detection equipment is arranged in a room, for detecting in corresponding room whether there are personnel, there is signal in the personnel that send when personnel being detected, and the personnel that send when personnel not detected do not exist signal.
Described interaction systems also comprises: USB input interface, for holding outside USB flash disk, with receive in outside USB flash disk store default gray threshold, presetted pixel amount threshold, ventilate evaluation threshold value, oxygen concentration weight, infrared image weight, lip upper limit gray threshold and lip lower limit gray threshold, described lip upper limit gray threshold and described lip lower limit gray threshold are used for the personnel's lip in image and background separation.
Described interaction systems also comprises: portable hard drive, be connected with described USB input interface, for receiving and storing described default gray threshold, described presetted pixel amount threshold, described ventilation evaluation threshold value, described oxygen concentration weight, described infrared image weight, described lip upper limit gray threshold and described lip lower limit gray threshold.
Described interaction systems also comprises: infrared image processing equipment, be connected respectively with described portable hard drive and described multiple infrared image pickup device, comprise multiple image procossing subset, each image procossing subset and an infrared image pickup device connect to receive corresponding infrared room images, and multiple image procossing subset is used for the infrared room images in the multiple room of parallel processing respectively;
Each image procossing subset comprises contrast enhancer, gray processing processor, bianry image wave filter, lip identifier and mouth opening degree identifier, described contrast enhancer and corresponding infrared image pickup device connect to receive corresponding infrared room images and carry out contrast enhancement processing to corresponding infrared room images, obtain infrared enhancing image, described gray processing processor is connected to perform gray processing process to described infrared enhancing image with described contrast enhancer, obtain infrared hybrid optical system, described bianry image wave filter and described gray processing processor and described portable hard drive are connected with the bianry image filtering performed described infrared hybrid optical system based on regional connectivity respectively, obtain infrared filtering image, described lip identifier is connected respectively with described bianry image wave filter and described portable hard drive, by the combination of pixels of gray value in described infrared filtering image between described lip upper limit gray threshold and described lip lower limit gray threshold to obtain infrared lip sub pattern, described mouth opening degree identifier is connected with described lip identifier, determine corresponding mouth opening degree based on described infrared lip sub pattern and export, wherein, if the infrared lip sub pattern that described lip identifier exports is multiple, the mouth opening degree that then described mouth opening degree identifier exports is the mean value of multiple mouth opening degrees corresponding to multiple infrared lip sub pattern.
Described embedded processing equipment 1 and described interactive ventilation equipment, described portable hard drive, described infrared image processing equipment, described n room oxygen concentration checkout equipment 2, described multiple infrared image pickup device is connected respectively with described multiple infrared detection equipment, when receiving personnel that an infrared detection equipment sends and there is signal, start the personnel that send and there is infrared image pickup device in the corresponding room of infrared detection equipment of signal and room oxygen concentration checkout equipment, to receive oxygen concentration and mouth opening degree in corresponding room, oxygen concentration weight is multiplied with the oxygen concentration received, by the reciprocal multiplication of infrared image weight with the mouth opening degree received, obtain two product addition are determined whether start the interactive ventilation evaluation numerical value ventilated to obtain, when described ventilation evaluation numerical value is less than or equal to ventilation evaluation threshold value, described embedded processing equipment 1 controls described ventilation motor and performs air interaction by described multiple ventilation shaft outlet between multiple room, to balance the oxygen concentration between multiple room.
Wherein, described the bianry image filtering that described infrared hybrid optical system performs based on regional connectivity specifically to be comprised: using each pixel in described infrared hybrid optical system as detected pixel, adopt the connected region of 5 × 5 pixel filter windows foundation centered by described detected pixel, calculate gray value in described connected region and be greater than the number of pixels of default gray threshold, if the number of pixels calculated is more than or equal to presetted pixel amount threshold, then described detected pixel is non-noise point, retain described detected pixel, if the number of pixels calculated is less than presetted pixel amount threshold, then described detected pixel is noise spot, filtering is carried out to described detected pixel, described contrast enhancer, described gray processing processor, described bianry image wave filter, described lip identifier and described mouth opening degree identifier adopt different fpga chips to realize respectively, described embedded processing equipment 1, when receiving personnel that an infrared detection equipment sends and there is not signal, is closed the personnel that send and be there is not infrared image pickup device in the corresponding room of infrared detection equipment of signal and room oxygen concentration checkout equipment.
Alternatively, in described interaction systems: described embedded processing equipment 1 is ARM11 processor; Described interaction systems also comprises display device, is connected with described embedded processing equipment 1, for showing oxygen concentration in each room and mouth opening degree; Described interaction systems also comprises power supply unit, described power supply unit comprises solar powered device, lithium battery, change-over switch and electric pressure converter, described change-over switch is connected respectively with described solar powered device and described lithium battery, dump energy according to lithium battery determines whether be switched to described solar powered device to be powered by described solar powered device, described electric pressure converter is connected with described change-over switch, with the 5V voltage transitions will inputted by change-over switch for 3.3V voltage; Described interaction systems also comprises haze concentration detection device, is arranged on outside described house, for detecting the haze concentration of house extraneous air in real time; Described haze concentration detection device is connected with described embedded processing equipment 1, during to be less than or equal to default haze concentration threshold in the haze concentration detected, sends outdoor ventilation interactive signal to described embedded processing equipment 1; And described interactive ventilation equipment also comprise the outdoor ventilation shaft outlet be arranged on outside house; Described embedded processing equipment 1 is also when receiving described outdoor ventilation interactive signal, and the air controlled inside and outside described interactive ventilation equipment execution house is interactive.
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.He occurs as a kind of semi-custom circuit in special IC (ASIC) field, has both solved the deficiency of custom circuit, overcomes again the shortcoming that original programming device gate circuit number is limited.
With the circuit design that hardware description language (Verilog or VHDL) completes, can through simple comprehensive and layout, being burned onto fast on FPGA and testing, is the technology main flow of modern IC designs checking.These can be edited element and can be used to realize some basic logic gates (such as AND, OR, XOR, NOT) or more more complex combination function such as decoder or mathematical equation.Inside most FPGA, in these editable elements, also comprise memory cell such as trigger (Flip-flop) or other more complete block of memory.System designer can be coupled together the logical block of FPGA inside by editable connection as required, just looks like that a breadboard has been placed in a chip.One dispatch from the factory after the logical block of finished product FPGA can change according to designer with being connected, so FPGA can complete required logic function.
FPGA is in general slow than the speed of ASIC (special IC), realizes same function ratio ASIC circuit area and wants large.But they also have a lot of advantages such as can finished product fast, can be modified the mistake in correction program and more cheap cost.Manufacturer also may provide the FPGA of cheap still edit capability difference.Because these chips have poor can edit capability, so exploitations of these designs complete on common FPGA, then design is transferred to one and is similar on the chip of ASIC.Another method is with CPLD (Complex Programmable LogicDevice, CPLD).The exploitation of FPGA has a great difference relative to the exploitation of conventional P C, single-chip microcomputer.FPGA, based on concurrent operation, realizes with hardware description language; Very large difference is had compared to the operation in tandem of PC or single-chip microcomputer (no matter being von Neumann structure or Harvard structure).
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 architecture.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 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.
Adopt Smart Home air self-adaption interactive system of the present invention, the unbalanced technical problem of the oxygen supply between people room is had for house in haze weather in prior art is inner multiple, people room oxygen concentration and room personnel's mouth opening degree will be had to be combined by weighting scheme, there is provided reference data to whether opening in house air interaction between multiple room, thus safeguard the effective supply of Nei Youren room, house oxygen.
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.