Crowd gathering monitoring method and device, computer device and storage medium

By identifying the location of objects in video frames and calculating depth values, the accuracy problem of monitoring crowd gatherings in open public places is solved, and adaptive quantitative assessment of crowd density in small areas is achieved. It is applicable to places such as streets, squares, and parks.

CN123142159APending Publication Date: 2026-11-20CHINA MOBILE GRP GUANGDONG CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611304363.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing crowd gathering monitoring methods cannot achieve accurate monitoring of small-scale, routine situations in open public places. Furthermore, traditional methods rely on hardware equipment or manual intervention, resulting in large fluctuations in monitoring accuracy and insufficient flexibility.

Method used

By acquiring video frames of the target area, identifying object locations and calculating depth values, and using these depth values ​​to adaptively reflect changes in camera installation locations, a quantitative assessment of crowd density can be achieved, avoiding the need for manually defining monitoring ranges.

Benefits of technology

It enables accurate monitoring of small-scale crowd gatherings in open public places, with high sensitivity and wide applicability. It is suitable for places such as streets, squares, and parks, and does not rely on access control card swiping systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123142159A_ABST
    Figure CN123142159A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a crowd gathering monitoring method and device, computer equipment and storage medium. Including by acquiring a plurality of video frames of a target region in a target period, and identifying a plurality of objects in each video frame respectively, the comprehensive capture of personnel in the monitoring picture is realized. On this basis, the position information of each object in the video frame can also be determined, and the corresponding depth value is calculated based on the position information, which can effectively perceive the near and far relationship of the object in the picture, thereby breaking through the technical limitation that the traditional two-dimensional plane monitoring cannot distinguish the longitudinal distance. Finally, the crowd density of the target region in the target period can be determined according to the depth value of the plurality of objects in each video frame, and the quantitative evaluation of the gathering degree is completed. Therefore, since the depth value can adaptively reflect the change of the camera installation position and the monitoring distance, it is not necessary to manually define the monitoring range, and the precise monitoring of the crowd gathering in a small range can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of video surveillance technology, and in particular to a method, device, computer equipment, and storage medium for monitoring crowd gatherings. Background Technology

[0002] With the continuous advancement of urbanization and the increasing awareness of public safety, the monitoring of crowd gatherings in public places plays a crucial role in safety management, public health prevention and control, and traffic order management.

[0003] Among related technologies, a crowd gathering monitoring method based on video analytics has been proposed. This method does not rely on access control card systems and can monitor and count people within the frame using only surveillance cameras. However, due to the lack of standardized area delineation rules, the monitoring range can only be determined by two methods: full-screen analysis or manual selection. Full-screen analysis is easily affected by irrelevant scene interference, while manual selection is labor-intensive and lacks flexibility. Furthermore, neither of these methods can dynamically adapt the monitoring range according to the actual installation parameters of the cameras, resulting in large fluctuations in monitoring accuracy and making it difficult to meet the needs of small-scale, routine monitoring. Summary of the Invention

[0004] In view of this, the present disclosure provides a method, apparatus, computer equipment, and storage medium for monitoring crowd gatherings, in order to solve the problems existing in the related technologies.

[0005] A first aspect of this disclosure provides a method for monitoring crowd gathering. The method includes: acquiring multiple video frames of a target area within a target time period, and identifying multiple objects included in each of the multiple video frames; determining the location information of each of the multiple objects in the corresponding video frame, and determining a corresponding depth value based on the location information of each of the multiple objects; and determining the crowd density of the target area within the target time period based on the depth values ​​of the multiple objects included in each of the multiple video frames.

[0006] A second aspect of this disclosure provides a crowd gathering monitoring device applied to the crowd gathering monitoring selection method of the first aspect. The device includes: an acquisition module, configured to acquire multiple video frames of a target area within a target time period, and identify multiple objects included in each of the multiple video frames; a first determination module, configured to determine the position information of each of the multiple objects in a corresponding video frame, and determine a corresponding depth value based on the position information of each of the multiple objects; and a second determination module, configured to determine the crowd density of the target area within the target time period based on the depth values ​​of the multiple objects included in each of the multiple video frames.

[0007] A third aspect of this disclosure provides a computer device including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-described crowd gathering monitoring method.

[0008] A fourth aspect of this disclosure provides a computer-readable storage medium having a computer program / operation instructions stored thereon, which, when executed by a processor, implement the steps of the crowd gathering monitoring method described above.

[0009] A fifth aspect of this disclosure provides a computer program product that, when executed by a processor, implements the steps of the crowd gathering monitoring method described above.

[0010] The at least one technical solution adopted in this disclosure can achieve the following beneficial effects: by acquiring multiple video frames of the target area within a target time period and identifying multiple objects in each video frame, comprehensive capture of people in the monitoring screen is achieved. Furthermore, the position information of each object in its respective video frame can be determined, and the corresponding depth value can be calculated based on this position information. This effectively perceives the distance relationship of objects in the image, thus overcoming the technical limitation of traditional two-dimensional planar monitoring in being unable to distinguish depth distance. Finally, based on the depth values ​​of multiple objects in each video frame, the crowd density of the target area within the target time period can be determined, completing a quantitative assessment of the degree of gathering. Therefore, the method provided in this disclosure does not rely on access control card systems and can be widely applied to open public places such as streets, squares, parks, and transportation hubs. Simultaneously, since the depth value can adaptively reflect changes in the camera installation position and monitoring distance, accurate monitoring of crowd gatherings within a small area can be achieved without manually defining the monitoring range. It has the advantages of high sensitivity, wide applicability, and ease of large-scale promotion. Attached Figure Description

