Congestion determination method, device, terminal and readable storage medium

By extracting and analyzing human skeleton features in dynamic images, identifying people suspected of crowding and calculating the missing rate of key points, the problem of low accuracy of head counting in the existing technology is solved, more accurate crowding judgment and timely warning are achieved, and the efficiency is improved Public safety.

CN118230254BActive Publication Date: 2024-09-06SHENZHEN JULONG EDUCATIONAL TECH NETWORK CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410621083.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-06
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of judging whether areas such as stairwells are crowded through head counting is low, and it is easily interfered by the external environment, resulting in over-counting and missing statistics, which affects the accuracy of crowding judgment.

Method used

By extracting the human skeleton features in the dynamic images of the target observation area, people suspected of crowding are identified, and the overall key point missing rate is calculated to determine whether a crowding event has occurred, eliminate interference from external factors, and improve the accuracy of judgment.

Benefits of technology

It achieves a leap from global to local, reduces the interference of irrelevant personnel on crowding judgment, improves the accuracy of crowding judgment, provides timely and accurate early warning, prevents stampedes from occurring, and ensures public safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230254B
    Figure CN118230254B
Patent Text Reader

Abstract

The present application is applicable to the field of security management, and provides a method, device, terminal and readable storage medium for judging congestion, wherein the method includes: extracting human skeleton features in the dynamic image of the target observation area to obtain multiple dynamic skeletons; each of the dynamic skeletons corresponds to an observer, and the dynamic skeleton contains multiple static skeletons, and the multiple static skeletons correspond to different time points, and each of the static skeletons contains at least one human key point; based on the human key points contained in the dynamic skeleton, suspected crowded persons are identified from the multiple observed persons; key point missing calculation is performed based on the suspected crowded persons to obtain the overall key point missing rate; when the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a congestion event has occurred. This solution can improve the accuracy of judging congestion events.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of security management, and in particular to a congestion determination method, device, terminal and readable storage medium. Background Art

[0002] Trampling incidents are prone to occur in public areas, posing a serious threat to public safety. Taking stairwells as an example, since the space in stairwells and other areas is relatively narrow, stampedes are more likely to occur when there are dense crowds of people. To avoid stampedes, it is necessary to issue early warnings and take intervention measures in a timely manner when there is crowding in stairwells and other areas.

[0003] At present, artificial intelligence and other technical means are used to count people to determine whether stairwells and other areas are crowded. Head counting measures whether the area as a whole is crowded from a global perspective, and this method of judging crowding has a low accuracy rate. Summary of the invention

[0004] The embodiments of the present application provide a congestion determination method, device, terminal and readable storage medium to solve the problem of low accuracy in the prior art of determining whether an area such as a stairwell is crowded by counting people.

[0005] A first aspect of an embodiment of the present application provides a congestion determination method, including:

[0006] Extracting human skeleton features in a dynamic image of a target observation area to obtain a plurality of dynamic skeletons; each of the dynamic skeletons corresponds to an observer, the dynamic skeletons include a plurality of static skeletons, the plurality of static skeletons correspond to different time points, and each of the static skeletons includes at least one key point of the human body;

[0007] Based on the human body key points included in the dynamic skeleton, identifying suspected crowded persons from the multiple observed persons;

[0008] Performing key point missing calculation based on the suspected crowded persons, obtaining an overall key point missing rate;

[0009] When the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a congestion event occurs.

[0010] A second aspect of an embodiment of the present application provides a crowding judgment device, including:

[0011] An extraction module is used to extract human skeleton features in the dynamic image of the target observation area to obtain multiple dynamic skeletons; each of the dynamic skeletons corresponds to an observer, the dynamic skeleton includes multiple static skeletons, the multiple static skeletons correspond to different time points, and each of the static skeletons includes at least one human key point;

[0012] A recognition module, used for identifying suspected crowded persons from a plurality of observed persons based on the key points of the human body included in the dynamic skeleton;

[0013] A calculation module, used for performing key point missing calculation based on the suspected crowded persons to obtain an overall key point missing rate;

[0014] The determination module is used to determine that a congestion event occurs when the overall key point missing rate is greater than or equal to an overall key point missing rate threshold.

[0015] A third aspect of an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0017] A fifth aspect of the present application provides a computer program product, which, when executed on a terminal, enables the terminal to execute the steps of the method described in the first aspect.

