CN110717926A - Method and device for acquiring pedestrian flow information - Google Patents

Method and device for acquiring pedestrian flow information Download PDF

Info

Publication number
CN110717926A
CN110717926A CN201810770648.5A CN201810770648A CN110717926A CN 110717926 A CN110717926 A CN 110717926A CN 201810770648 A CN201810770648 A CN 201810770648A CN 110717926 A CN110717926 A CN 110717926A
Authority
CN
China
Prior art keywords
track
point
motion
channel
track point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810770648.5A
Other languages
Chinese (zh)
Other versions
CN110717926B (en
Inventor
戴华东
张迪
龚晖
童俊艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810770648.5A priority Critical patent/CN110717926B/en
Publication of CN110717926A publication Critical patent/CN110717926A/en
Application granted granted Critical
Publication of CN110717926B publication Critical patent/CN110717926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30241Trajectory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image

Abstract

The application relates to a method and a device for acquiring pedestrian flow information, and belongs to the field of image processing. The method comprises the following steps: acquiring the position of each of M entrances and exits in a target area according to a first track set, wherein the track set comprises the motion track of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2; determining a second track set of each of N channels according to the position of each access opening, wherein the N channels are determined according to the M access openings, and the second track set of the channels comprises the motion tracks of pedestrians walking on the channels in the first track set; and acquiring pedestrian flow information of each channel according to the second track set of each channel. The device comprises: the device comprises a first acquisition module, a first determination module and a second acquisition module. The pedestrian flow information of the channel can be acquired.

Description

Method and device for acquiring pedestrian flow information
Technical Field
The present application relates to the field of image processing, and in particular, to a method and an apparatus for acquiring pedestrian traffic information.
Background
In public places such as shopping malls, libraries or office buildings, a large number of pedestrians can pass through the public places at any moment, the number of the pedestrians passing through different channels of the public places and/or the percentage of the total number of the pedestrians are counted, pedestrian flow information is obtained, and the pedestrian flow information has great practical significance for monitoring the pedestrian flow of the whole area and providing data reference for operation decisions of various industries such as public service or chain retail.
The number of pedestrians can be counted up by a method of previously installing an infrared device at an entrance and an exit of a public place, detecting a pedestrian passing through the entrance and the exit by emitted infrared rays, and increasing the number of pedestrians passing through the entrance and the exit whenever it is detected that a pedestrian passes through the entrance and the exit. The pedestrian flow information of each entrance and exit can be obtained by acquiring the number of pedestrians counted by the infrared equipment arranged at each entrance and exit in the public place, and calculating the percentage of each entrance and exit in the total number of people according to the pedestrian data of each entrance and exit, namely the pedestrian flow information comprises the number of pedestrians and/or the percentage and the like.
In the process of implementing the present application, the inventors found that the above manner has at least the following defects:
the current method can only count pedestrian flow information of the entrances and exits, but cannot count pedestrian flow information of the passages, the passages are paths for pedestrians to walk in public places, the pedestrians can enter the public places from one entrance and exit and then leave the public places from the other entrance and exit, and the two entrances and the paths passed by the pedestrians in the public places form a passage.
The counting of pedestrian traffic information of each channel has great significance for pedestrian flow control, but the pedestrian traffic information of the channel cannot be counted by the conventional method.
Disclosure of Invention
In order to obtain pedestrian traffic information of a channel, the embodiment of the application provides a method and a device for obtaining pedestrian traffic information. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for acquiring pedestrian traffic information, where the method includes:
acquiring the position of each of M entrances and exits in a target area according to a first track set, wherein the track set comprises the motion track of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2;
determining a second track set of each of N channels according to the position of each access opening, wherein the N channels are determined according to the M access openings, and the second track set of the channels comprises the motion tracks of pedestrians walking on the channels in the first track set;
and acquiring pedestrian flow information of each channel according to the second track set of each channel.
Optionally, the obtaining the position of each of the M entrances and exits in the target area according to the first trajectory set includes:
calculating the cumulative probability of each track point according to the position of each track point in a first track point set, wherein the cumulative probability of each track point is used for expressing the probability that the position of each track point is an entrance/exit position, and the first track point set comprises the starting point and the ending point of each motion track in the first track set;
and selecting the track points with the cumulative probability larger than a preset probability threshold from the first track point set, and determining the positions of the selected track points as the positions of the passageway.
Optionally, calculating the cumulative probability of each trace point according to the position of each trace point in the first trace point set includes:
calculating the local density and the minimum distance of each track point according to the position of each track point in a first track point set, wherein the minimum distance of each track point is the minimum value of the distance between each track point in a second track point set, and the second track point set comprises track points of which the local density is greater than the local density of the track points in the first track point set;
calculating a first decision function value of each track point according to the local density and the minimum distance of each track point, and normalizing the first decision function value of each track point to obtain a second decision function value of each track point;
and calculating the cumulative probability of each track point through a Gaussian distribution function according to the second decision function value of each track point.
Optionally, the determining a second trajectory set of each channel of the N channels according to the position of each access port includes:
determining at least one track point belonging to each access from a first track point set according to the position of each access, so as to obtain a third track point set of each access, wherein the first track point set comprises a starting point and an ending point of each motion track in the first track set;
and determining the channel to which each motion track in the first track set belongs according to the third track point set of each access, so as to obtain a second track set of each channel.
Optionally, determining at least one track point belonging to each access from a first track point set according to the position of each access, to obtain a third track point set of each access, including:
selecting track points, the distance between which and the position of the entrance and the exit is smaller than a preset distance threshold value, from the first track point set;
and adding the selected track points to a third track point set of the gateway.
Optionally, determining at least one track point belonging to each access from a first track point set according to the position of each access, to obtain a third track point set of each access, further including:
if the first track point set also comprises the residual track points which are not added to the third track point set of each access opening, calculating the distance between the residual track points and the third track point set of each access opening;
and adding the residual track points into a third track point set of the gateway closest to the residual track points.
Optionally, the calculating a distance between the remaining track point and the third track point set of each entrance/exit includes:
calculating the distance between the residual track point and each track point in a third track point set of a target access, wherein the target access is any one of the M accesses;
and selecting the minimum distance from the calculated distances as the distance between the residual track point and the third track point set of the target entrance.
Optionally, the pedestrian traffic information of the passage includes at least one of the number of pedestrians of the passage, the percentage of the number of pedestrians in the total number of the target area, and the path of the passage;
the acquiring pedestrian traffic information of each channel according to the second track set of each channel includes:
calculating path parameters of each motion track in a third track set according to the third track set of a channel, wherein the third track set of the channel comprises at least one complete motion track;
sequencing the motion tracks according to the path parameters of the motion tracks to obtain a track sequence;
and determining the motion track arranged at the middle position of the track sequence as the path of the channel.
Optionally, the calculating, according to the third trajectory set of channels, a path parameter of each motion trajectory in the third trajectory set includes:
filtering out a motion track of which the distance between the starting point and the position of the starting entrance and the position of the starting exit of the channel exceeds a preset distance threshold value and a motion track of which the distance between the ending point and the position of the ending entrance of the channel exceeds a preset distance threshold value from a third track set of the channel to obtain a fourth track set;
and calculating the path parameter of each motion track according to the length of each motion track in the fourth track set and the number of track points included in each motion track.
Optionally, before the obtaining the position of each of the M entrances and exits in the target area according to the first trajectory set, the method further includes:
the method comprises the steps of obtaining track points of a pedestrian generated by an image pickup device when the pedestrian is detected, selecting a starting point and an end point from the track points of the pedestrian to form a motion track of the pedestrian, and adding the motion track to a first track set, wherein the image pickup device is deployed in a target area.
Optionally, after selecting a start point and an end point from the track points of the pedestrian, the method further includes:
and determining a channel for the pedestrian to walk according to the starting point, the ending point and the determined channels, and if the number of the motion tracks included in a third track set corresponding to the channel does not exceed a preset number threshold, forming a complete motion track by the track points of the pedestrian and adding the complete motion track to the third track set of the channel.
In a second aspect, an embodiment of the present application provides an apparatus for acquiring pedestrian traffic information, where the apparatus includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the position of each of M entrances and exits in a target area according to a first track set, the track set comprises the motion track of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2;
a first determining module, configured to determine, according to a position of each entrance, a second trajectory set of each of N channels, where the N channels are determined according to the M entrances and exits, and the second trajectory set of the channels includes a motion trajectory of a pedestrian walking on the channel in the first trajectory set;
and the second acquisition module is used for acquiring the pedestrian flow information of each channel according to the second track set of each channel.
Optionally, the first obtaining module is configured to:
calculating the cumulative probability of each track point according to the position of each track point in a first track point set, wherein the cumulative probability of each track point is used for expressing the probability that the position of each track point is an entrance/exit position, and the first track point set comprises the starting point and the ending point of each motion track in the first track set;
and selecting the track points with the cumulative probability larger than a preset probability threshold from the first track point set, and determining the positions of the selected track points as the positions of the passageway.
Optionally, the first obtaining module is configured to:
calculating the local density and the minimum distance of each track point according to the position of each track point in a first track point set, wherein the minimum distance of each track point is the minimum value of the distance between each track point in a second track point set, and the second track point set comprises track points of which the local density is greater than the local density of the track points in the first track point set;
calculating a first decision function value of each track point according to the local density and the minimum distance of each track point, and normalizing the first decision function value of each track point to obtain a second decision function value of each track point;
and calculating the cumulative probability of each track point through a Gaussian distribution function according to the second decision function value of each track point.
Optionally, the first determining module is configured to:
determining at least one track point belonging to each access from a first track point set according to the position of each access, so as to obtain a third track point set of each access, wherein the first track point set comprises a starting point and an ending point of each motion track in the first track set;
and determining the channel to which each motion track in the first track set belongs according to the third track point set of each access, so as to obtain a second track set of each channel.
Optionally, the first determining module is configured to:
selecting track points, the distance between which and the position of the entrance and the exit is smaller than a preset distance threshold value, from the first track point set;
and adding the selected track points to a third track point set of the gateway.
Optionally, the first determining module is further configured to:
if the first track point set also comprises the residual track points which are not added to the third track point set of each access opening, calculating the distance between the residual track points and the third track point set of each access opening;
and adding the residual track points into a third track point set of the gateway closest to the residual track points.
Optionally, the first determining module is configured to:
calculating the distance between the residual track point and each track point in a third track point set of a target access, wherein the target access is any one of the M accesses;
and selecting the minimum distance from the calculated distances as the distance between the residual track point and the third track point set of the target entrance.
Optionally, the pedestrian traffic information of the passage includes at least one of the number of pedestrians of the passage, the percentage of the number of pedestrians in the total number of the target area, and the path of the passage;
the second obtaining module is configured to:
calculating path parameters of each motion track in a third track set according to the third track set of a channel, wherein the third track set of the channel comprises at least one complete motion track;
sequencing the motion tracks according to the path parameters of the motion tracks to obtain a track sequence;
and determining the motion track arranged at the middle position of the track sequence as the path of the channel.
Optionally, the second obtaining module is configured to:
filtering out a motion track of which the distance between the starting point and the position of the starting entrance and the position of the starting exit of the channel exceeds a preset distance threshold value and a motion track of which the distance between the ending point and the position of the ending entrance of the channel exceeds a preset distance threshold value from a third track set of the channel to obtain a fourth track set;
and calculating the path parameter of each motion track according to the length of each motion track in the fourth track set and the number of track points included in each motion track.
Optionally, the apparatus further comprises:
and the third acquisition module is used for acquiring all track points of the pedestrian generated by the camera equipment when the pedestrian is detected, selecting a starting point and an end point from all track points of the pedestrian to form a motion track of the pedestrian and adding the motion track into the first track set, and the camera equipment is deployed in the target area.
Optionally, the apparatus further comprises:
and the second determining module is used for determining the channels where the pedestrian walks according to the starting point, the ending point and the determined channels, and if the number of the motion tracks included in the third track set corresponding to the channels does not exceed a preset number threshold, the track points of the pedestrian are combined into a complete motion track and added into the third track set of the channels.
In a third aspect, the present application provides a non-transitory computer readable storage medium for storing a computer program which is loaded and executed by a processor to implement the instructions of the first aspect or any of the alternative methods of the first aspect.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the pedestrian flow information of each channel is obtained by obtaining the position of each access in M accesses in the target area, determining the second track set of each channel in the N channels from the first track set according to the position of each access, and obtaining the pedestrian flow information of each channel according to the second track set of each channel, so that the pedestrian flow information of the channel can be obtained.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic illustration of a target area provided by an embodiment of the present application;
fig. 2 is a flowchart of a method for acquiring pedestrian traffic information according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another method for acquiring pedestrian traffic information according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus for acquiring pedestrian traffic information according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In this embodiment, the image pickup apparatus may be installed in a target area, and the target area may be an entrance area of a public place such as a mall, a library, or an office building. The image pickup device can monitor pedestrians entering and exiting the whole target area.
The target area comprises M entrances and exits, wherein M is an integer greater than or equal to 2, N channels are formed according to the M entrances and exits, each channel takes one entrance and exit as a starting entrance and exit of the channel, and the other entrance and exit as an end entrance and exit of the channel.
For example, referring to the target area shown in fig. 1, 4 ports, respectively 1, 2, 3 and 4, are included, and 12 channels can be formed according to the four ports. For example, a passageway 1 from the port 1 to the port 2, a passageway 2 from the port 1 to the port 3, a passageway 3 from the port 1 to the port 4, a passageway 4 from the port 2 to the port 1, passageways 5 and … … from the port 2 to the port 3, and a passageway 12 from the port 4 to the port 3 may be formed.
The pedestrian can walk on any one channel in the target area, the camera device shoots the target area to obtain the monitoring video, the track point of the pedestrian motion appearing in the target area can be detected in real time according to the monitoring video, and the track point can be the position of the pedestrian in an image coordinate system of a video picture shot by the camera device. In this embodiment, the track points of the pedestrian detected by the camera device in real time are acquired, and pedestrian traffic information is acquired according to the track points detected in real time.
Referring to fig. 2, an embodiment of the present application provides a method for acquiring pedestrian traffic information, including:
step 201: the method comprises the steps of obtaining the position of each of M entrances and exits in a target area according to a first track set, wherein the track set comprises the motion track of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2.
Step 202: and determining a second track set of each of the N channels according to the position of each entrance and exit, wherein the N channels are determined according to the M entrances and exits, and the second track set of the channels comprises the motion tracks of the pedestrians walking on the channels in the first track set.
Step 203: and acquiring pedestrian flow information of each channel according to the second track set of each channel.
In the embodiment of the application, because the position of each of M gates in the target area is obtained, the second track set of each of the N channels is determined from the first track set according to the position of each gate, and the pedestrian flow information of each channel is obtained according to the second track set of each channel, the pedestrian flow information of the channel can be obtained, and the pedestrian flow can be effectively monitored and guided according to the pedestrian flow information of the channel.
For the embodiment shown in fig. 2, there are various detailed implementations of this embodiment. For example, in the present embodiment, the implementation examples shown in fig. 3 are listed, and other implementation examples are not listed. Referring to fig. 3, the implementation example includes the following steps.
Step 301: the acquisition image pickup device generates track points of the pedestrian when the pedestrian is detected, selects a starting point and an end point from the track points of the pedestrian to form a motion track of the pedestrian and adds the motion track to the first track set.
The image pickup device can be deployed in a target area, can shoot the target area to obtain a video, detects a pedestrian appearing in the target area according to the video, and can detect track points of the pedestrian walking in the target area and a pedestrian identifier of the pedestrian in real time according to the video, wherein the pedestrian identifier is used for uniquely identifying the pedestrian.
When the image pickup device detects that a pedestrian appears and walks in the target area for the first time, the image pickup device can allocate a pedestrian identifier for the pedestrian, and can acquire track points of the pedestrian walking in the target area in real time later.
In this step, track points and pedestrian identifications of pedestrians detected by the camera device are acquired, whether a storage area corresponding to the pedestrians exists in the storage space is detected according to the pedestrian identifications, the storage space comprises at least one storage area, each pedestrian walking in a target area corresponds to one storage area at present, the storage area of the pedestrians is used for storing the track points and the pedestrian identifications of the pedestrians, if the storage area corresponding to the pedestrians exists, the acquired track points of the pedestrians are added into the storage area of the pedestrians, if the storage area corresponding to the pedestrians does not exist, a blank storage area is selected from the storage space, and the acquired track points and the pedestrian identifications of the pedestrians are stored in the blank storage area.
Optionally, for the track points of each pedestrian stored in the storage space, when it is detected that the time when the track point of the pedestrian is not acquired from the camera device reaches a preset time threshold, it may be determined that the pedestrian has left the target area; a start point and an end point may be obtained from the track point in the storage area of the pedestrian, the start point being the track point stored first in the storage area, the end point being the track point stored last in the storage area, the start point and the end point constituting a motion trajectory of the pedestrian, and the motion trajectory being added to the first trajectory set.
Optionally, when a storage area corresponding to the pedestrian is detected in the storage space, the distance between the two track points can be calculated according to the currently acquired track point of the pedestrian and the last stored track point in the storage area, if the distance is smaller than a preset distance threshold, the acquired track point of the pedestrian is discarded, and if the distance is larger than or equal to the preset distance threshold, the acquired track point of the pedestrian is added to the storage area of the pedestrian.
When the distance is smaller than the preset distance threshold value, the pedestrian stands in the target area and does not move, and the track is unchanged, so that the currently acquired track point of the pedestrian does not need to be stored in the storage area of the pedestrian, and the occupation of the storage area can be reduced.
Optionally, the pedestrian walking channel may be determined from the last determined channels according to the starting point and the ending point, and if the number of motion trajectories included in the third trajectory set corresponding to the channel does not exceed the preset number threshold, the trajectory points in the storage area of the pedestrian are combined into a complete motion trajectory and added to the third trajectory set of the channel.
For each channel determined last time recently, the channel comprises a position of a starting entrance and a position of an ending entrance, a first distance between the starting point and the position of the starting entrance is calculated, a second distance between the ending point and the position of the ending entrance is calculated, and if the first distance and the second distance are both smaller than a preset distance, the channel is determined to be a moving track of the walking of the pedestrian.
Optionally, the storage space may be a linked list, and the storage area corresponding to the pedestrian may be a node in the linked list.
Optionally, the track point of the pedestrian acquired by the camera device is substantially the position of the pedestrian in an image coordinate system of a video picture, and the video picture is a video picture taken by the camera device.
In this embodiment, the pedestrian traffic information may be periodically acquired according to the first trajectory set, and the period length of the period may be 5 hours, one day, one week, or the like.
The process of acquiring pedestrian traffic information may include the following operations 302 to 305.
Step 302: and calculating the cumulative probability of each track point according to the position of each track point in the first track point set, wherein the first track point set comprises the starting point and the ending point of each motion track in the first track set.
The accumulated probability of the track point is used for representing the probability that the position of the track point is the entrance position.
And (4) optional. The cumulative probability of each trace point in the first set of trace points may be calculated by the following operations 3021 to 3023.
3021: and calculating the local density and the minimum distance of each track point according to the position of each track point in the first track point set.
The minimum distance of the track points is the minimum value in the distance between the track point and each track point in the second track point set, and the second track point set comprises the track points of which the local density is greater than that of the track points in the first track point set.
For the ith track point in the first track point set, the local density of the ith track point can be calculated in the following formula (1).
Figure BDA0001730171550000111
In the above formula (1), ρiIs the local density of the ith trace point, dijIs the distance between the ith track point and the jth track point, the jth track point is any one of the track points except the ith track point in the first track point set, and dcThe distance parameter is a preset fixed value.
Wherein, in the formula (1), when dij-dcWhen less than 0, x (d)ij-dc) Is equal to 1, when dij-dcX (d) is 0 or moreij-dc) Equal to 0.
The local density of each trace point in the first set of trace points can be calculated according to equation (1) above.
The minimum distance for the ith trace point can be calculated as shown in the following formula (2).
Figure BDA0001730171550000121
In the formula (2), δiIs the minimum distance of the ith trace point, dikIs the distance, rho, between the ith and kth trace pointskThe local density of the kth track point is any track point with the local density larger than that of the ith track point.
The minimum distance of each trace point in the first set of trace points can be calculated according to the above formula (2).
3022: and calculating a first decision function value of each track point according to the local density and the minimum distance of each track point, and normalizing the first decision function value of each track point to obtain a second decision function value of each track point.
The first decision function value for each trace point in the first set of trace points can be calculated by the following formula (3).
Figure BDA0001730171550000122
In the formula (3), γiAnd the first decision function value of the ith track point.
And (4) calculating a first decision function value of each track point in the first track point set according to the formula (3).
And (4) normalizing the first decision function value of each track point by the following formula (4) to obtain a second decision function value of each track point.
Figure BDA0001730171550000123
In the above-mentioned formula (4),
Figure BDA0001730171550000124
as a second decision function value for the ith trace point, (delta)2)minFor the square of the smallest of the minimum distances of each trace point in the first set of trace points, (δ)2)maxThe square value of the largest minimum distance in the minimum distances of each track point in the first track point set.
3023: and calculating the cumulative probability of each track point through a Gaussian distribution function according to the second decision function value of each track point.
The second decision function value for each trace point may be substituted into a gaussian distribution function as shown in equation (5) below, and the cumulative probability for each trace point may be calculated.
Figure BDA0001730171550000125
In formula (5), x is the second decision function value of the ith trace point, and f (x) is the cumulative probability of the ith trace point.
Step 303: and selecting the track points with the cumulative probability larger than a preset probability threshold from the first track point set, and determining the positions of the selected track points as the positions of the passageway.
Step 304: and determining a second track set of each channel in the N channels according to the determined position of each access port.
The N channels are determined according to the M entrances and exits, and the second track set of the channels comprises the motion tracks of pedestrians walking on the channels in the first track set. For example, referring to fig. 1, assuming that ports 1, 2, 3 and 4 are determined, 12 channels can be formed according to the four ports. A passageway 1 from the port 1 to the port 2, a passageway 2 from the port 1 to the port 3, a passageway 3 from the port 1 to the port 4, a passageway 4 from the port 2 to the port 1, passageways 5 and … … from the port 2 to the port 3, and a passageway 12 from the port 4 to the port 3 are formed.
In this step, a second set of trajectories for each of the N lanes may be determined by operations 3041 and 3042 as follows.
3041: and determining at least one track point belonging to each access from the first track point set according to the position of each access, so as to obtain a third track point set of each access.
Optionally, for the determined position of each entrance and exit, a track point, of which the distance from the position of the entrance and exit is smaller than a preset distance threshold, may be selected from the first track point set; and adding the selected track point to a third track point set of the passageway. Thus, a third trace point set of each entrance can be obtained.
Optionally, if the first track point set further includes remaining track points of the third track point set that are not added to each entrance/exit, calculating a distance between the remaining track points and the third track point set of each entrance/exit; and adding the residual track point to a third track point set which is closest to the residual track point.
Optionally, for the third track point set of each entrance and exit, the distance between the remaining track point and the third track point set of the entrance and exit may be calculated in the following manner:
and calculating the distance between the residual track point and each track point in the third track point set of the entrance and the exit, selecting the minimum distance from the calculated distances, and determining the minimum distance as the distance between the residual track point and the third track point set of the entrance and the exit.
3042: and determining the channel to which each motion track in the first track set belongs according to the third track point set of each entrance and exit to obtain a second track set of each channel.
Optionally, for any motion trajectory in the first trajectory set, determining a third trajectory point set to which the starting point of the motion trajectory belongs, and determining the position of the entrance and exit corresponding to the third trajectory point set as the starting entrance and exit of the channel; and determining a third track point set to which the end point of the motion track belongs, determining the position of an entrance and an exit corresponding to the third track point set as the position of the end entrance and the exit of the channel, so as to obtain the channel to which the motion track belongs, and adding the motion track to the second track set of the channel.
Step 305: and acquiring pedestrian flow information of each channel according to the determined second track set of each channel.
Optionally, the pedestrian traffic information of the passage includes at least one of the number of pedestrians of the passage, the percentage of the number of pedestrians in the total number of the target area, and the path of the passage.
The number of pedestrians in the channel can be obtained by counting the number of motion tracks in the second track set of the channel. The total number of pedestrians in each passage can be accumulated in the target area.
For each channel, the path of the channel can be obtained by the following operations 3051 to 3053, which are respectively:
3051: and calculating the path parameters of each motion track in the third track set according to the third track set of the channel, wherein the third track set of the channel comprises at least one complete motion track.
In this step, a motion trajectory in which the distance between the starting point and the position of the starting entrance and exit of the channel exceeds a preset distance threshold and a motion trajectory in which the distance between the ending point and the position of the ending entrance and exit of the channel exceeds a preset distance threshold are filtered out from the third trajectory set of the channel, so as to obtain a fourth trajectory set; and calculating the path parameter of each motion track according to the length of each motion track in the fourth track set and the number of track points included in each motion track.
Optionally, a maximum length may be selected from lengths of each motion trajectory in the fourth trajectory set, and the length of each motion trajectory is normalized according to the maximum length to obtain a first normalized value of each motion trajectory.
The maximum number of the track points of each motion track in the fourth track set can be selected from the number of the track points of each motion track, and the number of the track points of each motion track is normalized according to the maximum number of the track points, so that a second normalized value of each motion track is obtained.
And accumulating the first normalization value and the second normalization value of each motion track to obtain the path parameter of each motion track.
3052: and sequencing the motion tracks according to the path parameters of the motion tracks to obtain a track sequence.
3053: and determining the motion track arranged at the middle position of the track sequence as the path of the channel.
In the embodiment of the application, when the track points of the pedestrian are generated when the pedestrian is detected by the image pickup device, the motion track of the pedestrian is formed by selecting the starting point and the end point from the track points of the pedestrian and is added into the first track set, so that the data of the stored track points can be reduced, and the storage resource is saved. The method comprises the steps of calculating the cumulative probability of each track point, really obtaining the position of each access in M accesses in a target area according to the cumulative probability of each track point, determining a second track set of each channel in N channels from a first track set according to the position of each access, and obtaining pedestrian traffic information of each channel according to the second track set of each channel, so that the pedestrian traffic information of the channels can be obtained.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, an embodiment of the present application provides an apparatus 400 for acquiring pedestrian traffic information, where the apparatus 400 includes:
a first obtaining module 401, configured to obtain a position of each of M entrances and exits in a target area according to a first trajectory set, where the trajectory set includes a motion trajectory of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2;
a first determining module 402, configured to determine, according to a position of each entrance, a second trajectory set of each of N channels, where the N channels are determined according to the M entrances and exits, and the second trajectory set of the channels includes a motion trajectory of a pedestrian walking on the channel in the first trajectory set;
a second obtaining module 403, configured to obtain pedestrian traffic information of each channel according to the second track set of each channel.
Optionally, the first obtaining module 401 is configured to:
calculating the cumulative probability of each track point according to the position of each track point in a first track point set, wherein the cumulative probability of each track point is used for expressing the probability that the position of each track point is an entrance/exit position, and the first track point set comprises the starting point and the ending point of each motion track in the first track set;
and selecting the track points with the cumulative probability larger than a preset probability threshold from the first track point set, and determining the positions of the selected track points as the positions of the passageway.
Optionally, the first obtaining module 401 is configured to:
calculating the local density and the minimum distance of each track point according to the position of each track point in a first track point set, wherein the minimum distance of each track point is the minimum value of the distance between each track point in a second track point set, and the second track point set comprises track points of which the local density is greater than the local density of the track points in the first track point set;
calculating a first decision function value of each track point according to the local density and the minimum distance of each track point, and normalizing the first decision function value of each track point to obtain a second decision function value of each track point;
and calculating the cumulative probability of each track point through a Gaussian distribution function according to the second decision function value of each track point.
Optionally, the first determining module 402 is configured to:
determining at least one track point belonging to each access from a first track point set according to the position of each access, so as to obtain a third track point set of each access, wherein the first track point set comprises a starting point and an ending point of each motion track in the first track set;
and determining the channel to which each motion track in the first track set belongs according to the third track point set of each access, so as to obtain a second track set of each channel.
Optionally, the first determining module 402 is configured to:
selecting track points, the distance between which and the position of the entrance and the exit is smaller than a preset distance threshold value, from the first track point set;
and adding the selected track points to a third track point set of the gateway.
Optionally, the first determining module 402 is further configured to:
if the first track point set also comprises the residual track points which are not added to the third track point set of each access opening, calculating the distance between the residual track points and the third track point set of each access opening;
and adding the residual track points into a third track point set of the gateway closest to the residual track points.
Optionally, the first determining module 402 is configured to:
calculating the distance between the residual track point and each track point in a third track point set of a target access, wherein the target access is any one of the M accesses;
and selecting the minimum distance from the calculated distances as the distance between the residual track point and the third track point set of the target entrance.
Optionally, the pedestrian traffic information of the passage includes at least one of the number of pedestrians of the passage, the percentage of the number of pedestrians in the total number of the target area, and the path of the passage;
the second obtaining module 403 is configured to:
calculating path parameters of each motion track in a third track set according to the third track set of a channel, wherein the third track set of the channel comprises at least one complete motion track;
sequencing the motion tracks according to the path parameters of the motion tracks to obtain a track sequence;
and determining the motion track arranged at the middle position of the track sequence as the path of the channel.
Optionally, the second obtaining module 403 is configured to:
filtering out a motion track of which the distance between the starting point and the position of the starting entrance and the position of the starting exit of the channel exceeds a preset distance threshold value and a motion track of which the distance between the ending point and the position of the ending entrance of the channel exceeds a preset distance threshold value from a third track set of the channel to obtain a fourth track set;
and calculating the path parameter of each motion track according to the length of each motion track in the fourth track set and the number of track points included in each motion track.
Optionally, the apparatus 400 further includes:
and the third acquisition module is used for acquiring all track points of the pedestrian generated by the camera equipment when the pedestrian is detected, selecting a starting point and an end point from all track points of the pedestrian to form a motion track of the pedestrian and adding the motion track into the first track set, and the camera equipment is deployed in the target area.
Optionally, the apparatus 400 further includes:
and the second determining module is used for determining the channels where the pedestrian walks according to the starting point, the ending point and the determined channels, and if the number of the motion tracks included in the third track set corresponding to the channels does not exceed a preset number threshold, the track points of the pedestrian are combined into a complete motion track and added into the third track set of the channels.
In the embodiment of the application, because the position of each of M gates in the target area is obtained, the second track set of each of the N channels is determined from the first track set according to the position of each gate, and the pedestrian flow information of each channel is obtained according to the second track set of each channel, the pedestrian flow information of the channel can be obtained, and the pedestrian flow can be effectively monitored and guided according to the pedestrian flow information of the channel.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 shows a block diagram of a terminal 500 according to an exemplary embodiment of the present invention. The terminal 500 may be a portable mobile terminal such as: a smartphone, a tablet, a laptop, or a desktop computer. Terminal 500 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and the like.
In general, the terminal 500 includes: a processor 501 and a memory 502.
The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 502 is used to store at least one instruction for execution by the processor 501 to implement the method provided by any of the embodiments described above.
In some embodiments, the terminal 500 may further optionally include: a peripheral interface 503 and at least one peripheral. The processor 501, memory 502 and peripheral interface 503 may be connected by a bus or signal lines. Each peripheral may be connected to the peripheral interface 503 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 504, touch screen display 505, camera 506, audio circuitry 507, positioning components 508, and power supply 509.
The peripheral interface 503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, memory 502, and peripheral interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 504 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 504 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 504 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to capture touch signals on or over the surface of the display screen 505. The touch signal may be input to the processor 501 as a control signal for processing. At this point, the display screen 505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 505 may be one, providing the front panel of the terminal 500; in other embodiments, the display screens 505 may be at least two, respectively disposed on different surfaces of the terminal 500 or in a folded design; in still other embodiments, the display 505 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 500. Even more, the display screen 505 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 505 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 506 is used to capture images or video. Optionally, camera assembly 506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 507 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 501 for processing, or inputting the electric signals to the radio frequency circuit 504 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 501 or the radio frequency circuit 504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 507 may also include a headphone jack.
The positioning component 508 is used to locate the current geographic position of the terminal 500 for navigation or LBS (location based Service). The positioning component 508 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 509 is used to power the various components in terminal 500. The power source 509 may be alternating current, direct current, disposable or rechargeable. When power supply 509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 500 also includes one or more sensors 510. The one or more sensors 510 include, but are not limited to: acceleration sensor 511, gyro sensor 512, pressure sensor 513, fingerprint sensor 514, optical sensor 515, and proximity sensor 516.
The acceleration sensor 511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 500. For example, the acceleration sensor 511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 501 may control the touch screen 505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 512 may detect a body direction and a rotation angle of the terminal 500, and the gyro sensor 512 may cooperate with the acceleration sensor 511 to acquire a 3D motion of the user on the terminal 500. The processor 501 may implement the following functions according to the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 513 may be disposed on a side bezel of the terminal 500 and/or an underlying layer of the touch display screen 505. When the pressure sensor 513 is disposed on the side frame of the terminal 500, a user's holding signal of the terminal 500 may be detected, and the processor 501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is disposed at the lower layer of the touch display screen 505, the processor 501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 514 is used for collecting a fingerprint of the user, and the processor 501 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 514 may be provided on the front, back, or side of the terminal 500. When a physical button or a vendor Logo is provided on the terminal 500, the fingerprint sensor 514 may be integrated with the physical button or the vendor Logo.
The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 may control the display brightness of the touch display screen 505 based on the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is turned down. In another embodiment, processor 501 may also dynamically adjust the shooting parameters of camera head assembly 506 based on the ambient light intensity collected by optical sensor 515.
A proximity sensor 516, also referred to as a distance sensor, is typically disposed on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front surface of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 gradually decreases, the processor 501 controls the touch display screen 505 to switch from the bright screen state to the dark screen state; when the proximity sensor 516 detects that the distance between the user and the front surface of the terminal 500 becomes gradually larger, the processor 501 controls the touch display screen 505 to switch from the screen-rest state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting of terminal 500 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (22)