[0011] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0012] Figure 1 A schematic diagram of a crowd gathering monitoring process provided in one embodiment of this disclosure; Figure 2 A schematic diagram of an object bounding box provided in an embodiment of this disclosure; Figure 3This is a schematic diagram of the structure of a crowd gathering monitoring device provided in one embodiment of the present disclosure; Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure; Figure 5 This is a schematic diagram of the structure of a computer system provided in an embodiment of the present disclosure; Figure 6 A schematic diagram of a computer program product provided according to an embodiment of this disclosure. Detailed Implementation

[0013] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0014] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0015] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc., used in this disclosure are only used to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.

[0016] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0017] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0018] With the continuous advancement of urbanization and the increasing awareness of public safety, the monitoring of crowd gatherings in public places plays a crucial role in safety management, public health prevention and control, and traffic order management. Therefore, how to accurately and efficiently determine whether crowd gatherings have occurred in public places has become a key research topic in the field of intelligent video surveillance.

[0019] In related technologies, crowd gathering monitoring methods often employ access control card swiping systems to count people. This method relies on real-name card swiping records to count the number of people entering and exiting in real time, thereby determining whether there is dense crowding in the area. However, the above methods have significant limitations: on the one hand, these methods are highly dependent on dedicated hardware equipment and are only applicable to enclosed places where card swiping terminals are deployed, and cannot be applied to open public areas such as streets, squares, parks, and transportation hubs; on the other hand, these methods can only achieve total population statistics for the entire area and are difficult to identify localized dense gatherings of multiple people within a few square meters.

[0020] To overcome the aforementioned shortcomings, a crowd gathering monitoring method based on video analytics has been proposed in related technologies. This method eliminates the need for access control card systems, relying solely on surveillance cameras to monitor and count individuals within the frame. However, due to the lack of standardized area delineation rules, the monitoring range can only be determined through either full-screen analysis or manual selection. Full-screen analysis is susceptible to interference from irrelevant scenes, while manual selection is labor-intensive and lacks flexibility. Furthermore, neither of these methods can dynamically adapt the monitoring range based on the actual installation parameters of the cameras, resulting in significant fluctuations in monitoring accuracy and making it difficult to meet the needs of small-scale, routine monitoring.

[0021] To address the aforementioned issues, this disclosure provides a crowd gathering monitoring method. By acquiring multiple video frames of a target area within a target time period and identifying multiple objects within each frame, comprehensive capture of people in the monitored area is achieved. Furthermore, the location information of each object within its respective video frame can be determined, and the corresponding depth value can be calculated based on this location information. This effectively perceives the distance relationship between objects in the image, overcoming the technical limitation of traditional two-dimensional planar monitoring in distinguishing depth distance. Finally, based on the depth values ​​of multiple objects in each video frame, the crowd density of the target area within the target time period can be determined, completing a quantitative assessment of the degree of gathering. Therefore, the method provided by this disclosure does not rely on access control card systems and can be widely applied to open public places such as streets, squares, parks, and transportation hubs. Simultaneously, because the depth value can adaptively reflect changes in the camera's installation location and monitoring distance, accurate monitoring of crowd gatherings within a small area can be achieved without manually defining the monitoring range. This method boasts advantages such as high sensitivity, wide applicability, and ease of large-scale promotion.

[0022] The crowd gathering monitoring method provided in this disclosure can be executed by a terminal or by a chip applied to the terminal.

[0023] For example, the aforementioned terminals may include one or more of the following: mobile phones, tablets, wearable devices, in-vehicle devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, handheld computers (PDAs), and wearable devices based on augmented reality (AR) and / or virtual reality (VR) technologies. They may also include, but are not limited to, remote control devices, wearable devices, streetlights, home appliances, and other smart terminals. This disclosure does not impose specific limitations on these aspects.

[0024] Figure 1 This is a schematic diagram illustrating a process for monitoring crowd gatherings according to an embodiment of this disclosure. Figure 1 As shown, crowd gathering monitoring methods include: S101, acquire multiple video frames of the target area within the target time period, and identify multiple objects included in each of the multiple video frames. It should be noted that, in this embodiment, the objects refer to targets detected in the video frames, which can be people, vehicles, animals, or other moving targets. This embodiment mainly uses people as an example for illustration.

[0025] In some embodiments, the target area can be any geographical area requiring crowd gathering monitoring, including but not limited to public places such as streets, squares, parks, transportation hubs, shopping malls, schools, hospitals, and stadiums, as well as semi-enclosed or enclosed areas such as office areas, residential communities, and factory parks. Taking a target surveillance camera in a square as an example, assuming the target area is the central area of ​​the square and the target time period is 9:00 AM to 10:00 AM, a continuous video stream can be acquired through the target surveillance camera during the target time period, and multiple video frames can be extracted from it. For example, multiple video frames can be obtained within the target time period at a sampling frequency of one frame per second, and these multiple video frames can be used as the objects of subsequent analysis. It should be noted that the target surveillance camera can be any image acquisition device deployed in the target area, including but not limited to fixed surveillance cameras, PTZ cameras, bullet cameras, network cameras, and smart cameras, and its installation location and monitoring range can be flexibly set according to the actual scenario.