[0018] As can be seen from the above, after obtaining the dynamic image of the target observation area, the present application extracts the human skeleton features in the dynamic image, obtains multiple observers and a dynamic skeleton corresponding to each observer containing multiple static skeletons, wherein the multiple static skeletons come from different image frames of the dynamic image, the multiple static skeletons correspond to different time points, and each static skeleton contains at least one human key point, that is, each dynamic skeleton contains human key points. According to the human key points contained in the dynamic skeleton, personnel are screened, and suspected crowded personnel who may cause crowding events are identified from multiple observers, so as to achieve a transition from the global area to the local area, eliminate the interference of irrelevant factors of irrelevant personnel on the crowding judgment, and improve the accuracy of crowding judgment. Then, according to the missing of human key points of the suspected crowded personnel, the overall key point missing rate is calculated, and the introduction of human key points makes the judgment more accurate. When the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a crowding event has occurred. The overall missing rate of key parts is used to comprehensively evaluate the local area, further improving the accuracy of the judgment of crowding events. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 This is a schematic diagram of crowded stairwells provided by an embodiment of the present application;

[0021] Figure 2 is a flow chart of a congestion determination method provided by an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of an image frame after feature extraction processing provided by an embodiment of the present application;

[0023] Figure 4 This is a schematic diagram of a complete skeleton provided in an embodiment of the present application;

[0024] Figure 5 This is a schematic diagram of a common observer and a suspected crowding person provided in an embodiment of the present application;

[0025] Figure 6 is a structural diagram of a congestion determination device provided in an embodiment of the present application;

[0026] Figure 7 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0028] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0029] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0030] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0031] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0032] In a specific implementation, the terminal described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).

[0033] In the following discussion, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse and / or joystick.

[0034] The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disk burning application, a spreadsheet application, a game application, a telephone application, a video conferencing application, an email application, an instant messaging application, a workout support application, a photo management application, a digital camera application, a digital camcorder application, a web browsing application, a digital music player application, and / or a digital video player application.

[0035] Various applications that can be executed on the terminal can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within corresponding applications. In this way, the common physical architecture of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.

[0036] It should be understood that the size of the serial numbers of the steps in this embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.

[0037] In passage areas with a certain inclination angle, such as stairwells, bridges and slopes, the narrow passage space and the inclined passage angle are not conducive to people's walking, and stampede accidents are more likely to occur.

[0038] Artificial Intelligence (AI) technology can count the number of people in a traffic area and determine whether the traffic area is congested. However, head counting is based on a global perspective to measure whether the traffic area as a whole is congested, and the judgment accuracy is low. Figure 1 As shown, Figure 1 This is a schematic diagram of a crowded stairwell provided by an embodiment of the present application. Figure 1 It can be seen that there are many empty spaces in the middle of the staircase area. Passengers do not walk in a dispersed manner, but walk in concentrated areas on both sides. The distance between front and back is not maintained properly, and there is a certain degree of congestion. Figure 1 Crowding events in the city are difficult to detect simply by counting people.

[0039] Moreover, head counting is easily affected by external environment, resulting in over-counting and under-counting, which affects the accuracy of crowding judgment.

[0040] To solve the above problems, the present application provides a congestion determination method, device, terminal and readable storage medium.

[0041] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0042] See also Figure 2 , Figure 2 : is a flow chart of a congestion determination method provided by an embodiment of the present application. Figure 2 As shown, a congestion determination method comprises the following steps:

[0043] Step 201, extracting human skeleton features in the dynamic image of the target observation area to obtain multiple dynamic skeletons; each of the dynamic skeletons corresponds to an observer, the dynamic skeleton includes multiple static skeletons, the multiple static skeletons correspond to different time points, and each of the static skeletons includes at least one human key point.

[0044] Specifically, the target observation area is a passage area with a certain inclination angle, such as ordinary stairs, escalators, ramps and bridges.

[0045] An image acquisition device and an alarm reminder device are provided in the target observation area. The image acquisition device is used to acquire the dynamic image, which includes a video and a dynamic picture. The alarm reminder device is used to sound an alarm when a congestion event occurs, reminding people in the traffic area to keep walking distance and pay attention to personal safety.

[0046] This application needs to first obtain dynamic images collected by an image acquisition device in the target observation area. The dynamic images show dynamic changes in time series, so the time points corresponding to the multiple static skeletons of each observed object from the dynamic images are different.

[0047] After the dynamic image is obtained, skeleton features in the dynamic image are extracted to obtain multiple observers and a dynamic skeleton corresponding to each observer. The dynamic skeleton is composed of multiple static skeletons.