1. A method of obtaining pedestrian traffic information, the method comprising:
acquiring the position of each of M entrances and exits in a target area according to a first track set, wherein the track set comprises the motion track of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2;
determining a second track set of each of N channels according to the position of each access opening, wherein the N channels are determined according to the M access openings, and the second track set of the channels comprises the motion tracks of pedestrians walking on the channels in the first track set;
and acquiring pedestrian flow information of each channel according to the second track set of each channel.
2. The method of claim 1, wherein said obtaining a location of each of the M portals in the target area from the first set of trajectories comprises:
calculating the cumulative probability of each track point according to the position of each track point in a first track point set, wherein the cumulative probability of each track point is used for expressing the probability that the position of each track point is an entrance/exit position, and the first track point set comprises the starting point and the ending point of each motion track in the first track set;
and selecting the track points with the cumulative probability larger than a preset probability threshold from the first track point set, and determining the positions of the selected track points as the positions of the passageway.
3. The method of claim 2, wherein calculating the cumulative probability of each trace point based on the position of each trace point in the first set of trace points comprises:
calculating the local density and the minimum distance of each track point according to the position of each track point in a first track point set, wherein the minimum distance of each track point is the minimum value of the distance between each track point in a second track point set, and the second track point set comprises track points of which the local density is greater than the local density of the track points in the first track point set;
calculating a first decision function value of each track point according to the local density and the minimum distance of each track point, and normalizing the first decision function value of each track point to obtain a second decision function value of each track point;
and calculating the cumulative probability of each track point through a Gaussian distribution function according to the second decision function value of each track point.
4. The method of claim 1, wherein said determining a second set of trajectories for each of N channels based on the location of said each doorway comprises:
determining at least one track point belonging to each access from a first track point set according to the position of each access, so as to obtain a third track point set of each access, wherein the first track point set comprises a starting point and an ending point of each motion track in the first track set;
and determining the channel to which each motion track in the first track set belongs according to the third track point set of each access, so as to obtain a second track set of each channel.
5. The method according to claim 4, wherein said determining at least one track point belonging to each entrance from a first set of track points according to the position of each entrance to obtain a third set of track points for each entrance comprises:
selecting track points, the distance between which and the position of the entrance and the exit is smaller than a preset distance threshold value, from the first track point set;
and adding the selected track points to a third track point set of the gateway.
6. The method according to claim 5, wherein the determining at least one track point belonging to each entrance from the first set of track points according to the position of each entrance to obtain a third set of track points for each entrance further comprises:
if the first track point set also comprises the residual track points which are not added to the third track point set of each access opening, calculating the distance between the residual track points and the third track point set of each access opening;
and adding the residual track points into a third track point set of the gateway closest to the residual track points.
7. The method of claim 6, wherein said calculating a distance between said remaining trajectory point and said third set of trajectory points for each doorway comprises:
calculating the distance between the residual track point and each track point in a third track point set of a target access, wherein the target access is any one of the M accesses;
and selecting the minimum distance from the calculated distances as the distance between the residual track point and the third track point set of the target entrance.
8. The method of claim 1, wherein the pedestrian traffic information for a lane comprises at least one of a number of pedestrians for the lane, a percentage of the number of pedestrians to a total number of people for the target area, and a path of the lane;
the acquiring pedestrian traffic information of each channel according to the second track set of each channel includes:
calculating path parameters of each motion track in a third track set according to the third track set of a channel, wherein the third track set of the channel comprises at least one complete motion track;
sequencing the motion tracks according to the path parameters of the motion tracks to obtain a track sequence;
and determining the motion track arranged at the middle position of the track sequence as the path of the channel.
9. The method of claim 8, wherein said calculating path parameters for each motion trajectory in a third set of trajectories from a third set of channels comprises:
filtering out a motion track of which the distance between the starting point and the position of the starting entrance and the position of the starting exit of the channel exceeds a preset distance threshold value and a motion track of which the distance between the ending point and the position of the ending entrance of the channel exceeds a preset distance threshold value from a third track set of the channel to obtain a fourth track set;
and calculating the path parameter of each motion track according to the length of each motion track in the fourth track set and the number of track points included in each motion track.
10. The method of any of claims 1 to 9, wherein prior to obtaining the location of each of the M portals in the target area from the first set of trajectories, further comprising:
the method comprises the steps of obtaining track points of a pedestrian generated by an image pickup device when the pedestrian is detected, selecting a starting point and an end point from the track points of the pedestrian to form a motion track of the pedestrian, and adding the motion track to a first track set, wherein the image pickup device is deployed in a target area.
11. The method of claim 10, wherein after selecting a starting point and an ending point from the trajectory points of the pedestrian, further comprising:
and determining a channel for the pedestrian to walk according to the starting point, the ending point and the determined channels, and if the number of the motion tracks included in a third track set corresponding to the channel does not exceed a preset number threshold, forming a complete motion track by the track points of the pedestrian and adding the complete motion track to the third track set of the channel.
12. An apparatus for acquiring pedestrian traffic information, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the position of each of M entrances and exits in a target area according to a first track set, the track set comprises the motion track of at least one pedestrian passing through the target area, and M is an integer greater than or equal to 2;
a first determining module, configured to determine, according to a position of each entrance, a second trajectory set of each of N channels, where the N channels are determined according to the M entrances and exits, and the second trajectory set of the channels includes a motion trajectory of a pedestrian walking on the channel in the first trajectory set;
and the second acquisition module is used for acquiring the pedestrian flow information of each channel according to the second track set of each channel.
13. The apparatus of claim 12, wherein the first obtaining module is to:
calculating the cumulative probability of each track point according to the position of each track point in a first track point set, wherein the cumulative probability of each track point is used for expressing the probability that the position of each track point is an entrance/exit position, and the first track point set comprises the starting point and the ending point of each motion track in the first track set;
and selecting the track points with the cumulative probability larger than a preset probability threshold from the first track point set, and determining the positions of the selected track points as the positions of the passageway.
14. The apparatus of claim 13, wherein the first obtaining module is to:
calculating the local density and the minimum distance of each track point according to the position of each track point in a first track point set, wherein the minimum distance of each track point is the minimum value of the distance between each track point in a second track point set, and the second track point set comprises track points of which the local density is greater than the local density of the track points in the first track point set;
calculating a first decision function value of each track point according to the local density and the minimum distance of each track point, and normalizing the first decision function value of each track point to obtain a second decision function value of each track point;
and calculating the cumulative probability of each track point through a Gaussian distribution function according to the second decision function value of each track point.
15. The apparatus of claim 12, wherein the first determining module is to:
determining at least one track point belonging to each access from a first track point set according to the position of each access, so as to obtain a third track point set of each access, wherein the first track point set comprises a starting point and an ending point of each motion track in the first track set;
and determining the channel to which each motion track in the first track set belongs according to the third track point set of each access, so as to obtain a second track set of each channel.
16. The apparatus of claim 15, wherein the first determining module is to:
selecting track points, the distance between which and the position of the entrance and the exit is smaller than a preset distance threshold value, from the first track point set;
and adding the selected track points to a third track point set of the gateway.
17. The apparatus of claim 16, wherein the first determining module is further configured to:
if the first track point set also comprises the residual track points which are not added to the third track point set of each access opening, calculating the distance between the residual track points and the third track point set of each access opening;
and adding the residual track points into a third track point set of the gateway closest to the residual track points.
18. The apparatus of claim 17, wherein the first determining module is to:
calculating the distance between the residual track point and each track point in a third track point set of a target access, wherein the target access is any one of the M accesses;
and selecting the minimum distance from the calculated distances as the distance between the residual track point and the third track point set of the target entrance.
19. The apparatus of claim 12, wherein pedestrian traffic information for a lane comprises at least one of a number of pedestrians for the lane, a percentage of the number of pedestrians to a total number of people for the target area, and a path of the lane;
the second obtaining module is configured to:
calculating path parameters of each motion track in a third track set according to the third track set of a channel, wherein the third track set of the channel comprises at least one complete motion track;
sequencing the motion tracks according to the path parameters of the motion tracks to obtain a track sequence;
and determining the motion track arranged at the middle position of the track sequence as the path of the channel.
20. The apparatus of claim 19, wherein the second obtaining module is to:
filtering out a motion track of which the distance between the starting point and the position of the starting entrance and the position of the starting exit of the channel exceeds a preset distance threshold value and a motion track of which the distance between the ending point and the position of the ending entrance of the channel exceeds a preset distance threshold value from a third track set of the channel to obtain a fourth track set;
and calculating the path parameter of each motion track according to the length of each motion track in the fourth track set and the number of track points included in each motion track.
21. The apparatus of any of claims 12 to 20, further comprising:
and the third acquisition module is used for acquiring all track points of the pedestrian generated by the camera equipment when the pedestrian is detected, selecting a starting point and an end point from all track points of the pedestrian to form a motion track of the pedestrian and adding the motion track into the first track set, and the camera equipment is deployed in the target area.
22. The apparatus of claim 21, wherein the apparatus further comprises:
and the second determining module is used for determining the channels where the pedestrian walks according to the starting point, the ending point and the determined channels, and if the number of the motion tracks included in the third track set corresponding to the channels does not exceed a preset number threshold, the track points of the pedestrian are combined into a complete motion track and added into the third track set of the channels.
CN201810770648.5A 2018-07-13 2018-07-13 Method and device for acquiring pedestrian flow information Active CN110717926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810770648.5A CN110717926B (en) 2018-07-13 2018-07-13 Method and device for acquiring pedestrian flow information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810770648.5A CN110717926B (en) 2018-07-13 2018-07-13 Method and device for acquiring pedestrian flow information

