Summary of the invention
The present invention provides a kind of instant processing methods of outdoor scene image, have built the human body of high-precision doorway environment
Recognition mechanism, while detection also based on bathroom indoor and outdoor light intensity and comparing, to determine whether to start outside bathroom room
Human body target detection, and determine there are when human body target, improve the luminous intensity of outdoor lamp, reduce the hair of indoor lamp
Luminous intensity, to improve the secret protection ability of bathroom.
According to an aspect of the present invention, a kind of instant processing method of outdoor scene image is provided, the method includes making
With the instant processing platform of outdoor scene image based on the detection of bathroom indoor and outdoor light intensity and to compare and reduce outdoor people
To the indoor visual resolving power of bathroom, the instant processing platform of outdoor scene image includes: member
Indoor light measuring instrument is arranged in bathroom, for surveying to the indoor current light intensity of the bathing
Amount, to obtain indoor light intensity, and exports the indoor light intensity;
Outdoor light measuring instrument is arranged outside bathroom, for surveying to the current light intensity outside the bathroom
Amount to obtain outdoor light intensity, and exports the outdoor light intensity;
Optical ray analysis equipment is connect, for connecing respectively with the indoor light measuring instrument and the outdoor light measuring instrument
The indoor light intensity and the outdoor light intensity are received, and is less than the outdoor light intensity in the indoor light intensity
And when being more than or equal to preset strength difference with the difference of the outdoor light intensity, indoor inclined dark signal is issued, in the room light
When line intensity is less than the outdoor light intensity and is less than preset strength difference with the difference of the outdoor light intensity, emit beam
Homogeneous signal issues indoor partially bright signal when the indoor light intensity is more than or equal to the outdoor light intensity;
Gun-shaped picture pick-up device is arranged outside bathroom, connect with the Optical ray analysis equipment, for receiving the room
When interior inclined dark signal, the camera operation for starting the scene outside to bathroom is also used to receiving to export outdoor scene image
When the light homogeneous signal or the indoor bright signal partially, stop the camera operation of the scene outside to bathroom;
Pixel value obtains equipment, connect with the gun-shaped picture pick-up device, each in the outdoor scene image for obtaining
Red green component value, black and white component value and the champac component value of a pixel;
Redundancy calculates equipment, obtains equipment with the pixel value and connect, for receiving the red green component of each pixel
Value, black and white component value and champac component value carry out redundancy to the red green component value of each pixel and judge to determine the picture
Whether vegetarian refreshments is red green component redundant sub-pixels point, carries out redundancy to the black and white component value of each pixel and judges to determine and be somebody's turn to do
Whether pixel is black and white component redundant sub-pixels point, carries out redundancy to the champac component value of each pixel and judges with determination
Whether the pixel is champac component redundant sub-pixels point.
Therefore, the present invention at least has following two inventive point:
(1) detection based on bathroom indoor and outdoor light intensity and compare, to determine whether to start the people outside bathroom room
Body target detection, and determining there are when human body target, the luminous intensity of outdoor lamp is improved, the strong light of indoor lamp is reduced
Degree, to reduce outdoor personnel to the indoor visual resolving power of bathroom;
(2) redundancy based on the red green component value of each pixel, black and white component value and champac component value in image
Analysis and judgement, determine each composition pixel of target region, thus ensure that succeeding target detection precision.
Specific embodiment
The embodiment of the instant processing platform of outdoor scene image of the invention will be described in detail below.
The plane figure and weather, economic condition in bathroom space, culture, living habit, house person are constituted, and equipment is big
Small, form has much relations.Therefore above there are many forms for layout, such as have and several sanitary equipment groups are woven in a space
, it also splits in several small spaces.Three kinds of dual-purpose type, self and compromise type forms can be divided by summing up.(1) solely
Vertical type bathroom, the bathroom independent such as bathroom, lavatory, washing room, referred to as self.The advantages of self is each room
It can use simultaneously, can especially reduce and interfere with each other in peak period, each room definite functions are easy to use, comfortably.It lacks
Point is that spatial area occupancy is more, and construction cost is high.(2) dual-purpose type bathroom concentrates on the sanitary wares such as bathtub, washing basin, closet
In one space, referred to as dual-purpose type.Laundry individually is set up, housework work can be made easy, efficient;Washing room therefrom independently goes out
Come, the function as dressing room becomes more clear.Washing room is located at the intermediate cup that can double as lavatory and bathroom, and health is empty
Between in inner part every and total entrance is only set at one, is conducive to being laid out and section space-efficient way.The advantages of dual-purpose type is to save
Space, economy, pipeline arrangement are simple etc..The disadvantage is that influencing other people use when a people occupies bathroom;In addition, area
When smaller, the spaces such as storage are difficult to be arranged, and are not suitable for populous family.It is generally not suitable for putting washing machine in dual-purpose type, because
The moistures such as balneation will affect the service life of washing machine.(3) compromise type bathroom, the basic equipment in sanitary space, part independent part
Divide the case where being put at one referred to as compromise type.The advantages of compromise type is the opposite some spaces of saving, combines freer, disadvantage
When being that part sanitary installation is set to a Room, the phenomenon that still interfering with each other.
Current bathroom is due to taking into account hand-washing function, generally semi-closed state, for the ability of secret protection
Deficiency can not carry out corresponding privacy preserving operations according to the actual conditions of passing human body.
In order to overcome above-mentioned deficiency, the present invention has built a kind of instant processing method of outdoor scene image, the method packet
It includes using the instant processing platform of outdoor scene image based on the detection of bathroom indoor and outdoor light intensity and to compare and reduce room
Outer personnel pass through the variation gram of light to the indoor visual resolving power of bathroom, the instant processing platform of outdoor scene image
The defect of bathroom secret protection scarce capacity is taken.
The instant processing platform of outdoor scene image shown according to an embodiment of the present invention includes:
Indoor light measuring instrument is arranged in bathroom, for surveying to the indoor current light intensity of the bathing
Amount, to obtain indoor light intensity, and exports the indoor light intensity;
Outdoor light measuring instrument is arranged outside bathroom, for surveying to the current light intensity outside the bathroom
Amount to obtain outdoor light intensity, and exports the outdoor light intensity;
Optical ray analysis equipment is connect, for connecing respectively with the indoor light measuring instrument and the outdoor light measuring instrument
The indoor light intensity and the outdoor light intensity are received, and is less than the outdoor light intensity in the indoor light intensity
And when being more than or equal to preset strength difference with the difference of the outdoor light intensity, indoor inclined dark signal is issued, in the room light
When line intensity is less than the outdoor light intensity and is less than preset strength difference with the difference of the outdoor light intensity, emit beam
Homogeneous signal issues indoor partially bright signal when the indoor light intensity is more than or equal to the outdoor light intensity;
Gun-shaped picture pick-up device is arranged outside bathroom, connect with the Optical ray analysis equipment, for receiving the room
When interior inclined dark signal, the camera operation for starting the scene outside to bathroom is also used to receiving to export outdoor scene image
When the light homogeneous signal or the indoor bright signal partially, stop the camera operation of the scene outside to bathroom;
Pixel value obtains equipment, connect with the gun-shaped picture pick-up device, each in the outdoor scene image for obtaining
Red green component value, black and white component value and the champac component value of a pixel;
Redundancy calculates equipment, obtains equipment with the pixel value and connect, for receiving the red green component of each pixel
Value, black and white component value and champac component value carry out redundancy to the red green component value of each pixel and judge to determine the picture
Whether vegetarian refreshments is red green component redundant sub-pixels point, carries out redundancy to the black and white component value of each pixel and judges to determine and be somebody's turn to do
Whether pixel is black and white component redundant sub-pixels point, carries out redundancy to the champac component value of each pixel and judges with determination
Whether the pixel is champac component redundant sub-pixels point;
Pixel judges equipment, calculates equipment with the redundancy and connect, for belonging to red green component redundancy when pixel
When any two type in pixel, black and white component redundant sub-pixels point and champac component redundant sub-pixels point, the pixel is judged
For pixel to be processed;
Pixel processing equipment judges that equipment is connect with the pixel, for by the institute in the outdoor scene image
Pixel to be handled is formed by pattern and successively carries out Image erosion processing and image expansion processing, to obtain figure to be identified
Case, and human testing is carried out to the pattern to be identified, signal is obtained when detecting human body, to issue human body, and not
When detecting target, human body lossing signal is issued;
Indoor light adjustment equipment is connect with pixel processing equipment and indoor lamp respectively, for receive it is described
When human body obtains signal, the indoor lamp is adjusted to turn down the current luminous power of the indoor lamp;
Outdoor light adjustment equipment, connect with pixel processing equipment and outdoor lamp respectively, for receive it is described
When human body obtains signal, the outdoor lamp is adjusted so that the current luminous power of the outdoor lamp is turned up.
Then, continue to carry out further the specific structure of the instant processing platform of outdoor scene image of the invention
It is bright.
In the instant processing platform of outdoor scene image:
Redundancy, which judges to determine whether the pixel is red green component, to be carried out to the red green component value of each pixel
Redundant sub-pixels point comprises determining that the pixel region of the preset shape centered on the pixel, is based on the pixel region
The red green component value of interior all pixels point determines whether the pixel is red green component redundant sub-pixels point.
In the instant processing platform of outdoor scene image:
Redundancy, which judges to determine whether the pixel is black and white component, to be carried out to the black and white component value of each pixel
Redundant sub-pixels point comprises determining that the pixel region of the preset shape centered on the pixel, is based on the pixel region
The black and white component value of interior all pixels point determines whether the pixel is black and white component redundant sub-pixels point.
In the instant processing platform of outdoor scene image:
Redundancy, which judges to determine whether the pixel is champac component, to be carried out to the champac component value of each pixel
Redundant sub-pixels point comprises determining that the pixel region of the preset shape centered on the pixel, is based on the pixel region
The champac component value of interior all pixels point determines whether the pixel is champac component redundant sub-pixels point.
Can also include: in the instant processing platform of outdoor scene image
Indoor lamp is arranged in bathroom, for carrying out lighting to the indoor environment of bathroom;
Wherein, the indoor light adjustment equipment is receiving human body lossing signal, stops carrying out the indoor lamp
It adjusts.
Can also include: in the instant processing platform of outdoor scene image
Outdoor lamp is arranged outside bathroom, for carrying out lighting to the environment outside bathroom room;
Wherein, the outdoor light adjustment equipment is receiving human body lossing signal, stops carrying out the outdoor lamp
It adjusts.
In the instant processing platform of outdoor scene image:
The indoor lamp is identical with the type of the outdoor lamp, the indoor light adjustment equipment and the outside light
The type of light adjustment equipment is identical.
It is and described in addition, can also include: indoor manual adjustment equipment in the instant processing platform of outdoor scene image
Indoor lamp connection, carries out manual adjustment for the lighting to indoor lamp and the outdoor scene image is located immediately
It can also include: outdoor manual adjustment equipment in platform, be connect with the outdoor lamp, be shone for the light to outdoor lamp
Bright carry out manual adjustment.
Using the instant processing platform of outdoor scene image of the invention, for bathroom in the prior art to secret protection
The limited technical problem of ability passes through red green component value, black and white component value and champac based on each pixel in image point
The analysis and judgement of the redundancy of magnitude determine each composition pixel of target region, beat for subsequent human testing
Lower data basis, it is most important that, detection also based on bathroom indoor and outdoor light intensity and compare, to determine whether that starting is washed
Human body target detection outside bathroom room, and determining there are the luminous intensity of outdoor lamp when human body target, is improved, it reduces indoor
The luminous intensity of lamps and lanterns reduces the probability of privacy exposure to reduce outdoor personnel to the indoor visual resolving power of bathroom.
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, anything that does not depart from the technical scheme of the invention are 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.