Summary of the invention
The present invention provides a kind of device distribution image-recognizing methods, can be based on point of toilet facility each in washroom
Cloth situation determines the analyzed area in acquisition image, so that the operand of image analysis is reduced, meanwhile, based on default human body
Characteristics of image carries out object detection to the object subgraph in analyzed area, when the quantity of the object group imaging vegetarian refreshments detected is big
When being equal to presetted pixel point number, identification success signal is issued, plays and passes through the corresponding voice document of alarm signal with passerby.
Specifically, the present invention at least has the inventive point of following key:
(1) distribution situation based on toilet facility each in washroom determines the analyzed area in acquisition image, to drop
The low operand of image analysis, improves the speed and efficiency of image analysis;
(2) by the analysis of the change degree of the pixel value of the pixel to every a line, will the violent multiple rows of variation as
Object is expert to be used for subsequent object detection, to reduce the image range of object detection.
According to an aspect of the present invention, a kind of device distribution image-recognizing method is provided, this method includes using washing
Device distribution Platform of Image Recognition is with the distribution situation determination of toilet facility each in based on washroom to passerby by corresponding
Audio alert mode, the toilet facility distributed image identifying platform includes:
First start line extract equipment, using the rightmost side of the toilet facility of washroom rightmost point as starting point, with washroom
The rightmost side point being in same level on crack between a door and its frame with the rightmost side of the toilet facility of washroom rightmost point is terminal, is obtained
First start line;
Second start line extract equipment, using the leftmost side point of the leftmost toilet facility in washroom as starting point, with washroom
Being in the leftmost side point in same level with the leftmost side point of the leftmost toilet facility in washroom on crack between a door and its frame is terminal, is obtained
Second start line;
Region analyzing device connects respectively at the first start line extract equipment and the second start line extract equipment
It connects, to receive first start line and second start line;
Wherein, the region analyzing device be also used to wall where the crack between a door and its frame of washroom to washroom crack between a door and its frame to sidewalls it
Between region in, obtain region between first start line and second start line using as target identification region.
Specific embodiment
The embodiment of toilet facility distributed image identifying platform of the invention is carried out specifically below with reference to accompanying drawings
It is bright.
Washroom is exactly that lavatory, toilet, bathing pool are collectively referred to as.The washroom of house is generally divided into dedicated and public.Specially
Only serve master bedroom;It is common to be connected with public aisle, it is public by other kinsfolks and guest.It can according to layout
It is divided into self, dual-purpose type and three kinds of compromise type.Semi open model, open and closed can be divided into according to form.At present relatively
The popular semi open model for being to discriminate between dry zoning.
The effect of passing people's sight is completely enclosed since the doorway of washroom is unable to reach, when that there are pedestrians is passing
When, consciously or unconsciously between can spy upon the indoor secret situation of washing, therefore, it is necessary to a kind of effective alarm mechanisms, are expert at
When people's sight can spy upon into washroom, carries out and alarm operates.
In order to overcome above-mentioned deficiency, the present invention has built a kind of device distribution image-recognizing method, and this method includes using
Toilet facility distributed image identifying platform passes through so that the distribution situation of toilet facility each in based on washroom is determining with passerby
Corresponding audio alert mode.
Fig. 1 is the structural schematic diagram according to the toilet facility distributed image identifying platform shown in embodiment of the present invention, institute
The multiple toilet facilities of platform are stated, specifically, the platform includes:
First start line extract equipment, using the rightmost side of the toilet facility of washroom rightmost point as starting point, with washroom
The rightmost side point being in same level on crack between a door and its frame with the rightmost side of the toilet facility of washroom rightmost point is terminal, is obtained
First start line;
Second start line extract equipment, using the leftmost side point of the leftmost toilet facility in washroom as starting point, with washroom
Being in the leftmost side point in same level with the leftmost side point of the leftmost toilet facility in washroom on crack between a door and its frame is terminal, is obtained
Second start line.
Then, continue to carry out further the specific structure of toilet facility distributed image identifying platform of the invention
It is bright.
Can also include: in the toilet facility distributed image identifying platform
Region analyzing device connects respectively at the first start line extract equipment and the second start line extract equipment
It connects, to receive first start line and second start line;
Wherein, the region analyzing device be also used to wall where the crack between a door and its frame of washroom to washroom crack between a door and its frame to sidewalls it
Between region in, obtain region between first start line and second start line using as target identification region.
Can also include: in the toilet facility distributed image identifying platform
Panorama acquires equipment, in the region of wall where washroom crack between a door and its frame is arranged in washroom crack between a door and its frame opposite between the walls
Wall top on, for being adopted to the region progress realtime graphic of wall where the crack between a door and its frame of washroom to washroom crack between a door and its frame opposite between the walls
Collection, to obtain real time panoramic image;
Distance measuring equipment, setting in panorama acquisition equipment, for detect where the crack between a door and its frame of washroom wall to
Wall top in the region of washroom crack between a door and its frame opposite between the walls, wall is to washroom crack between a door and its frame to sidewalls where to washroom crack between a door and its frame
Between region in the distance between ground, to be exported as camera distance.
Can also include: in the toilet facility distributed image identifying platform
Image segmentation apparatus acquires equipment with the panorama respectively and the distance measuring equipment is connect, for being based on institute
It states camera distance and is partitioned into target identification subgraph corresponding with the target identification region from the real time panoramic image;
First Morphological scale-space equipment, connect with described image splitting equipment, for receiving the target identification subgraph,
Image erosion processing is executed to the target identification subgraph, to obtain and export corrosion image;
Second Morphological scale-space equipment is connect with the first Morphological scale-space equipment, for receiving the etch figures
Picture executes image expansion processing to the corrosion image, and goes acnode unless each to the image obtained after expansion process, to obtain
It obtains and exports expanding image;
Ingredient obtains equipment, connect with the second Morphological scale-space equipment, for receiving the expanding image, from institute
The cyan component that each pixel is obtained in expanding image, magenta component, yellow color component and black component are stated, it will be each
The numerical value that cyan component, magenta component, the yellow color component of a pixel obtain after being multiplied with black component carries out out biquadratic
Operation, to obtain the component list registration value of each pixel;
Vector measurement equipment obtains equipment with the ingredient and connect, for receiving the component list registration value of each pixel,
And according to the ownership of each pixel row classifying to each pixel, to obtain multiple pixels of every a line, also
For the component list registration value of multiple pixels of every a line to be formed one-dimensional vector;
Vector Processing equipment is connect with the vector measurement equipment, for receiving each one-dimensional vector of each row, and to every
One-dimensional vector degree of the being changed analysis of one row, to obtain the corresponding change degree of the row, exports each variation of each row
Degree;
Body detection device is connect with the Vector Processing equipment, for receiving each change degree of each row, and to each row
Each change degree carry out numerical ordering from small to large, and using the multiple rows for the forward preset quantity that sorts as object row,
The image-region that multiple object rows are formed obtains object subgraph after carrying out morphological image process, based on default human body image
Feature carries out object detection to the object subgraph, when the quantity of the object group imaging vegetarian refreshments detected is more than or equal to default picture
When vegetarian refreshments number, identification success signal is issued, when the quantity of the object group imaging vegetarian refreshments detected is less than presetted pixel point number
When, issue recognition failures signal;
Audio alert equipment is arranged in washroom, connect with the body detection device, for being identified as receiving
When function signal, plays and pass through the corresponding voice document of alarm signal with passerby, be also used to receiving the recognition failures signal
When, play voice document corresponding with normal state signal.
In the toilet facility distributed image identifying platform:
The distance measuring equipment includes ultrasonic transmitting element, ultrasonic wave receiving unit and distance analysis unit;
Wherein, the distance analysis unit connects with the ultrasonic transmitting element and the ultrasonic wave receiving unit respectively
It connects, receives reflection for the time based on ultrasonic transmitting element transmitting ultrasonic wave, the ultrasonic wave receiving unit and surpass
The time of sound wave and ultrasonic transmission rate determine the camera distance.
In the toilet facility distributed image identifying platform:
In the distance measuring equipment, the ultrasonic transmission rate is based on from wall where the crack between a door and its frame of washroom to washing
Wall top in the region of room crack between a door and its frame opposite between the walls to wall where the crack between a door and its frame of washroom to washroom crack between a door and its frame opposite between the walls
Region in ground between transmission medium characteristic and change.
In the toilet facility distributed image identifying platform:
In the distance measuring equipment, the ultrasonic transmission rate is based on real time temperature and changes.
Can also include: in the toilet facility distributed image identifying platform
Temperature testing equipment, in the region of wall where washroom crack between a door and its frame is set to washroom crack between a door and its frame opposite between the walls
Wall top on;
Wherein, the temperature testing equipment is connect with the distance measuring equipment, for detecting and exporting real time temperature.
In addition, can also include smoke sensor device in the toilet facility distributed image identifying platform, for washroom
Interior smokescope is detected and is alarmed.Used smoke sensor device can be ion type smog sensor and photo-electric smog
Sensor.
Ion type smog sensor, internal to be sensed using ion type smog, ion type smog sensor is a kind of technology
Advanced, stable and reliable in work sensor is widely used in each fire protection alarm system, and performance is much better than gas sensing resistance class
Fire-alarm.
Photoelectric smoke sensor, inside have an optics labyrinth, infrared tube is installed, infrared receiving tube when smokeless
It can not receive the infrared light of infrared transmitting tube sending, when flue dust enters optics labyrinth, by reflecting, reflecting, reception pipe is received
Infrared light, whether intelligent alarm circuit judges are more than threshold value, if it exceeds sounding an alarm.
Optical detector of fire smoke can be divided into dim light formula and scattering type, be described below: (1) dim light formula photoelectric mist detects
Device, the sensing chamber of the detector are provided with luminescent device and sensitive device.Under normal circumstances, sensitive device receives photophore
Certain light quantity that part issues;And when there is smog, emitting light into for luminescent device is blocked by smog, receives sensitive device
Light quantity reduce, photoelectric current reduce, detector issue alarm signal.(2) scattering type photoelectric smoke detector, the detector
Detection interior is also equipped with luminescent device and sensitive device.Under normal circumstances, sensitive device is not receive luminescent device sending
Light, because without generating photoelectric current.In the case of fire, when smog enters sensing chamber, due to the effect of smoke particle, make to send out
The light of optical device transmitting generates diffusion, and this diffused light is received by sensitive device, and the impedance of sensitive device is made to change, and generates
Photoelectric current, to realize the function that smoke signal is changed into electric signal, detector receives signal and then judges whether to need to send out
Alarm signal out.
Using toilet facility distributed image identifying platform of the invention, for shortage washroom Privacy Alert in the prior art
The technical issues of mechanism, passes through corresponding voice with passerby by the way that the distribution situation based on toilet facility each in washroom is determining
Alarm mode, wherein in relevant image procossing, by the analysis of the change degree of the pixel value of the pixel to every a line,
The violent multiple rows of variation are expert at as object to be used for subsequent object detection, to reduce the image of object detection
Range improves the speed of object detection.
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.