[0048] Each of the static skeletons includes at least one key point of the human body, and accordingly, the dynamic skeleton naturally also includes the key point of the human body.

[0049] Specifically, the observed persons are real persons in the target observed area.

[0050] Specifically, the operation of extracting skeleton features includes structural processing of the human body. Through structural processing, a skeleton containing key points of the human body is obtained. The key points of the human body refer to important parts of the human body. The key points of the human body can be the head, neck, shoulders, hands, hips, legs and feet, etc.

[0051] Specifically, the method of extracting human skeleton features in the dynamic image of the target observation area to obtain multiple dynamic skeletons includes: extracting human skeleton features based on multiple frames of the image to obtain multiple frames of skeleton data; each frame of the skeleton data contains the static skeleton and position data of the static skeleton; performing skeleton morphology comparison and position comparison based on the multiple frames of the skeleton data to determine the multiple observers and the dynamic skeleton corresponding to each observer.

[0052] Wherein, the dynamic image includes multiple frames of images.

[0053] When extracting human skeleton features, deep learning algorithms such as the OpenPose algorithm, DeepCut algorithm, or AlphaPose algorithm are used to extract human skeleton features from multiple frames of images to obtain skeleton data corresponding to each frame of the image.

[0054] Specifically, human skeleton features can also be extracted through 3D pose estimation methods, convolutional pose machines (CPM), efficient pose estimation networks (EfficientPose) or pose recognition networks (PRN) to obtain multi-frame skeleton data.

[0055] like Figure 3 As shown, Figure 3 Schematic diagram of an image frame after feature extraction provided in an embodiment of the present application. The human skeleton features in the image frame are extracted to obtain Figure 3 The image frame containing the static skeleton shown in FIG. 1 is the skeleton data. The static skeleton contains the key points of the human body. Figure 3 Similarly, the key points of the human body are marked by small squares, and one or more small squares are used to refer to a key point of the human body. The specific marking method is not limited in this application, and it is sufficient to mark the key points of the human body clearly.

[0056] Specifically, each frame of skeleton data contains multiple static skeletons belonging to different objects and position data of each static skeleton. The position data may be the coordinates of the static skeleton in the image frame.

[0057] Specifically, the skeleton morphology and skeleton position of the static skeleton of the multi-frame skeleton data are compared, the shape and movement posture of the skeleton as well as the movement trajectory, speed and acceleration data of the skeleton sequence are analyzed, and it is determined which static skeletons in the multi-frame skeleton come from the same object, and whether these static skeletons from the same object can form a dynamic skeleton, that is, the static skeletons corresponding to each object are combined in chronological order to determine whether a dynamically changing skeleton can be formed.

[0058] The multiple static skeletons of the dynamic skeleton of each observed object come from different image frames of the dynamic image, that is, one static skeleton of each observer corresponds to one frame of image, and the number of skeletons of the static skeleton is less than or equal to the number of frames of the image. The multiple frames of image have a temporal sequence, so the time points corresponding to the multiple static skeletons are different.

[0059] Specifically, the object with a dynamic skeleton is an observed person, and the object without a dynamic skeleton is a non-observed person, that is, a person who does not really exist in the target observation area, such as a non-real person in a picture on the wall.

[0060] Through dynamic and static analysis, observers and non-observers can be distinguished, objects without dynamic skeletons can be screened out, and observers with dynamic skeletons can be retained. In this way, multiple observers in the target observation area and the dynamic skeleton corresponding to each observer can be obtained.

[0061] The above operations eliminate the interference of external factors as much as possible, solve the problems of over-counting and missed counting of people, and thus improve the accuracy of congestion judgment results.

[0062] Step 202: identifying suspected crowded persons from a plurality of observed persons based on the human body key points included in the dynamic skeleton.

[0063] Specifically, after obtaining the observed persons through dynamic and static analysis, it is necessary to continue to screen the persons, that is, to identify the suspected crowded persons from multiple observed persons according to the key points of the human body contained in the dynamic skeleton. The suspected crowded persons are persons who may cause a crowding event.

[0064] Specifically, step 202 includes: determining the individual key point missing rate of each of the observers in multiple frames of the image based on the dynamic skeleton corresponding to each of the observers; if the individual key point missing rate is greater than or equal to the individual key point missing rate threshold, determining that the observer is the suspected crowded person.

