Community security system based on cloud computing
Technical Field
The invention relates to the technical field of community security systems, in particular to a community security system based on cloud computing.
Background
The main function of the community security system is to improve the security effect, and the greatest threat to the lives and properties of residents in the aspect of security comprises two aspects: on one hand, the damage caused by human is caused, on the other hand, the damage caused by non-human is caused, and the community security system is used for preventing the unsafe factors through effective measures so as to create a safe and comfortable living environment for community residents.
The community security system mainly comprises a residential alarm subsystem, an access control subsystem, a video monitoring subsystem, an electronic patrol subsystem and a parking management subsystem, and in the existing community security system, the shooting position and the light supplement condition are difficult to adjust according to different distances of all external people and when the light is insufficient or too strong, so that the effect of improving the image definition is achieved, the external people are prevented from being difficult to accurately distinguish, the opportunity of illegal persons getting into the machine is given, and the sufficient precaution effect cannot be achieved;
in the file with the publication number of CN108550247A, the security APP is installed on the mobile phone by the owner, and when a stranger knocks the door, a reminder is sent, and an alarm is sent to the property of the residential district to urge the residential district to check, so as to reduce the problem of theft of the residential district.
In order to solve the above-mentioned drawbacks, a technical solution is now provided.
Disclosure of Invention
The invention aims to provide a community security system based on cloud computing, wherein the distance of an external person is combined with the external ambient light intensity to control the movement of components in an entrance guard identification device, so that the shooting position of a camera 1 can be adjusted according to the distance condition and the illumination condition of each external person at that time, the image acquisition definition is improved, the external person is prevented from being difficult to accurately distinguish, the opportunity for lawless persons to enter the airplane is provided, and the negative influence caused by the fact that light directly irradiates the face of the external person can be avoided while the light supplement effect is achieved by adjusting the illumination position of a light supplement lamp 6;
the invention respectively carries out assignment type calibration on the in-out time point, the in-out time length and the in-out times of the external personnel, carries out weight distribution according to the influence ratio of the in-out time point, the in-out time length and the in-out times of the external personnel on the familiarity degree of the householder, obtains a householder alternating current coefficient Zi, compares the householder alternating current coefficient Zi with a preset value z, transmits the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer canthus of the external personnel face image corresponding to Zi to an image checking module when the householder alternating current coefficient Zi is larger than the preset value z, generates a secondary matching signal and transmits the secondary matching signal to a signal processing module when the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer canthus transmitted in the householder confirming module and the image analyzing module are the, need not the householder promptly and confirm again, only be the notice effect in transmitting foreigner's facial image to the householder's cell-phone, and then can carry out the modeling analysis to each foreigner's facial image to distinguish the foreigner who communicates closely with the householder, and accomplish the autonomic learning stage according to this, and then can also reduce the handling capacity of householder when guaranteeing the safety precaution effect.
The technical problems to be solved by the invention are as follows:
(1) how to provide an effective way to adjust the shooting position and the light supplement condition aiming at different distances of each external person and when the light is insufficient or over-strong, thereby achieving the effect of improving the image definition so as to avoid the occurrence of the possibility that the external person is difficult to be accurately distinguished and the illegal person gets into the airplane;
(2) how to perform modeling analysis on the face images of all the external people to distinguish the external people closely communicating with the householder, and accordingly, the autonomous learning stage is completed, so that the processing amount of the householder can be reduced while the safety protection effect is ensured.
The purpose of the invention can be realized by the following technical scheme:
a residential area security system based on cloud computing comprises a data acquisition module, a matching comparison module, a signal processing module, a controller, an action instruction module, an image analysis module, a personnel acquisition module, a householder confirmation module and an image checking module;
the data acquisition module is used for acquiring voice element information of external personnel in real time and transmitting the voice element information to the matching comparison module, the voice element information comprises pitch data, tone intensity data, tone length data and tone color data, different external personnel are different sound producing bodies, and the sound produced by each sound producing body is different in pitch, tone intensity, tone length and tone color;
after receiving the real-time voice element information, the matching comparison module compares pitch data, tone intensity data, tone length data and tone data with a preset range a, a preset range b, a preset range c and a preset range d respectively, generates a primary matching signal when the pitch data, the tone intensity data, the tone length data and the tone data are all located in respective preset ranges, and generates an indication action signal under other conditions and transmits the two signals to the signal processing module;
the signal processing module controls a community security entrance guard lock to be unlocked when receiving a real-time primary matching signal, controls a distance sensor and an ambient light sensor in entrance guard identification equipment to be electrified and operated when receiving a real-time indication action signal, collects position information of external personnel in real time by the distance sensor, collects ambient light intensity data in real time by the ambient light sensor, and transmits the position information and the ambient light intensity data to the action instruction module through the controller, wherein the position information comprises vertical distance data between the external personnel and a camera and linear distance data between the forehead of the external personnel and the camera;
after receiving the real-time position information and the ambient light intensity data, the action instruction module starts to compare and execute the operation, and the specific steps are as follows:
s1: acquiring real-time position information, marking vertical distance data between an external person and the camera as Q, marking straight line distance data between the forehead of the external person and the camera as W, wherein Q and W are positioned on the same plane, and calculating the distance between the forehead of the external person and the camera according to a formula
Obtaining angle data between the external person and the camera;
s2: comparing the angle data alpha with a preset range e, and when the angle data alpha is larger than the preset range e, controlling an electric motor in the entrance guard identification equipment to work, wherein the electric motor drives a threaded rod to rotate clockwise, and the threaded rod drives a threaded sleeve to descend until the angle data alpha is within the preset range e; when the angle data alpha is smaller than the preset range e, controlling an electric motor in the entrance guard identification equipment to work, driving a threaded rod to rotate anticlockwise by the electric motor, driving a threaded sleeve to ascend until the angle data alpha is located in the preset range e, and when the angle data alpha is located in the preset range e, not controlling the electric motor in the entrance guard identification equipment to work, and when the threaded rod drives the threaded sleeve to move to be tightly attached to the electric motor or a limiting block, the angle data alpha is still not located in the preset range e, closing the electric motor to stop working, and further adjusting the shooting position of the camera according to the angle condition formed by an external person and the camera so as to improve the accuracy of image acquisition;
s3: simultaneously acquiring real-time ambient light intensity data, calibrating the real-time ambient light intensity data as R, and comparing the ambient light intensity data R with a preset range R;
when the requirement that the ambient light intensity data R is larger than a preset range R is met, controlling an electromagnet in the entrance guard identification equipment to work, electrifying the electromagnet to generate magnetic force to drive a telescopic spring to gradually move upwards and contract, driving a first sliding block to gradually slide upwards by the telescopic spring, driving a first movable rod to move by the first sliding block, adopting a matching structure according to a second movable rod and the first movable rod, sliding the second movable rod on the first movable rod, and movably connecting the first movable rod with the first sliding block and the electromagnet by hinges, namely, the first movable rod is in a circular descending process during movement until a buffering sponge block at one end of the first movable rod is in contact with a light-transmitting plate;
when the ambient light intensity data R is less than the preset range R, an electric push rod in the entrance guard identification device is controlled to work, the electric push rod pushes out and drives a rack to move downwards, the rack is meshed with a gear according to the condition that the rack is movably connected with the gear through a bearing, namely, the rack drives the gear to rotate clockwise, the rack is fixed with a light supplement lamp through a connecting column according to the condition that the gear drives the light supplement lamp to move upwards to a preset position, the light supplement lamp is controlled to be turned on, when the ambient light intensity data R is within the preset range R, the electric push rod in the entrance guard identification device is not controlled to work, the light supplement lamp is directly controlled to be turned on at the same time, the preset position is a position where an acute angle between the light supplement lamp and a horizontal plane is thirty degrees, and then the shooting light of a camera is adjusted according to the illumination condition of an external person at that time so as to improve, the illumination position of the light supplement lamp is adjusted, so that the light supplement effect can be achieved, and meanwhile, the negative influence caused by the fact that light rays directly irradiate the faces of external people can be avoided;
s4: finally, controlling the camera to be started to collect real-time facial images of the outsiders, generating image signals and transmitting the image signals to the image analysis module;
the image analysis module transmits facial images of foreign people to the householder mobile phone when receiving a real-time image signal, the householder mobile phone is electrically connected with the image analysis module and the community security access lock, the community security access lock is unlocked after confirmation of the householder, and the image signal is subjected to modeling analysis to obtain a householder communication degree coefficient Zi and is transmitted to the householder confirmation module;
the image analysis module is used for transmitting the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the face image of the foreign person corresponding to the Zi to the image checking module when the householder AC coefficient Zi is larger than the preset value z, and transmitting the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the face image of the foreign person in the image signal acquired in real time to the image checking module;
the image checking module is used for comparing the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip, which are transmitted by the householder confirming module and the image analyzing module, generating a secondary matching signal and transmitting the secondary matching signal to the signal processing module when the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip are all the same, and directly controlling the opening of the cell security access lock by the secondary matching signal.
Further, the specific steps of the modeling analysis operation are as follows:
d1: acquiring an image signal in real time, calibrating the distance from the nose tip to the outer canthus in a facial image of an external person to be T, calibrating the distance from the nose tip to the center of the chin to be Y and calibrating the distance from the nose tip to the outer eyebrow tip to be U, judging that the external person is the same person and generating a collecting signal when T, Y and U are positioned in corresponding preset ranges T, Y and U in sequence, transmitting the collecting signal to a person collecting module to extract the recorded in-out time point, in-out time length and in-out times of the external person, and starting to record the in-out time point, in-out time length and in-out times of the external person when the person collecting module receives the real-time collecting signal and exchanging data with an image analysis module;
d2: the method comprises the following steps of obtaining the number of times of entering and exiting of each external person in a period of time, sequentially dividing the number of times of entering and exiting of each external person into a first order of magnitude, a second order of magnitude and a third order of magnitude, and calibrating a number of times coefficient Fi according to the number of times, wherein i is 1. Acquiring the number of times of entering and exiting of each external person in a period of time, and performing assignment operation on the number of times of entering and exiting of each external person in the period of time, wherein when the number of times of entering and exiting of each external person in the period of time respectively corresponds to a first order of magnitude, a second order of magnitude and a third order of magnitude, the number of times coefficients Fi respectively correspond to preset values P1, P2 and P3, P1 is greater than P2 and greater than P3, and F1 when i is 1 represents the number of times of entering and exiting of the first external person in the period of time;
the method comprises the steps of obtaining the in-out time length of each external person in a period of time, sequentially dividing the in-out time length into a first time length section, a second time length section and a third time length section, and calibrating a time length coefficient Gi according to the in-out time length, wherein i is 1. Acquiring the in-out time length of each external person in a period of time, and performing assignment operation on the in-out time length, wherein when the in-out time length of each external person in a period of time respectively corresponds to a first time length section, a second time length section and a third time length section, time length coefficients Gi respectively correspond to preset values K1, K2 and K3, and K1 is greater than K2 and greater than K3, and G1 when i is 1 is represented as the in-out time length of the first external person in a period of time;
the method comprises the steps of obtaining the access time points of each external person in a period of time, sequentially dividing the times of the access time points in a preset time period J into a first time magnitude, a second time magnitude and a third time magnitude, and calibrating time point coefficients Hi, i being 1. Acquiring the number of times that the access time point of each external person in a period of time is located in a preset time period J, and performing assignment operation on the number of times, when the number of times that the access time point of each external person in a period of time is located in the preset time period J respectively corresponds to a first time level, a second time level and a third time level, time point coefficients Hi respectively correspond to preset values V1, V2 and V3, and V1 is greater than V2 and is greater than V3, while H1 when i is 1 represents the number of times that the access time point of the first external person in a period of time is located in the preset time period J;
d3: firstly, carrying out weight distribution on the influence ratio of the obtained times coefficient Fi, the obtained duration coefficient Gi and the obtained time point coefficient Hi on the familiarity degree of a householder, sequentially distributing the obtained times coefficient Fi, the obtained duration coefficient Gi and the obtained time point coefficient Hi to preset values f, g and h, wherein f is greater than g and is greater than h, and obtaining the AC coefficient of the householder within a period of time by a formula Zi f + Gi g + Hi h, i is 1.. n;
and a period of time is calibrated to be a period of fifteen consecutive days, while the preset period of time J is calibrated to be a period of time between 10 and 22.
Further, the first order of magnitude, the second order of magnitude, and the third order of magnitude correspond to 30 times or more, 29 times to 15 times, and 14 times or less, in this order; the first time period, the second time period and the third time period correspond to more than 60 hours, 59 hours to 15 hours and less than 14 hours in sequence; the first time scale, the second time scale and the third time scale correspond to more than 20 times, 19 times to 8 times and less than 7 times in sequence.
Furthermore, the entrance guard identification equipment consists of a camera, a distance sensor, a light-transmitting plate, a rack, a fixed column, a light supplementing lamp, a gear, a rectangular opening, an electric push rod, a first movable rod, a shell, a second movable rod, an electromagnet, a telescopic spring, a slide rail, a first slide block, a limiting block, a threaded rod, an ambient light sensor, a second slide block, a threaded sleeve, a stop block and an electric motor, a light-transmitting plate is embedded in one side of the shell, a rectangular opening is arranged at the center of one side of the light-transmitting plate, a fixed column is arranged inside the rectangular opening, a gear is movably connected outside the fixed column through a bearing, one side of the gear, which is far away from the shell, is fixed with the light supplementing lamp through a connecting column, an electric push rod is fixed on the inner wall of the top of the shell, which is close to the light transmitting plate, through a screw, a rack is fixed on one side of the electric push rod through a screw, and the rack is meshed with the gear;
the light-transmitting plate embedded type electromagnetic window is characterized in that a slide rail is embedded in the center of one side, opposite to the light-transmitting plate, of the shell, stop blocks are fixed at two ends of the slide rail through spot welding, a first slide block and a second slide block are installed on the top-down portion of the inside of the slide rail respectively, the outer end of the first slide block is movably connected with a first movable rod through a hinge, one end of the first movable rod is fixedly provided with a buffering sponge block through bonding and is matched with the light-transmitting plate, an electromagnet is fixed on the inner wall of the top, opposite to the first slide block, of the shell, a telescopic spring is arranged between the electromagnet and the first slide block, a second movable rod is movably connected to one side of the electromagnet through a hinge, the second movable rod and the first movable rod are of a matched structure, the second movable rod slides on the first movable rod, and is five centimeters away from the end point of the first movable rod, The second movable rod and the first sliding block are both components made of nonmetal materials, and the telescopic spring is a component made of metal materials so as to avoid the influence on the relative motion between the first movable rod and the second movable rod when the electromagnet is electrified to generate magnetic force and gradually drive the telescopic spring to contract;
one side of second slider has the screw sleeve through the bolt fastening, screw sleeve's one side has the camera through the fix with screw, the top of camera is provided with distance sensor and ambient light sensor respectively, the bottom inner wall department of casing has electric motor through the fix with screw, shaft coupling swing joint has the threaded rod in one side of electric motor, the threaded rod passes the screw sleeve, and one end is fixed with the stopper through spot welding, camera, light filling lamp, electric putter, electro-magnet and electric motor all with external power source electric connection.
The invention has the beneficial effects that:
1. the voice element information of the external personnel is collected in real time by a data collection module, and is transmitted to a matching comparison module to compare pitch data, tone intensity data, tone length data and tone data in the voice element information with a preset range a, a preset range b, a preset range c and a preset range d respectively so as to generate a primary matching signal and an indication action signal, and is transmitted to a signal processing module, the signal processing module controls a cell security entrance guard lock to be opened when receiving the real-time primary matching signal, and controls a distance sensor to collect the position information of the external personnel in real time and an ambient light sensor to collect ambient light intensity data in real time when receiving the real-time indication action signal, and the ambient light sensor transmits the ambient light intensity data to an action instruction module through a controller;
the action instruction module compares the position information with the ambient light intensity data together to execute operation, and performs operation according to the vertical distance data Q between the external person and the camera in the position information and the linear distance data W between the forehead of the external person and the camera and the formula
Obtaining angle data between the external person and the camera;
comparing the angle data alpha with a preset range e, and controlling an electric motor in the entrance guard identification equipment to work when the angle data alpha is larger than the preset range e, wherein the electric motor drives a threaded rod to rotate clockwise, and the threaded rod drives a threaded sleeve to descend until the angle data alpha is within the preset range e; when the angle data alpha is smaller than the preset range e, an electric motor in the entrance guard identification equipment is controlled to work, the electric motor drives a threaded rod to rotate anticlockwise, the threaded rod drives a threaded sleeve to ascend until the angle data alpha is located in the preset range e, and then the shooting position of the camera is adjusted according to the angle condition between an external person and the camera, so that the image acquisition accuracy is improved;
meanwhile, comparing the ambient light intensity data R with a preset range R, when the ambient light intensity data R is larger than the preset range R, controlling the electromagnet in the entrance guard identification equipment to work, electrifying the electromagnet to generate magnetic force to drive the telescopic spring to gradually move upwards and contract, driving the first sliding block to gradually slide upwards by the telescopic spring, driving the first movable rod to move by the first sliding block, and adopting a matching structure according to the second movable rod and the first movable rod, sliding the second movable rod on the first movable rod, and movably connecting the first movable rod, the first sliding block, the second movable rod and the electromagnet through hinges, namely, the first movable rod is in a circumferential descending process during movement until the buffering sponge block at one end of the first movable rod is in contact with the light-transmitting plate;
when the requirement that the ambient light intensity data R is smaller than a preset range R is met, an electric push rod in the entrance guard identification device is controlled to work, the electric push rod pushes out and drives a rack to move downwards, the rack is meshed with a gear according to the condition that a bearing is movably connected between a fixed column and the gear, namely the rack drives the gear to rotate clockwise, the rack is fixed with a light supplement lamp through a connecting column according to the condition that the gear drives the light supplement lamp to move upwards to a preset position, the light supplement lamp is controlled to be turned on at the same time, the shooting light of a camera is adjusted according to the illumination condition of the external person at the moment, the image acquisition definition is improved, and the negative influence caused by the fact that the light directly irradiates the face of the external person can be avoided while the light supplement effect is achieved by adjusting the irradiation position of the;
finally, the camera is controlled to be started to collect real-time face images of the external personnel, image signals are generated and transmitted to the image analysis module, and then shooting positions and light supplement conditions can be adjusted according to different distances of the external personnel and insufficient or excessive light so as to avoid the situation that the external personnel are difficult to accurately distinguish and the illegal persons can take the airplane to enter the camera and cannot take a sufficient precaution effect;
2. the image analysis module of the invention also carries out modeling analysis on the image signal, and when the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the facial image of an external person in the image signal are all positioned within the corresponding preset ranges T, Y and U in sequence, the image analysis module judges that the external person is the same person and generates an acquisition signal to be transmitted to the person acquisition module so as to extract the recorded access time point, access time and access times of the external person;
firstly, calibrating and assigning a time coefficient Fi according to the number of times of entering and exiting of each external person within a period of time, calibrating and assigning a time coefficient Gi according to the length of entering and exiting of each external person within a period of time, and finally calibrating and assigning a time coefficient Hi according to the number of times of entering and exiting of each external person within a period of time and the number of times of locating the time point in a preset time period J; carrying out weight distribution according to the influence of the time coefficient Fi, the duration coefficient Gi and the time point coefficient Hi on the familiarity degree of the householder, calculating the householder communication coefficient in a period of time by a formula Zi & ltFi & gtf & ltGi & gt & ltg & gt & ltHi & gt, and transmitting the householder communication coefficient to a householder confirmation module;
the householder confirmation module compares a householder alternating current coefficient Zi with a preset value z, when the householder alternating current coefficient Zi is larger than the preset value z, the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the face image of the foreign person corresponding to Zi are transmitted to the image checking module, and the image analysis module also transmits the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the face image of the foreign person in real-time image signals to the image checking module;
the image checking module generates a secondary matching signal and transmits the secondary matching signal to the signal processing module when the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the center of the chin and the distance U from the nose tip to the outer eyebrow tip which are transmitted in the householder confirming module and the image analyzing module are the same, the security access lock of the community is directly controlled to be unlocked by the secondary matching signal, namely, the householder does not need to confirm the secondary matching signal, the facial image of the foreign person is transmitted to the householder mobile phone only for notification, then the facial image of each foreign person can be subjected to model analysis, so that the foreign person closely communicated with the householder is distinguished, and the autonomous learning stage is completed according to the foreign person, and the processing amount of the householder can be reduced while the security effect is ensured.
Drawings
In order to facilitate understanding for those skilled in the art, the present invention will be further described with reference to the accompanying drawings.
FIG. 1 is a block diagram of the system of the present invention;
FIG. 2 is a schematic view of the overall front cross-sectional structure of the present invention;
in the figure: 1. a camera; 2. a distance sensor; 3. a light-transmitting plate; 4. a rack; 5. fixing a column; 6. a light supplement lamp; 7. a gear; 8. a rectangular opening; 9. an electric push rod; 10. a first movable bar; 11. a housing; 12. a second movable bar; 13. an electromagnet; 14. a tension spring; 15. a slide rail; 16. a first slider; 17. a limiting block; 18. a threaded rod; 19. an ambient light sensor; 20. a second slider; 21. a threaded sleeve; 22. a stopper; 23. an electric motor.
Detailed Description
As shown in fig. 1-2, a cloud computing-based community security system includes a data acquisition module, a matching comparison module, a signal processing module, a controller, an action instruction module, an image analysis module, a personnel acquisition module, a householder confirmation module, and an image verification module;
the data acquisition module is used for acquiring voice element information of external personnel in real time and transmitting the voice element information to the matching comparison module, the voice element information comprises pitch data, tone intensity data, tone length data and tone color data, different external personnel are different sound producing bodies, and the sound produced by each sound producing body is different in pitch, tone intensity, tone length and tone color;
after receiving the real-time voice element information, the matching comparison module compares pitch data, tone intensity data, duration data and tone data with a preset range a, a preset range b, a preset range c and a preset range d respectively, generates a primary matching signal when the condition that the pitch data, the tone intensity data, the tone length data and the tone data are all located in the respective preset ranges, and generates an indication action signal under other conditions and transmits the two signals to the signal processing module;
the signal processing module controls a community security entrance guard lock to be opened when receiving a real-time primary matching signal, controls a distance sensor 2 and an ambient light sensor 19 in entrance guard identification equipment to be electrified and operated when receiving a real-time indication action signal, collects position information of external personnel in real time by the distance sensor 2, collects ambient light intensity data in real time by the ambient light sensor 19, and transmits the position information and the ambient light intensity data to the action instruction module through the controller, wherein the position information comprises vertical distance data between the external personnel and a camera 1 and linear distance data between the forehead of the external personnel and the camera 1;
after receiving the real-time position information and the ambient light intensity data, the action instruction module starts to compare and execute the operation, and the specific steps are as follows:
s1: acquiring real-time position information, marking vertical distance data between an external person and the camera 1 as Q, marking straight line distance data between the forehead of the external person and the camera 1 as W, wherein Q and W are positioned on the same plane, and calculating the distance between the forehead of the external person and the camera 1 according to a formula
To obtain the angle data between the foreign person and the camera 1;
s2: comparing the angle data alpha with a preset range e, and when the angle data alpha is larger than the preset range e, controlling an electric motor 23 in the entrance guard identification equipment to work, wherein the electric motor 23 drives a threaded rod 18 to rotate clockwise, and the threaded rod 18 drives a threaded sleeve 21 to descend until the angle data alpha is within the preset range e; when the angle data alpha is smaller than the preset range e, controlling an electric motor 23 in the entrance guard identification device to work, driving a threaded rod 18 to rotate anticlockwise by the electric motor 23, driving a threaded sleeve 21 to ascend by the threaded rod 18 until the angle data alpha is located in the preset range e, and when the angle data alpha is located in the preset range e, not controlling the electric motor 23 in the entrance guard identification device to work, and when the threaded rod 18 drives the threaded sleeve 21 to move to be tightly attached to the electric motor 23 or a limiting block 17, and the angle data alpha is still not located in the preset range e, closing the electric motor 23 to stop working, and further adjusting the shooting position of the camera 1 according to the angle condition formed by an external person and the camera 1 so as to improve the accuracy of image acquisition;
s3: simultaneously acquiring real-time ambient light intensity data, calibrating the real-time ambient light intensity data as R, and comparing the ambient light intensity data R with a preset range R;
when the ambient light intensity data R is larger than the preset range R, controlling an electromagnet 13 in the entrance guard identification device to work, electrifying the electromagnet 13 to generate magnetic force to drive a telescopic spring 14 to gradually move upwards and contract, driving a first sliding block 16 to gradually slide upwards by the telescopic spring 14, driving a first movable rod 10 to move by the first sliding block 16, and according to the fact that a second movable rod 12 and the first movable rod 10 are in a matched structure, the second movable rod 12 slides on the first movable rod 10, and the first movable rod 10, the first sliding block 16, the second movable rod 12 and the electromagnet 13 are movably connected through hinges, namely the first movable rod 10 is in a circumferential descending process during movement until a buffering sponge block at one end of the first movable rod 10 is in contact with the light-transmitting plate 3;
when the ambient light intensity data R is smaller than the preset range R, an electric push rod 9 in the entrance guard identification device is controlled to work, the electric push rod 9 pushes out and drives a rack 4 to move downwards, the rack 4 is meshed with a gear 7 according to the condition that the rack 4 is movably connected with the gear 7 through a bearing, namely the rack 4 drives the gear 7 to rotate clockwise, the gear 7 is fixed with a light supplement lamp 6 through a connecting column, namely the gear 7 drives the light supplement lamp 6 to move upwards to a preset position, the light supplement lamp 6 is controlled to be turned on at the same time, when the ambient light intensity data R is within the preset range R, the electric push rod 9 in the entrance guard identification device is not controlled to work, the light supplement lamp 6 is directly controlled to be turned on at the same time, the preset position is a position where an acute angle between the light supplement lamp 6 and the horizontal plane is thirty degrees, and further according to the illumination condition of an external person, the shooting light of the camera 1 is adjusted to improve the image acquisition definition, and the adjustment of the irradiation position of the light supplement lamp 6 can play a role in light supplement and simultaneously avoid the negative influence caused by the fact that the light directly irradiates the face of an external person;
s4: finally, the camera 1 is controlled to be started to collect real-time face images of the outsiders, generate image signals and transmit the image signals to the image analysis module;
when receiving a real-time image signal, the image analysis module transmits a facial image of an external person to a householder mobile phone, the householder mobile phone is electrically connected with the image analysis module and the community security access lock, the community security access lock is opened after confirmation of the householder, and the image signal is subjected to modeling analysis to obtain a householder exchange degree coefficient Zi and is transmitted to the householder confirmation module;
the image analysis module is used for transmitting the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the face image of the alien person in the image signals acquired in real time to the image checking module;
the image checking module is used for comparing the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the center of the chin and the distance U from the nose tip to the outer eyebrow tip which are transmitted by the householder confirming module and the image analyzing module, generating a secondary matching signal and transmitting the secondary matching signal to the signal processing module when the distance T from the nose tip to the center of the chin, the distance Y from the nose tip to the center of the chin and the distance U from the nose tip to the outer eyebrow tip are all the same, directly controlling the opening of the security access lock of the cell by the signal processing module, not needing the householder to confirm again, transmitting the facial image of the foreign person to the householder mobile phone only for notification, and not generating any signal for transmission when the AC coefficient.
Further, the concrete steps of the modeling analysis operation are as follows:
d1: acquiring an image signal in real time, calibrating the distance from the nose tip to the outer canthus in a facial image of an external person to be T, calibrating the distance from the nose tip to the center of the chin to be Y and calibrating the distance from the nose tip to the outer eyebrow tip to be U, judging that the external person is the same person and generating a collecting signal when T, Y and U are positioned in corresponding preset ranges T, Y and U in sequence, transmitting the collecting signal to a person collecting module to extract the recorded in-out time point, in-out time length and in-out times of the external person, and starting to record the in-out time point, in-out time length and in-out times of the external person when the person collecting module receives the real-time collecting signal and exchanging data with an image analysis module;
d2: the method comprises the following steps of obtaining the number of times of entering and exiting of each external person in a period of time, sequentially dividing the number of times of entering and exiting of each external person into a first order of magnitude, a second order of magnitude and a third order of magnitude, and calibrating a number of times coefficient Fi according to the number of times, wherein i is 1. Acquiring the number of times of entering and exiting of each external person in a period of time, and performing assignment operation on the number of times of entering and exiting of each external person in the period of time, wherein when the number of times of entering and exiting of each external person in the period of time respectively corresponds to a first order of magnitude, a second order of magnitude and a third order of magnitude, the number of times coefficients Fi respectively correspond to preset values P1, P2 and P3, P1 is greater than P2 and greater than P3, and F1 when i is 1 represents the number of times of entering and exiting of the first external person in the period of time;
the method comprises the steps of obtaining the in-out time length of each external person in a period of time, sequentially dividing the in-out time length into a first time length section, a second time length section and a third time length section, and calibrating a time length coefficient Gi according to the in-out time length, wherein i is 1. Acquiring the in-out time length of each external person in a period of time, and performing assignment operation on the in-out time length, wherein when the in-out time length of each external person in a period of time respectively corresponds to a first time length section, a second time length section and a third time length section, time length coefficients Gi respectively correspond to preset values K1, K2 and K3, and K1 is greater than K2 and greater than K3, and G1 when i is 1 is represented as the in-out time length of the first external person in a period of time;
the method comprises the steps of obtaining the access time points of each external person in a period of time, sequentially dividing the times of the access time points in a preset time period J into a first time magnitude, a second time magnitude and a third time magnitude, and calibrating time point coefficients Hi, i being 1. Acquiring the number of times that the access time point of each external person in a period of time is located in a preset time period J, and performing assignment operation on the number of times, when the number of times that the access time point of each external person in a period of time is located in the preset time period J respectively corresponds to a first time level, a second time level and a third time level, time point coefficients Hi respectively correspond to preset values V1, V2 and V3, and V1 is greater than V2 and is greater than V3, while H1 when i is 1 represents the number of times that the access time point of the first external person in a period of time is located in the preset time period J;
d3: firstly, carrying out weight distribution on the influence ratio of the obtained times coefficient Fi, the obtained duration coefficient Gi and the obtained time point coefficient Hi on the familiarity degree of a householder, sequentially distributing the obtained times coefficient Fi, the obtained duration coefficient Gi and the obtained time point coefficient Hi to preset values f, g and h, wherein f is greater than g and is greater than h, and obtaining the AC coefficient of the householder within a period of time by a formula Zi f + Gi g + Hi h, i is 1.. n;
and a period of time is calibrated to be a period of fifteen consecutive days, while the preset period of time J is calibrated to be a period of time between 10 and 22.
Further, the first order of magnitude, the second order of magnitude and the third order of magnitude correspond to more than 30 times, 29 times to 15 times and less than 14 times in sequence; the first time period, the second time period and the third time period correspond to more than 60 hours, 59 hours to 15 hours and less than 14 hours in sequence; the first time scale, the second time scale and the third time scale correspond to more than 20 times, 19 times to 8 times and less than 7 times in sequence.
Further, the entrance guard identification equipment comprises a camera 1, a distance sensor 2, a light-transmitting plate 3, a rack 4, a fixed column 5, a light supplement lamp 6, a gear 7, a rectangular opening 8, an electric push rod 9, a first movable rod 10, a shell 11, a second movable rod 12, an electromagnet 13, a telescopic spring 14, a slide rail 15, a first slider 16, a limiting block 17, a threaded rod 18, an ambient light sensor 19, a second slider 20, a threaded sleeve 21, a stop block 22 and an electric motor 23, wherein the light-transmitting plate 3 is embedded in one side of the shell 11, the rectangular opening 8 is formed in the center of one side of the light-transmitting plate 3, the fixed column 5 is installed inside the rectangular opening 8, the gear 7 is movably connected to the outside of the fixed column 5 through a bearing, one side of the gear 7, which is far away from the shell 11, is fixed with the light supplement lamp 6 through the connecting column, the, one side of the electric push rod 9 is fixed with a rack 4 through a screw, and the rack 4 is meshed with the gear 7;
a slide rail 15 is embedded in the center of one side of the shell 11 opposite to the light-transmitting plate 3, two ends of the slide rail 15 are fixed with a stop 22 by spot welding, a first slide block 16 and a second slide block 20 are respectively installed inside the slide rail 15 from top to bottom, the outer end of the first slide block 16 is movably connected with a first movable rod 10 by a hinge, one end of the first movable rod 10 is fixedly provided with a buffering sponge block by bonding and matched with the light-transmitting plate 3, the inner wall of the top of the shell 11 opposite to the first slide block 16 is fixedly provided with an electromagnet 13 by a screw, a telescopic spring 14 is arranged between the electromagnet 13 and the first slide block 16, one side of the electromagnet 13 is movably connected with a second movable rod 12 by a hinge, the second movable rod 12 and the first movable rod 10 are of a matched structure, the second movable rod 12 slides on the first movable rod 10, and the distance between the sliding end point and the end point of the first movable rod 10 is five centimeters, the first movable rod 10, the second movable rod 12 and the first slider 16 are all components made of nonmetal materials, and the extension spring 14 is a component made of metal materials, so that the influence on the relative motion between the first movable rod 10 and the second movable rod 12 is avoided when the electromagnet 13 is electrified to generate magnetic force and gradually drive the extension spring 14 to contract;
one side of second slider 20 is passed through the bolt fastening and is had threaded sleeve 21, one side of threaded sleeve 21 is passed through the fix with screw and is had camera 1, the top of camera 1 is provided with distance sensor 2 and ambient light sensor 19 respectively, the bottom inner wall department of casing 11 is passed through the fix with screw has electric motor 23, there is threaded rod 18 one side of electric motor 23 through shaft coupling swing joint, threaded rod 18 passes threaded sleeve 21, and one end is fixed with stopper 17 through spot welding, camera 1, light filling lamp 6, electric putter 9, electro-magnet 13 and electric motor 23 all with external power source electric connection.
A residential area security system based on cloud computing is characterized in that in the working process, voice element information of external personnel is collected in real time by a data collection module and is transmitted to a matching comparison module, the matching comparison module compares pitch data, tone intensity data, tone length data and tone data in the voice element information with a preset range a, a preset range b, a preset range c and a preset range d respectively to generate a primary matching signal and an indication action signal, the two signals are transmitted to a signal processing module, the signal processing module controls an residential area security entrance guard lock to be opened when receiving the real-time primary matching signal, controls a distance sensor 2 and an ambient light sensor 19 in entrance guard recognition equipment to be electrified to work when receiving the real-time indication action signal, and collects position information of the external personnel in real time by the distance sensor 2, the ambient light sensor 19 is used for acquiring ambient light intensity data in real time and transmitting the position information and the ambient light intensity data to the action instruction module through the controller;
the action instruction module compares the position information with the ambient light intensity data together to execute operation, firstly, according to the vertical distance data Q between the external person and the camera 1 in the position information and the linear distance data W between the forehead of the external person and the camera 1, wherein the Q and the W are positioned on the same plane, and then according to a formula
To obtain the angle data between the foreign person and the camera 1;
comparing the angle data alpha with a preset range e, and when the angle data alpha is larger than the preset range e, controlling an electric motor 23 in the entrance guard identification equipment to work, wherein the electric motor 23 drives a threaded rod 18 to rotate clockwise, and the threaded rod 18 drives a threaded sleeve 21 to descend until the angle data alpha is within the preset range e; when the angle data alpha is smaller than the preset range e, controlling an electric motor 23 in the entrance guard identification device to work, driving a threaded rod 18 to rotate anticlockwise by the electric motor 23, driving a threaded sleeve 21 to ascend by the threaded rod 18 until the angle data alpha is located in the preset range e, and when the angle data alpha is located in the preset range e, not controlling the electric motor 23 in the entrance guard identification device to work, and when the threaded rod 18 drives the threaded sleeve 21 to move to be tightly attached to the electric motor 23 or a limiting block 17, and the angle data alpha is still not located in the preset range e, closing the electric motor 23 to stop working, and further adjusting the shooting position of the camera 1 according to the angle condition formed by an external person and the camera 1 so as to improve the accuracy of image acquisition;
meanwhile, comparing the ambient light intensity data R with a preset range R, when the ambient light intensity data R is larger than the preset range R, controlling an electromagnet 13 in the entrance guard identification device to work, electrifying the electromagnet 13 to generate magnetic force to drive a telescopic spring 14 to gradually move upwards and contract, driving a first sliding block 16 to gradually slide upwards by the telescopic spring 14, driving a first movable rod 10 to move by the first sliding block 16, and according to the fact that a second movable rod 12 and the first movable rod 10 are in a matched structure, the second movable rod 12 slides on the first movable rod 10, and the first movable rod 10, the first sliding block 16, the second movable rod 12 and the electromagnet 13 are movably connected through hinges, namely the first movable rod 10 is in a circular descending process during movement until a buffer sponge block at one end of the first movable rod 10 is in contact with the light-transmitting plate 3;
when the ambient light intensity data R is smaller than the preset range R, an electric push rod 9 in the entrance guard identification device is controlled to work, the electric push rod 9 pushes out and drives a rack 4 to move downwards, the rack 4 is meshed with a gear 7 according to the condition that the rack 4 is movably connected with the gear 7 through a bearing, namely the rack 4 drives the gear 7 to rotate clockwise, the gear 7 is fixed with a light supplement lamp 6 through a connecting column, namely the gear 7 drives the light supplement lamp 6 to move upwards to a preset position, the light supplement lamp 6 is controlled to be turned on at the same time, when the ambient light intensity data R is within the preset range R, the electric push rod 9 in the entrance guard identification device is not controlled to work, the light supplement lamp 6 is directly controlled to be turned on at the same time, the preset position is a position where an acute angle between the light supplement lamp 6 and the horizontal plane is thirty degrees, and further according to the illumination condition of an external person, the shooting light of the camera 1 is adjusted to improve the image acquisition definition, and the adjustment of the irradiation position of the light supplement lamp 6 can play a role in light supplement and simultaneously avoid the negative influence caused by the fact that the light directly irradiates the face of an external person;
finally, the camera 1 is controlled to be started to collect real-time face images of the external personnel, image signals are generated and transmitted to the image analysis module, and then shooting positions and light supplement conditions can be adjusted according to different distances of the external personnel and insufficient or excessive light so as to avoid the situation that the external personnel are difficult to accurately distinguish and give opportunity for lawless persons to enter the airplane and cannot play a sufficient precaution role;
when the image analysis module receives a real-time image signal, the image analysis module transmits a facial image of an external person to the householder mobile phone, the householder mobile phone is electrically connected with the image analysis module and the cell security access lock, the householder confirms the cell security access lock to be unlocked, the image signal is subjected to modeling analysis, and when the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the facial image of the external person in the image signal are all located within the corresponding preset ranges T, Y and U in sequence, the facial image of the external person is judged as the same person and a collected signal is generated to be transmitted to the person collection module to extract the recorded access time point, access duration and access times of the external person, and the access times of each external person in a period of time are calibrated and assigned by the access times coefficient Fi, calibrating the time length coefficient Gi and assigning the time length coefficient Gi to the time length of the entering and exiting of each external person in a period of time, calibrating the time point coefficient Hi and assigning the time number of the entering and exiting time point of each external person in a period of time in the preset time period J, carrying out weight distribution on the influence ratio of the time number coefficient Fi, the time length coefficient Gi and the time point coefficient Hi to the familiarity degree of the householder, and obtaining the householder exchange degree coefficient in a period of time according to a formula of Fi f + Gi g + Hi h and transmitting the householder exchange degree coefficient to the householder confirmation module;
the householder confirmation module compares a householder AC coefficient Zi with a preset value z, when the householder AC coefficient Zi is larger than the preset value z, the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the facial image of the foreign person corresponding to Zi are all transmitted to the image checking module, and the image analysis module also transmits the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the chin center position and the distance U from the nose tip to the outer eyebrow tip of the facial image of the foreign person in the image signal acquired in real time to the image checking module;
the image checking module generates a secondary matching signal and transmits the secondary matching signal to the signal processing module when the distance T from the nose tip to the outer canthus, the distance Y from the nose tip to the center of the chin and the distance U from the nose tip to the outer eyebrow tip which are transmitted by the householder confirming module and the image analyzing module are the same, and the secondary matching signal directly controls the opening of the security access lock of the community, namely the facial image of the foreign person is transmitted to the householder mobile phone only for notification without confirming by the householder, and when the AC coefficient Zi of the householder is less than or equal to the preset value z, no signal is generated for transmission; and then can carry out the modeling analysis to each external personnel face image to distinguish the external personnel who communicate closely with the householder, and accomplish the autonomous learning stage according to this, and then can also reduce the handling capacity of householder when guaranteeing the safety precaution effect.
The foregoing is merely exemplary and illustrative of the present invention and various modifications, additions and substitutions may be made by those skilled in the art to the specific embodiments described without departing from the scope of the invention as defined in the following claims.