[0026] Furthermore, for the acquired multiple video frames, multiple objects contained in each video frame can be identified. The position information of each object can be represented by point coordinates or bounding box coordinates, which can be flexibly selected according to the actual application scenario.

[0027] In some embodiments, the center point coordinates (cx, cy) or foot point coordinates (px, py) of each object can be obtained through a pre-trained object detection model. It should be noted that the object detection model can be any suitable model known in the art, such as the YOLO series models, Faster R-CNN, OpenPose, etc., and this disclosure does not limit this. Among them, the YOLO series models are single-stage real-time object detection algorithms that can directly predict the bounding box and category of the object; Faster R-CNN is a two-stage object detection algorithm that first generates candidate regions, and then classifies and regresses the candidate regions; OpenPose is an open-source algorithm library for real-time two-dimensional pose estimation for multiple people, capable of detecting human keypoints.

[0028] In other embodiments, each video frame can be input into a pre-trained object detection model, which directly outputs the bounding box coordinates (x1, y1, x2, y2) of each object, where (x1, y1) can be the coordinates of the top-left corner of the bounding box, and (x2, y2) can be the coordinates of the bottom-right corner of the bounding box. Here, the bounding box not only provides the object's position information, but its dimensions can also be used for subsequent depth value calculations.

[0029] Figure 2 This is a schematic diagram of an object bounding box provided in one embodiment of the present disclosure. Figure 2 As shown, taking the YOLOv5 model as an example, multiple video frames can be sequentially input into a pre-trained YOLOv5 model. The YOLOv5 model can output the position information of each object in the corresponding video frame. The position information of each object can be represented by a set of bounding box coordinates. For example, it can be denoted as (x1, y1, x2, y2), where x1 represents the x-coordinate (pixel value) of the top-left corner of the bounding box in the video frame, y1 represents the y-coordinate (pixel value) of the top-left corner of the bounding box in the video frame, x2 represents the x-coordinate (pixel value) of the bottom-right corner of the bounding box in the video frame, and y2 represents the y-coordinate (pixel value) of the bottom-right corner of the bounding box in the video frame. Using this method, the positions of all objects in each video frame can be determined.

[0030] S102, determine the position information of each of the multiple objects in the corresponding video frame, and determine the corresponding depth value based on the position information of each of the multiple objects. The depth value characterizes the distance of the object from the target surveillance camera in the video frame; the smaller the depth value, the closer the object is to the target surveillance camera; the larger the depth value, the farther the object is from the camera.

[0031] In some embodiments, for any one of multiple objects, the bounding box of the object in the corresponding video frame can be determined based on the object's position information; then, based on the size of the bounding box, the depth value corresponding to the object is calculated through a nonlinear transformation, wherein the depth value is negatively correlated with the size of the bounding box. Specifically, the closer the object is to the target surveillance camera, the larger the bounding box size of the object in the video frame, and the smaller the depth value; conversely, the farther the object is from the target surveillance camera, the smaller the bounding box size of the object in the video frame, and the larger the depth value.

[0032] Specifically, for determining the bounding box, please refer to... Figure 2 Based on the relevant description, we can assume that the minimum monitoring distance of the target surveillance camera is P meters and the maximum monitoring distance is Q meters. Therefore, the depth value of the object can be calculated using the Sigmoid function nonlinear transformation. The specific calculation formula is as follows:

[0033] Where z represents the depth value of the object; r represents the feature value of the proportion of the object in the corresponding frame of the video frame. When the object is closer to the target surveillance camera, the bounding box area is larger, the ratio of the bounding box area to the total area of ​​the frame is larger, and the r value is larger. When the object is farther away from the target surveillance camera, the bounding box area is smaller, the ratio of the bounding box area to the total area of ​​the frame is smaller, and the r value is smaller.

[0034] In some embodiments, r can be calculated using the bounding box coordinates (x1, y1, x2, y2) of the object. The specific calculation formula is as follows:

[0035] Where W represents the width of the corresponding video frame and H represents the height of the corresponding video frame (in pixels).

[0036] Based on this, the embodiments of this disclosure can determine the corresponding bounding box based on the object's location information, and calculate the depth value based on the bounding box size through a nonlinear transformation, making the depth value negatively correlated with the bounding box size, thereby effectively perceiving the distance relationship of objects in video frames. Furthermore, a formula for calculating the depth value is constructed based on the Sigmoid function. The feature value r is calculated by the ratio of the bounding box area to the total area of ​​the image, and the depth value is obtained through mapping via the Sigmoid function, achieving adaptive evaluation of the object's depth position. It is evident that the embodiments of this disclosure require no additional hardware equipment, relying solely on video frames to distinguish the distance of objects, overcoming the technical limitations of traditional two-dimensional planar monitoring in being unable to perceive depth distance, and providing a reliable foundation for subsequent accurate assessment of crowd density.

[0037] S103, determine the crowd density of the target area within the target time period based on the depth values ​​of multiple objects included in each of the multiple video frames.