[0065] The individual key point missing rate refers to the ratio of the number of missing human key points in the dynamic skeleton of the observer in the dynamic image to the total number of human key points that the observer should have.

[0066] When there are more and more people, the occlusion ratio between people is higher, and when there are fewer people, the occlusion ratio between people is lower. The missing key points of the human body can reflect the occlusion of people and, to a certain extent, the density of people.

[0067] The dynamic skeleton contains the key points of the human body. Through the dynamic skeleton of each observer, the individual key point missing rate of each observer can be determined. If the individual key point missing rate is greater than or equal to the preset individual key point missing rate threshold, the observer is determined as a suspected crowded person, that is, the suspected crowded person is identified.

[0068] In one example, the individual key point missing rate of each observer in multiple frames of the image is determined based on the dynamic skeleton corresponding to each observer, including: determining the missing key points of each observer in multiple frames of the image and the missing attribute information of each missing key point based on the dynamic skeleton corresponding to each observer; the missing attribute information includes the position attribute and missing frequency of the missing key point, and the missing frequency is the ratio of the total number of missing key points to the number of skeletons in the static skeleton of the observer; determining the missing weight of the missing key point according to the missing attribute information, and calculating the individual key point missing rate of each observer based on the missing weight.

[0069] Specifically, if the missing rate of individual key points is to be calculated, it is necessary to analyze the dynamic skeleton of the observer and determine the missing attribute information of the missing key points of the observer. Wherein, based on the dynamic skeleton corresponding to each observer, determining the missing key points of each observer in multiple frames of the image and the missing attribute information of each missing key point includes: comparing the human body key points of each static skeleton corresponding to each observer with the human body key points of the complete skeleton to determine the missing key points and the part attributes of each missing key point; determining the total number of missing times of each missing key point and the number of skeletons of the static skeleton of the observer; calculating the ratio of the total number of missing times to the number of skeletons to obtain the missing frequency of each missing key point.

[0070] like Figure 4 As shown, Figure 4 This is a complete skeleton schematic diagram provided in the embodiment of the present application. Figure 4 In the figure, the key points of the human body in the complete skeleton are marked by small squares, that is, one or more small squares represent a key point of the human body. The complete skeleton is a skeleton that is not blocked and has no missing key points of the human body. The complete skeleton is used as a reference to compare the key points of the human body with the extracted skeleton.

[0071] Specifically, the complete skeleton has a total of m human key points, and the initial key point ratios of the m human key points are all equal, which is L.

[0072] By comparing the key points of the human body, the missing key points are determined. There are n missing key points, and the corresponding initial key point proportions are L1, L2, L3, ..., L n It means that L1=L2=L3=…=L n =L, n≥0, n is an integer. The missing weights corresponding to the n missing key points are α1, α2, α3, …, α n .

[0073] Accordingly, .

[0074] Specifically, the missing weight of the missing key point is affected by the missing attribute information, that is, both the part attribute and the missing frequency will affect the missing weight of the missing key point.

[0075] There are basic weights corresponding to missing key points, and the basic weights of missing key points of different part attributes are different.

[0076] Different basic weights are assigned to key points of different body parts according to the difficulty of key points being blocked or missing. Key points of the body that are easily blocked or easily missing have smaller basic weights, while key points of the body that are not easily blocked or not easily missing have larger basic weights.

[0077] For example, the present application is applied to a traffic area with a certain inclination angle, in which the head is less likely to be blocked or missing than other parts, so a larger basic weight can be given to the head.

[0078] The missing frequency is the missing frequency of missing key points belonging to the same part attribute. The missing frequency corresponds to a weighted coefficient. The missing frequency of the missing key points belonging to the same part attribute is: the ratio of the total number of missing human key points in multiple static skeletons to the normal number of occurrences of the human key points when they are not blocked or missing.

[0079] .

[0080] When the basic weight is the same, if the weighting coefficient corresponding to the missing frequency is less than 1, the missing weight becomes smaller than the basic weight; if the weighting coefficient corresponding to the missing frequency is greater than 1, the missing weight becomes larger than the basic weight.

[0081] For example, taking the feet, legs, hands, shoulders, neck and head as examples, the basic weights are 1, 1.5, 1.8, 2, 2.5 and 3. If the missing frequency is less than 25%, the weighting coefficient of the basic weight is 0; if the missing frequency is in [25%, 60%], the weighting coefficient of the basic weight is 0.8; if the missing frequency is in (60%, 85%], the weighting coefficient of the basic weight is 1; if the missing frequency is greater than 85%, the weighting coefficient of the basic weight is 1.2.

[0082] If the dynamic skeleton of the observer is composed of 4 static skeletons. The 4 static skeletons of the observer are respectively compared with the complete skeleton for the key points of the human body, and the part attributes of each missing key point in the first static skeleton are feet, legs and right hand, the part attributes of each missing key point in the second static skeleton are feet, legs and right hand, the part attributes of each missing key point in the third static skeleton are feet, legs, right hand and left hand, and the part attributes of each missing key point in the fourth static skeleton are feet, legs, right hand and left hand. After summarizing, the part attributes of each missing key point are left foot, right foot, left leg, right leg, left hand and right hand, and the missing frequencies of left foot, right foot, left leg, right leg, left hand and right hand are 100%, 100%, 100%, 100%, 50% and 100% respectively. The basic weights of the missing key points left foot, right foot, left leg, right leg, left hand and right hand are 1, 1, 1.5, 1.5, 1.8 and 1.8 respectively, the weighting coefficients are 1.2, 1.2, 1.2, 1.2, 0.8 and 1.2 respectively, and the missing weights are 1.2, 1.2, 1.8, 1.8, 1.44 and 2.16 respectively.

[0083] In this application, the above example combines the dynamic change characteristics of the skeleton to determine the missing attribute information of the missing key points, that is, to determine the part attributes and missing frequency of each missing key point, and then obtain the missing weight of the missing key points belonging to the same part attribute, so as to facilitate the calculation of the missing rate of individual key points. And the obtained individual key point missing rate integrates the dynamic change characteristics and is more accurate.

[0084] Optionally, the basic weight mentioned above may be directly used as the missing weight to calculate the missing rate of the individual key points.

[0085] Optionally, the present application can also calculate the individual key point missing rate in the following manner: the complete skeleton has a total of m human key points, and the observer has n missing key points. The number of missing key points n may be the maximum missing key point value in multiple static skeletons of the observed person, or the average value of the missing key points in multiple static skeletons, etc. The specific value standard is not limited in this application.

[0086] According to the missing weight of the missing key points, the individual key point missing rate of the individual observer is calculated. That is, the individual key point missing rate of each observer is calculated with the help of the human body key points, and the personnel attributes are divided based on the individual key point missing rate. If the individual key point missing rate of the observer is greater than or equal to the individual key point missing rate threshold, the observer is determined to be a suspected crowded person, otherwise, it is an ordinary observer, so as to achieve accurate division of personnel attributes.

[0087] like Figure 5 As shown, Figure 5 This is a schematic diagram of ordinary observers and suspected crowded persons provided in an embodiment of the present application. Figure 5 Among them, the individual key point missing rates of observers A, observers B and observers E are all less than the individual key point missing rate threshold, and they are ordinary observers; the individual key point missing rates of observers C and observers D are greater than or equal to the individual key point missing rate threshold, and they are suspected crowded persons.

[0088] Based on step 202, the transition from global to local is achieved. By dividing personnel attributes, personnel who will not cause crowding events temporarily, i.e., ordinary observation personnel, are screened out, and suspected crowding personnel who may cause crowding events are retained, and the crowding judgment area is narrowed from the global, i.e., the entire target observation area, to the local area where the suspected crowding personnel are located, thereby reducing the dilution effect of ordinary personnel on the crowding judgment results and improving the credibility and accuracy of the crowding judgment.

[0089] Specifically, if no suspected crowded person is identified from the multiple observed persons after calculation and comparison, it means that there is no crowding risk in the target observation area at present, and the real-time dynamic image is obtained, and the above steps 201 and 202 are repeated.

[0090] Step 203, performing key point missing calculation based on the suspected crowded persons to obtain an overall key point missing rate.

[0091] If the suspected crowded person is identified through the classification of person attributes, step 203 is executed.

[0092] In step 203, the key point missing calculation is performed on the suspected crowded persons as a whole, and a comprehensive evaluation is performed on the local area, thereby further improving the judgment accuracy of the crowded event.

[0093] Furthermore, the overall key point missing rate is calculated, which refers to the average data of the individual key point missing rate of the suspected crowded persons in the dynamic image. The overall key point missing rate is an important data for determining whether a crowding event occurs.

