Curtain state transition method based on wind-force detection
It is on May 23rd, 2017 that the present invention, which is application No. is the 201710370755.4, applying date, entitled " is based on
The divisional application of the patent of the curtain state transition method of wind-force detection ".
Technical field
The present invention relates to automation field more particularly to a kind of curtain state transition methods based on wind-force detection.
Background technology
The material of window generally speaking can be divided into three categories:Wooden, plastic-steel, aluminium alloy.Three has his own strong points.
Plastic-steel:Because being plastic material, weight is small, and heat-proof quality is good, and price is relatively low.Because often wanting
In face of exposing to wind and rain, the sun shines, so people is most allowed to concern the anti-aging problem of plastic-steel window.In fact, the plastic-steel window of high-quality
Service life up to 100 years or so.
Aluminium alloy:Because being metal material, there is no problem of aging, and firm, impact resistance, intensity are big.But
It is exactly heat-proof quality that aluminum window, which is easiest to attacked weakness, because metal be heat good conductor, it is extraneous with it is indoor
Temperature can be transmitted with the frame of window.
But it is worth query, the ratio on a fan window shared by frame is simultaneously not very big, and window is not one block of metal
Plate, but the glass of frame is inlayed, the heat transmitted by frame edge strip actually can be to there is the generation of the indoor temperature of warmer, air-conditioning
Great influence?
But that precautions averts perils is good, this problem, uses " bridge cut-off " skill on the aluminium alloy window having in order to prevent
Art adds one layer of resin material that is, in aluminum alloy window frame, has thoroughly broken off the approach of heat conduction.
It is wooden:Comparatively, wooden should be forms frame material the most perfect, no matter from heat-insulated, sound insulation angularly
For have apparent advantage, and inherent texture and natural figure are more moving.It is practical although wooden
On some be used to do the solid wood of window frame and have already been through processing special layer by layer, not only without moisture, it is desirable that it is higher even
Fat is sucked, so, so-called wooden actually as fossil, solid wood after treatment is only protected
The appearance of timber has been stayed, quality is but completely different, will not cracking deformation, less suffers insect bite with worry, is corroded, moreover,
Intensity also greatly increases.
In addition, also a kind of frame structure is referred to as aluminium Bao Mu, the outdoor part of wood frame is one layer of aluminium alloy structure,
In fact, this be combine wood frame thermal insulation is good and advantage that intensity of aluminum alloy is high, integrate, maximize favourable factors and minimize unfavourable ones.
The wooden unique disadvantage of window is exactly that cost is too high.
The selection to the material of window and structurally is excessively paid close attention in the prior art, and for the mating curtain opening of window
Control concern is less, especially to excessive or how this acts shortage and grind there are curtain in the case that human body passes through in external wind speed
Study carefully.
Invention content
It to solve the above-mentioned problems, can the present invention provides a kind of curtain state transition method based on wind-force detection
When the wind speed for receiving the wind-force detection device output crosses fast signal, control letter is packed up to motor driving apparatus transmission
Number to pack up curtain, additionally it is possible to when receiving the identification human body signal, control is packed up to motor driving apparatus transmission
Signal is simultaneously stopped the output based on the wind-force detection device and sends control letter to the motor driving apparatus to pack up curtain
Number.
According to an aspect of the present invention, a kind of curtain state transition method detected based on wind-force, the method are provided
Including using the curtain state conversion platform detected based on wind-force to realize the automatic conversion to curtain state based on environmental parameter,
The curtain state conversion platform based on wind-force detection includes wind-force detection device, image capture device, motor driving apparatus
And embedded processing equipment, the embedded processing equipment respectively with the wind-force detection device, described image collecting device
It is connected with the motor driving apparatus, the wind-force detection device for detecting the real-time wind speed for blowing over curtain, adopt by described image
The scene that collection equipment is used for outside to curtain carries out the acquisition of high definition scene image to obtain high definition scene image, and the motor driving is set
It is ready for use on and the switching between the opening state of curtain and collapsed state is controlled by direct current generator;
Wherein, output and described image collecting device of the embedded processing equipment based on the wind-force detection device
Output determines the control signal for being sent to the motor driving apparatus.
More specifically, described based in the curtain state conversion platform of wind-force detection, the platform further includes:
Contrast enhances equipment, is located inside Curtain rod, connect with described image collecting device, clear out a gathering place for receiving height
Scape image, and contrast enhancement processing is executed to obtain enhancing image to high definition scene image.
More specifically, described based in the curtain state conversion platform of wind-force detection, the platform further includes:
Mean square deviation detection device is determined for receiving enhancing image based on the pixel value of each pixel of enhancing image
Enhance the mean square deviation of image pixel value to be exported as target mean square error.
More specifically, described based in the curtain state conversion platform of wind-force detection, the platform further includes:
Signal-to-noise ratio detection device carries out noise analysis, to obtain noise amplitude for receiving enhancing image to enhancing image
The secondary noise signal of maximum main noise signal and noise amplitude time greatly, is based on main noise signal, secondary noise signal and enhancing
Image determines the signal-to-noise ratio of enhancing image to be exported as target signal to noise ratio, is additionally operable to judge with true enhancing image progress scene
Surely the distribution situation for enhancing pixel pixel value in image clicks through each pixel in enhancing image based on the distribution situation
Row pixel value is analyzed to determine whether to determine the multiple noise regions of each noise spot composition in enhancing image every for noise spot
The area and shape of one noise region, and by the Area summing of each noise region to obtain the noise region gross area;
Modified medium filtering equipment, connect with mean square deviation detection device and signal-to-noise ratio detection device respectively, is used for
When target signal to noise ratio is less than or equal to preset snr threshold and target mean square error is more than or equal to default mean deviation threshold, from power saving shape
State enters working condition, receives the shape of each noise region, the geometric properties of the shape based on each noise region, will
Each noise region splits into multiple benchmark subregions, the shape of each benchmark subregion be it is rectangular, round or linear, it is right
Each noise region, each benchmark subregion after being split for it, selects corresponding medium filtering template to execute respectively
Each sub-regions filter pattern to obtain each sub-regions filter pattern, and is combined into filtered noise range by medium filtering
Domain subgraph, and the non-noise region enhanced in image is combined with each noise region subgraph to obtain medium filtering figure
Picture;
Gaussian filtering equipment is set with the detection of modified medium filtering equipment, mean square deviation detection device and signal-to-noise ratio respectively
Standby connection is used to be less than or equal to default snr threshold in target signal to noise ratio and target mean square error is more than or equal to default mean square deviation threshold
When value, enter working condition from power down mode, receive medium filtering image and gaussian filtering process is carried out to medium filtering image
To obtain gaussian filtering image;
Human bioequivalence equipment is connect with gaussian filtering equipment, for receiving gaussian filtering image, to gaussian filtering image,
For based on the human body pixel in human body upper limit gray threshold and human body lower limit gray threshold identification gaussian filtering image, being based on height
All human body pixels in this filtering image form human body subgraph, when area and the gaussian filtering image of human body subgraph
Area ratio be more than or equal to preset ratio threshold value when, send out identification human body signal, otherwise, send out other echo signals;
Wherein, in enhancing image, the region except multiple noise regions is non-noise region;
Wherein, the distribution situation for enhancing pixel pixel value in image includes enhancing in image for each pixel
Region determine the pixel value range that the pixel pixel value should belong to;
Wherein, the embedded processing equipment is connect with the human bioequivalence equipment and the wind-force detection device respectively,
For when receiving the identification human body signal, packing up control signal to motor driving apparatus transmission, being simultaneously stopped base
In the output of the wind-force detection device control signal is sent to the motor driving apparatus;The embedded processing equipment is also used
When other echo signals described in receiving, restore the output based on the wind-force detection device to the motor driving apparatus
Send control signal.
More specifically, described based in the curtain state conversion platform of wind-force detection:
Output of the embedded processing equipment based on the wind-force detection device sends to the motor driving apparatus and controls
Signal processed includes:When the wind speed for receiving the wind-force detection device output crosses fast signal, sent out to the motor driving apparatus
It send and packs up control signal.
More specifically, described based in the curtain state conversion platform of wind-force detection:
Output of the embedded processing equipment based on the wind-force detection device sends to the motor driving apparatus and controls
Signal processed further includes:When receiving the wind speed normal signal of the wind-force detection device output, to the motor driving apparatus
It sends and opens control signal.
More specifically, described based in the curtain state conversion platform of wind-force detection:
When the shape of benchmark subregion is rectangular, the size of each benchmark subregion is 3 × 3,5 × 5 or 7 × 7, when
When the shape of benchmark subregion is round, the radius of each benchmark subregion is 3 pixels, 5 pixels or 7 pixels, when benchmark
When the shape in region is linear, each benchmark subregion is an one-dimensional pixel set.
More specifically, described based in the curtain state conversion platform of wind-force detection:
In the contrast enhancing equipment, the mean square deviation detection device, the signal-to-noise ratio detection device, the modified
Different system on chip systems on chip is respectively adopted in value filtering equipment, the gaussian filtering equipment and the human bioequivalence equipment
To realize.
Description of the drawings
Embodiment of the present invention is described below with reference to attached drawing, wherein:
Fig. 1 is the structure box according to the curtain state conversion platform based on wind-force detection shown in embodiment of the present invention
Figure.
Reference numeral:1 wind-force detection device;2 image capture devices;3 motor driving apparatus;4 embedded processing equipment
Specific implementation mode
The embodiment of the curtain state conversion platform based on wind-force detection of the present invention is carried out below with reference to accompanying drawings
It is described in detail.
The effect of window is more than used for having a look at outside scene, largely, determines the matter that we live
Amount, but sometimes, many problems we never pay attention to obtaining.
Family is our institute inhabited, and is the relatively independent subenvironment that we build ourselves, keeps out the wind and take shelter from rain, sunshade
Sound insulation is protected and oneself is not invaded and harassed from extraneous factor by any.It says it is opposite independence, is because we can not possibly be completely
It is detached from extraneous environment and lives by oneself, it would be desirable to which there are one rational exchange and exchanges for indoor and outdoor energy.In this small ring
In border, people need suitable temperature, humidity, air and light, also to there is the acoustic environment for being suitble to oneself.
How in the case where skipping manually-operated pattern, voluntarily according to external environment, such as wind speed and passerby be by situation, from
The dynamic curtain control strategy for judging to meet people's demand is the blank place of current window relevant control model study.In order to gram
Above-mentioned deficiency is taken, the present invention has been built a kind of curtain state transition method detected based on wind-force, solved above-mentioned technical problem.
The present invention provides a kind of curtain state transition method detected based on wind-force, and the method includes using to be based on wind-force
The curtain state conversion platform of detection is described to be detected based on wind-force to realize the automatic conversion to curtain state based on environmental parameter
Curtain state conversion platform include that wind-force detection device, image capture device, motor driving apparatus and embedded processing are set
Standby, the embedded processing equipment is set with the driving of the wind-force detection device, described image collecting device and the motor respectively
Standby connection, the wind-force detection device are used for for detecting the real-time wind speed for blowing over curtain, described image collecting device to curtain
Outer scene carries out the acquisition of high definition scene image to obtain high definition scene image, and the motor driving apparatus is for passing through direct current
Machine controls the switching between the opening state of curtain and collapsed state;
Wherein, output and described image collecting device of the embedded processing equipment based on the wind-force detection device
Output determines the control signal for being sent to the motor driving apparatus.
Fig. 1 is the structure box according to the curtain state conversion platform based on wind-force detection shown in embodiment of the present invention
Figure, the platform include wind-force detection device, image capture device, motor driving apparatus and embedded processing equipment, described
Embedded processing equipment is connect with the wind-force detection device, described image collecting device and the motor driving apparatus respectively,
The wind-force detection device is used for the scene outside to curtain for detecting the real-time wind speed for blowing over curtain, described image collecting device
The acquisition of high definition scene image is carried out to obtain high definition scene image, the motor driving apparatus by direct current generator for controlling
Switching between the opening state and collapsed state of curtain;
Wherein, output and described image collecting device of the embedded processing equipment based on the wind-force detection device
Output determines the control signal for being sent to the motor driving apparatus.
Then, continue to carry out the concrete structure for the curtain state conversion platform of the present invention detected based on wind-force further
Explanation.
The platform can also include:Contrast enhances equipment, is located inside Curtain rod, with described image collecting device
Connection executes contrast enhancement processing to obtain enhancing image for receiving high definition scene image, and to high definition scene image.
The platform can also include:Mean square deviation detection device, for receiving enhancing image, based on each of enhancing image
The pixel value of pixel determines the mean square deviation of enhancing image pixel value to be exported as target mean square error.
The platform can also include:
Signal-to-noise ratio detection device carries out noise analysis, to obtain noise amplitude for receiving enhancing image to enhancing image
The secondary noise signal of maximum main noise signal and noise amplitude time greatly, is based on main noise signal, secondary noise signal and enhancing
Image determines the signal-to-noise ratio of enhancing image to be exported as target signal to noise ratio, is additionally operable to judge with true enhancing image progress scene
Surely the distribution situation for enhancing pixel pixel value in image clicks through each pixel in enhancing image based on the distribution situation
Row pixel value is analyzed to determine whether to determine the multiple noise regions of each noise spot composition in enhancing image every for noise spot
The area and shape of one noise region, and by the Area summing of each noise region to obtain the noise region gross area;
Modified medium filtering equipment, connect with mean square deviation detection device and signal-to-noise ratio detection device respectively, is used for
When target signal to noise ratio is less than or equal to preset snr threshold and target mean square error is more than or equal to default mean deviation threshold, from power saving shape
State enters working condition, receives the shape of each noise region, the geometric properties of the shape based on each noise region, will
Each noise region splits into multiple benchmark subregions, the shape of each benchmark subregion be it is rectangular, round or linear, it is right
Each noise region, each benchmark subregion after being split for it, selects corresponding medium filtering template to execute respectively
Each sub-regions filter pattern to obtain each sub-regions filter pattern, and is combined into filtered noise range by medium filtering
Domain subgraph, and the non-noise region enhanced in image is combined with each noise region subgraph to obtain medium filtering figure
Picture;
Gaussian filtering equipment is set with the detection of modified medium filtering equipment, mean square deviation detection device and signal-to-noise ratio respectively
Standby connection is used to be less than or equal to default snr threshold in target signal to noise ratio and target mean square error is more than or equal to default mean square deviation threshold
When value, enter working condition from power down mode, receive medium filtering image and gaussian filtering process is carried out to medium filtering image
To obtain gaussian filtering image;
Human bioequivalence equipment is connect with gaussian filtering equipment, for receiving gaussian filtering image, to gaussian filtering image,
For based on the human body pixel in human body upper limit gray threshold and human body lower limit gray threshold identification gaussian filtering image, being based on height
All human body pixels in this filtering image form human body subgraph, when area and the gaussian filtering image of human body subgraph
Area ratio be more than or equal to preset ratio threshold value when, send out identification human body signal, otherwise, send out other echo signals;
Wherein, in enhancing image, the region except multiple noise regions is non-noise region;
Wherein, the distribution situation for enhancing pixel pixel value in image includes enhancing in image for each pixel
Region determine the pixel value range that the pixel pixel value should belong to;
Wherein, the embedded processing equipment is connect with the human bioequivalence equipment and the wind-force detection device respectively,
For when receiving the identification human body signal, packing up control signal to motor driving apparatus transmission, being simultaneously stopped base
In the output of the wind-force detection device control signal is sent to the motor driving apparatus;The embedded processing equipment is also used
When other echo signals described in receiving, restore the output based on the wind-force detection device to the motor driving apparatus
Send control signal.
In the platform:Output of the embedded processing equipment based on the wind-force detection device is driven to the motor
Dynamic equipment sends control signal:When the wind speed for receiving the wind-force detection device output crosses fast signal, to the electricity
Control signal is packed up in the transmission of machine driving equipment.
In the platform:Output of the embedded processing equipment based on the wind-force detection device is driven to the motor
Dynamic equipment sends control signal:When receiving the wind speed normal signal of wind-force detection device output, to described
Motor driving apparatus, which is sent, opens control signal.
In the platform:When the shape of benchmark subregion is rectangular, the size of each benchmark subregion is 3 × 3,
5 × 5 or 7 × 7, when the shape of benchmark subregion is round, the radius of each benchmark subregion is 3 pixels, 5 pixels or 7
Pixel, when the shape of benchmark subregion is linear, each benchmark subregion is an one-dimensional pixel set.
In the platform:The contrast enhancing equipment, the mean square deviation detection device, signal-to-noise ratio detection are set
Standby, the described modified medium filtering equipment, the gaussian filtering equipment and the human bioequivalence equipment are respectively adopted different
System on chip is realized.
In addition, medium filtering, which has impulsive noise, good filters out effect, especially while filtering out noise, Neng Goubao
The edge for protecting signal, is allowed to not be blurred.These good characteristics are that linear filter method is not had.In addition, medium filtering
Algorithm comparison it is simple, be also easy to use hardware realization.So median filter method is after proposition, just in Digital Signal Processing
Neck obtains important application.
Medium filtering is a kind of nonlinear signal processing technology that can effectively inhibit noise based on sequencing statistical theory, in
The basic principle of value filtering is in a neighborhood the value of any in the digital picture or Serial No. point in each point value
Value replaces, the actual value for making the pixel value of surrounding close, to eliminate isolated noise spot.Method is the two dimension with certain structure
Pixel in plate is ranked up by sleiding form according to the size of pixel value, and it is 2-D data to generate monotone increasing (or decline)
Sequence.Two dimension median filter output is g (x, y)=med { f (x-k, y-l), (k, l ∈ W) }, wherein f (x, y), g (x, y) points
It Wei not original image and image after processing.W is two dimension pattern plate, usually 3*3, and the regions 5*5 can also be different shape, such as
Threadiness, round, cross, circular ring shape etc..
Curtain state conversion platform using the present invention based on wind-force detection, for lacking in the prior art to curtain control
Molding formula carries out the technical issues of Depth Study, passes through by being detected and analyzed to real-time wind speed, and to outdoor passerby
Situation is detected and analyzed, and on the basis of above-mentioned analysis, opens voluntarily or packs up curtain, meet people to curtain becalm with
And the demand of protection privacy, the excessive concern so as to avoid people to curtain provide good living environment for people.
It is understood that although the present invention has been disclosed in the preferred embodiments as above, above-described embodiment not to
Limit the present invention.For any person skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications all are made to technical solution of the present invention using the technology contents of the disclosure above, or are revised as
With the equivalent embodiment of variation.Therefore, every content without departing from technical solution of the present invention is right according to the technical essence of the invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments still fall within the range of technical solution of the present invention protection
It is interior.