[0038] In some embodiments, depth values ​​are used to characterize the distance of objects from the target surveillance camera in a video frame; a smaller depth value indicates a closer object, and a larger depth value indicates a farther object. Based on this, for each video frame, the average or median depth values ​​of all objects in that frame can be calculated as an index of the degree of clustering for that video frame. Then, the clustering indices of all video frames within the target time period are comprehensively statistically analyzed, for example, by calculating the average or analyzing the trend, to obtain the crowd density of the target area within the target time period. Specifically, when the overall depth values ​​are relatively small, it indicates that there are many close-range objects in the target area, indicating a high degree of crowd density; conversely, when the overall depth values ​​are relatively large, it indicates a low degree of crowd density. Through this method, a quantitative assessment of crowd clustering can be achieved directly based on depth values.

[0039] As can be seen, the method of this disclosure embodiment does not rely on access control card swiping system and can be widely applied to open public places such as streets, squares, and parks; at the same time, since the depth value can adaptively reflect the changes in the camera installation position and monitoring distance, there is no need to manually define the monitoring range, which can achieve accurate monitoring of crowd gathering in a small area. It has the advantages of high sensitivity, wide applicability and easy large-scale promotion.

[0040] In some embodiments, a corresponding weight value is determined based on the depth value of each of the multiple objects; the weight values ​​of the multiple objects included in each of the multiple video frames are summed to obtain the sub-crowd density corresponding to each of the multiple video frames; and the crowd density of the target area within the target time period is determined based on the sub-crowd density of each of the multiple video frames. The weight value characterizes the contribution of each object to the crowd density; a larger weight value indicates a greater contribution of the object to the degree of aggregation, and a smaller weight value indicates a smaller contribution of the object to the degree of aggregation.

[0041] In some embodiments, after calculating the depth value of each object, a weight value corresponding to that object can be determined based on that depth value. The weight value is negatively correlated with the depth value; that is, the smaller the depth value (indicating the object is closer to the target surveillance camera), the larger the weight value, and the larger the depth value (indicating the object is farther from the target surveillance camera), the smaller the weight value. For example, when an object has a depth value of 1 meter, it can be assigned a weight value of 0.9; when another object has a depth value of 10 meters, it can be assigned a weight value of 0.5; and when yet another object has a depth value of 100 meters, it can be assigned a weight value of 0.05. It should be noted that the specific mapping relationship of the weight values ​​can be preset according to the actual scenario, as long as the smaller the depth value, the larger the weight value, and vice versa.

[0042] The reason for determining the weight value based on the distance of the object from the target surveillance camera is that in actual scenarios of crowd gathering monitoring, people at close range often require more attention than those at a distance. On one hand, close-range gatherings (such as crowds within a few meters) are the core of security risks, such as congestion at entrances / exits or the central area of ​​emergencies, requiring focused monitoring. On the other hand, people at a distance occupy a smaller proportion of the video frame, their individual contribution to the actual degree of gathering is lower, and they are easily affected by factors such as viewing angle and obstruction. Assigning them the same weight as close-range people could lead to distorted monitoring results, such as misjudging a large number of scattered people at a distance as a gathering. Therefore, by assigning high weight to close-range objects and low weight to distant objects, the calculated crowd density more accurately reflects the true crowd gathering situation within the target area, avoiding the excessive influence of a large number of scattered people at a distance on the judgment results, thereby improving the accuracy and targeting of monitoring.

[0043] In some embodiments, for each video frame, the weight values ​​of all objects in that video frame can be summed to obtain the sub-crowd density corresponding to that video frame. For example, assuming that a total of 5 objects are detected in a certain video frame, with corresponding weight values ​​of 0.8, 0.7, 0.6, 0.3, and 0.2, the sub-crowd density of that video frame can be 0.8 + 0.7 + 0.6 + 0.3 + 0.2 = 2.6. It should be noted that the sub-crowd density reflects the degree of crowd gathering in the target area at a certain moment in the video frame; the larger the sub-crowd density value, the higher the degree of crowd gathering at that moment.

[0044] In some embodiments, since the target time period contains multiple video frames, and each video frame corresponds to a sub-crowd density, a time series composed of multiple sub-crowd densities can be obtained. The time series can be [2.6, 2.8, 3.0...], where the sub-crowd density of the first video frame is 2.6, the sub-crowd density of the second video frame is 2.8, the sub-crowd density of the third video frame is 3.0, and so on. These values ​​constitute a time series.

[0045] Finally, the population density of the target area within the target time period can be determined based on these sub-population densities. For example, the average of all sub-population densities can be calculated and used as the population density within the target time period; alternatively, the maximum value among all sub-population densities can be taken as the population density within the target time period to reflect the peak concentration within the time period; or a preset threshold can be set, and when the density of multiple consecutive sub-populations exceeds the preset threshold, it is determined that a population gathering event exists within the target time period.

[0046] In this way, by determining the corresponding weight value based on the depth value of each object, and with the weight value being negatively correlated with the depth value, objects closer to the target surveillance camera receive a higher weight, while objects farther away receive a lower weight. This achieves a precise match with the practical need to pay more attention to people closer to the target in crowd monitoring. Next, by summing the weight values ​​of all objects in each video frame to obtain the sub-crowd density, the degree of crowd gathering at each moment can be quantified. Furthermore, by comprehensively statistically analyzing the sub-crowd density of multiple video frames within the target time period (e.g., calculating the average, taking the maximum value, or using a threshold), the crowd density of the target area within the target time period can be comprehensively and accurately assessed. Therefore, this disclosed embodiment does not rely on an access control card system and can be widely applied to open public places such as streets, squares, and parks. Simultaneously, because the depth value can adaptively reflect changes in the camera's installation location and monitoring distance, no manual definition of the monitoring range is required, enabling accurate monitoring of crowd gatherings within a small area. It has the advantages of high sensitivity, wide applicability, and ease of large-scale promotion.

[0047] In some embodiments, determining a corresponding weight value based on the depth value of each of the multiple objects includes: obtaining a monitoring range parameter of the target area, the monitoring range parameter including a minimum monitoring distance and a maximum monitoring distance; constructing an initial density function with depth as the independent variable based on the minimum monitoring distance and the maximum monitoring distance, and normalizing the initial density function based on the minimum monitoring distance and the maximum monitoring distance; remapping the normalized initial density function to obtain a target density function; and using the target density function to map the depth value of each of the multiple objects to a corresponding weight value.

[0048] In some embodiments, during the process of determining the weight value based on the depth value, the monitoring range parameter of the target surveillance camera can first be obtained. This monitoring range parameter includes the minimum monitoring distance and the maximum monitoring distance of the target surveillance camera. For example, a target surveillance camera installed in a square has an effective monitoring distance of 0.5 meters to 200 meters, that is, the minimum monitoring distance P = 0.5 meters and the maximum monitoring distance Q = 200 meters.

[0049] In some embodiments, the initial density function can be a monotonically decreasing nonlinear function, and the depth value of the initial density function is negatively correlated with the weight value. That is, the smaller the depth value (the closer the object is to the target surveillance camera), the larger the weight value is mapped, and the larger the depth value (the farther the object is from the target surveillance camera), the smaller the weight value is mapped.

[0050] The initial density function constructed in the embodiments of this disclosure as follows:

[0051] Where z represents the depth value of the object; P represents the minimum monitoring distance of the target surveillance camera; and μ represents the average of the minimum and maximum monitoring distances of the target surveillance camera. ; This represents the right tail coefficient, and the attenuation characteristics can be adjusted by shifting the peak position of the initial density function. When the value is large, the initial density function value decreases rapidly as the depth value increases, significantly reducing the weight value of areas farther from the target surveillance camera; when When the value is small, the initial density function value decreases relatively smoothly, and areas farther from the target surveillance camera retain relatively high weight values. Therefore, by adjusting... This allows for flexible control of the detection algorithm's sensitivity. It should be noted that the output of the initial density function f(z) is the weight value, used to characterize the contribution of each object to the crowd density.

[0052] Based on this, when the depth value z is small (the object is closer to the target surveillance camera), the value of f(z) is large; when the depth value z is large (the object is farther from the target surveillance camera), the value of f(z) is small. Furthermore, the Gaussian correction term in the initial density function further enhances the right-tailing characteristic, further reducing the weight values ​​of distant regions, thereby decreasing the impact of distant objects on detection.

[0053] In some embodiments, P and Q (the maximum monitoring distance of the target surveillance camera) can be set to 0.5 meters and 200 meters respectively based on practical experience. Therefore, the above initial density function This can be specifically expressed as:

[0054] Based on this, the depth value z of each object can be substituted into the aforementioned initial density function to obtain the corresponding weight value for that object. Simultaneously, by adjusting Δ, the sensitivity of the crowd monitoring can be controlled: the larger Δ is, the faster the initial density function value decreases as the depth value increases, resulting in lower weight values ​​for distant objects; the smaller Δ is, the more gradual the decrease in the initial density function value, allowing distant objects to retain relatively higher weight values. Overall, the larger Δ is, the lower the weight value of areas farther from the target monitoring camera, and the higher the weight value of objects closer to the target monitoring camera. Compared to discrete virtual layering, using a continuous initial density function for mapping allows for more refined weight allocation, and each depth value corresponds to a unique weight value, which helps improve the accuracy of crowd gathering monitoring.

[0055] In this way, by constructing a monotonically decreasing nonlinear initial density function, depth values ​​are directly mapped to weight values, allowing nearby objects to receive higher weights and distant objects to receive lower weights. Simultaneously, by adjusting Δ, the sensitivity of the detection algorithm can be flexibly controlled. Compared to discrete virtual stratification, continuous initial density function mapping enables finer weight allocation, with each depth value corresponding to a unique weight value, which helps improve the accuracy of crowd gathering monitoring.

[0056] In some embodiments, the above-mentioned initial density function The formula is a universal formula built based on the statistical parameters (P and Q) of all cameras on the market. However, due to differences in the installation location, monitoring distance, and scene of different surveillance cameras, this universal formula may not be able to accurately adapt to every specific surveillance camera. Therefore, embodiments of this disclosure can also remap the initial density function according to the actual monitoring range of the target surveillance camera, so that the initial density function can adapt to specific cameras and monitoring scenarios.

[0057] Specifically, assume the minimum monitoring distance of the target surveillance camera is P meters and the maximum monitoring distance is Q meters. First, two points can be selected on the initial density function f(z), denoted as f(P) and f(Q), respectively. These two points correspond to the weight values ​​at the minimum and maximum monitoring distances of the target surveillance camera. Then, the initial density function can be normalized using the following formula:

[0058] Where f(P) is the weight value corresponding to the minimum monitoring distance, and f(Q) is the weight value corresponding to the maximum monitoring distance. Therefore, by normalization, the value of f(z) can be mapped to the interval [0,1].