[0094] In one example, the key point missing rate is obtained by performing key point missing calculation based on the suspected crowded persons, including: determining the number of suspected crowded persons and the individual key point missing rate of each of the suspected crowded persons; and performing calculation based on the number of persons and the individual key point missing rate to obtain the overall key point missing rate.

[0095] If, after step 202, it is determined that there are w suspected crowded persons, w is a positive integer. The missing rates of the individual key points of the w suspected crowded persons are X1, X2, X3, ..., X w .

[0096] The more people there are, the higher the crowding risk. In the weighted calculation, the number of suspected crowders affects the weighted weight y, that is, the larger the number of people w, the higher the crowding risk and the larger the weight y.

[0097] .

[0098] This application also takes the number of suspected crowded people as an influencing factor of the overall key point missing rate, taking the number of people into consideration, so that the obtained overall key point missing rate has more reference value and the judgment result obtained by comparative judgment is more accurate.

[0099] In another example, the individual key point missing rates of all suspected crowded persons are averaged to obtain the overall key point missing rate, that is, . It also achieves a comprehensive assessment of local areas, improving the accuracy of judging crowded events.

[0100] Step 204: When the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a congestion event occurs.

[0101] After the overall key point missing rate is obtained, the overall key point missing rate is compared with a preset overall key point missing rate threshold.

[0102] If the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a congestion event occurs.

[0103] After a congestion event is identified, an early warning is required.

[0104] Specifically, early warning information is sent to the corresponding staff for timely early warning intervention. At the same time, the alarm reminder device can also be used to remind all personnel in the target observation area to keep a proper distance and walk safely.

[0105] Specifically, when the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, after determining that a congestion event has occurred, the method further includes: determining a congestion level based on the overall key point missing rate; different congestion levels correspond to different warning methods; and performing congestion warning according to the warning method corresponding to the congestion level.

[0106] Specifically, the higher the overall key point missing rate, the more serious the congestion, the higher the congestion level, and the corresponding upgrade of the warning method. For example, according to the congestion level, the warning methods are divided into: only warning to remind people walking in the target observation area, reminding people walking in the target observation area and instructing one staff member to conduct command intervention in the target observation area, reminding people walking in the target observation area and instructing three staff members to conduct command intervention in the target observation area, and so on.

[0107] Through early warning reminders, we can improve safety management efficiency, prevent stampedes, and ensure public safety.

[0108] Specifically, after determining that a crowding event has occurred, the action behaviors and density of suspected crowding personnel in the dynamic image can be analyzed to determine the cause of the crowding, so as to optimize the target observation area.

[0109] Specifically, the activity areas of suspected crowded people can also be marked out so that staff can conduct more targeted command and intervention.

[0110] If the overall key point missing rate is less than the overall key point missing rate threshold, it is determined that no congestion event has occurred and monitoring continues.

[0111] This application introduces key points of the human body, divides the human body in detail, pays attention to the occlusion and missing conditions of the human body, obtains the missing rate of individual key points and the overall key point missing rate, and realizes the division of personnel attributes and crowding judgment. Figure 1 It can solve the problems in the network and make accurate judgments, thereby improving the accuracy of congestion judgment.

[0112] At the same time, the improvement of judgment accuracy will help to provide early warning reminders more timely and accurately, reduce the safety hazards caused by false alarms, and reduce the burden on staff, protect people's lives and property, and create a safer living and learning and working environment.

[0113] Specifically, the present application can be applied to places where people gather, such as campuses, to ensure the safety of students and other personnel.

[0114] In the embodiment of the present application, after obtaining the dynamic image of the target observation area, the human skeleton features in the dynamic image are extracted to obtain multiple observers and a dynamic skeleton corresponding to each observer containing multiple static skeletons, wherein the multiple static skeletons come from different image frames of the dynamic image, the multiple static skeletons correspond to different time points, and each static skeleton contains at least one human key point, that is, each dynamic skeleton contains human key points. According to the human key points contained in the dynamic skeleton, personnel are screened, and suspected crowded personnel who may cause a crowding event are identified from multiple observers, so as to achieve a transition from the global area to the local area, eliminate the interference of irrelevant factors of irrelevant personnel on the crowding judgment, and improve the accuracy of crowding judgment. Then, according to the missing of the human key points of the suspected crowded personnel, the overall key point missing rate is calculated, and the introduction of the human key points makes the judgment more accurate. When the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a crowding event has occurred. The overall missing rate of key parts is used to comprehensively evaluate the local area, further improving the accuracy of the judgment of the crowding event.