Publications (2)

Publication Number Publication Date
CN110717926A true CN110717926A (en) 2020-01-21
CN110717926B CN110717926B (en) 2022-05-17

Family

ID=69209264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810770648.5A Active CN110717926B (en) 2018-07-13 2018-07-13 Method and device for acquiring pedestrian flow information

Country Status (1)

Country Link
CN (1) CN110717926B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017209A (en) * 2020-09-07 2020-12-01 图普科技(广州)有限公司 Regional crowd trajectory determination method and device
CN113536932A (en) * 2021-06-16 2021-10-22 中科曙光国际信息产业有限公司 Crowd gathering prediction method and device, computer equipment and storage medium
CN115294778A (en) * 2022-09-28 2022-11-04 四川科泰智能电子有限公司 Regional vehicle access statistical method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221231A1 (en) * 2009-10-14 2012-08-30 Ntt Docomo, Inc. Positional information analysis device and positional information analysis method
CN103530874A (en) * 2013-10-09 2014-01-22 上海大学 People flow counting method on basis of Kinect
CN106067015A (en) * 2016-07-19 2016-11-02 中国人民解放军军事交通学院 A kind of detection of passenger flow system of crowded place
CN106156695A (en) * 2015-03-30 2016-11-23 日本电气株式会社 Outlet and/or entrance area recognition methods and device
CN106600643A (en) * 2016-10-25 2017-04-26 长安大学 People counting method based on trajectory analysis
CN108230698A (en) * 2016-12-21 2018-06-29 杭州海康威视数字技术股份有限公司 traffic flow forecasting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221231A1 (en) * 2009-10-14 2012-08-30 Ntt Docomo, Inc. Positional information analysis device and positional information analysis method
CN103530874A (en) * 2013-10-09 2014-01-22 上海大学 People flow counting method on basis of Kinect
CN106156695A (en) * 2015-03-30 2016-11-23 日本电气株式会社 Outlet and/or entrance area recognition methods and device
CN106067015A (en) * 2016-07-19 2016-11-02 中国人民解放军军事交通学院 A kind of detection of passenger flow system of crowded place
CN106600643A (en) * 2016-10-25 2017-04-26 长安大学 People counting method based on trajectory analysis
CN108230698A (en) * 2016-12-21 2018-06-29 杭州海康威视数字技术股份有限公司 traffic flow forecasting method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017209A (en) * 2020-09-07 2020-12-01 图普科技(广州)有限公司 Regional crowd trajectory determination method and device
CN113536932A (en) * 2021-06-16 2021-10-22 中科曙光国际信息产业有限公司 Crowd gathering prediction method and device, computer equipment and storage medium
CN115294778A (en) * 2022-09-28 2022-11-04 四川科泰智能电子有限公司 Regional vehicle access statistical method and system