[0059] Then, the normalized initial density function The linear remapping is performed using the following formula:

[0060] In some embodiments, linear remapping can be used to map the normalized initial density function value to a preset weight value range, such as the [0,1] range. Thus, the result obtained after the above normalization and linear remapping... This refers to the target density function adapted to the target surveillance camera. This target density function has been adaptively adjusted based on the actual minimum monitoring distance P and maximum monitoring distance Q of the target camera. Through the above remapping operation, the target density function can automatically adjust according to the actual monitoring distance range of the target camera, without the need to configure the monitoring range for each camera individually or through manual intervention. Therefore, this method is applicable to cameras with different installation heights, different monitoring distances, and different scenarios, and has wide applicability and good scalability.

[0061] It should be noted that the target density function obtained after remapping... This refers to the density function adapted to the target surveillance camera, which is based on the actual minimum detection distance of the target camera. and maximum detection distance Adaptive adjustments have been made. Therefore, in actual use with the target surveillance camera, no further processing is required; simply input the object's depth value. Direct substitution You can then obtain the weight value corresponding to the object.

[0062] In some embodiments, a target density function is used to map the depth value of each of the multiple objects to a corresponding weight value. This includes: dividing each of the multiple video frames into multiple consecutive virtual layers along a preset direction based on the minimum and maximum monitoring distances, wherein each virtual layer corresponds to a depth value interval, and each depth value interval corresponds to a weight value; determining the depth value range corresponding to each virtual layer, and determining the corresponding weight value based on the virtual layer to which the depth value of each of the multiple objects belongs. It should be noted that the preset direction in this embodiment refers to the depth dimension extending from the location of the target surveillance camera into the interior of the corresponding video frame, used to characterize the direction of change in the distance between the object and the camera from near to far.

[0063] It should be noted that virtual layering is a discretized approximation of the target density function along a preset direction. Specifically, since the target density function is a continuous function, the depth range defined by the minimum to maximum monitoring distance, as determined by the target density function, can be divided into multiple continuous sub-intervals. Each sub-interval can serve as a virtual layer, and the weight value corresponding to each virtual layer can be the density value of the center position of that virtual layer on the target density function. This method significantly reduces computational load while maintaining monitoring accuracy, making it suitable for edge computing scenarios with limited computing power.

[0064] Based on this, each video frame can be pre-divided into multiple continuous virtual layers along a preset direction according to the minimum and maximum monitoring distances. The specific division method can be flexibly set according to actual needs. For example, the distance range from 0.5 meters to 200 meters can be divided into 10 consecutive depth value intervals. The depth value interval corresponding to the first virtual layer is [0.5, 20.45) meters, the depth value interval corresponding to the second virtual layer is [20.45, 40.4) meters, the depth value interval corresponding to the third virtual layer is [40.4, 60.35) meters, ..., and the depth value interval corresponding to the tenth virtual layer is [180.35, 200] meters. Alternatively, non-equidistant divisions can be used. For example, the area closer to the target surveillance camera can be divided into finer divisions (such as 0.5m~2m, 2m~5m, 5m~10m), while the area farther from the target surveillance camera can be divided into coarser divisions (such as 100m~150m, 150m~200m) to enhance the distinguishability of nearby objects and improve the sensitivity of small-scale cluster monitoring.

[0065] In some embodiments, each virtual layer can correspond to a depth value range, and each virtual layer also corresponds to a preset weight value. The weight values ​​are set according to the principle of higher weight for closer layers and lower weight for farther layers; that is, virtual layers with smaller depth value ranges (i.e., closer to the target surveillance camera) are assigned higher weight values, and virtual layers with larger depth value ranges (i.e., farther from the target surveillance camera) are assigned lower weight values. For example, virtual layers closer to the target surveillance camera (depth values ​​2-5 meters) can be assigned a weight value of 0.9, virtual layers farther from the target surveillance camera (depth values ​​50-80 meters) can be assigned a weight value of 0.5, and the virtual layer farthest from the target surveillance camera (depth values ​​150-200 meters) can be assigned a weight value of 0.05. It should be noted that the specific values ​​of the weight values ​​can be preset according to the actual scenario and sensitivity requirements, and this embodiment does not limit this.

[0066] In some embodiments, after the virtual layering is completed, for each object, the virtual layer to which the object belongs can be determined based on the depth value range to which its corresponding depth value belongs, and the weight value corresponding to that virtual layer is used as the weight value of the object. For example, if an object has a depth value of 3.2 meters, which falls within the depth value range of 2 meters to 5 meters, then the object is assigned to the corresponding virtual layer, and its weight value is the preset weight value of that layer (e.g., 0.9). As another example, if another object has a depth value of 150 meters, which falls within the depth value range of 150 meters to 200 meters, then the weight value of that object is the preset weight value of that layer (e.g., 0.05).

[0067] In this way, by obtaining the minimum and maximum monitoring distances of the target surveillance camera, the video frame can be pre-divided into multiple continuous virtual layers along a preset direction. Each virtual layer is assigned a weight value negatively correlated with its depth value range, resulting in higher weight values ​​for virtual layers closer to the camera and lower weight values ​​for those farther away. This precisely addresses the practical need for monitoring crowd gatherings where closer individuals deserve more attention. Furthermore, by quickly determining the corresponding weight value based on the virtual layer to which each object's depth value belongs, there is no need to calculate each depth value individually, leading to high computational efficiency and suitability for real-time monitoring scenarios. Simultaneously, since the virtual layers are divided based on the actual monitoring distance range of the target surveillance camera, the method of this embodiment can adapt to different surveillance camera installation parameters and monitoring scenarios, eliminating the need for manual definition of the monitoring range. This approach offers advantages such as high sensitivity, wide applicability, and ease of widespread deployment.

[0068] In some embodiments, when the crowd density is greater than a preset threshold, it is determined that there is a crowd gathering in the target area during the target time period, and an alarm signal is generated.

[0069] Specifically, after calculating the crowd density in the target area during the target time period, this crowd density can be compared with a preset threshold. For example, the preset threshold can be set to 5.0. If the calculated crowd density is 6.5, since 6.5 is greater than 5.0, it is determined that there is crowd gathering in the target area during the target time period, and an alarm signal is generated. The alarm signal can take the form of visual prompts (such as a pop-up highlight on the monitoring screen), sound prompts (such as a buzzer or voice broadcast), or message push (such as sending an SMS to the management personnel).

[0070] If the calculated crowd density is 3.2, which is less than the preset threshold of 5.0, it is determined that there is no crowd gathering, no alarm signal is generated, and the system continues to acquire the next video frame, repeating the object recognition, depth value calculation, and crowd density calculation steps to achieve continuous monitoring of the target area. Through the above method, this embodiment of the present disclosure can automatically monitor and alarm for crowd gathering events in real time, and continuously monitor the target area frame by frame, improving the response efficiency and intelligence level of security management.

[0071] The foregoing primarily describes the solutions provided by the embodiments of this disclosure from the perspective of the server. It is understood that, in order to implement the above functions, the server includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.

[0072] This disclosure embodiment can divide the server into functional units according to the above method example. For example, it can divide each function into separate functional modules, or it can integrate two or more functions into one management module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this disclosure embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0073] By dividing each functional module according to its corresponding function, an exemplary embodiment of this disclosure provides a crowd gathering monitoring device, which can be a server or a chip applied to a server. Figure 3 This is a schematic diagram of a crowd gathering monitoring device provided in one embodiment of the present disclosure. Figure 3 As shown, the crowd gathering monitoring device 300 includes: The acquisition module 301 is used to acquire multiple video frames of the target area within the target time period, and to identify multiple objects included in each of the multiple video frames. The first determining module 302 is used to determine the position information of each of the plurality of objects in the corresponding video frame, and to determine the corresponding depth value based on the position information of each of the plurality of objects; The second determining module 303 is used to determine the crowd density of the target area during the target time period based on the depth values ​​of the plurality of objects included in each of the plurality of video frames.

[0074] In an optional manner, the second determining module 303 is further configured to determine a corresponding weight value based on the depth value of each of the plurality of objects; sum the weight values ​​of the plurality of objects included in each of the plurality of video frames to obtain the sub-crowd density corresponding to each of the plurality of video frames; and determine the crowd density of the target area in the target time period based on the sub-crowd density of each of the plurality of video frames.

[0075] In an optional manner, the second determining module 303 is further configured to obtain monitoring range parameters of the target area, the monitoring range parameters including minimum monitoring distance and maximum monitoring distance; construct an initial density function with the depth value as the independent variable based on the minimum monitoring distance and the maximum monitoring distance, and normalize the initial density function based on the minimum monitoring distance and the maximum monitoring distance; remap the normalized initial density function to obtain a target density function; and use the target density function to map the depth value of each of the plurality of objects to a corresponding weight value.

[0076] In an optional manner, the second determining module 303 is further configured to divide each of the plurality of video frames into a plurality of continuous virtual layers along a preset direction according to the minimum monitoring distance and the maximum monitoring distance, wherein one virtual layer corresponds to a depth value interval and one depth value interval corresponds to a weight value; determine the depth value range corresponding to each virtual layer, and determine the corresponding weight value according to the virtual layer to which the depth value of each of the plurality of objects belongs.

[0077] In an alternative embodiment, the first determining module 302 is further configured to determine, for any one of the plurality of objects, a bounding box of the object in the video frame; and calculate a depth value corresponding to the object by nonlinear transformation based on the size of the bounding box, wherein the depth value is negatively correlated with the size of the bounding box.

[0078] In an alternative embodiment, the crowd gathering monitoring device 300 further includes an early warning module 304, which is used to determine that there is a crowd gathering in the target area during the target time period when the crowd density is greater than a preset threshold, and to generate an alarm signal.

[0079] This disclosure also provides an electronic device, including: at least one processor; a memory for storing at least one processor-executable instruction; wherein the at least one processor is used to execute the instruction to implement the steps of the method disclosed in this disclosure.

[0080] Figure 4 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present disclosure. Figure 4 As shown, the electronic device 400 includes at least one processor 401 and a memory 402 coupled to the processor 401, which can perform the corresponding steps in the methods disclosed in the embodiments of this disclosure.

[0081] The processor 401 described above can also be called a Central Processing Unit (CPU), which can be an integrated circuit chip with signal processing capabilities. Each step in the method disclosed in this embodiment can be implemented by the integrated logic circuitry in the hardware of the processor 401 or by instructions in software form. The processor 401 can be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this embodiment can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in the memory 402, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The processor 401 reads information from the memory 402 and, in conjunction with its hardware, completes the steps of the method described above.

