Hot spot route analysis method, device, electronic device and storage medium
By analyzing the capture trajectories of mobile personnel and the trajectories of public transportation units and determining their hotspot routes, the problem of difficulty in obtaining information of mobile population in the existing technology is solved, and management efficiency and information accuracy are improved.
Patent Information
- Application Number
- CN202011489564.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2040-12-16
AI Technical Summary
When managing migrant populations in the prior art, it is difficult to effectively obtain information about migrant populations, resulting in low efficiency of grassroots management and inaccurate information.
By obtaining the captured trajectory information of mobile personnel and the trajectory information of public transportation units, analyzing the route code of the target personnel, and determining their hotspot routes based on the route code, reducing the difficulty of obtaining information.
The analysis of hot routes for migrant populations has been realized, the efficiency and accuracy of obtaining information of migrant populations has been improved, and the difficulty of grassroots management has been reduced.
Smart Images

Figure CN114637883B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of archive data processing, and in particular to a hotspot route analysis method, device, electronic equipment and storage medium. Background Art
[0002] With the development of urbanization, more and more people flow into cities, causing changes in the urban population structure. The urban population structure can be roughly divided into resident population and floating population. With the continuous development of cities, the scale of floating population continues to expand. Due to the uncertainty of floating population in spatial and temporal scales, such as the uncertainty of floating population travel routes and travel time, the expansion of floating population has brought great difficulties to urban management, especially the increasing difficulty of grassroots management. The traditional method is to register the floating population through grassroots police, and conduct regular visits to understand the situation of floating population, so as to manage it. However, with the expansion of floating population, grassroots police have heavy workloads and shortage of police resources. The original model of regular door-to-door visits is very inefficient, and the information obtained from the visits is subjective information, which may be inaccurate, resulting in unclear numbers and unclear situations of floating population in some jurisdictions. Therefore, in the existing management of floating population, there is a problem of difficulty in obtaining information on floating population. Summary of the invention
[0003] The embodiment of the present invention provides a hotspot route analysis method, which can analyze the hotspot routes of mobile personnel through the traffic trajectories of mobile personnel, thereby reducing the difficulty of obtaining mobile personnel information.
[0004] In a first aspect, an embodiment of the present invention provides a hotspot route analysis method, the method comprising:
[0005] Acquire the capture trajectory information of the target person in the first preset time period, the target person is a mobile person, the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time of the target person and the public transportation unit code;
[0006] Acquire the public transportation unit track information corresponding to the public transportation unit code in the first preset time period, wherein the public transportation unit track information includes a station code and an arrival time at the station;
[0007] Based on the captured trajectory information and the public transportation unit trajectory information, determining the route code of the target person in the first preset time period, each of the route codes corresponds to a route;
[0008] According to the route code of the target person in the first preset time period, the hotspot route of the target person in the second preset time period is determined, and the second preset time period includes multiple first preset time periods.
[0009] Optionally, the acquiring the captured trajectory information of the target person in the first preset time period includes:
[0010] Acquire the captured data of people collected by the capturing device on the public transportation unit, wherein the captured data of people include the facial image of the captured person, the capturing time, the capturing device code and the public transportation unit code;
[0011] Compare the facial image with the personnel identity information database to obtain the identity information of the captured person;
[0012] According to the identity information, the captured data of the personnel are archived to obtain a captured personnel file, and stored in the file information library;
[0013] Based on the archive information database, determine the target personnel file, wherein the target personnel file includes the personnel snapshot data of the target personnel;
[0014] According to the target person profile, the capture trajectory information of the target person within a first preset time period is obtained.
[0015] Optionally, the method further includes:
[0016] Obtaining a facial image of the person to be analyzed;
[0017] Compare the facial image of the person to be analyzed with the person identity information database to determine whether the facial image of the person to be analyzed is a facial image of a mobile person;
[0018] If the facial image of the person to be analyzed is a facial image of a mobile person, the person to be analyzed is determined to be a target person.
[0019] Optionally, determining the route code of the target person in the first preset time period based on the captured trajectory information and the public transportation unit trajectory information includes:
[0020] Performing intersection calculation on the captured trajectory information and the public transportation unit trajectory information to obtain the travel trajectory of the target person in the first preset time period, wherein the travel trajectory includes the captured data of the target person;
[0021] The travel trajectory is verified according to a preset verification rule, and the travel trajectory that passes the verification is determined as the route code of the target person in the first preset time period.
[0022] Optionally, the verification rule is that the travel trajectory includes a plurality of captured data of the personnel, and the verification of the travel trajectory according to the preset verification rule includes:
[0023] Determining whether the travel trajectory includes multiple captured data of the target persons;
[0024] If the travel trajectory includes the captured data of multiple target persons, it is determined that the travel trajectory passes the verification;
[0025] If the travel trajectory only includes the snapshot data of one target person, it is determined that the travel trajectory has failed the verification.
[0026] Optionally, determining the verified travel trajectory as the route code of the target person in the first preset time period includes:
[0027] Extract the earliest capture time and the latest capture time from the verified travel trajectory;
[0028] Determine a first arrival time at the site according to the earliest capture time, and determine a corresponding first site code according to the first arrival time at the site;
[0029] Determine a second arrival time at the site according to the latest snapshot time, and determine a corresponding second site code according to the second arrival time at the site;
[0030] The route code of the target person in the first preset time period is determined according to the first site code and the second site code.
[0031] Optionally, determining the hotspot route of the target person in the second preset time period according to the route code of the target person in the first preset time period includes:
[0032] Taking the second preset time period as a statistical interval, performing quantitative statistics on the route codes in the first preset time period;
[0033] All route codes are sorted by quantity, and N routes corresponding to the first N route codes are taken as hot routes of the target person in the second preset time period.
[0034] In a second aspect, an embodiment of the present invention further provides a hotspot route analysis device, the device comprising:
[0035] A first acquisition module is used to acquire the capture trajectory information of a target person in a first preset time period, wherein the target person is a mobile person, and the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time of the target person and the public transportation unit code;
[0036] A second acquisition module is used to acquire the public transportation unit trajectory information corresponding to the public transportation unit code in the first preset time period, wherein the public transportation unit trajectory information includes a station code and an arrival time at the station;
[0037] A first determination module, configured to determine a route code of the target person in the first preset time period based on the captured trajectory information and the public transportation unit trajectory information, wherein each route code corresponds to a route;
[0038] The second determination module is used to determine the hot routes of the target person in the second preset time period according to the route code of the target person in the first preset time period, and the second preset time period includes multiple first preset time periods.
[0039] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the hotspot route analysis method provided in the embodiment of the present invention when executing the computer program.
[0040] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the hot spot route analysis method provided in the embodiment of the invention are implemented.
[0041] In an embodiment of the present invention, the captured trajectory information of the target person in the first preset time period is obtained, the target person is a mobile person, the captured trajectory information includes the personnel captured data of the target person, the personnel captured data of the target person includes the capture time and the public transportation unit code of the target person; the public transportation unit trajectory information corresponding to the public transportation unit code in the first preset time period is obtained, the public transportation unit trajectory information includes the station code and the arrival time at the station; based on the captured trajectory information and the public transportation unit trajectory information, the route code of the target person in the first preset time period is determined, and each route code corresponds to a route; according to the route code of the target person in the first preset time period, the hot route of the target person in the second preset time period is determined, and the second preset time period includes multiple first preset time periods. The present invention can obtain the traffic trajectory of mobile personnel through the captured data of mobile personnel, and then analyze the hot routes of mobile personnel through the traffic trajectory of mobile personnel, thereby reducing the difficulty of obtaining information on mobile personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 is a flow chart of a hotspot route analysis method provided by an embodiment of the present invention;
[0044] Figure 2 is a flow chart of a method for obtaining snapshot trajectory information provided by an embodiment of the present invention;
[0045] Figure 3 It is a structural schematic diagram of a hotspot route analysis device provided by an embodiment of the present invention;
[0046] Figure 4 is a structural schematic diagram of a first acquisition module provided by an embodiment of the present invention;
[0047] Figure 5 is a structural schematic diagram of another hotspot route analysis device provided by an embodiment of the present invention;
[0048] Figure 6 is a structural diagram of a first determination module provided by an embodiment of the present invention;
[0049] Figure 7 is a schematic diagram of the structure of a check submodule provided by an embodiment of the present invention;
[0050] Figure 8 is a schematic structural diagram of another check submodule provided in an embodiment of the present invention;
[0051] Fig. 9 is a structural diagram of a second determination module provided by an embodiment of the present invention;
[0052] Fig.10 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] See also Figure 1 , Figure 1is a flow chart of a hotspot route analysis method provided by an embodiment of the present invention. Figure 1 As shown, the following steps are included:
[0055] 101. Obtain capture trajectory information of a target person in a first preset time period.
[0056] In the embodiment of the present invention, the target person is a mobile person, the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time and the public transportation unit code of the target person.
[0057] The above-mentioned mobile personnel can be compared by comparing the feature values in the personnel identity information database based on the facial image of the target personnel, and the judgment is made based on the comparison result.
[0058] The above personnel identity information database stores the personnel identity information of permanent and floating personnel in the city. Further, after feature comparison, if a person is neither a permanent nor a floating person, he or she can be determined to be a floating person. The above personnel identity information can be structured or semi-structured information.
[0059] The first preset time period may be set by the user, such as 1 hour, 12 hours, 1 day, 15 days, 1 month, etc.
[0060] The target person's captured data may be image data collected by a capture device installed on a public transportation unit, and the target person's captured data may include a face image of the target person, a capture time, a capture device code, and a public transportation unit code. In an embodiment of the present invention, the capture trajectory information of the target person may be represented by the capture time of the target person and the public transportation unit code.
[0061] The capture device code may be an international code of the capture device, and the capture device may be installed on a public transportation unit and bound to the public transportation unit. It can be understood that the capture device code and the public transportation unit code are in a binding relationship.
[0062] The public transportation unit code can be understood as an identifier of a public transportation tool. In the embodiment of the present invention, each public transportation tool has a unique identifier, which can be a license plate number or an internal number of the public transportation system. The public transportation unit can be an urban public transportation tool for public travel, such as a bus, subway, light rail, taxi, etc. The capture device is set at the entrance and exit doors of the public transportation unit. For a public transportation unit with multiple entrances and exits, a capture device can be set at each entrance and exit door. Furthermore, multiple capture devices can be bound to one public transportation unit.
[0063] It should be noted that the floating population has uncertainty in the spatial and temporal dimensions. Therefore, most of the means of transportation for travel are urban public transportation. Therefore, the hot activity routes of the floating population can be represented by the transportation routes of the floating population.
[0064] It can be understood that in the specific implementation of the present application, it involves capture trajectory information, capture data, public transportation unit code, public transportation unit trajectory information, personnel capture data, arrival time, identity information, face image and other related data. When the embodiments in the present application are applied to specific products or technologies, it is necessary to obtain user permission or consent, and the collection, use and processing of relevant data and the construction, use and processing of the personnel identity information database need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0065] Optional, see Figure 2 , Figure 2 is a flow chart of a method for obtaining snapshot trajectory information provided by an embodiment of the present invention. Figure 2 As shown, the following steps are included:
[0066] 201. Obtain the personnel capture data collected by the capture equipment on public transportation units.
[0067] In the embodiment of the present invention, the above-mentioned personnel capture data includes the facial image of the captured person, the capture time, the capture device code and the public transportation unit code.
[0068] The facial image of the captured person may be obtained by performing facial detection on an image collected by a capture device through a facial detection engine, and is a small image including the face of the captured person.
[0069] 202. Compare the feature values of the facial image in the personnel identity information database to obtain the identity information of the captured person.
[0070] In an embodiment of the present invention, features of a facial image can be extracted through a feature extraction engine to obtain facial feature values of the captured person, and feature value comparisons are performed between the facial image feature values of the captured person and the facial image feature values of all persons in a personnel identity information database. The above feature value comparison can be to calculate the similarity between the feature values of two facial images. The higher the similarity, the closer they are. When the similarity reaches a threshold, the corresponding identity information can be confirmed as the identity information of the captured person.
[0071] 203. According to the identity information of the captured person, the captured person's data is archived to obtain the captured person's file, and the file is stored in the file information database.
[0072] In an embodiment of the present invention, for the same captured person, all the captured data are clustered and archived to obtain a captured person file. The captured person files corresponding to all captured persons are stored in the above-mentioned file information library. Since the captured data of the person include the face, the face image can be input into the captured person file library to find the corresponding captured person file.
[0073] In a possible embodiment, the captured personnel files of permanent residents and mobile personnel can be stored separately to obtain a permanent personnel file library and a mobile personnel file library. In this way, when it is necessary to obtain the mobile personnel file, it can be directly searched in the mobile personnel file library. In this way, the search scope can be reduced and the search speed can be improved.
[0074] 204. Determine the target personnel’s files based on the file information database.
[0075] In an embodiment of the present invention, the facial image of the person to be analyzed can be used to search in the archive information database, and the facial image of the person to be analyzed can be compared with the facial image in the captured person archive to determine the target person archive, where the target person archive includes the target person's captured data.
[0076] Optionally, in an embodiment of the present invention, a facial image of the person to be analyzed can be obtained first; the facial image of the person to be analyzed can be compared with the feature values in the personnel identity information database to determine whether the facial image of the person to be analyzed is a facial image of a mobile personnel; if the facial image of the person to be analyzed is a facial image of a mobile personnel, the person to be analyzed is determined to be a target person; at this time, the target person's file can be searched in the mobile personnel file database.
[0077] 205. According to the target person's file, obtain the capture trajectory information of the target person within a first preset time period.
[0078] In an embodiment of the present invention, the target person file includes the target person's personnel capture data, and the target person's personnel capture data includes the target person's facial image, capture time, capture device code, and public transportation unit code. The capture time and public transportation unit code can be extracted as the capture trajectory information of the target person. The embodiment of the present invention provides a data structure of capture trajectory information, including capture time, capture device code, and public transportation unit code. Specifically, the data structure of capture trajectory information can be shown in Table 1:
[0079]
[0080] Table 1
[0081] In the target file, the capture trajectory information of the target person that meets the first preset time period can be screened out. For example, the capture trajectory information of the target person on a certain day can be screened out. Of course, when inputting the face image of the person to be analyzed, the first preset time period can also be input as the search condition. In this way, the files without the captured person data in the first preset time period can be filtered out, further narrowing the search scope.
[0082] 102. Obtain public transportation unit trajectory information corresponding to the public transportation unit code in a first preset time period.
[0083] In an embodiment of the present invention, the public transportation unit trajectory information includes a station code and a time to arrive at the station. The public transportation unit trajectory information may be the public transportation unit operation data in the public transportation service information database, that is, at what time a public transportation unit arrives at which station. For a public transportation unit that does not stop at a station, the nearest station may be compiled according to the location information at the time of the stop. The public transportation unit trajectory information may be understood as the travel route of a public transportation vehicle. The station code identifies a station, and a station corresponds to a station code. The station may be understood as a stop for the public transportation unit.
[0084] Specifically, the corresponding public transportation unit trajectory information can be obtained in the public transportation service information database according to the public transportation unit code that appears in the captured trajectory information of the target person.
[0085] The embodiment of the present invention provides a data structure of public transportation unit trajectory information, including a public transportation unit code, a station arrival time, and a station code. Specifically, the data structure of the public transportation unit trajectory information may be as shown in Table 2:
[0086]
[0087]
[0088] Table 2
[0089] 103. Determine the route code of the target person in the first preset time period based on the captured trajectory information and the public transportation unit trajectory information.
[0090] In an embodiment of the present invention, each route code corresponds to a route, and the route may be a section of a public transportation unit's travel route. For example, a public transportation unit's travel route is station A, station B, station C, station D, station E, station F, and station G in sequence. The route corresponding to the route code may be a route from station A to station B, or a route from station A to station C. Furthermore, the route code corresponding to the route from station A to station B is different from the route code corresponding to the route from station A to station C.
[0091] Optionally, the captured trajectory information and the public transportation unit trajectory information may be intersected to obtain the travel trajectory of the target person in the first preset time period. The travel trajectory is verified according to a preset verification rule, and the verified travel trajectory is determined as the route code of the target person in the first preset time period. The above travel trajectory includes the captured data of the target person.
[0092] Taking Table 1 and Table 2 as examples, the public transportation unit code GJ1GJ1214419004J06M4 in Table 1 is used to find the trajectory information of the public transportation unit code GJ1GJ1214419004J06M4 in the public transportation service information database as shown in Table 2. By performing an intersection operation on Table 2 and Table 1, the travel trajectory can be obtained as (2020 / 10 / 01-09:00:01, ST123416), (2020 / 10 / 01-09:09:12, ST674237), (2020 / 10 / 01-09:14:17, ST234234). In the above travel trajectory, the target person’s capture data is the capture time.
[0093] Optionally, the above-mentioned verification rule is that the travel trajectory includes multiple personnel snapshot data. Specifically, it can be determined whether the above-mentioned travel trajectory includes the personnel snapshot data of multiple target persons; if the above-mentioned travel trajectory includes the personnel snapshot data of multiple target persons, it is determined that the above-mentioned travel trajectory has passed the verification; if the above-mentioned travel trajectory only includes the personnel snapshot data of one target person, it is determined that the travel trajectory has not passed the verification.
[0094] Specifically, if the above-mentioned travel trajectory includes the captured data of multiple target persons, it can be said that the target person was captured multiple times on the public transportation unit. Further, the earliest capture time and the latest capture time in the verified travel trajectory can be extracted, and the first arrival time at the station can be determined according to the earliest capture time, thereby determining the corresponding first station code according to the first arrival time, and the second arrival time at the station can be determined according to the latest capture time, thereby determining the corresponding second station code according to the second arrival time, and determining the route code of the target person in the first preset time period according to the first station code and the second station code. For example, the above travel trajectory is (2020 / 10 / 01-09:00:01, ST123416), (2020 / 10 / 01-09:09:12, ST674237), (2020 / 10 / 01-09:14:17, ST234234), and there are three snapshot data (snapshot time) of the target person. It can be considered that the travel trajectory has passed the verification, and the earliest snapshot time is 2020 / 10 / 01-09:00: 01, the corresponding first site code is ST123416, the latest capture time is 2020 / 10 / 01-09:14:17, and the corresponding second site code is ST234234. According to the first site code ST123416 and the second site code ST234234, the route code C=f(ST234234, ST234234) of the target person in the first preset time period is determined, where f is the mapping function from the site code to the route code. In addition, if the above-mentioned travel trajectory only includes the captured data of one target person, it means that the target person in the travel trajectory may have been captured only once, which is inaccurate and cannot be used. The travel trajectory can be abandoned.
[0095] 104. Determine the hotspot routes of the target person in the second preset time period according to the route code of the target person in the first preset time period.
[0096] In an embodiment of the present invention, the second preset time period includes multiple first preset time periods, and the second preset time period may be a time interval such as a month, a quarter, or a year. For example, if the first preset time period is a day and the second preset time period is May, the second preset time period includes 31 first preset time periods.
[0097] Optionally, in an embodiment of the present invention, the second preset time period can be used as a statistical interval, and the route codes in the first preset time period are counted; all route codes are sorted by quantity, and the N routes corresponding to the first N route codes are taken as the hot routes of the target person in the second preset time period. The above sorting of all route codes can be shown in Table 3:
[0098] Serial number Route Code Urban public transport unit code Occurrence 1 R9128374 GJ1GJ1214419004J06M4 25 2 R9328334 GJ2GJ212441900K87DCJ 8 3 R9300371 GJ2GJ212441900783KS3 3
[0099] Table 3
[0100] In Table 3, the number of occurrences is the number of corresponding route codes in the second preset time period. The routes corresponding to the first N route codes are sorted in descending order according to the number of occurrences. The routes can be taken as the hot routes of the target person in the second preset time period.
[0101] In an embodiment of the present invention, the captured trajectory information of the target person in the first preset time period is obtained, the target person is a mobile person, the captured trajectory information includes the personnel captured data of the target person, the personnel captured data of the target person includes the capture time and the public transportation unit code of the target person; the public transportation unit trajectory information corresponding to the public transportation unit code in the first preset time period is obtained, the public transportation unit trajectory information includes the station code and the arrival time at the station; based on the captured trajectory information and the public transportation unit trajectory information, the route code of the target person in the first preset time period is determined, and each route code corresponds to a route; according to the route code of the target person in the first preset time period, the hot route of the target person in the second preset time period is determined, and the second preset time period includes multiple first preset time periods. The present invention can obtain the traffic trajectory of mobile personnel through the captured data of mobile personnel, and then analyze the hot routes of mobile personnel through the traffic trajectory of mobile personnel, thereby reducing the difficulty of obtaining information on mobile personnel.
[0102] It should be noted that the hotspot route analysis method provided in the embodiment of the present invention can be applied to devices such as mobile phones, monitors, computers, servers, etc. that can perform hotspot route analysis.
[0103] See also Figure 3 , Figure 3 is a schematic diagram of a hotspot route analysis device provided by an embodiment of the present invention. Figure 3 As shown, the device comprises:
[0104] The first acquisition module 301 is used to acquire the capture trajectory information of the target person in the first preset time period, the target person is a mobile person, the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time of the target person and the public transportation unit code;
[0105] A second acquisition module 302 is used to acquire the public transportation unit trajectory information corresponding to the public transportation unit code in the first preset time period, wherein the public transportation unit trajectory information includes a station code and an arrival time at the station;
[0106] A first determination module 303 is used to determine the route code of the target person in the first preset time period based on the captured trajectory information and the public transportation unit trajectory information, each of the route codes corresponding to a route;
[0107] The second determination module 304 is used to determine the hotspot routes of the target person in the second preset time period according to the route code of the target person in the first preset time period, and the second preset time period includes multiple first preset time periods.
[0108] Optional, such as Figure 4 As shown, the first acquisition module 301 includes:
[0109] The first acquisition submodule 3011 is used to acquire the captured data of people collected by the capture device on the public transportation unit, wherein the captured data of people include the facial image of the captured person, the capture time, the capture device code and the public transportation unit code;
[0110] The first comparison submodule 3012 is used to compare the feature values of the face image in the personnel identity information database to obtain the identity information of the captured person;
[0111] The archiving submodule 3013 is used to archive the captured data of the personnel according to the identity information, obtain the captured personnel files, and store them in the file information library;
[0112] A determination submodule 3014 is used to determine a target personnel profile based on the profile information database, wherein the target personnel profile includes the personnel snapshot data of the target personnel;
[0113] The second acquisition submodule 3015 is used to acquire the capture trajectory information of the target person within a first preset time period according to the target person file.
[0114] Optional, such as Figure 5 As shown, the device also includes:
[0115] The third acquisition module 305 is used to acquire the face image of the person to be analyzed;
[0116] A judgment module 306 is used to compare the facial image of the person to be analyzed with the person identity information database to determine whether the facial image of the person to be analyzed is a facial image of a mobile person;
[0117] The third determination module 307 is configured to determine that the person to be analyzed is a target person if the facial image of the person to be analyzed is a facial image of a mobile person.
[0118] Optional, such as Figure 6 As shown, the first determining module 303 includes:
[0119] The calculation submodule 3031 is used to perform intersection calculation on the captured trajectory information and the public transportation unit trajectory information to obtain the travel trajectory of the target person in the first preset time period, wherein the travel trajectory includes the captured data of the target person;
[0120] The verification submodule 3032 is used to verify the travel trajectory according to a preset verification rule, and determine the travel trajectory that passes the verification as the route code of the target person in the first preset time period.
[0121] Optional, such as Figure 7 As shown, the verification rule is that the travel trajectory includes multiple captured data of the personnel, and the verification submodule 3032 includes:
[0122] A judging unit 30321 is used to judge whether the travel trajectory includes multiple captured data of the target persons;
[0123] The first determination unit 30322 is configured to determine that the travel trajectory passes the verification if the travel trajectory includes the captured data of multiple target persons;
[0124] The second judgment unit 30323 is used to judge that the travel trajectory has not passed the verification if the travel trajectory only includes the snapshot data of one target person.
[0125] Optional, such as Figure 8 As shown, the check submodule 3032 further includes:
[0126] An extraction unit 30324 is used to extract the earliest capture time and the latest capture time in the verified travel trajectory;
[0127] A first determining unit 30325 is used to determine a first arrival time at a site according to the earliest capture time, and determine a corresponding first site code according to the first arrival time at the site;
[0128] A second determining unit 30326 is used to determine a second arrival time at the site according to the latest snapshot time, and determine a corresponding second site code according to the second arrival time at the site;
[0129] The third determining unit 30327 is used to determine the route code of the target person in the first preset time period according to the first site code and the second site code.
[0130] Optional, such as Fig. 9 As shown, the second determination module 304 includes:
[0131] A statistics submodule 3041 is used to count the number of route codes in the first preset time period by taking the second preset time period as the statistical interval;
[0132] The selection submodule 3042 is used to sort all route codes by quantity, and take N routes corresponding to TOP-N route codes as hot routes of the target person in the second preset time period.
[0133] It should be noted that the hotspot route analysis device provided in the embodiment of the present invention can be applied to mobile phones, monitors, computers, servers and other devices that can perform hotspot route analysis.
[0134] The hotspot route analysis device provided in the embodiment of the present invention can implement each process implemented by the hotspot route analysis method in the above method embodiment and can achieve the same beneficial effect. To avoid repetition, it will not be described here.
[0135] See also Fig.10 , Fig.10 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Fig.10 As shown, it includes: a memory 1002, a processor 1001, and a computer program stored in the memory 1002 and executable on the processor 1001, wherein:
[0136] The processor 1001 is used to call the computer program stored in the memory 1002 and execute the following steps:
[0137] Acquire the capture trajectory information of the target person in the first preset time period, the target person is a mobile person, the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time of the target person and the public transportation unit code;
[0138] Acquire the public transportation unit track information corresponding to the public transportation unit code in the first preset time period, wherein the public transportation unit track information includes a station code and an arrival time at the station;
[0139] Based on the captured trajectory information and the public transportation unit trajectory information, determining the route code of the target person in the first preset time period, each of the route codes corresponds to a route;
[0140] According to the route code of the target person in the first preset time period, the hotspot route of the target person in the second preset time period is determined, and the second preset time period includes multiple first preset time periods.
[0141] Optionally, the acquiring of the captured trajectory information of the target person in the first preset time period executed by the processor 1001 includes:
[0142] Acquire the captured data of people collected by the capturing device on the public transportation unit, wherein the captured data of people include the facial image of the captured person, the capturing time, the capturing device code and the public transportation unit code;
[0143] Compare the facial image with the personnel identity information database to obtain the identity information of the captured person;
[0144] According to the identity information, the captured data of the personnel are archived to obtain a captured personnel file, and stored in the file information library;
[0145] Based on the archive information database, determine the target personnel file, wherein the target personnel file includes the personnel snapshot data of the target personnel;
[0146] According to the target person profile, the capture trajectory information of the target person within a first preset time period is obtained.
[0147] Optionally, the processor 1001 further executes:
[0148] Obtaining a facial image of the person to be analyzed;
[0149] Compare the facial image of the person to be analyzed with the person identity information database to determine whether the facial image of the person to be analyzed is a facial image of a mobile person;
[0150] If the facial image of the person to be analyzed is a facial image of a mobile person, the person to be analyzed is determined to be a target person.
[0151] Optionally, the processor 1001 determines the route code of the target person in the first preset time period based on the captured trajectory information and the public transportation unit trajectory information, including:
[0152] Performing intersection calculation on the captured trajectory information and the public transportation unit trajectory information to obtain the travel trajectory of the target person in the first preset time period, wherein the travel trajectory includes the captured data of the target person;
[0153] The travel trajectory is verified according to a preset verification rule, and the travel trajectory that passes the verification is determined as the route code of the target person in the first preset time period.
[0154] Optionally, the verification rule is that the travel trajectory includes a plurality of captured data of the personnel, and the processor 1001 verifies the travel trajectory according to the preset verification rule, including:
[0155] Determining whether the travel trajectory includes multiple captured data of the target persons;
[0156] If the travel trajectory includes the captured data of multiple target persons, it is determined that the travel trajectory passes the verification;
[0157] If the travel trajectory only includes the snapshot data of one target person, it is determined that the travel trajectory has failed the verification.
[0158] Optionally, the processor 1001 determines the verified travel trajectory as the route code of the target person in the first preset time period, including:
[0159] Extract the earliest capture time and the latest capture time from the verified travel trajectory;
[0160] Determine a first arrival time at the site according to the earliest capture time, and determine a corresponding first site code according to the first arrival time at the site;
[0161] Determine a second arrival time at the site according to the latest snapshot time, and determine a corresponding second site code according to the second arrival time at the site;
[0162] The route code of the target person in the first preset time period is determined according to the first site code and the second site code.
[0163] Optionally, the processor 1001 determines the hotspot route of the target person in the second preset time period according to the route code of the target person in the first preset time period, including:
[0164] Taking the second preset time period as the statistical interval, performing quantitative statistics on the route codes in the first preset time period;
[0165] All route codes are sorted by quantity, and N routes corresponding to the first N route codes are taken as hot routes of the target person in the second preset time period.
[0166] It should be noted that the above-mentioned electronic devices may be mobile phones, monitors, computers, servers and other devices that can be used for hotspot route analysis.
[0167] The electronic device provided in the embodiment of the present invention can implement each process implemented by the hot spot route analysis method in the above method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described here.
[0168] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the hot spot route analysis method provided by the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0169] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0170] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A hotspot route analysis method, characterized in that: The following steps are involved: Acquire the capture trajectory information of the target person in the first preset time period, the target person is a mobile person, the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time of the target person and the public transportation unit code; Acquire the public transportation unit track information corresponding to the public transportation unit code in the first preset time period, wherein the public transportation unit track information includes a station code and an arrival time at the station; Based on the captured trajectory information and the public transportation unit trajectory information, determining the route code of the target person in the first preset time period, each of the route codes corresponds to a route; Determine the hotspot route of the target person in a second preset time period according to the route code of the target person in the first preset time period, where the second preset time period includes a plurality of first preset time periods; The determining, based on the captured trajectory information and the public transportation unit trajectory information, the route code of the target person in the first preset time period includes: Performing intersection calculation on the captured trajectory information and the public transportation unit trajectory information to obtain the travel trajectory of the target person in the first preset time period, wherein the travel trajectory includes the captured data of the target person; Verifying the travel trajectory according to a preset verification rule, and determining the verified travel trajectory as the route code of the target person in the first preset time period; The step of determining the verified travel trajectory as the route code of the target person in the first preset time period includes: Extract the earliest capture time and the latest capture time from the verified travel trajectory; Determine a first arrival time at the site according to the earliest capture time, and determine a corresponding first site code according to the first arrival time at the site; Determine a second arrival time at the site according to the latest snapshot time, and determine a corresponding second site code according to the second arrival time at the site; The route code of the target person in the first preset time period is determined according to the first site code and the second site code.
2. The method according to claim 1, characterized in that The step of obtaining the captured trajectory information of the target person in the first preset time period includes: Acquire the captured data of people collected by the capturing device on the public transportation unit, wherein the captured data of people include the facial image of the captured person, the capturing time, the capturing device code and the public transportation unit code; Compare the facial image with the personnel identity information database to obtain the identity information of the captured person; According to the identity information, the captured data of the personnel are archived to obtain a captured personnel file, and stored in the file information library; Based on the archive information database, determine the target personnel file, wherein the target personnel file includes the personnel snapshot data of the target personnel; According to the target person profile, the capture trajectory information of the target person within a first preset time period is obtained.
3. The method according to claim 2, characterized in that The method further comprises: Obtaining a facial image of the person to be analyzed; Compare the facial image of the person to be analyzed with the person identity information database to determine whether the facial image of the person to be analyzed is a facial image of a mobile person; If the facial image of the person to be analyzed is a facial image of a mobile person, the person to be analyzed is determined to be a target person.
4. The method according to claim 1, characterized in that The verification rule is that the travel trajectory includes a plurality of captured data of the personnel, and the travel trajectory is verified according to the preset verification rule, including: Determining whether the travel trajectory includes multiple captured data of the target persons; If the travel trajectory includes the captured data of multiple target persons, it is determined that the travel trajectory passes the verification; If the travel trajectory only includes the snapshot data of one target person, it is determined that the travel trajectory has failed the verification.
5. The method according to any one of claims 1 to 4, characterized in that: The step of determining the hotspot route of the target person in the second preset time period according to the route code of the target person in the first preset time period includes: Taking the second preset time period as a statistical interval, performing quantitative statistics on the route codes in the first preset time period; All route codes are sorted by quantity, and N routes corresponding to the first N route codes are taken as hot routes of the target person in the second preset time period.
6. A hotspot route analysis device, characterized in that: The device comprises: A first acquisition module is used to acquire the capture trajectory information of a target person in a first preset time period, wherein the target person is a mobile person, and the capture trajectory information includes the capture data of the target person, and the capture data of the target person includes the capture time of the target person and the public transportation unit code; A second acquisition module is used to acquire the public transportation unit trajectory information corresponding to the public transportation unit code in the first preset time period, wherein the public transportation unit trajectory information includes a station code and an arrival time at the station; A first determination module, configured to determine a route code of the target person in the first preset time period based on the captured trajectory information and the public transportation unit trajectory information, wherein each route code corresponds to a route; A second determination module is used to determine the hotspot route of the target person in a second preset time period according to the route code of the target person in the first preset time period, where the second preset time period includes a plurality of first preset time periods; The first determining module includes: A calculation submodule, configured to perform intersection calculation on the captured trajectory information and the public transportation unit trajectory information to obtain a travel trajectory of the target person in the first preset time period, wherein the travel trajectory includes the captured data of the target person; A verification submodule, configured to verify the travel trajectory according to a preset verification rule, and determine the verified travel trajectory as the route code of the target person in the first preset time period; The syndrome module further includes: An extraction unit, used to extract the earliest capture time and the latest capture time in the verified travel trajectory; A first determining unit, configured to determine a first arrival time at a site according to the earliest capture time, and determine a corresponding first site code according to the first arrival time at the site; A second determining unit, configured to determine a second arrival time at the site according to the latest snapshot time, and determine a corresponding second site code according to the second arrival time at the site; The third determining unit is used to determine the route code of the target person in the first preset time period according to the first site code and the second site code.
7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the hotspot route analysis method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the hotspot route analysis method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Target person identifying and tracking method and device based on surveillance video
CN107590439A
A method and a device for determining a passerby track
CN109815829A