An intelligent control device for community security and patrol monitoring
Through the battery pick-and-place mechanism and camera rotation mechanism of the intelligent control device, the problems of complex installation and inaccurate weather identification of traditional community security monitoring systems are solved, reducing battery maintenance costs and improving monitoring effects, ensuring that the system is protected under severe weather conditions. of normal operation.
Patent Information
- Application Number
- CN202410283141.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-13
AI Technical Summary
Traditional community security monitoring systems have problems such as complex installation, many monitoring blind spots, and inaccurate recognition of weather conditions, resulting in high maintenance costs and low monitoring effects. Especially in bad weather, the equipment may not work properly.
An intelligent control device is designed, including a battery pick-and-place mechanism and a camera rotation mechanism. It automatically activates the electric push rod through the pressure sensor for battery installation and replacement, realizes automatic removal of the battery tray and multi-angle rotation of the camera. It combines the temperature detector and Servo motor, real-time monitoring and identification of weather conditions.
It reduces battery maintenance costs, simplifies the battery installation and replacement process, improves monitoring range and accuracy, identifies weather conditions in real time, facilitates managers to adjust patrol strategies, and improves community security effects.
Smart Images

Figure CN118042085B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent security and monitoring, and in particular to an intelligent control device for community security and patrol monitoring. Background Art
[0002] In modern society, with the acceleration of urbanization and the increase in population density, community security and patrol monitoring issues are becoming increasingly prominent. Traditional community security monitoring systems mainly rely on human patrols and limited camera monitoring, which have problems such as complex installation, many blind spots in monitoring, and inaccurate identification of weather conditions. In order to solve these problems, there is an urgent need for an intelligent control device for community security and patrol monitoring to improve the efficiency and accuracy of community security monitoring.
[0003] For example, Chinese patent 201510420445.X discloses an intelligent control device for large-scale community security and patrol monitoring, which has fixed nodes respectively set up in each fixed area divided in the community, and mobile nodes held by patrol personnel. Each fixed node and mobile node are connected to each other through wireless signals, and summarized through the gateway node to intelligently record the location information and walking trajectory of the patrol personnel. However, the above device still has the following shortcomings in specific use: the lack of a convenient battery installation design may cause the installation, maintenance and replacement process of the equipment to become cumbersome and time-consuming, which will increase the maintenance cost and workload of the community security monitoring system. And the lack of the function of accurately identifying weather conditions may make it impossible for managers to adjust the patrol monitoring strategy according to actual weather conditions. This will reduce the effectiveness of community security monitoring and may cause the monitoring equipment to fail to work properly under severe weather conditions.
[0004] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides an intelligent control device for community security and patrol monitoring, which has the advantages of reducing battery maintenance costs, real-time monitoring and identifying current weather conditions, facilitating managers to adjust patrol monitoring strategies according to weather conditions, and improving community security effects, thereby solving the problem of lack of convenient battery installation design and managers being unable to adjust patrol monitoring strategies according to actual weather conditions.
[0006] In order to achieve the above advantages of reducing the maintenance cost of the battery, real-time monitoring and identifying the current weather conditions, facilitating managers to adjust patrol monitoring strategies according to weather conditions, and improving the effect of community security, the specific technical solutions adopted by the present invention are as follows:
[0007] An intelligent control device for community security and patrol monitoring comprises a security vehicle, wherein a battery pick-up and placement mechanism is arranged at the top of the security vehicle, a battery is arranged inside the battery pick-up and placement mechanism, a warning light is arranged on one side of the battery pick-up and placement mechanism and at the top of the security vehicle; a camera rotation mechanism is arranged at the top of the battery pick-up and placement mechanism, a connecting plate is arranged on the side of the camera rotation mechanism, and a temperature detector is arranged on the top of the connecting plate; an irradiation lamp is arranged at one end of the security vehicle, and a guard bar is arranged on the side of the irradiation lamp.
[0008] Furthermore, in order to simplify the battery installation and replacement process and reduce the overall maintenance cost of the device, the battery removal and placement mechanism includes an outer shell arranged at the top of the security vehicle, an anti-theft door is arranged on one side of the outer shell, and a pressure sensor is arranged on the side of the outer shell close to the anti-theft door; fixing bars are arranged on the inner side walls of the outer shell at both ends, a slide groove is arranged in the fixing bar, a battery tray is arranged between the two fixing bars, two sliders are arranged at both ends of the battery tray, and the sliders slide in cooperation with the slide groove, and a block is arranged between the two sliders on the same side and in the slide groove; a first anti-slip pad is arranged on the inner side wall of the battery tray, a second anti-slip pad is arranged on the inner bottom of the battery tray, and the battery is located in the middle of the top of the second anti-slip pad.
[0009] Furthermore, in order to automatically start the electric push rod after opening the anti-theft door, so that the battery tray and the battery can be automatically removed from the outer shell, and the battery maintenance is convenient, and at the same time, the stroke of the electric push rod is enlarged, so that the battery tray and the battery can move a longer distance in a limited space, making it easier to take and put the battery, a connecting frame is provided at the bottom end of the battery tray, a first rack is provided at the bottom end of the connecting frame, a second rack is provided on the side of the first rack and at the top of the security vehicle, an electric push rod is provided at the inner bottom of the outer shell, a gear is provided on the output shaft of the electric push rod and between the first rack and the second rack, and the gear is meshed with the first rack and the second rack; a pressure sensor is used to control the start and stop of the electric push rod;
[0010] Controlling the start and stop of the electric actuator includes the following steps:
[0011] If the anti-theft door is closed, the pressure sensor detects the pressure and transmits the signal to the controller;
[0012] The controller drives the electric push rod to return to the initial position according to the received signal;
[0013] If the anti-theft door is opened, the pressure of the pressure sensor disappears and the controller detects a signal change;
[0014] The controller restarts the electric push rod and makes the output shaft of the electric push rod reach the maximum stroke;
[0015] When the electric push rod reaches the maximum stroke, the controller sends a power-off command to stop the electric push rod from moving.
[0016] Furthermore, in order to realize multi-angle rotation of the camera and improve the monitoring range and effect, the camera rotation mechanism includes a supporting base arranged at the top of the outer shell, the top of the supporting base is provided with a pillar, the inner top of the pillar is provided with a mounting hole, the top of the mounting hole is provided with a bearing placement hole, a servo motor is provided inside the mounting hole, a bearing is provided in the bearing placement hole, the top of the output shaft of the servo motor passes through the middle of the bearing and is connected to a steering head, and a camera is provided on the side wall of the steering head; a plurality of circular holes are provided inside the supporting base, bolts are provided in the circular holes, and the bottom ends of the bolts are threadedly connected to the top of the outer shell.
[0017] Furthermore, the camera is used to acquire community images, identify weather conditions based on the community images, extract targets within the community images, and identify objects within the community images based on the extracted targets.
[0018] Furthermore, identifying weather conditions based on community images includes the following steps:
[0019] Convert the obtained series of community images into a grayscale image sequence with a size of M×N;
[0020] Read a frame of grayscale image and calculate the weather behavior index of this frame based on the brightness, sharpness, contrast and mean neighborhood ratio of the grayscale image w 0. w 1. w 2, and w 0. w 1. w 2 respectively represent the probability that the grayscale image of the frame belongs to sunny day, cloudy day and foggy day;
[0021] According to the weather behavior index, the corresponding threshold is compared to determine whether the grayscale image belongs to a sunny day. If so, the counter of sunny days is accumulated and the subsequent judgment is skipped. If not, the grayscale image is continued to be determined whether it belongs to a cloudy day.
[0022] Determine whether the grayscale image belongs to a cloudy day. If so, accumulate the cloudy day counter and skip the subsequent judgment. If not, continue to determine whether the grayscale image belongs to a foggy day.
[0023] Determine whether the grayscale image belongs to foggy weather. If so, accumulate the foggy weather counter and skip the subsequent judgment;
[0024] If the grayscale image does not belong to sunny, cloudy or foggy days, the weather type corresponding to the largest weather behavior indicator is selected, and the counter of this type is accumulated. If the counter of a certain weather type reaches the maximum threshold, it is halved, otherwise it is cleared;
[0025] According to the sizes of the counters of the three weather types of sunny, cloudy and foggy, the largest one is selected as the weather type of the current frame grayscale image, and the weather type of the current frame is output, and the next frame grayscale image is processed at the same time.
[0026] Furthermore, when the weather condition is sunny, the grayscale value of the grayscale image is divided into 8 intervals, and a corresponding initial labeling amount is assigned to each pixel point, and the grayscale estimation value of the pixel point is calculated based on the maximum labeling amount. At the same time, the image information of the current frame and the previous frame is combined, and the grayscale value of the target is judged and determined according to the threshold value;
[0027] When the weather condition is cloudy, the grayscale image is restored to a normal light level through linear grayscale transformation, and the grayscale value of the target is determined through threshold judgment;
[0028] When the weather condition is foggy, the grayscale mean f1 of the upper 1 / 4 area of the grayscale image and the pixel mean f2 greater than f1 are calculated;
[0029] Combine the atmospheric light intensity value of the previous frame and f2 to calculate the atmospheric light intensity value of the current frame;
[0030] Set the intensity coefficient and calculate the estimated value of the atmospheric dissipation function;
[0031] The dehazed image is obtained according to the dehazed model, and the grayscale value of the target is determined by threshold judgment.
[0032] Furthermore, the weather behavior index w 0. w 1. w The calculation formula for 2 is:
[0033] In the formula, a 0. a 1. a 2. b 0. b 1. b 2. c 0. c 1. c 2. d 0. d 1. d 2 are weight coefficients;
[0034] L Indicates brightness, S Indicates sharpness, C Indicates contrast, M Represents the proportion of the mean neighborhood.
[0035] Furthermore, after determining the grayscale value of the target, a binary image is obtained, and the target area and the background area in the binary image are segmented, and the target area is extracted from the segmented binary image.
[0036] Compared with the prior art, the present invention provides an intelligent control device for community security and patrol monitoring, which has the following beneficial effects:
[0037] (1) The present invention realizes real-time monitoring and intelligent analysis of people, vehicles, environment and other aspects in the community, improves the efficiency and accuracy of community security monitoring, reduces the maintenance cost of batteries, monitors and identifies current weather conditions in real time, facilitates management personnel to adjust patrol monitoring strategies according to weather conditions, and improves the effectiveness of community security.
[0038] (2) By setting up a battery removal mechanism, the battery installation and replacement process becomes simple, reducing the overall maintenance cost of the device. After the anti-theft door is opened, the electric push rod can be automatically started, so that the battery tray and the battery can be automatically removed from the outer shell, and the battery maintenance is convenient. At the same time, through the coordinated use of the gear, the first rack and the second rack, the stroke of the electric push rod is enlarged, so that the battery tray and the battery can move a longer distance in a limited space, making it easier to take and place the battery.
[0039] (3) By setting up a camera rotation mechanism, the camera can be rotated at multiple angles to improve the monitoring range and effect. The design of the support base and pillars makes the camera rotation mechanism highly stable, ensuring that the camera is not affected by external interference during the rotation process.
[0040] (4) The present invention uses a camera to analyze community images and automatically identify weather conditions, which can provide residents with timely weather information and facilitate travel planning. By extracting and identifying targets in images, a large amount of data about the community can be collected, such as pedestrian and vehicle traffic, which can be used for community planning, resource allocation, and optimization of community services. At the same time, the recognition method in the present invention is suitable for identification on sunny, cloudy, and foggy days, and can effectively improve the recognition success rate on sunny, cloudy, and foggy days. The target extraction effect is better on sunny, cloudy, and foggy days. For other weather conditions, a classifier recognition method is used. Compared with obtaining weather information through weather forecasts, the method of the present application is more accurate and updates faster, thereby quickly obtaining weather conditions and providing information. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 is a structural schematic diagram of an intelligent control device for community security and patrol monitoring according to an embodiment of the present invention;
[0043] Figure 2 It is a schematic diagram of the internal structure of a battery pick-up and release mechanism in an intelligent control device for community security and patrol monitoring according to an embodiment of the present invention;
[0044] Figure 3 yes Figure 2 A partial enlarged view of the middle A;
[0045] Figure 4 is a schematic structural diagram of a battery tray in an intelligent control device for community security and patrol monitoring according to an embodiment of the present invention;
[0046] Figure 5 is a structural schematic diagram of an outer shell in an intelligent control device for community security and patrol monitoring according to an embodiment of the present invention;
[0047] Figure 6 It is a schematic diagram of the structure after the top of the pillar is dissected in the intelligent control device for community security and patrol monitoring according to an embodiment of the present invention;
[0048] Figure 7 It is a structural schematic diagram of a pillar in an intelligent control device for community security and patrol monitoring according to an embodiment of the present invention.
[0049] In the figure:
[0050] 1. Security vehicle; 2. Battery access mechanism; 201. Outer shell; 202. Anti-theft door; 203. Pressure sensor; 204. Fixing strip; 205. Slide groove; 206. Battery tray; 207. Slider; 208. Block; 209. First anti-skid pad; 210. Second anti-skid pad; 211. Connecting frame; 212. First rack; 213. Second rack; 214. Electric push rod; 215. Gear; 3. Battery; 4. Warning light; 5. Camera rotation mechanism; 501. Support base; 502. Pillar; 503. Mounting hole; 504. Bearing placement hole; 505. Servo motor; 506. Bearing; 507. Steering head; 508. Camera; 509. Round hole; 510. Bolt; 6. Connecting plate; 7. Temperature detector; 8. Illumination lamp; 9. Bumper. DETAILED DESCRIPTION
[0051] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention and are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in the field should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.
[0052] According to an embodiment of the present invention, an intelligent control device for community security and patrol monitoring is provided.
[0053] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1-7 As shown, the intelligent control device for community security and patrol monitoring according to an embodiment of the present invention includes a security vehicle 1, a battery pick-up and placement mechanism 2 is arranged at the top of the security vehicle 1, a battery 3 is arranged inside the battery pick-up and placement mechanism 2, and a warning light 4 is arranged on one side of the battery pick-up and placement mechanism 2 and located at the top of the security vehicle 1; a camera rotation mechanism 5 is arranged at the top of the battery pick-up and placement mechanism 2, a connecting plate 6 is arranged on the side of the camera rotation mechanism 5, and a temperature detector 7 is arranged on the top of the connecting plate 6; an irradiation lamp 8 is arranged at one end of the security vehicle 1, and a guard bar 9 is arranged on the side of the irradiation lamp 8.
[0054] With the help of the above scheme, the present invention realizes real-time monitoring and intelligent analysis of people, vehicles, environment and other aspects in the community, improves the efficiency and accuracy of community security monitoring, reduces the maintenance cost of battery 3, monitors and identifies the current weather conditions in real time, and facilitates managers to adjust patrol monitoring strategies according to weather conditions, thereby improving the effectiveness of community security.
[0055] In one embodiment, for the above-mentioned battery pick-up and placement mechanism 2, the battery pick-up and placement mechanism 2 includes an outer shell 201 arranged at the top of the security vehicle 1, an anti-theft door 202 is arranged on one side of the outer shell 201, and a pressure sensor 203 is arranged on the side of the outer shell 201 close to the anti-theft door 202; fixing bars 204 are arranged on the side walls at both ends of the inner side of the outer shell 201, and a slide groove 205 is arranged in the fixing bar 204, a battery tray 206 is arranged between the two fixing bars 204, and two ends of the battery tray 206 are arranged A slider 207 is provided, and the slider 207 is slidably matched with the slide groove 205, and a stopper 208 is provided between the two sliders 207 on the same side and in the slide groove 205; a first anti-skid pad 209 is provided on the inner side wall of the battery tray 206, and a second anti-skid pad 210 is provided on the inner bottom of the battery tray 206, and the battery 3 is located in the middle of the top of the second anti-skid pad 210; a connecting frame 211 is provided at the bottom end of the battery tray 206, and a first rack 212 is provided at the bottom end of the connecting frame 211, and the side of the first rack 212 and A second rack 213 is disposed at the top of the security vehicle 1, an electric push rod 214 is disposed at the inner bottom of the outer shell 201, a gear 215 is disposed on the output shaft of the electric push rod 214 and between the first rack 212 and the second rack 213, and the gear 215 is meshed with the first rack 212 and the second rack 213; a pressure sensor 203 is used to control the start and stop of the electric push rod 214, so that the installation and replacement process of the battery 3 becomes easier through the design of a reasonable battery tray 206 and a slide slot 205 and other structures. The device is simple and convenient, and the maintenance cost of the whole device is reduced. After the anti-theft door 202 is opened, the electric push rod 214 can be automatically started, so that the battery tray 206 and the battery 3 can be automatically removed from the outer shell 201, and the maintenance of the battery 3 is convenient. At the same time, through the coordinated use of the gear 215, the first rack 212 and the second rack 213, the travel of the electric push rod 214 is enlarged, so that the battery tray 206 and the battery 3 can move a longer distance in a limited space, making it easier to take and put the battery 3;
[0056] The coordinated use of the gear 215, the first rack 212 and the second rack 213 is a magnified mechanical structure, and its specific working principle is: the gear 215 is driven to move by the electric push rod 214. Since the gear 215 is engaged with the second rack 213 fixed in the outer shell 201, the gear 215 not only moves linearly but also rotates. The gear 215 is also engaged with the first rack 212. Therefore, the first rack 212 is not only pushed linearly by the gear 215 but also further moves forward or backward through the rotation of the gear 215. As a result, the travel of the first rack 212 and the components above it (including the battery tray 206 and the battery 3) is amplified, so that the distance that can be moved in a limited space is longer, making it easier to take and put the battery.
[0057] Controlling the start and stop of the electric push rod 214 includes the following steps:
[0058] If the anti-theft door 202 is closed, the pressure sensor 203 detects the pressure and transmits the signal to the controller;
[0059] The controller drives the electric push rod 214 to return to the initial position according to the received signal;
[0060] If the anti-theft door 202 is opened, the pressure of the pressure sensor 203 disappears, and the controller detects a signal change;
[0061] The controller restarts the electric push rod 214 and makes the output shaft of the electric push rod 214 reach the maximum stroke;
[0062] When the electric push rod 214 reaches the maximum stroke, the controller sends a power-off command to stop the electric push rod from moving. At the same time, after the electric push rod 214 is powered off, the output shaft of the electric push rod 214 moves without resistance, and after maintaining the battery 3, the battery tray 206 and the battery 3 can be easily pushed into the outer shell 201.
[0063] The working principle of the battery picking and placing mechanism 2 is: by starting the electric push rod 214, and the electric push rod 214 drives the gear 215 to move, the gear 215 rotates under the action of the second rack 213, and causes the first rack 212 to move, thereby driving the connection frame 211 at the top of the first rack 212, the battery tray 206, the battery 3, etc. to move.
[0064] In one embodiment, for the above-mentioned camera rotation mechanism 5, the camera rotation mechanism 5 includes a support base 501 arranged at the top of the outer shell 201, a pillar 502 is arranged at the top of the support base 501, a mounting hole 503 is arranged at the inner top of the pillar 502, a bearing placement hole 504 is arranged at the top of the mounting hole 503, a servo motor 505 is arranged inside the mounting hole 503, a bearing 506 is arranged in the bearing placement hole 504, the top of the output shaft of the servo motor 505 passes through the middle of the bearing 506 and is connected to a steering head 507, and a camera 508 is arranged on the side wall of the steering head 507; a plurality of circular holes 509 are arranged inside the support base 501, bolts 510 are arranged in the circular holes 509, and the bottom ends of the bolts 510 are threadedly connected to the top of the outer shell 201, thereby realizing multi-angle rotation of the camera 508 and improving the monitoring range and effect. The design of the support base 501 and the pillar 502 makes the camera rotation mechanism 5 have higher stability, ensuring that the camera 508 is not subject to external interference during the rotation process.
[0065] The working principle of the camera rotation mechanism 5 is: a stable installation base is provided for the camera 508 through the support base 501 and the support column 502. When the servo motor 505 is running, the camera 508 rotates at multiple angles along with the steering head 507, thereby achieving full coverage of the monitoring area. The design of the support base 501 and the support column 502 makes the camera rotation mechanism 5 have high stability.
[0066] In a further embodiment, the camera 508 is used to acquire community images, identify weather conditions based on the community images, extract targets within the community images, and identify objects within the community images based on the extracted targets.
[0067] In this embodiment, identifying weather conditions based on community images includes the following steps:
[0068] Convert the obtained series of community images into a grayscale image sequence with a size of M×N;
[0069] Read a frame of grayscale image and calculate the weather behavior index of this frame based on the brightness, sharpness, contrast and mean neighborhood ratio of the grayscale image w 0. w 1. w 2, and w 0. w 1. w 2 respectively represent the probability that the grayscale image of the frame belongs to sunny day, cloudy day and foggy day;
[0070] According to the weather behavior index, the corresponding threshold is compared to determine whether the grayscale image belongs to a sunny day. If so, the counter of sunny days is accumulated and the subsequent judgment is skipped. If not, the grayscale image is continued to be determined whether it belongs to a cloudy day.
[0071] Determine whether the grayscale image belongs to a cloudy day. If so, accumulate the cloudy day counter and skip the subsequent judgment. If not, continue to determine whether the grayscale image belongs to a foggy day.
[0072] Determine whether the grayscale image belongs to foggy weather. If so, accumulate the foggy weather counter and skip the subsequent judgment;
[0073] If the grayscale image does not belong to sunny, cloudy or foggy days, the weather type corresponding to the largest weather behavior indicator is selected, and the counter of this type is accumulated. If the counter of a certain weather type reaches the maximum threshold, it is halved, otherwise it is cleared;
[0074] According to the sizes of the counters of the three weather types of sunny, cloudy and foggy, the largest one is selected as the weather type of the current frame grayscale image, and the weather type of the current frame is output, and the next frame grayscale image is processed at the same time.
[0075] In this embodiment, when the weather condition is sunny, the grayscale value of the grayscale image is divided into 8 intervals, and a corresponding initial labeling amount is assigned to each pixel point, and the grayscale estimation value of the pixel point is calculated according to the maximum labeling amount. At the same time, the grayscale value of the target is judged and determined according to the threshold value in combination with the image information of the current frame and the previous frame;
[0076] When the weather condition is cloudy, the grayscale image is restored to a normal light level through linear grayscale transformation, and the grayscale value of the target is determined by threshold judgment; it should be noted that after the grayscale image is restored to a normal light level, the method for determining the grayscale value of the target is the same as when the weather condition is sunny;
[0077] When the weather condition is foggy, the grayscale mean f1 of the upper 1 / 4 area of the grayscale image and the pixel mean f2 greater than f1 are calculated;
[0078] Combine the atmospheric light intensity value of the previous frame and f2 to calculate the atmospheric light intensity value of the current frame;
[0079] Set the intensity coefficient and calculate the estimated value of the atmospheric dissipation function;
[0080] The defogging image is obtained according to the defogging model, and the gray value of the target is determined by threshold judgment. It should be noted that after obtaining the defogging image, the method of determining the gray value of the target is consistent with the weather condition being sunny.
[0081] In this embodiment, the weather behavior index w 0. w 1. w The calculation formula for 2 is:
[0082] In the formula, a 0. a 1. a 2. b 0. b 1. b 2. c 0. c 1. c 2. d 0. d 1. d 2 are weight coefficients;
[0083] L Indicates brightness, S Indicates sharpness, C Indicates contrast, M Represents the proportion of the mean neighborhood.
[0084] In this embodiment, after the grayscale value of the target is determined, a binary image is obtained, and the target area and the background area in the binary image are segmented, and the target area is extracted from the segmented binary image.
[0085] After obtaining the target area, the key points or edge information in the target area can be extracted by methods such as SIFT, SURF, HOG, etc., and classifiers such as SVM, decision tree, random forest, K-nearest neighbor, etc. can be used to identify the target. Specifically, the following steps are included:
[0086] Select a suitable classifier, such as SVM, decision tree, random forest or K-nearest neighbor, and use a labeled training data set to train the classifier. At the same time, adjust the classifier parameters through the cross-validation method to optimize the performance; use the trained classifier to classify the extracted features to obtain the target category and then identify the target.
[0087] It should be noted that the following steps are used to identify other weather types (such as rain, snow, thunderstorm, etc.):
[0088] Collect images of different weather types and preprocess them to obtain training sets and validation sets;
[0089] Train the weather type recognition model using the training set and evaluate its performance on the training set and validation set;
[0090] After the weather type recognition model is trained, it is evaluated using an independent test set to ensure the accuracy and generalization of the model;
[0091] The weather type recognition model is deployed, and other weather types (such as rain, snow, thunderstorm, etc.) are identified through the weather type recognition model.
[0092] After identifying the weather, if it is sunny, maintain the normal patrol monitoring strategy. If it is rainy or snowy, use a waterproof and snow-proof camera cover to protect the equipment, arrange patrol personnel to monitor indoors, and reduce outdoor patrols. If it is cloudy or foggy, increase the use of lighting facilities in key areas, etc. The specific patrol monitoring strategy for changing according to the weather will not be explained one by one, and those skilled in the art can make adaptive adjustments according to specific requirements.
[0093] By extracting and identifying targets in images, the number of pedestrians and vehicles per day / per period is obtained, and the distribution of pedestrian and vehicle flows in different time periods and locations is analyzed. According to the analysis results, road planning and public area design are carried out; community resources are reasonably allocated; and community services are optimized. That is, it can be used for community planning, resource allocation, and optimization of community services.
[0094] For example, on weekdays between 8:00 and 9:00 in the morning, the traffic volume on the north-south main road in a community is particularly large, causing serious congestion. At the same time, the traffic volume on the east-west secondary road is small, but the flow of people is very high because there is a school nearby.
[0095] Traffic optimization: Adding lanes on north-south arterial roads, especially during peak hours, may require temporarily adjusting some lanes to one-way traffic.
[0096] Safety measures: Speed bumps and pedestrian crossings are installed on east-west secondary roads to ensure the safety of students.
[0097] Resource allocation: Add traffic signs near schools to remind drivers to slow down, and deploy more traffic police to direct traffic during peak hours after school. The above planning adjustment measures are only examples and are not the only adjustment measures.
[0098] In order to facilitate understanding of the above technical solutions of the present invention, the working principle or operation mode of the present invention in the actual process is described in detail below.
[0099] In actual application, the security vehicle 1 is used as a mobile platform to realize real-time monitoring and intelligent analysis of people, vehicles, environment and other aspects in the community. The battery access mechanism 2 provides power to the device, the camera rotation mechanism 5 performs monitoring, the warning light 4 and the illumination light 8 provide warning and lighting functions, and the temperature detector 7 monitors and identifies the current weather conditions in real time. Through the coordinated work of the above components, the efficiency and accuracy of community security monitoring are improved, which facilitates managers to adjust patrol monitoring strategies according to weather conditions and improves the effect of community security.
[0100] In summary, the present invention realizes real-time monitoring and intelligent analysis of people, vehicles, environment and other aspects in the community, improves the efficiency and accuracy of community security monitoring, reduces the maintenance cost of the battery 3, monitors and identifies the current weather conditions in real time, facilitates the management personnel to adjust the patrol monitoring strategy according to the weather conditions, and improves the effect of community security. By setting the battery pick-up and placement mechanism 2, the installation and replacement process of the battery 3 becomes simple, and the overall maintenance cost of the device is reduced. After the anti-theft door 202 is opened, the electric push rod 214 can be automatically started, so that the battery tray 206 and the battery 3 can be automatically removed from the outer shell 201, and the maintenance of the battery 3 is convenient. At the same time, through the coordinated use of the gear 215, the first rack 212 and the second rack 213, the travel of the electric push rod 214 is enlarged, so that the battery tray 206 and the battery 3 can move a longer distance in a limited space, making it easier to take and place the battery 3. By setting the camera rotation mechanism 5, the multi-angle rotation of the camera 508 is realized, and the monitoring range and effect are improved. The design of the support base 501 and the pillar 502 makes the camera rotation mechanism 5 have high stability, ensuring that the camera 508 is not disturbed by external interference during the rotation process. The present invention analyzes the community image through the camera 508, automatically identifies the weather conditions, and can provide timely weather information for residents, which is convenient for life travel planning. By extracting and identifying the target in the image, a large amount of data about the community, such as pedestrian flow, vehicle flow, etc., can be collected. These data can be used for community planning, resource allocation and optimization of community services. At the same time, the recognition method in the present invention is suitable for the recognition of sunny days, cloudy days, and foggy days, and can effectively improve the recognition success rate of sunny days, cloudy days, and foggy days. The effect of target extraction is better on sunny days, cloudy days, and foggy days. For other weather, the classifier recognition method is adopted. Compared with obtaining weather information through weather forecast, the method of the present application is more accurate and has a faster update speed, thereby quickly obtaining weather conditions and providing information.
[0101] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "screw-on" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.
[0102] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An intelligent control device for community security and patrol monitoring, comprising a security vehicle (1), characterized in that: A battery access mechanism (2) is provided at the top of the security vehicle (1), a battery (3) is provided inside the battery access mechanism (2), and a warning light (4) is provided on one side of the battery access mechanism (2) and at the top of the security vehicle (1); A camera rotation mechanism (5) is provided at the top of the battery access mechanism (2), a connecting plate (6) is provided on the side of the camera rotation mechanism (5), and a temperature detector (7) is provided at the top of the connecting plate (6); One end of the security vehicle (1) is provided with an illumination lamp (8), and a guard bar (9) is provided on the side of the illumination lamp (8); The battery access mechanism (2) comprises an outer shell (201) arranged at the top of the security vehicle (1), an anti-theft door (202) being provided on one side of the outer shell (201), and a pressure sensor (203) being provided on a side of the outer shell (201) close to the anti-theft door (202); A fixing bar (204) is provided on both side walls at both ends of the inner portion of the outer shell (201), a slide groove (205) is provided in the fixing bar (204), a battery tray (206) is provided between the two fixing bars (204), two sliders (207) are provided at both ends of the battery tray (206), and the sliders (207) are slidably engaged with the slide groove (205), and a stopper (208) is provided between the two sliders (207) on the same side and located in the slide groove (205); A first anti-slip pad (209) is provided on the inner side wall of the battery tray (206), a second anti-slip pad (210) is provided on the inner bottom of the battery tray (206), and the battery (3) is located in the middle of the top end of the second anti-slip pad (210); A connecting frame (211) is provided at the bottom end of the battery tray (206), a first rack (212) is provided at the bottom end of the connecting frame (211), a second rack (213) is provided on the side of the first rack (212) and at the top end of the security vehicle (1), an electric push rod (214) is provided at the inner bottom of the outer shell (201), a gear (215) is provided on the output shaft of the electric push rod (214) and between the first rack (212) and the second rack (213), and the gear (215) is meshed with the first rack (212) and the second rack (213); The pressure sensor (203) is used to control the start and stop of the electric push rod (214); The control of starting and stopping the electric push rod (214) includes the following steps: When the anti-theft door (202) is closed, the pressure sensor (203) detects pressure and transmits a signal to the controller; The controller drives the electric push rod (214) to return to the initial position according to the received signal; If the anti-theft door (202) is opened, the pressure of the pressure sensor (203) disappears, and the controller detects a signal change; The controller restarts the electric push rod (214) and causes the output shaft of the electric push rod (214) to reach a maximum stroke; When the electric push rod (214) reaches the maximum stroke, the controller issues a power-off command to stop the electric push rod from moving; The camera (508) is used to obtain a community image, identify weather conditions based on the community image, extract targets within the community image, and identify objects within the community image based on the extracted targets; The method of identifying weather conditions based on community images includes the following steps: Convert the obtained series of community images into a grayscale image sequence with a size of M×N; Read a frame of grayscale image and calculate the weather behavior index of this frame based on the brightness, sharpness, contrast and mean neighborhood ratio of the grayscale image w 0. w 1. w 2, and w 0. w 1. w 2 represents the probability that the grayscale image of the frame belongs to sunny, cloudy and foggy days respectively; Compare the weather behavior indicator with the corresponding threshold to determine whether the grayscale image belongs to a sunny day. If so, increment the sunny day counter and skip the subsequent judgment. If not, continue to determine whether the grayscale image belongs to a cloudy day. Determine whether the grayscale image belongs to cloudy weather. If so, increment the cloudy weather counter and skip the subsequent determination. If not, continue to determine whether the grayscale image belongs to foggy weather. Determine whether the grayscale image belongs to foggy weather. If so, increment the foggy weather counter and skip the subsequent judgment. If the grayscale image does not belong to sunny, cloudy, or foggy weather, the weather type corresponding to the largest weather behavior indicator is selected and the counter of that type is accumulated. If the counter of a certain weather type reaches the maximum threshold, it is halved, otherwise it is cleared. According to the sizes of the counters of the three weather types of sunny, cloudy and foggy, the largest one is selected as the weather type of the current frame grayscale image, and the weather type of the current frame is output, while processing the next frame grayscale image; When the weather condition is sunny, the grayscale value of the grayscale image is divided into 8 intervals, and a corresponding initial labeling amount is assigned to each pixel. The grayscale estimation value of the pixel is calculated based on the maximum labeling amount. At the same time, the image information of the current frame and the previous frame is combined to determine the grayscale value of the target based on the threshold; When the weather condition is cloudy, the grayscale image is restored to a normal light level through linear grayscale transformation, and the grayscale value of the target is determined through threshold judgment; When the weather condition is foggy, calculate the grayscale mean f1 of the upper 1 / 4 area of the grayscale image and the mean f2 of pixels greater than f1; Combine the atmospheric light intensity value of the previous frame and f2 to calculate the atmospheric light intensity value of the current frame; Set the intensity coefficient and calculate the estimated value of the atmospheric dissipation function; Obtain a defogging image based on the defogging model, and determine the grayscale value of the target through threshold judgment; After determining the grayscale value of the target, a binary image is obtained, and the target area and the background area in the binary image are segmented, and the target area is extracted from the segmented binary image.
2. The intelligent control device for community security and patrol monitoring according to claim 1, characterized in that: The camera rotation mechanism (5) comprises a support base (501) arranged at the top of the outer shell (201), a pillar (502) is arranged at the top of the support base (501), a mounting hole (503) is arranged at the top of the inner top of the pillar (502), a bearing placement hole (504) is arranged at the top of the mounting hole (503), a servo motor (505) is arranged inside the mounting hole (503), a bearing (506) is arranged in the bearing placement hole (504), the top of the output shaft of the servo motor (505) passes through the middle of the bearing (506) and is connected to a steering head (507), and a camera (508) is arranged on the side wall of the steering head (507).
3. The intelligent control device for community security and patrol monitoring according to claim 2, characterized in that: A plurality of circular holes (509) are provided inside the support base (501), bolts (510) are provided in the circular holes (509), and the bottom ends of the bolts (510) are threadedly connected to the top ends of the outer shell (201).
4. The intelligent control device for community security and patrol monitoring according to claim 1, characterized in that: The weather behavior indicators w 0. w 1. w The calculation formula for 2 is: Where, a 0. a 1. a 2. b 0. b 1. b 2. c 0. c 1. c 2. d 0. d 1. d 2 are weight coefficients; L Indicates brightness, S Indicates sharpness, C Indicates contrast, M Represents the proportion of the neighborhood of the mean.