[0115] See also Figure 6 , Figure 6 This is a structural diagram of a congestion determination device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0116] The congestion determination device 600 includes: an extraction module 601 , a recognition module 602 , a calculation module 603 , and a determination module 604 .

[0117] The extraction module 601 is used to extract the human skeleton features in the dynamic image of the target observation area to obtain multiple dynamic skeletons; each of the dynamic skeletons corresponds to an observer, and the dynamic skeleton includes multiple static skeletons, the multiple static skeletons correspond to different time points, and each of the static skeletons includes at least one human key point.

[0118] The identification module 602 is used to identify suspected crowded persons from a plurality of observed persons based on the key points of the human body included in the dynamic skeleton.

[0119] The calculation module 603 is used to perform key point missing calculation based on the suspected crowded persons to obtain an overall key point missing rate.

[0120] The determination module 604 is configured to determine that a congestion event occurs when the overall key point missing rate is greater than or equal to an overall key point missing rate threshold.

[0121] Wherein, the extraction module is specifically used for:

[0122] Extract human skeleton features based on multiple frames of the image to obtain multiple frames of skeleton data; each frame of the skeleton data includes the static skeleton and position data of the static skeleton;

[0123] Skeleton morphology comparison and position comparison are performed based on the multiple frames of skeleton data to determine the multiple observers and the dynamic skeleton corresponding to each observer.

[0124] Wherein, the identification module is specifically used for:

[0125] Determine, based on the dynamic skeleton corresponding to each of the observers, an individual key point missing rate of each of the observers in the multiple frames of the images;

[0126] If the individual key point missing rate is greater than or equal to the individual key point missing rate threshold, the observed person is determined to be the suspected crowded person.

[0127] Based on the dynamic skeleton corresponding to each of the observers, determining the missing key points of each of the observers in the multiple frames of the images and the missing attribute information of each of the missing key points; the missing attribute information includes the location attribute and missing frequency of the missing key points, and the missing frequency is the ratio of the total number of missing times of the missing key points to the number of skeletons of the static skeleton of the observer;

[0128] The missing weight of the missing key point is determined according to the missing attribute information, and the missing rate of the individual key point of each of the observers is calculated based on the missing weight.

[0129] Compare the human body key points of each static skeleton corresponding to each observer with the human body key points of the complete skeleton to determine the missing key points and the part attributes of each missing key point;

[0130] Determine the total number of missing key points for each missing key point and the number of skeletons of the static skeleton of the observer;

[0131] The ratio of the total number of missing times to the number of skeletons is calculated to obtain the missing frequency of each missing key point.

[0132] Wherein, the calculation module is specifically used for:

[0133] Determine the number of suspected crowded persons and the individual key point missing rate of each of the suspected crowded persons;

[0134] The overall key point missing rate is obtained by performing calculation based on the number of personnel and the individual key point missing rate.

[0135] Specifically, the congestion determination device further includes an early warning module, which is used to:

[0136] Determine the congestion level based on the overall key point missing rate; different congestion levels correspond to different warning methods;

[0137] A congestion warning is performed according to the warning method corresponding to the congestion level.

[0138] The congestion determination device provided in the embodiment of the present application can implement each process of the embodiment of the above-mentioned congestion determination method and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0139] Figure 7 is a structural diagram of a terminal provided in an embodiment of the present application. As shown in the figure, the terminal 7 of the embodiment includes: at least one processor 70 ( Figure 7 Only one is shown in the figure), a memory 71, and a computer program 72 stored in the memory 71 and executable on the at least one processor 70, wherein the processor 70 implements the steps of any of the above-mentioned method embodiments when executing the computer program 72.

[0140] The terminal 7 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 7 may include, but is not limited to, a processor 70 and a memory 71. Those skilled in the art will appreciate that Figure 7 It is only an example of terminal 7 and does not constitute a limitation on terminal 7. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0141] The processor 70 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0142] The memory 71 may be an internal storage unit of the terminal 7, such as a hard disk or memory of the terminal 7. The memory 71 may also be an external storage device of the terminal 7, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 7. Further, the memory 71 may include both an internal storage unit and an external storage device of the terminal 7. The memory 71 is used to store the computer program and other programs and data required by the terminal. The memory 71 may also be used to temporarily store data that has been output or is to be output.

