Emergency event monitoring method and portable monitoring system applying same
Through the portable monitoring system, the image scaling, feature extraction and person identification modules are used, combined with the conditional random field and Hopcroft-Karp method, to solve the problem of accuracy of monitoring personnel density and temporary site coverage in large gatherings, achieving low-cost and efficient Trample risk monitoring.
Patent Information
- Application Number
- CN202410280872.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-03-12
AI Technical Summary
Existing monitoring equipment is difficult to accurately monitor the density of people in large gatherings, resulting in high stampede prevention costs and low response speed. The temporary venue lacks fixed monitoring equipment coverage, making it difficult to meet usage requirements.
A portable monitoring system is designed, including a camera and a host that can rotate with multiple degrees of freedom. Through image scaling, feature extraction and person identification modules, real-time identification of the number and location of people is achieved. Combined with conditional random fields and the Hopcroft-Karp method, it reduces Computing power needs to adapt to temporary site monitoring needs.
It achieves low computing power requirements and is compact and portable. It can quickly identify the number and location of people, reduce the risk of stampedes, and is suitable for temporary site monitoring to reduce costs and energy consumption.
Smart Images

Figure CN118570714A
Abstract
Description
Technical Field
[0001] The invention relates to an emergency event monitoring method and belongs to the technical field of image recognition. Background Art
[0002] In large gatherings, such as music festivals, holiday celebrations, etc., stampedes are prone to occur due to the large number of participants and high mobility.
[0003] To prevent stampedes, it is necessary to monitor the number of people in key areas. When the density of people exceeds the safety threshold, timely evacuation and management can be carried out, and the flow trajectory of the crowd can be adjusted based on the number of people in different areas, thereby avoiding stampedes.
[0004] Existing monitoring equipment is only responsible for monitoring the scene and transmitting video back. The analysis level of monitoring video is low, and remote workers are required to watch the transmitted video in real time to determine the density of people. This leads to problems such as high monitoring costs, low accuracy and response speed.
[0005] In addition, many large gatherings are held at temporary venues. Most of these temporary venues lack fixed monitoring equipment or fixed detection equipment, making it difficult to cover key areas. For example, large music festivals are usually held at hypothetical stages in open spaces such as parks and beaches. Due to the characteristics of music festival locations, it is generally difficult to have a complete security monitoring system in place in advance. In addition, music festivals are generally held over a short period of time, so it is difficult to deploy traditional monitoring equipment on site. Existing monitoring equipment is difficult to meet usage requirements.
[0006] Therefore, it is necessary to study a method and equipment for monitoring the density of people in a large gathering to solve public safety problems such as stampedes. Summary of the invention
[0007] In order to overcome the above problems, the inventor has conducted in-depth research, and the present invention also discloses a portable monitoring system, including a camera and a host.
[0008] Wherein, the camera is used to obtain pictures of the monitoring area;
[0009] The host is used to identify the number of people in the picture, and the host is provided with:
[0010] The image scaling module is used to scale the image by different multiples to obtain multiple images of different sizes;
[0011] The feature extraction module is used to extract features from images of different sizes and fuse the extracted feature maps to obtain a fused feature map;
[0012] The personnel recognition module is used to set candidate points in the picture, classify the candidate points based on the feature map, distinguish the candidate points located at the head position in the picture from the candidate points located at the background position in the picture, retain the candidate points located at the head position in the picture, and then identify the total number and position of people in the picture.
[0013] Preferably, the camera is a camera that can rotate with multiple degrees of freedom.
[0014] Preferably, the portable monitoring system further comprises a telescopic bracket for mounting a camera.
[0015] Preferably, a pulley and a pull rod are arranged on the outside of the main machine.
[0016] The present invention also provides an emergency event monitoring method, comprising the following steps:
[0017] Get pictures of the monitored area, scale the pictures by different multiples, and get multiple pictures of different sizes;
[0018] Perform feature extraction on images of different sizes respectively, fuse the extracted feature maps to obtain a fused feature map;
[0019] Candidate points are set in the picture, and the candidate points are classified based on the feature map. The candidate points located at the head position in the picture are distinguished from the candidate points located at the background position in the picture, and the candidate points located at the head position in the picture are retained, so as to identify the total number and position of people in the picture.
[0020] In a preferred embodiment, among the multiple pictures obtained, the sizes of pictures of adjacent sizes are 2 times each other.
[0021] In a preferred embodiment, obtaining the fusion feature map comprises the following steps:
[0022] Perform multiple rounds of feature extraction on images of different sizes. For any image, the size of the feature map obtained after each round of feature extraction is reduced by 2 times.
[0023] In the process of multiple rounds of feature extraction, if there are feature maps of the same size, the feature maps of the same size will be fused, and the next round of feature extraction will be performed based on the fused feature map, and the feature map obtained by the last fusion will be used as the fused feature map.
[0024] In a preferred embodiment, the classification refers to performing a one-to-one matching between the candidate points and the real value of the head, and the candidate points that successfully match are classified as head label points, and the candidate points that fail to match are classified as background label points.
[0025] In a preferred embodiment, the matching is performed using the Hopcroft-Karp method.
[0026] In a preferred embodiment, after obtaining the candidate points of the head position, the candidate points located at the head position in the picture are further adjusted by position regression.
[0027] In a preferred embodiment, the method further includes: setting a personnel threshold, comparing the total number of people in the image with the personnel threshold, and determining whether there is a stampede risk in the monitoring area.
[0028] The present invention also provides an electronic device, comprising:
[0029] at least one processor; and
[0030] A memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described above.
[0031] The present invention also provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute any method described in any one of the above.
[0032] The beneficial effects of the present invention include:
[0033] (1) Low requirements on device computing power;
[0034] (2) The equipment is small in size, easy to carry and can be flexibly deployed. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flow chart of an emergency event monitoring method according to a preferred embodiment of the present invention is shown;
[0036] Figure 2 A schematic diagram showing the results of zooming in and out of an image at different times in an emergency event monitoring method according to a preferred embodiment of the present invention;
[0037] Figure 3 A schematic diagram showing a process of obtaining a fusion feature graph in an emergency event monitoring method according to a preferred embodiment of the present invention is shown;
[0038] Figure 4 A schematic diagram showing a candidate point generation process in an emergency event monitoring method according to a preferred embodiment of the present invention is shown;
[0039] Figure 5 A schematic diagram showing candidate points generated in an emergency event monitoring method according to a preferred embodiment of the present invention is shown;
[0040] Figure 6A schematic diagram showing classification results of candidate points in an emergency event monitoring method according to a preferred embodiment of the present invention is shown;
[0041] Figure 7 A schematic diagram showing the display of identification results in an emergency event monitoring method according to a preferred embodiment of the present invention is shown;
[0042] Figure 8 A schematic diagram of the structure of a portable monitoring system camera according to a preferred embodiment of the present invention is shown;
[0043] Fig. 9 A schematic diagram of the structure of a portable monitoring system support according to a preferred embodiment of the present invention is shown;
[0044] Fig.10 A schematic diagram of the structure of a portable monitoring system host according to a preferred embodiment of the present invention is shown. DETAILED DESCRIPTION
[0045] The present invention will be further described in detail below through the accompanying drawings and embodiments. Through these descriptions, the characteristics and advantages of the present invention will become more clear and distinct.
[0046] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise noted.
[0047] The present invention provides an emergency event monitoring method, comprising the following steps:
[0048] S1. Obtain a picture of the monitored area, and scale the picture by different multiples to obtain multiple pictures of different sizes;
[0049] S2, extract features from pictures of different sizes respectively, fuse the extracted feature maps to obtain a fused feature map;
[0050] S3, setting candidate points in the picture, classifying the candidate points based on the feature map, distinguishing the candidate points located at the head position of the picture from the candidate points located at the background position of the picture, retaining the candidate points located at the head position of the picture, and then identifying the total number and positions of people in the picture;
[0051] Preferably, there is also S4, setting a personnel threshold, comparing the total number of people in the image with the personnel threshold, and determining whether there is a stampede risk in the monitoring area.
[0052] Since the images captured by the camera are larger when they are near and smaller when they are far away, the proportion of the head close to the camera in the entire image is much larger than the head far away. This size change problem poses a considerable challenge to the accuracy of recognition. The existing technology generally adopts a complex attention mechanism and a VIT method for feature extraction. However, the complex attention mechanism introduces additional computational overhead. In traditional convolutional neural networks, feature extraction is achieved through convolution operations, and the attention mechanism needs to calculate the attention weight, which involves weighted calculation of each feature point, resulting in additional computational overhead. At the same time, the VIT method introduces a self-attention mechanism for modeling the input sequence. This mechanism needs to calculate the similarity between any two input sequence elements in order to assign corresponding weights to each element. Since the input usually contains a large number of feature points, calculating the similarity between these feature points will lead to a significant increase in the amount of computation, which also leads to the existing method requiring high-performance computing equipment, which in turn leads to high cost and energy consumption of monitoring equipment and large equipment size.
[0053] In S1, among the multiple pictures obtained, the sizes of adjacent pictures are in a 2-fold relationship. Preferably, three pictures of different sizes are obtained, which are 1 times, 0.5 times and 2 times the size of the original picture, respectively. Figure 2 shown.
[0054] S2 includes the following steps:
[0055] Perform multiple rounds of feature extraction on images of different sizes. For any image, the size of the feature map obtained after each round of feature extraction is reduced by 2 times.
[0056] In the process of multiple rounds of feature extraction, if there are feature maps of the same size, the feature maps of the same size will be fused, and the next round of feature extraction will be performed based on the fused feature map, and the feature map obtained by the last fusion will be used as the fused feature map.
[0057] Preferably, the multiple wheels are 4 wheels.
[0058] Preferably, the feature extraction is performed using a feature extraction network. In the present invention, the specific structure of the feature extraction network is not limited. Those skilled in the art can use any neural network that can realize image feature extraction. Preferably, the feature extraction network is a convolutional neural network.
[0059] More preferably, the convolutional neural network is a network with 4 convolutional layers, and each convolutional layer performs a round of feature extraction.
[0060] Preferably, the fusion is performed using a conditional random field method, where the conditional random field (CRF) is a probabilistic graph model that is commonly used in computer vision tasks such as image segmentation and target recognition.
[0061] The input of the conditional random field is the feature map of the image to be fused, and the output is the fused feature map. In the present invention, the conditional random field is used to consider the interdependence between features, and the feature maps at different levels can be fully utilized to improve the recognition performance. According to the interaction of feature maps at different levels, the category probability of each pixel is adjusted, thereby improving the expressiveness of the feature and the recognition performance.
[0062] According to a preferred embodiment of the present invention, Figure 3 As shown, the image is scaled by 0.5 times (denoted as I3) and 2 times (denoted as I1) and the original image (denoted as I2) are input into three feature extraction networks for feature extraction. The three feature extraction networks are all networks with 4 convolutional layers.
[0063] Among them, the size of I1 is 2Hx2W, the size of I2 is HxW, and the size of I3 is 1 / 2Wx1 / 2H, W represents width and H represents height;
[0064] After one feature extraction, I1 obtains a feature map of size 2Hx2W. After the second feature extraction, it obtains a feature map of size HxW.
[0065] After one feature extraction, I2 obtains a feature map of size HxW, which is the same size as the feature map obtained by the second feature extraction of I1, and feature fusion is performed;
[0066] Furthermore, for I1, the feature map after the above feature fusion is used for the third feature extraction, and for I2, the feature map after the above feature fusion is also used for the second feature extraction, and both obtain feature maps of size 1 / 2Wx1 / 2H;
[0067] After one feature extraction, I3 obtains a feature map of size 1 / 2Wx1 / 2H, which is the same size as the feature map of the third feature extraction of I1 and the second feature extraction of I2. The three are feature fused;
[0068] By analogy, after four times of feature extraction, pictures of different sizes can obtain a fused feature map of 1 / 16Hx1 / 16W.
[0069] In a more preferred embodiment, a summation operation is performed on the feature map obtained by the last fusion and the feature map obtained by the penultimate round of feature extraction of the minimum size image, and the obtained result is used as the fused feature map.
[0070] The summation operation is a commonly used calculation method in convolutional neural networks and will not be described in detail in the present invention.
[0071] According to the present invention, the feature maps obtained from images of different sizes have different depths and contain different information, some of which contain more structured information, while others contain more semantic information. Using images of multiple sizes for feature extraction can help the network extract features at different levels, and by fusing multiple feature maps, a complementary effect can be achieved, thus eliminating this problem as much as possible.
[0072] Traditional personnel quantity detection generally adopts a detection method based on estimated frames: first, the head frame is estimated according to the head center point annotation, and then the head detection technology is used to locate each head. The disadvantage of this type of method is that when there are too many detection objects in the scene, it is difficult for the network to accurately estimate the head frame, resulting in model optimization errors and prediction post-processing (non-maximum suppression) failure. At the same time, when the detection targets are dense, each head needs to be estimated and detected, which places high demands on computing resources. In addition, since a large number of candidate frames need to be processed, head detection and subsequent non-maximum suppression operations need to be performed, the computing power demand is too large.
[0073] In addition, the prior art also has a method based on density map regression: the crowd distribution density map is generated based on the annotation of the center points of the heads, and the total number of people can be obtained by integrating the density map. The disadvantages of this type of method are: when only the center points of the heads are annotated, the generated density map is not accurate and cannot provide the location information of individuals in the crowd, especially for crowded areas.
[0074] In the present invention, in S3, the candidate points are randomly generated. Preferably, each pixel of the fusion feature map corresponds to a block of size S×S in the input image, and one or more candidate points are evenly set in each such block, such as Figure 4 As shown in Figure 5 shown.
[0075] The classification refers to performing a one-to-one matching between the candidate points and the real values of the head, wherein the candidate points that are successfully matched are classified as head label points, and the candidate points that fail to be matched are classified as background label points.
[0076] The matching is preferably performed using the Hopcroft-Karp method, which is a classification method proposed by John Hopcroft and Richard Karp. It continuously increases the number of matches by continuously searching for augmenting paths until no new augmenting paths can be found. In the point-to-point matching prediction module, the goal of the Hopcroft-Karp method is to find a match between a candidate point and a real point that maximizes the similarity calculated by the matching branch. The Hopcroft-Karp method regards the graph composed of candidate points and real points as a bipartite graph, where the candidate points are a vertex set and the real points are another vertex set. Starting from an unmatched candidate point, try to find an augmenting path, that is, a path that alternately contains unmatched edges and matched edges; if an augmenting path is found, match the edges on the path, and then continue to search for the next augmenting path; stop when no new augmenting path can be found, and the number of matches is the maximum match.
[0077] By using the Hopcroft-Karp method, the best match between candidate points and real points can be found to determine the classification of each point, such as Figure 6 shown.
[0078] According to the present invention, although the candidate points of the head position can be obtained, since the candidate points are randomly generated, they can only roughly represent the position of the head point, and the accuracy is insufficient.
[0079] In a preferred embodiment, after obtaining the candidate points of the head position, the candidate points located at the head position in the picture are also subjected to position regression adjustment. Through the regression adjustment, the distance loss between the randomly generated candidate points and the true values is continuously reduced during training, which not only reduces the recognition error but also obtains the precise position of the head.
[0080] The method for detecting the number of people provided by the present invention adopts a point-to-point matching method between candidate points and true values, which not only has low requirements on computing power, but also can directly give the specific location of each individual in the crowd while giving the total number of people in a specified area, thereby facilitating subsequent crowd analysis tasks according to the specific needs of the scene.
[0081] S4. The personnel threshold can be freely set by those skilled in the art according to actual needs. Preferably, the total number of people in the identified image is directly displayed on the monitor screen.
[0082] More preferably, the degree of crowding is calculated based on the total number of people identified and displayed on the monitor screen, such as Figure 7 shown.
[0083] In the present invention, the method for calculating the congestion level is not limited, and those skilled in the art can freely set it according to needs.
[0084] Preferably, when the total number of people in the image exceeds a threshold number of people, an alarm is issued to prompt personnel control.
[0085] The invention also discloses a portable monitoring system, including a camera and a host.
[0086] Wherein, the camera is used to obtain pictures of the monitoring area;
[0087] The host is used to identify the number of people in the picture.
[0088] Preferably, the host is provided with:
[0089] The image scaling module is used to scale the image by different multiples to obtain multiple images of different sizes;
[0090] The feature extraction module is used to extract features from images of different sizes and fuse the extracted feature maps to obtain a fused feature map;
[0091] A person recognition module is used to set candidate points in the picture, classify the candidate points based on the feature map, distinguish the candidate points located at the head position of the picture from the candidate points located at the background position of the picture, retain the candidate points located at the head position of the picture, and then identify the total number and position of people in the picture;
[0092] Preferably, there is also an early warning module for setting a personnel threshold, comparing the total number of people in the image with the personnel threshold, and determining whether there is a stampede risk in the monitoring area.
[0093] In a preferred embodiment, the camera is a camera that can rotate with multiple degrees of freedom.
[0094] Furthermore, the camera can be equipped with a single / multi-eye and depth-of-field camera according to actual use requirements; more preferably, the camera is equipped with multiple motors, such as Figure 8 As shown, after the monitoring system establishes a communication connection with the remote command center, remote control can be implemented through the command center to adjust the camera posture and change the shooting scene to adapt to the needs for picture angles when performing different tasks and cover 360-degree all-round monitoring in the system placement scenario.
[0095] In a preferred embodiment, the portable monitoring system further comprises a telescopic bracket for mounting a camera.
[0096] More preferably, the support is a retractable tripod, such as Fig. 9 shown.
[0097] Preferably, the telescopic bracket is made of high-strength material and is light in weight and high in strength. The tripod structure designed at the bottom can provide stable support for the camera. The bracket is equipped with quick-release locking devices at the top and bottom to achieve quick connection and fixation between the host below and the camera above. The bracket is a telescopic sleeve structure with a hollow interior, and the equipment wiring harness passes through the bracket to ensure power supply and communication for the camera. The height of the folding bracket can be adjusted to cooperate with the camera to achieve full-angle coverage of the monitoring scene.
[0098] In a preferred embodiment, a pulley and a pull rod are arranged on the outside of the main machine to facilitate mobile placement. Fig.10 shown.
[0099] Preferably, the host is made of high-strength and low-density materials such as aluminum alloy and carbon fiber, and has functions such as waterproof and dustproof materials to adapt to different usage scenarios.
[0100] More preferably, the upper part of the main unit is provided with a locking bayonet to achieve a fixed connection with the bracket during use, an external rotating wheel is provided to adjust the height of the retractable bracket, and preferably a fixed base is provided under the main unit to ensure the stable shape of the device during operation.
[0101] In a preferred embodiment, the host is provided with a communication module for transmitting the pictures taken by the camera and the number of persons identified in the pictures to a central control room.
[0102] Preferably, the communication module is a wireless communication module.
[0103] Various embodiments of the method described above in the present invention can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which may be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0104] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0105] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0106] To provide interaction with a user, the methods and apparatus described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0107] The methods and apparatus described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0108] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the present disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document is not limited here.
[0110] Example
[0111] Example 1
[0112] Using the Nvida3090Ti graphics card, we counted people in the images in the ShangHaiTechA dataset and simulated the monitoring effect, including the following steps:
[0113] S1. Obtain a picture of the monitored area, and scale the picture by different multiples to obtain multiple pictures of different sizes;
[0114] S2, extract features from pictures of different sizes respectively, fuse the extracted feature maps to obtain a fused feature map;
[0115] S3. Set candidate points in the picture, classify the candidate points based on the feature map, distinguish the candidate points located at the head position in the picture from the candidate points located at the background position in the picture, retain the candidate points located at the head position in the picture, and then identify the total number and position of people in the picture.
[0116] Among them, three pictures of different sizes are obtained, which are 1 times, 0.5 times and 2 times the size of the original picture;
[0117] S2 includes the following steps:
[0118] Four rounds of feature extraction were performed on images of different sizes. For any image, the size of the feature map obtained after each round of feature extraction was reduced by 2 times.
[0119] In the process of multiple rounds of feature extraction, if there are feature maps of the same size, the feature maps of the same size will be fused, and the next round of feature extraction will be performed based on the fused feature map, and the feature map obtained by the last fusion will be used as the fused feature map.
[0120] The feature extraction network is a convolutional neural network with 4 convolutional layers, and the fusion is performed using a conditional random field method.
[0121] The classification refers to a one-to-one matching of the candidate points with the real values of the head. The successfully matched candidate points are classified as head label points, and the unmatched candidate points are classified as background label points. The matching is preferably performed using the Hopcroft-Karp method. After obtaining the candidate points at the head position, the candidate points located at the head position in the picture are also subjected to position regression adjustment.
[0122] Comparative Example 1
[0123] The same graphics card as in Example 1 is used to count the number of people in the picture in Example 1, and a method with an attention mechanism and VIT is used to extract features. The number of people in the picture is obtained based on a detection method based on an estimation frame.
[0124] The model parameter quantities (Params) and the total number of floating-point operations (FLOPs) of Example 1 and Comparative Example 1 are compared, and the results are shown in Table 1.
[0125] Table 1
[0126] method Model parameter quantity Total floating point operations Comparative Example 1 90.4M 887G Example 1 21.6M 258G
[0127] During the calculation process, as the number of model parameters increases, the amount of calculation usually increases exponentially, and more computing resources are required to perform the prediction task. It can be seen from Table 1 that when the best performance is achieved, the number of model parameters in Comparative Example 1 (90.4M) is much larger than that in Example 1 (21.6M), that is, the method in Example 1 can significantly reduce the computing power requirements.
[0128] The total number of floating-point operations is the number of floating-point operations per second (Floating-Point OPerations per Second), which is used to measure the effective computing speed. Reducing the number of floating-point operations (Floating-Point OPerations) can improve the network computing rate. As can be seen from Table 1, the total number of floating-point operations of the model in Comparative Example 1 (887G) is much larger than that in Example 1 (258G), indicating that the method in Example 1 has a faster computing speed.
[0129] Comparing the actual recognition speeds of Example 1 and Comparative Example 1, where the recognition speed in Example 1 is 0.631 milliseconds and the recognition speed in Comparative Example 1 is 1.25 milliseconds, it can be seen that the recognition speed in Example 1 is much higher than the recognition speed in Comparative Example 1, indicating that the method in Example 1 has lower requirements on computing power.
[0130] The present invention has been described above in conjunction with preferred embodiments, but these embodiments are only exemplary and serve only as an illustration. On this basis, the present invention may be subjected to a variety of substitutions and improvements, all of which fall within the scope of protection of the present invention.
Claims
1. A portable monitoring system, characterized in that: Including camera and host, Wherein, the camera is used to obtain pictures of the monitoring area; The host is used to identify the number of people in the picture, and the host is provided with: The image scaling module is used to scale the image by different multiples to obtain multiple images of different sizes; The feature extraction module is used to extract features from images of different sizes and fuse the extracted feature maps to obtain a fused feature map; The personnel recognition module is used to set candidate points in the picture, classify the candidate points based on the feature map, distinguish the candidate points located at the head position in the picture from the candidate points located at the background position in the picture, retain the candidate points located at the head position in the picture, and then identify the total number and position of people in the picture.
2. A portable monitoring system according to claim 1, characterized in that: The camera is a camera that can rotate with multiple degrees of freedom.
3. A portable monitoring system according to claim 1, characterized in that: The portable monitoring system also includes a telescopic bracket for mounting a camera.
4. A portable monitoring system according to claim 1, characterized in that: A pulley and a pull rod are arranged on the outside of the main machine.
5. A method for monitoring emergency events, characterized in that: The following steps are involved: Get pictures of the monitored area, scale the pictures by different multiples, and get multiple pictures of different sizes; Perform feature extraction on images of different sizes respectively, fuse the extracted feature maps to obtain a fused feature map; Candidate points are set in the picture, and the candidate points are classified based on the feature map. The candidate points located at the head position in the picture are distinguished from the candidate points located at the background position in the picture, and the candidate points located at the head position in the picture are retained, so as to identify the total number and position of people in the picture.
6. The emergency event monitoring method according to claim 5, characterized in that: Among the multiple images obtained, the sizes of adjacent images are 2 times larger.
7. The emergency event monitoring method according to claim 5, characterized in that: The step of obtaining the fused feature map comprises the following steps: Perform multiple rounds of feature extraction on images of different sizes. For any image, the size of the feature map obtained after each round of feature extraction is reduced by 2 times. In the process of multiple rounds of feature extraction, if there are feature maps of the same size, the feature maps of the same size will be fused, and the next round of feature extraction will be performed based on the fused feature map, and the feature map obtained by the last fusion will be used as the fused feature map.
8. The method for monitoring emergency events according to claim 5, characterized in that: The classification refers to performing a one-to-one matching between the candidate points and the real values of the head, wherein the candidate points that are successfully matched are classified as head label points, and the candidate points that fail to be matched are classified as background label points.
9. The method for monitoring emergency events according to claim 5, characterized in that: The matching was performed using the Hopcroft-Karp method.
10. The emergency event monitoring method according to claim 5, characterized in that: After obtaining the candidate points of the head position, the position regression adjustment is also performed on the candidate points located at the head position in the image.
Citation Information
Patent Citations
Method for judging crowd density and number of people based on fish eye camera
CN103049765A
People counting method and device
CN108416250A
Crowd event identification method, device, electronic equipment and system
CN110390226A
Pedestrian retrieval method and system for full-picture monitoring scene
CN110781350A
Crowd density estimation method based on deep aggregation
CN115937772A