Also Published As

Publication number Publication date
CN110717926B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN110895861B (en) Abnormal behavior early warning method and device, monitoring equipment and storage medium
CN110926473B (en) Method and device for identifying floor, electronic equipment and storage medium
CN108616691B (en) Photographing method and device based on automatic white balance, server and storage medium
CN108363982B (en) Method and device for determining number of objects
CN110717926B (en) Method and device for acquiring pedestrian flow information
CN110839128B (en) Photographing behavior detection method and device and storage medium
CN112084811B (en) Identity information determining method, device and storage medium
CN110933468A (en) Playing method, playing device, electronic equipment and medium
CN111127509A (en) Target tracking method, device and computer readable storage medium
CN109996170B (en) Indoor route generation method, device and system
CN111754386A (en) Image area shielding method, device, equipment and storage medium
CN112749590A (en) Object detection method, device, computer equipment and computer readable storage medium
CN111127541A (en) Vehicle size determination method and device and storage medium
CN111447562B (en) Vehicle travel track analysis method and device and computer storage medium
CN111383243B (en) Method, device, equipment and storage medium for tracking target object
CN110008671B (en) Data verification method and device
CN112991439A (en) Method, apparatus, electronic device, and medium for positioning target object
CN113938606B (en) Method and device for determining ball machine erection parameters and computer storage medium
CN111860064A (en) Target detection method, device and equipment based on video and storage medium
CN111383251A (en) Method and device for tracking target object, monitoring equipment and storage medium
CN113706807B (en) Method, device, equipment and storage medium for sending alarm information
CN110717365B (en) Method and device for obtaining picture
CN110263695B (en) Face position acquisition method and device, electronic equipment and storage medium
CN111583669B (en) Overspeed detection method, overspeed detection device, control equipment and storage medium
CN109671425B (en) Audio classification method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant