The present invention is the divisional application of the patent of Application No. 201510303955.9, filing date on June 6th, 2015, invention entitled " Smart Home air self-adaption interactive system ".
Summary of the invention
In order to solve the technical problem that prior art exists, the invention provides a kind of Smart Home air self-adaption interactive system, the mouth opening degree of personnel in oxygen concentration testing result based on room and room, the calculating of the interactive reference value of air is carried out with the reasonable weighted value pre-set, determine whether that the air starting between each room in house is interactive based on result of calculation, thus avoid the occurrence of the unbalanced situation of oxygen between room, it is ensured that there is the necessary oxygen supply in people room.
According to an aspect of the present invention, provide a kind of Smart Home air self-adaption interactive system, described interaction systems is arranged in the house with multiple room, equipment is detected including embedded processing equipment and multiple rooms oxygen concentration, each room oxygen concentration detection equipment is arranged in a room, oxygen concentration in detecting corresponding room, described embedded processing equipment and the plurality of room oxygen concentration detection equipment connect respectively, determine the air self-adaption interactive strategy between the plurality of room based on the oxygen concentration in the multiple rooms received.
More specifically, in described Smart Home air self-adaption interactive system, also include: interactive ventilation installation, export including a ventilation motor and multiple ventilation shaft, one ventilation shaft outlet is set in each room, it is interactive, to balance the oxygen concentration between multiple room that described ventilation motor passes through to perform air between the plurality of ventilation shaft exports multiple rooms under the control of described embedded processing equipment;Multiple infrared image pickup devices, each infrared image pickup device is arranged in a room, for shooting, corresponding room to obtain infrared room images;Multiple infrared detection equipment, each infrared detection equipment is arranged in a room, whether there are personnel in being used for detecting corresponding room, and the personnel that send when personnel being detected exist signal, and the personnel that send when being not detected by personnel do not exist signal;USB input interface, for accommodating outside USB flash disk, with the default gray threshold of storage, 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 in receiving outside USB flash disk for by the personnel's lip in image and background separation;Portable hard drive, it is connected with described USB input interface, is used for receiving and store 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, it is connected respectively with described portable hard drive and the plurality of infrared image pickup device, including multiple image procossing subsets, each image procossing subset and an infrared image pickup device connect to receive corresponding infrared room images, and multiple image procossing subsets are for the infrared room images in the multiple room of parallel processing respectively;nullEach image procossing subset includes contrast enhancer、Gray processing processor、Bianry image wave filter、Lip evaluator and mouth opening degree evaluator,Described contrast enhancer connects to receive corresponding infrared room images with corresponding infrared image pickup device and corresponding infrared room images is carried out contrast enhancement processing,Obtain infrared enhancing image,Described gray processing processor is connected with described contrast enhancer described infrared enhancing image performs gray processing process,Obtain infrared hybrid optical system,Described bianry image wave filter is connected with described gray processing processor and described portable hard drive described infrared hybrid optical system performs bianry image based on regional connectivity filtering respectively,Obtain infrared filtering image,Described lip evaluator is connected respectively with described bianry image wave filter and described portable hard drive,By the combination of pixels between described lip upper limit gray threshold and described lip lower limit gray threshold of the gray value in described infrared filtering image to obtain infrared lip sub pattern,Described mouth opening degree evaluator is connected with described lip evaluator,Determine the mouth opening degree of correspondence based on described infrared lip sub pattern and export,Wherein,If the infrared lip sub pattern of described lip evaluator output is multiple,The meansigma methods that mouth opening degree is multiple mouth opening degrees corresponding to multiple infrared lip sub pattern of the most described mouth opening degree evaluator output;nullDescribed embedded processing equipment and described interactive ventilation installation、Described portable hard drive、Described infrared image processing equipment、The plurality of room oxygen concentration detection equipment、The plurality of infrared image pickup device and the plurality of infrared detection equipment connect respectively,When receiving the personnel that an infrared detection equipment sends and there is signal,Start the personnel that send and there is the infrared image pickup device in the infrared detection equipment correspondence room of signal and room oxygen concentration detection equipment,With oxygen concentration and mouth opening degree in the corresponding room of reception,Oxygen concentration weight is multiplied with the oxygen concentration received,Reciprocal multiplication by infrared image weight with the mouth opening degree received,Obtain two product addition are evaluated numerical value to obtain the ventilation deciding whether to start interactive ventilation,When the described evaluation numerical value that ventilates evaluates threshold value less than or equal to ventilating,It is interactive to performing air between multiple rooms by the outlet of the plurality of ventilation shaft that described embedded processing equipment controls described ventilation motor,To balance the oxygen concentration between multiple rooms;Wherein, described filter described infrared hybrid optical system execution bianry image based on regional connectivity specifically includes: using each pixel in described infrared hybrid optical system as detected pixel, 5 × 5 pixel filter windows are used to set up the connected region centered by described detected pixel, calculate gray value in described connected region and be more than the number of pixels presetting gray threshold, if the number of pixels calculated is more than or equal to presetted pixel amount threshold, the most described detected pixel is non-noise point, retain described detected pixel, if the number of pixels calculated is less than presetted pixel amount threshold, the most described detected pixel is noise spot, described detected pixel is filtered;Described contrast enhancer, described gray processing processor, described bianry image wave filter, described lip evaluator and described mouth opening degree evaluator are respectively adopted different fpga chips and realize;Described embedded processing equipment, when receiving the personnel that an infrared detection equipment sends and there is not signal, is closed the personnel that send and be there is not the infrared image pickup device in the infrared detection equipment correspondence room of signal and room oxygen concentration detection 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 include: display device, be connected with described embedded processing equipment, the oxygen concentration within showing each room and mouth opening degree.
More specifically, in described Smart Home air self-adaption interactive system, also include: power supply unit, including solar powered device, lithium battery, switching switch and electric pressure converter, described switching switch is connected respectively with described solar powered device and described lithium battery, dump energy according to lithium battery decides whether to be switched to described solar powered device to be powered by described solar powered device, described electric pressure converter is connected with described switching switch, will be converted to 3.3V voltage by the 5V voltage of switching switch input.
More specifically, in described Smart Home air self-adaption interactive system, also include: haze concentration detection device, be arranged on outside described house, for the haze concentration of detection house extraneous air in real time.
More specifically, in described Smart Home air self-adaption interactive system: described haze concentration detection device is connected with described embedded processing equipment, when the haze concentration of detection is less than or equal to default haze concentration threshold, to send outdoor ventilation interactive signal to described embedded processing equipment.
More specifically, in described Smart Home air self-adaption interactive system: described interactive ventilation installation also includes the outdoor ventilation shaft outlet being arranged on outside house;Described embedded processing equipment, also when receiving described outdoor ventilation interactive signal, controls the air inside and outside execution house, described interactive ventilation installation interactive.
Detailed description of the invention
Below with reference to accompanying drawings the embodiment of the 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, the mode using air purifier reduces the impact that haze is healthy on people, but easily ignores in the case of closing housing window, the internal multiple unbalanced problems of the oxygen supply having between people room in house.
In order to overcome above-mentioned deficiency, the present invention has built a kind of Smart Home air self-adaption interactive system, to there is people room oxygen concentration 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 above-mentioned technical problem.
Fig. 1 is the block diagram according to the Smart Home air self-adaption interactive system shown in embodiment of the present invention, described interaction systems is arranged in the house with multiple room, including embedded processing equipment 1 and n room oxygen concentration detection equipment 2, n is the natural number more than 1, each room oxygen concentration detection equipment 2 is arranged in a room, oxygen concentration in detecting corresponding room, described embedded processing equipment 1 and described n room oxygen concentration detection equipment 2 connect respectively, determine the air self-adaption interactive strategy between the plurality of room based on the oxygen concentration in the multiple rooms received.
Then, continue the concrete structure of the Smart Home air self-adaption interactive system of the present invention is further detailed.
Described interaction systems also includes: interactive ventilation installation, export including a ventilation motor and multiple ventilation shaft, one ventilation shaft outlet is set in each room, it is interactive, to balance the oxygen concentration between multiple room that described ventilation motor passes through to perform air between the plurality of ventilation shaft exports multiple rooms under the control of described embedded processing equipment.
Described interaction systems also includes: multiple infrared image pickup devices, and each infrared image pickup device is arranged in a room, for shooting, corresponding room to obtain infrared room images.
Described interaction systems also includes: multiple infrared detection equipment, each infrared detection equipment is arranged in a room, whether there are personnel in detecting corresponding room, there is signal in the personnel that send when personnel being detected, the personnel that send when being not detected by personnel do not exist signal.
Described interaction systems also includes: USB input interface, for accommodating outside USB flash disk, with the default gray threshold of storage, 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 in receiving outside USB flash disk for by the personnel's lip in image and background separation.
Described interaction systems also includes: portable hard drive, it is connected with described USB input interface, is used for receiving and store 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 includes: infrared image processing equipment, it is connected respectively with described portable hard drive and the plurality of infrared image pickup device, including multiple image procossing subsets, each image procossing subset and an infrared image pickup device connect to receive corresponding infrared room images, and multiple image procossing subsets are for the infrared room images in the multiple room of parallel processing respectively;
nullEach image procossing subset includes contrast enhancer、Gray processing processor、Bianry image wave filter、Lip evaluator and mouth opening degree evaluator,Described contrast enhancer connects to receive corresponding infrared room images with corresponding infrared image pickup device and corresponding infrared room images is carried out contrast enhancement processing,Obtain infrared enhancing image,Described gray processing processor is connected with described contrast enhancer described infrared enhancing image performs gray processing process,Obtain infrared hybrid optical system,Described bianry image wave filter is connected with described gray processing processor and described portable hard drive described infrared hybrid optical system performs bianry image based on regional connectivity filtering respectively,Obtain infrared filtering image,Described lip evaluator is connected respectively with described bianry image wave filter and described portable hard drive,By the combination of pixels between described lip upper limit gray threshold and described lip lower limit gray threshold of the gray value in described infrared filtering image to obtain infrared lip sub pattern,Described mouth opening degree evaluator is connected with described lip evaluator,Determine the mouth opening degree of correspondence based on described infrared lip sub pattern and export,Wherein,If the infrared lip sub pattern of described lip evaluator output is multiple,The meansigma methods that mouth opening degree is multiple mouth opening degrees corresponding to multiple infrared lip sub pattern of the most described mouth opening degree evaluator output.
nullDescribed embedded processing equipment 1 and described interactive ventilation installation、Described portable hard drive、Described infrared image processing equipment、Described n room oxygen concentration detection equipment 2、The plurality of infrared image pickup device and the plurality of infrared detection equipment connect respectively,When receiving the personnel that an infrared detection equipment sends and there is signal,Start the personnel that send and there is the infrared image pickup device in the infrared detection equipment correspondence room of signal and room oxygen concentration detection equipment,With oxygen concentration and mouth opening degree in the corresponding room of reception,Oxygen concentration weight is multiplied with the oxygen concentration received,Reciprocal multiplication by infrared image weight with the mouth opening degree received,Obtain two product addition are evaluated numerical value to obtain the ventilation deciding whether to start interactive ventilation,When the described evaluation numerical value that ventilates evaluates threshold value less than or equal to ventilating,It is interactive to performing air between multiple rooms by the outlet of the plurality of ventilation shaft that described embedded processing equipment 1 controls described ventilation motor,To balance the oxygen concentration between multiple rooms.
Wherein, described filter described infrared hybrid optical system execution bianry image based on regional connectivity specifically includes: using each pixel in described infrared hybrid optical system as detected pixel, 5 × 5 pixel filter windows are used to set up the connected region centered by described detected pixel, calculate gray value in described connected region and be more than the number of pixels presetting gray threshold, if the number of pixels calculated is more than or equal to presetted pixel amount threshold, the most described detected pixel is non-noise point, retain described detected pixel, if the number of pixels calculated is less than presetted pixel amount threshold, the most described detected pixel is noise spot, described detected pixel is filtered;Described contrast enhancer, described gray processing processor, described bianry image wave filter, described lip evaluator and described mouth opening degree evaluator are respectively adopted different fpga chips and realize;Described embedded processing equipment 1, when receiving the personnel that an infrared detection equipment sends and there is not signal, is closed the personnel that send and be there is not the infrared image pickup device in the infrared detection equipment correspondence room of signal and room oxygen concentration detection equipment.
Alternatively, in described interaction systems: described embedded processing equipment 1 is ARM11 processor;Described interaction systems also includes display device, is connected with described embedded processing equipment 1, the oxygen concentration within showing each room and mouth opening degree;Described interaction systems also includes power supply unit, described power supply unit includes solar powered device, lithium battery, switching switch and electric pressure converter, described switching switch is connected respectively with described solar powered device and described lithium battery, dump energy according to lithium battery decides whether to be switched to described solar powered device to be powered by described solar powered device, described electric pressure converter is connected with described switching switch, will be converted to 3.3V voltage by the 5V voltage of switching switch input;Described interaction systems also includes haze concentration detection device, is arranged on outside described house, for the haze concentration of detection house extraneous air in real time;Described haze concentration detection device is connected with described embedded processing equipment 1, when the haze concentration of detection is less than or equal to default haze concentration threshold, to send outdoor ventilation interactive signal to described embedded processing equipment 1;And described interactive ventilation installation also includes the outdoor ventilation shaft outlet that is arranged on outside house;Described embedded processing equipment 1, also when receiving described outdoor ventilation interactive signal, controls the air inside and outside execution house, described interactive ventilation installation interactive.
It addition, FPGA (Field-ProgrammableGateArray), 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.He is to occur as a kind of semi-custom circuit in special IC (ASIC) field, has both solved the deficiency of custom circuit, has overcome again the shortcoming that original programming device gate circuit number is limited.
The circuit design completed with hardware description language (Verilog or VHDL), can quickly be burned onto on FPGA test through simple comprehensive and layout, be the technology main flow of modern IC designs checking.These can edit element can be used to realize the combination function such as decoder or mathematical equation of some basic logic gates (such as AND, OR, XOR, NOT) or more more complicated.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 couple together the logical block within FPGA as desired by editable connection, just looks like that a breadboard has been placed in a chip.One dispatch from the factory after finished product FPGA logical block and connect can change according to designer, so FPGA can complete required logic function.
FPGA in general speed than ASIC (special IC) is slow, it is achieved same function is bigger than ASIC circuit area.But they also have a lot of advantages such as can quick finished product, the mistake in correction program and less expensive cost can be modified to.Manufacturer is likely to provide the FPGA of cheap still edit capability difference.Because these chips have poor can edit capability, so exploitations of these designs are to complete on common FPGA, then design is transferred on a chip being similar to ASIC.Another method is with CPLD (ComplexProgrammableLogicDevice, CPLD).The exploitation of FPGA is very different relative to tradition PC, the exploitation of single-chip microcomputer.FPGA, based on concurrent operation, realizes with hardware description language;Operate compared to the order of PC or single-chip microcomputer (either von Neumann structure or Harvard structure) and have the biggest difference.
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 thousand of to several ten thousand logical blocks, and FPGA is typically several ten thousand to millions of.The main distinction of CPLD and FPGA is their system structure.CPLD is a somewhat restrictive structure.The depositor that this structure is arranged the locking with some relatively small amounts by the logical groups of one or more editable result sum forms.Such result be a lack of edit motility, but but have it is anticipated that time delay and logical block to connect unit height ratio advantage.And FPGA is to have a lot of connection unit, although so allowing him edit more flexibly, but structure is complicated many.
Use the Smart Home air self-adaption interactive system of the present invention, for the internal multiple unbalanced technical problems of the oxygen supply having between people room in house in haze weather in prior art, people room oxygen concentration and room personnel's mouth opening degree will be had to be combined by weighting scheme, to in whether opening house between multiple rooms air interaction reference data is provided, thus safeguard the effective supply of Nei Youren room, house oxygen.
Although it is understood that the present invention discloses as above with preferred embodiment, but above-described embodiment is not limited to the present invention.For any those of ordinary skill in the art, without departing under technical solution of the present invention ambit, technical solution of the present invention is made many possible variations and modification by the technology contents that all may utilize the disclosure above, 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, to any simple modification made for any of the above embodiments, equivalent variations and modification, all still falls within the range of technical solution of the present invention protection.