Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by persons skilled in the art without creative efforts based on the embodiments of the present invention, belong to the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should also be noted that, unless explicitly stated or limited otherwise, the terms "disposed," "coupled," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases for persons of ordinary skill in the art.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Referring to fig. 1, fig. 1 is a block diagram illustrating a crowd evacuation system 100 according to an embodiment of the present invention, where the crowd evacuation system includes a control terminal 110 and a display terminal 120, and the control terminal 110 is coupled to the display terminal 120.
In this embodiment, the control terminal 110 may be a computer. The control terminal 110 can obtain the position and the crowd evacuation condition of each civil air defense project, so that the staff can know the crowd evacuation condition of each civil air defense project in real time, effective crowd evacuation is carried out, and the crowd evacuation safety is ensured.
The display terminal 120 may be a television, an LED display, a projection display device, or the like. The display terminal 120 may be installed at an entrance of each civil air defense project for displaying evacuation conditions of each civil air defense project, or may be displayed on the display terminal 120 for reminding people of safety evacuation when a dangerous condition occurs.
Referring to fig. 2, fig. 2 is a flowchart of a crowd evacuation method according to an embodiment of the present invention, where the method is applied to a control terminal, and the method specifically includes the following steps:
step S110: and acquiring the flow of the crowd passing through the inlet of each civil air defense project through the Beidou satellite.
Still include a plurality of cameras among the crowd evacuation system, the entrance of civil air defense engineering is all installed to every camera, and every camera is in the during operation, and the video of the civil air defense engineering entrance of installing can be shot to the camera. Each camera is coupled with the control terminal through a data line, so that each camera can continuously send the shot video to the control terminal.
The control terminal is provided with the time of predetermineeing, control terminal can acquire in the time of predetermineeing every camera shooting the video of the entrance of civil air defense engineering, wherein, every video is the video of the entrance of the civil air defense that this camera was shot. In this embodiment, if the preset time is, for example, 1 minute, the control terminal can obtain the video with the duration of 1 minute according to the preset time, that is, after the control terminal obtains the video with the duration of 1 minute, the control terminal processes the video and starts to obtain the next video with the duration of 1 minute, so as to circulate.
When the control terminal processes each acquired video, each person entering from the entrance of the civil air defense project in each video is identified and marked, and the coordinates of each person at the entrance of the civil air defense project in the video are acquired.
Taking the processing of one of the videos as an example, as each person moves continuously, the coordinates of each person at the entrance of the civil air defense project in the video also change. When a person moves to the edge at the entrance to the civil air defense, the coordinates of the person are also located at the edge at the entrance to the civil air defense. And the control terminal judges that the person passes through the entrance of the civil air defense project according to the edge of the coordinate of the person at the entrance of the civil air defense project, and accumulates the number of the persons passing through the entrance of the civil air defense project once. The control terminal acquires the total number of people at the entrance of the civil air defense project in the video in the preset time in an accumulation mode, and the total number of people is the crowd flow at the entrance of the civil air defense project.
It can be understood that the control terminal processes each video in the same manner, and the control terminal obtains the crowd flow of the accumulated sum of the number of passing people at the entrance of each civil air defense project within the preset time according to each video.
Specifically, after each video is acquired, the control terminal sets an area at the entrance of the civil air defense project in each video as a first preset boundary according to a preset control program. Wherein the first preset boundary in each video may be at least one. By setting the first preset boundary for each video, the movement of the target object can be identified by the control terminal after entering the civil air defense project entrance of the video from the first preset boundary.
Take the processing of one of the videos by the control terminal as an example. After each target object enters the image through the first preset boundary, the control terminal obtains the trunk characteristic information of each target object through edge image extraction. In this embodiment, control terminal can carry out the degree of depth study to the appearance characteristic of human body to the storage is for predetermineeing trunk characteristic information, and wherein, predetermine trunk characteristic information and can be for: the connecting features of the head, torso and arms. And the control terminal compares each lifted trunk characteristic information with preset trunk characteristic information and obtains a comparison similarity value. It can be understood that when the control terminal obtains the similar value, the comparison is performed according to the connection between the head and the trunk and the connection between the trunk and the arms, and if the two connection features are compared and matched, the similar value is 100%; if only one of the characteristics is correctly compared, the similarity value is 50 percent; if both connection features do not match, the similarity value is 49%. If the comparison similarity value of the target object is larger than or equal to the comparison similarity threshold value, the control terminal can judge that the target object is a human body and mark each target object judged as the human body, wherein the mark point is the central point of the portrait. The hesitation control terminal can resolve the entrance of the civil air defense project into a two-dimensional coordinate system, so that the marked people can be located at a certain position of the entrance of the civil air defense project after entering the entrance of the civil air defense project from the first preset boundary, and the control terminal can acquire the coordinates of the marking point of each marked person at the entrance of the civil air defense project of the video.
Therefore, the control terminal can acquire the coordinates of the person marked in each video by processing each video in the same manner as described above.
After the control terminal acquires the coordinates of the marking points of each marked person in each video, if the person moves at the entrance of the video civil air defense project, the coordinates of the person at the entrance of the civil air defense project correspondingly change, and the control terminal can track the change of the coordinates of each person in each video.
As a way of example, another at least one area at the entrance of the civil air defense project of each video is set as a second preset boundary, and correspondingly, each second preset boundary also has coordinates at the entrance of the civil air defense project. In each video, when the coordinates of the tracked person are changed to be the same as the coordinates of at least one of the second preset boundaries, for example, the coordinates of the person are changed to: (12, 0) and the second predetermined boundary coordinate is (0-100, 0), then the person's y-bowl and the second predetermined boundary y-coordinate are the same. Therefore, the control terminal judges that the tracked person in the video correspondingly moves to the second preset boundary. At this time, the control terminal judges that the person passes through the entrance of the civil air defense project in the video, and accumulates the number of passing persons passing through the entrance of the civil air defense project once. The embodiment can set the people flow moving direction in each video by setting the first preset boundary and the second preset boundary for each video, and judge and count the passing number in the direction in each video.
The preset time set by the control terminal may be 1 minute to match variability of the actual situation. And the control terminal counts the number of people passing through the second preset boundary in the preset time of each video. In each video, when the marked people move to a second preset boundary, the control terminal can accumulate the number of people passing through the entrance of the civil air defense project in the video once. By acquiring the accumulated sum of the number of passing people of each video in the preset time, the number of passing people of each video in the preset time can be acquired, and the number of passing people of each video in the preset time is the crowd flow at the entrance of the civil air defense project.
Step S120: and judging whether the crowd flow passing through the entrance of each civil air defense project is in the corresponding preset crowd flow range.
For the purpose of crowd evacuation safety, the control terminal presets a safe evacuation crowd flow range of each civil air defense project, for example, if the preset crowd flow range of the safe evacuation crowd of a certain civil air defense project is 0-1000, if the obtained crowd flow at the entrance of the civil air defense project exceeds 1000 in the above step, step S130 is executed, and if the crowd flow at the entrance of the civil air defense project is within the above preset crowd flow range, step S140 is executed.
It should be noted that, according to the actual construction situation, the preset crowd flow range of each civil air defense project can be flexibly set according to the construction scale of each civil air defense project.
Step S130: and sending the position of the civil air defense project with the crowd flow at the entrance of the civil air defense project exceeding the preset crowd flow range of the civil air defense project to the display terminal.
If the control terminal judges that the crowd flow at the entrance of a certain civil air defense project exceeds the preset crowd flow range of the civil air defense project, the position of the civil air defense project is sent to the display terminal, so that workers at the entrance of the civil air defense project can timely understand which civil air defense project has larger evacuation pressure on the display terminal, flexible adjustment can be carried out, the crowd of the civil air defense project with large evacuation pressure is evacuated to the position of the civil air defense project with less crowd flow, of course, the control terminal can also send the positions of the civil air defense projects with the closest distance of the civil air defense project at the position with the largest crowd flow to the display terminal for display, and the workers can guide the crowd of the civil air defense project with the larger crowd flow to the civil air defense project with less crowd flow for evacuation, thereby effectively evacuating.
The control terminal can acquire the position information of each civil air defense project in advance through the Beidou satellite.
Step S140: and calculating the time required by people for evacuation in each civil air defense project according to the flow of the people passing through the entrance of each civil air defense project.
If the crowd flow that passes through at each civil air defense project's entrance is in the crowd flow scope of presetting that corresponds separately, then in order to further effectively carry out crowd evacuation, can calculate the crowd at the required time of each civil air defense project evacuation through the crowd flow.
Referring to fig. 3, fig. 3 is a flowchart illustrating a step S140 of a crowd evacuation method according to an embodiment of the present invention, where the step S140 further includes:
step S141: and acquiring the number of people evacuated by each civil air defense project at preset intervals.
Step S142: and calculating the number of people evacuated by each civil air defense project in unit time.
Step S143: and acquiring the time required by evacuation of each civil air defense project according to the number of people evacuated in unit time of each civil air defense project and the flow of people passing through the entrance of each civil air defense project.
The method comprises the steps of firstly obtaining the number of people evacuated by each civil air defense project at preset intervals, then calculating the number of people evacuated by each civil air defense project in unit time, and then obtaining the evacuation time of each civil air defense project according to the number of people evacuated by each civil air defense project in unit time. For example, if the preset time is 1 minute, 60 people can be evacuated in 1 minute by a certain civil air defense project a, and the number of people to be evacuated in unit time by the civil air defense project a is calculated to be 1, that is, the civil air defense project a can evacuate 1 person per second, which is the evacuation speed of the civil air defense project a.
The time required for evacuation in the civil air defense project is the quotient of the flow of the people passing through the entrance of the civil air defense project divided by the number of people evacuated in the unit time of the civil air defense project, for example, if the flow of the people at the entrance of the civil air defense project a is 500, then 500 is divided by 1 to obtain 500 seconds, and the evacuation time of the civil air defense project a is 500 seconds, namely 8.3 minutes.
The method can obtain the time required by evacuation of each civil air defense project.
Step S150: and acquiring the position of the civil air defense project with the shortest evacuation time based on the time, and sending the position of the civil air defense project with the shortest evacuation time to the display terminal for displaying.
Obtain the sparse required time of each civil air defense engineering in the aforesaid, through comparing out the shortest civil air defense engineering of evacuation time, then acquire the position of this civil air defense engineering, send the position of this civil air defense engineering for display terminal shows, thereby the staff of civil air defense engineering entrance can know which civil air defense engineering's evacuation pressure ratio is smaller, thereby the staff can guide this civil air defense engineering to evacuate with the crowd of other civil air defense engineering near this civil air defense engineering, thereby can carry out better crowd evacuation, the safety and high efficiency of crowd evacuation has been improved.
Referring to fig. 4, fig. 4 is a block diagram of a crowd evacuation device 200 according to an embodiment of the present invention, the device is operated in a control terminal of a crowd evacuation system, the system further includes a display terminal, the display terminal is coupled to the control terminal, and the device includes: the system comprises a crowd flow acquiring module 210, a judging module 220, a time acquiring module 230 and a display module 240.
And the crowd flow acquiring module 210 is used for acquiring the crowd flow passing through the entrance of each civil air defense project.
And the judging module 220 is configured to judge whether the crowd flow passing through the entrance of each civil air defense project is within the corresponding preset crowd flow range, and if not, send the position of the civil air defense project where the crowd flow at the entrance of the civil air defense project exceeds the preset crowd flow range of the civil air defense project to the display terminal.
And the time obtaining module 230 is used for calculating the time required by people for evacuation in each civil air defense project according to the flow of the people passing through the entrance of each civil air defense project.
And the display module 240 is configured to obtain the position of the civil air defense project with the shortest evacuation time based on the time, and send the position of the civil air defense project with the shortest evacuation time to the display terminal for displaying.
By way of one approach, the crowd flow acquiring module 210 includes: a video acquisition submodule and a crowd flow acquisition submodule.
And the video acquisition submodule is used for acquiring the shot video at the entrance of the civil air defense project sent by the camera within the preset time.
And the crowd flow acquisition submodule is used for acquiring the crowd flow passing through the entrance of each civil air defense project within the preset time according to the change of the coordinates of each person in the video.
By one approach, the crowd flow acquisition sub-module comprises: the system comprises a coordinate acquisition submodule, an operation submodule and an acquisition submodule.
And the coordinate acquisition submodule is used for marking each person entering the civil air defense project entrance from a first preset boundary in each video and acquiring the coordinates of each marked person in the video.
And the operation sub-module is used for accumulating the number of people passing through the civil air defense project entrance once when the coordinates in each video move to a second preset boundary at the civil air defense project entrance according to the change of each coordinate in each video at the civil air defense project entrance.
And the acquisition submodule is used for acquiring the crowd flow of the accumulated sum of the passing number of people at the entrance of each civil air defense project within the preset time.
By way of one approach, the time acquisition module 230 includes: the system comprises a number obtaining submodule, a unit time number obtaining submodule and a calculating submodule.
And the number obtaining submodule is used for obtaining the number of people evacuated by each civil air defense project at preset intervals.
And the number of people in unit time obtaining submodule is used for calculating the number of people evacuated in unit time by each civil air defense project.
And the calculation submodule is used for acquiring the time required by evacuation of each civil air defense project according to the number of people evacuated in unit time of each civil air defense project and the flow of people passing through the entrance of each civil air defense project.
In summary, embodiments of the present invention provide a crowd evacuation device and system, first obtain the crowd flow passing through the entrance of each civil air defense project, then determine whether the crowd flow passing through the entrance of each civil air defense project is within the respective corresponding preset crowd flow range, if not, send the position of the civil air defense project where the crowd flow at the entrance of the civil air defense project exceeds the preset crowd flow range of the civil air defense project to the display terminal, so that the staff can guide the crowd of the civil air defense project at the position with the larger crowd flow to the civil air defense project with the smaller crowd flow for evacuation, thereby performing effective evacuation.
Furthermore, if the crowd flow that each civil air defense project's entrance passed through is in the crowd flow scope of presetting that corresponds separately, then calculate the crowd at each civil air defense project required time of evacuation according to the crowd flow that each civil air defense project's entrance passed through, then based on the time acquires the position of the shortest people air defense project of evacuation time, and with the shortest people air defense project's position send for display terminal shows to the staff can guide this people air defense project to this people air defense project with the crowd of other people air defense projects near this people air defense project and evacuate, thereby can carry out better crowd evacuation, has improved the safe high efficiency nature of crowd evacuation.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.