[0143] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0144] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0145] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0146] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0147] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0149] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0150] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be implemented through a computer program product. When the computer program product runs on a terminal, the terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0151] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A congestion determination method, characterized in that: include: Extracting human skeleton features in a dynamic image of a target observation area to obtain a plurality of dynamic skeletons; each of the dynamic skeletons corresponds to an observer, the dynamic skeletons include a plurality of static skeletons, the plurality of static skeletons correspond to different time points, and each of the static skeletons includes at least one key point of the human body; The observed person is a real person in the target observation area, the dynamic image includes multiple frames of images, and the extraction of human skeleton features in the dynamic image of the target observation area to obtain multiple dynamic skeletons includes: extracting human skeleton features based on the multiple frames of images to obtain multiple frames of skeleton data; Each of the skeleton data includes the static skeleton and the position data of the static skeleton; skeleton morphology comparison and position comparison are performed based on multiple frames of the skeleton data to determine the multiple observers and the dynamic skeleton corresponding to each of the observers; Based on the human body key points included in the dynamic skeleton, identifying suspected crowded persons from the multiple observed persons; Performing key point missing calculation based on the suspected crowded persons, obtaining an overall key point missing rate; When the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, it is determined that a congestion event occurs.

2. The method according to claim 1, characterized in that The step of identifying suspected crowded persons from a plurality of observed persons based on the key points of the human body included in the dynamic skeleton comprises: Determine the individual key point missing rate of each of the observers in the multiple frames of the images based on the dynamic skeleton corresponding to each of the observers; If the individual key point missing rate is greater than or equal to the individual key point missing rate threshold, the observed person is determined to be the suspected crowded person.

3. The method according to claim 2, characterized in that The determining, based on the dynamic skeleton corresponding to each of the observers, the individual key point missing rate of each of the observers in the multiple frames of the images comprises: Based on the dynamic skeleton corresponding to each of the observers, determining the missing key points of each of the observers in the multiple frames of the images and the missing attribute information of each of the missing key points; the missing attribute information includes the location attribute and missing frequency of the missing key points, and the missing frequency is the ratio of the total number of missing times of the missing key points to the number of skeletons of the static skeleton of the observer; The missing weight of the missing key point is determined according to the missing attribute information, and the individual key point missing rate of each of the observers is calculated based on the missing weight.

4. The method according to claim 3, characterized in that The determining, based on the dynamic skeleton corresponding to each of the observers, the missing key points of each of the observers in the multiple frames of the images and the missing attribute information of each of the missing key points comprises: Compare the human body key points of each static skeleton corresponding to each observer with the human body key points of the complete skeleton to determine the missing key points and the part attributes of each missing key point; Determine the total number of missing key points for each missing key point and the number of skeletons of the static skeleton of the observer; The ratio of the total number of missing times to the number of skeletons is calculated to obtain the missing frequency of each missing key point.

5. The method according to claim 3, characterized in that: The key point missing calculation based on the suspected crowded person to obtain the overall key point missing rate includes: Determine the number of suspected crowded persons and the individual key point missing rate of each of the suspected crowded persons; The overall key point missing rate is obtained by performing calculation based on the number of personnel and the individual key point missing rate.

6. The method according to claim 1, characterized in that When the overall key point missing rate is greater than or equal to the overall key point missing rate threshold, after determining that a congestion event occurs, the method further includes: Determine the congestion level based on the overall key point missing rate; different congestion levels correspond to different warning methods; A congestion warning is performed according to the warning method corresponding to the congestion level.

7. A congestion determination device, characterized in that: include: An extraction module is used to extract human skeleton features in a dynamic image of a target observation area to obtain multiple dynamic skeletons; each of the dynamic skeletons corresponds to an observer, the dynamic skeleton includes multiple static skeletons, the multiple static skeletons correspond to different time points, and each static skeleton includes at least one human key point; the observer is a real person in the target observation area, the dynamic image includes multiple frames of images, and the extraction module is specifically used to: extract human skeleton features based on the multiple frames of images to obtain multiple frames of skeleton data; each of the skeleton data includes the static skeleton and the position data of the static skeleton; perform skeleton morphology comparison and position comparison based on the multiple frames of skeleton data to determine multiple observers and the dynamic skeleton corresponding to each observer; A recognition module, used for identifying suspected crowded persons from a plurality of observed persons based on the key points of the human body included in the dynamic skeleton; A calculation module, used for performing key point missing calculation based on the suspected crowded persons to obtain an overall key point missing rate; The determination module is used to determine that a congestion event occurs when the overall key point missing rate is greater than or equal to an overall key point missing rate threshold.

8. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.