[0082] Furthermore, various operations / processes according to this disclosure, implemented via software and / or firmware, can be transmitted from a storage medium or network to a computer system with a dedicated hardware architecture, for example, Figure 5 The computer system 500 shown is equipped with the programs that constitute the software. When various programs are installed, the computer system is able to perform various functions, including functions such as those mentioned above. Figure 5 This is a schematic diagram of the structure of a computer system provided in an embodiment of the present disclosure.

[0083] Computer system 500 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of this disclosure described and / or claimed herein.

[0084] like Figure 5 As shown, the computer system 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the computer system 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0085] Multiple components in the computer system 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 can be any type of device capable of inputting information into the computer system 500. The input unit 506 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 507 can be any type of device capable of presenting information and may include, but is not limited to, a monitor, speaker, video / audio output terminal, vibrator, and / or printer. The storage unit 508 may include, but is not limited to, a hard disk and an optical disk. The communication unit 509 allows the computer system 500 to exchange information / data with other devices via a network such as the Internet, and may include, but is not limited to, a modem, network card, infrared communication device, wireless communication transceiver, and / or chipset, such as Bluetooth™ devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.

[0086] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above. For example, in some embodiments, the methods disclosed in this disclosure can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on an electronic device via ROM 502 and / or communication unit 509. In some embodiments, the computing unit 501 can be configured to perform the methods disclosed in this disclosure by any other suitable means (e.g., by means of firmware).

[0087] This disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is able to perform the methods disclosed in this disclosure.

[0088] The computer-readable storage medium in this disclosure can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. The aforementioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specifically, the aforementioned computer-readable storage medium may include electrical connections based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0089] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0090] Figure 6 This is a schematic diagram of a computer program product provided according to an embodiment of the present disclosure. Figure 6 As shown, the computer program product 600 includes a computer program 601, which, when executed by a processor, implements the methods disclosed in the embodiments of this disclosure.

[0091] In embodiments of this disclosure, computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof. These programming languages ​​include, but are not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer.

[0092] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0093] The modules, components, or units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules, components, or units do not necessarily constitute a limitation on the module, component, or unit itself.

[0094] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that can be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0095] The above description is merely an illustration of some embodiments of this disclosure and the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0096] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.

Claims

1. A method for monitoring crowd gathering, characterized in that, include: Acquire multiple video frames of the target area within the target time period, and identify multiple objects included in each of the multiple video frames; The position information of each of the plurality of objects in the corresponding video frame is determined, and the corresponding depth value is determined based on the position information of each of the plurality of objects; The crowd density of the target area during the target time period is determined based on the depth values ​​of the plurality of objects included in each of the plurality of video frames.

2. The method according to claim 1, characterized in that, Determining the crowd density of the target area within the target time period based on the depth values ​​of the plurality of objects included in each of the plurality of video frames includes: Based on the depth value of each of the multiple objects, determine the corresponding weight value; The weight values ​​of the multiple objects included in each of the multiple video frames are summed to obtain the density of the corresponding sub-crowd in each of the multiple video frames; The crowd density of the target area during the target time period is determined based on the sub-crowd density of each of the multiple video frames.

3. The method according to claim 2, characterized in that, The step of determining the corresponding weight value based on the depth value of each of the plurality of objects includes: Obtain the monitoring range parameters of the target area, including the minimum monitoring distance and the maximum monitoring distance; Based on the minimum monitoring distance and the maximum monitoring distance, an initial density function is constructed with the depth value as the independent variable, and the initial density function is normalized based on the minimum monitoring distance and the maximum monitoring distance. The normalized initial density function is remapped to obtain the target density function; Using the target density function, the depth value of each of the multiple objects is mapped to a corresponding weight value.

4. The method according to claim 3, characterized in that, The step of mapping the depth value of each of the plurality of objects to a corresponding weight value using the target density function includes: Based on the minimum monitoring distance and the maximum monitoring distance, each of the multiple video frames is divided into multiple consecutive virtual layers along a preset direction, wherein one virtual layer corresponds to a depth value interval and one depth value interval corresponds to a weight value. Determine the depth value range corresponding to each of the virtual layers, and determine the corresponding weight value based on the virtual layer to which the depth value of each of the plurality of objects belongs.

5. The method according to claim 1, characterized in that, Determining the corresponding depth value based on the position information of each of the plurality of objects includes: For any one of the plurality of objects, determine the bounding box of the object in the corresponding video frame; Based on the dimensions of the bounding box, the depth value corresponding to the object is calculated through a nonlinear transformation, wherein the depth value is negatively correlated with the dimensions of the bounding box.

6. The method according to claim 1, characterized in that, The method further includes: When the crowd density exceeds a preset threshold, it is determined that there is a crowd gathering in the target area during the target time period, and an alarm signal is generated.

7. A crowd gathering monitoring device, characterized in that, include: The acquisition module is used to acquire multiple video frames of the target area within the target time period, and to identify multiple objects included in each of the multiple video frames; The first determining module is used to determine the position information of each of the plurality of objects in the corresponding video frame, and to determine the corresponding depth value based on the position information of each of the plurality of objects; The second determining module is used to determine the crowd density of the target area during the target time period based on the depth values ​​of the plurality of objects included in each of the plurality of video frames.

8. A computer device, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 6.

10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 6.