Incoming and outgoing passenger counting program and information processing device
The passenger counting program enhances accuracy by detecting trajectories and specifying count line ranges based on clusters, addressing variable entrance positions and non-passenger interactions to improve counting precision.
Patent Information
- Application Number
- JP2023029075
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-09
AI Technical Summary
Existing passenger counting methods using count lines are inaccurate due to variable entrance/exit positions and non-passenger interactions with vehicles, such as loading/unloading luggage, leading to low counting accuracy.
A passenger counting program that detects multiple trajectories from image data, specifies count line ranges based on trajectory clusters, and calculates passenger counts within these ranges, considering direction and vehicle area to differentiate between boarding and alighting.
Improves the accuracy of counting passengers getting on and off vehicles by accurately determining door positions and excluding non-passenger interactions, even with shifting stop positions and crowded areas.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a passenger counting program and an information processing device. [Background technology]
[0002] The computer may wish to count at least one of passengers who board a vehicle and passengers who exit a vehicle, based on image data captured when the vehicle is stopped. In addition, a management system for the number of people entering and exiting a train has been proposed, which continuously detects people from camera images and adds up the number of people passing through when the movement trajectory of the same person passes a judgment line. Also, a monitoring system has been proposed that captures images of the area around the doors of a stopped train, counts the number of people getting on and off at each door from the images, and notifies the number of people getting on and off between stations to estimate the current number of passengers.
[0003] Also proposed is a passenger counting device that continuously captures the entrance / exit gate with a camera installed in the vehicle, detects and tracks people from the image, and counts the number of passengers passing through the entrance / exit gate.Also proposed is a passenger number calculation system that continuously captures the entrance / exit gate of a vehicle, detects and tracks people from the image, and calculates the number of passengers getting on and off based on whether or not a person has passed each of two count lines set in front of the entrance / exit gate. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 10-49718 [Patent Document 2] JP 2014-54899 A [Patent Document 3] JP 2014-219913 A [Patent Document 4] Patent Publication No. 2022-149027 Summary of the Invention [Problem to be solved by the invention]
[0005] A computer may calculate at least one of the number of passengers getting on and the number of passengers getting off by counting people who pass through a count line from image data of a bus stop where the vehicle is stopped. However, as with a bus, the position of the boarding / alighting door in the image area may change each time the vehicle stops. Also, people may approach the vehicle for reasons other than boarding or alighting, such as taking luggage in and out of the trunk. For this reason, a simple counting method using a count line may result in low counting accuracy. Therefore, in one aspect, the present invention aims to improve the counting accuracy of passengers getting on and off a vehicle. [Means for solving the problem]
[0006] In one aspect, a passenger count program is provided that causes a computer to execute the following processes: Acquire image data showing a vehicle and a plurality of people moving outside the vehicle. Detect a plurality of trajectories showing the movement paths of the plurality of people from the image data. Identify the range of the count line based on a cluster of a plurality of intersections where the plurality of trajectories intersect with a count line set in an image area of the image data. Calculate at least one of the number of passengers in the vehicle and the number of passengers alighting based on the number of trajectories that intersect with the count line within the identified range. In another aspect, an information processing device having a storage unit and a processing unit is provided.
[0007] In one embodiment, a passenger count program is provided that causes a computer to execute the following processes: Acquire image data showing a vehicle and a plurality of people moving outside the vehicle. Detect a plurality of trajectories showing the movement paths of the plurality of people from the image data. Calculate at least one of the number of passengers getting on and off the vehicle based on the number of trajectories moving from one of a surrounding area set in an image area of the image data and a vehicle area in which the vehicle is captured to the other of the plurality of trajectories. Effect of the Invention
[0008] One aspect is that it improves the accuracy of counting passengers getting on and off vehicles. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an information processing device according to a first embodiment. [Diagram 2] FIG. 11 is a diagram illustrating an information processing device according to a second embodiment. [Diagram 3] FIG. 13 illustrates an example of an information processing system according to a third embodiment. [Figure 4] FIG. 2 illustrates an example of hardware of an information processing device. [Diagram 5] FIG. 11 is a diagram showing an example of a flow for counting passengers getting on and off from image data. [Figure 6] FIG. 13 is a diagram showing an example of differences in the number of passengers getting on and off depending on logic and detection mode. [Figure 7] FIG. 13 illustrates an example of an anomaly in a bounding box for a bus. [Figure 8] 1 is a graph showing an example of the relationship between frame number and IoU. [Figure 9] FIG. 11 is a diagram showing a first example of sharing a tracking ID. [Figure 10] FIG. 13 is a diagram showing a second example of sharing a tracking ID. [Figure 11] FIG. 13 is a diagram showing a third example of sharing a tracking ID. [Figure 12] FIG. 13 is a diagram showing an example of an allowable area within a frame. [Figure 13] FIG. 13 is a diagram showing an example of a bus region calculated from a bus bounding box. [Figure 14] FIG. 13 illustrates an example of a trajectory calculated from a bounding box of a person; [Figure 15] FIG. 13 is a diagram illustrating an example of smoothing a trajectory using a low-pass filter. [Figure 16] 1 is a graph showing an example relationship between the Y coordinate and height of a bounding box of a person. [Figure 17] 11 is a graph showing an example of a correction function for correcting the height of a bounding box of a person. [Figure 18] FIG. 13 is a diagram illustrating an example of a setting table for location analysis. [Figure 19]FIG. 13 is a diagram showing an example of passenger counting using count line logic. [Figure 20] 13A and 13B are diagrams illustrating examples of intersections between count lines and trajectories. [Figure 21] FIG. 13 is a diagram showing an example of boarding and disembarking entrances determined from clusters. [Figure 22] 11 is a graph showing an example of determination of the alighting period and the riding period in the boarding / alighting mode. [Diagram 23] FIG. 13 is a diagram showing an example of count addition using a door region. [Figure 24] FIG. 13 is a diagram illustrating an example of a setting table for count line logic. [Diagram 25] FIG. 13 is a diagram showing an example of passenger boarding / alighting counting using surrounding area logic. [Figure 26] FIG. 13 is a diagram showing an example of an increase / decrease in count for each trajectory. [Figure 27] FIG. 2 is a block diagram showing an example of functions of the information processing device; [Figure 28] 10 is a flowchart showing an example of a procedure for detecting a stopped period of a vehicle. [Figure 29] 13 is a flowchart (continued 1) showing an example of a procedure for detecting a stopped period. [Diagram 30] 13 is a flowchart (continued 2) showing an example of a procedure for detecting a stopped period. [Diagram 31] 13 is a flowchart showing an example of a procedure for position analysis. [Diagram 32] 13 is a flowchart (continuation) showing an example of a procedure for location analysis. [Diagram 33] 13 is a flowchart showing an example of a procedure of count line logic. [Diagram 34] 13 is a flowchart (continued 1) showing an example of a procedure of the count line logic. [Diagram 35] 13 is a flowchart (continued 2) showing an example of a procedure of the count line logic. [Diagram 36] 13 is a flowchart (continued 3) showing an example of a procedure of the count line logic. [Figure 37] 13 is a flowchart showing an example of a procedure of a surrounding area logic. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] The present embodiment will be described below with reference to the drawings. [First embodiment] A first embodiment will be described.
[0011] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. The information processing device 10 of the first embodiment analyzes image data to count passengers who get on and off a vehicle. The information processing device 10 may be a client device or a server device. The information processing device 10 may be called a computer or a passenger counting device.
[0012] The information processing device 10 includes a storage unit 11 and a processing unit 12. The storage unit 11 may be a volatile semiconductor memory such as a random access memory (RAM), or may be a non-volatile storage such as a hard disk drive (HDD) or a flash memory.
[0013] The processing unit 12 is, for example, a processor such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). However, the processing unit 12 may include an electronic circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The processor executes a program stored in a memory such as a RAM (which may be the storage unit 11). A collection of processors may be called a multiprocessor or simply a "processor."
[0014] The memory unit 11 stores image data 13. The image data 13 shows a vehicle and a plurality of people moving outside the vehicle. The image data 13 shows, for example, a stop where the vehicle is stopped. The image data 13 may be received from a fixed camera set at the stop. The stop may include a stopping section where the vehicle is stopped and a walking section where people walk. Two or more people can board the vehicle, and the position of the door of the vehicle as seen from the stop changes for each stop. For example, the vehicle is a bus, and the stop is a bus stop. However, the vehicle is not limited to a bus.
[0015] The image data 13 includes a plurality of frames captured at the same location but different times. The image data 13 may be called moving image data. The frame interval may be constant, such as 10 fps, and the frame resolution may be constant, such as 1920 x 1080.
[0016] The processing unit 12 detects a plurality of trajectories indicating the movement paths of a plurality of people from the image data 13. For example, the processing unit 12 detects, from the image data 13, trajectories 14a, 14b, and 14c indicating the movement paths of different people during a vehicle stop period.
[0017] At this time, the processing unit 12 may use an image recognition model, which is a trained machine learning model, to recognize people appearing in each frame of the image data 13. The processing unit 12 may also use the machine learning model to determine the identity of people recognized in different frames. The processing unit 12 may also calculate a trajectory by listing the coordinates of the same person.
[0018] The processing unit 12 sets a count line 15 in the image area of the image data 13. The count line 15 may be set before the image data 13 is acquired, taking into consideration the installation position of the camera and a stopping section where a vehicle may stop. For example, the count line 15 is set at a position where passengers getting on and off are expected to pass, such as the edge of a pedestrian section.
[0019] The processing unit 12 detects intersections between each of a plurality of trajectories, such as trajectories 14a, 14b, and 14c, and the count line 15. When one trajectory intersects with the count line 15 two or more times, the processing unit 12 may select at most one of the two or more intersections and delete the other intersections according to the moving direction of the trajectory.
[0020] The processing unit 12 identifies a range 16 on the count line 15 based on a cluster of multiple intersections corresponding to multiple trajectories. For example, the processing unit 12 classifies the multiple intersections into multiple clusters based on their coordinates on the image area using a clustering algorithm such as a k-means method. The processing unit 12 identifies the range 16 from a distribution of intersections included in a high-density cluster, such as a cluster in which the number of intersections exceeds a threshold. The processing unit 12 may estimate the range 16 on the count line 15 as a section in which the vehicle doors are located.
[0021] The processing unit 12 counts, among the multiple detected trajectories, trajectories that intersect the count line 15 within the range 16. At this time, the processing unit 12 may exclude from the counting trajectories that intersect the count line 15 outside the range 16. For example, the trajectories 14a and 14b intersect the count line 15 within the range 16, and the trajectory 14c intersects the count line 15 outside the range 16. In this case, the trajectory 14c is excluded from the counting.
[0022] The processing unit 12 calculates at least one of the number of passengers boarding the vehicle and the number of passengers alighting based on the counted number. At this time, the processing unit 12 may distinguish between the trajectory of passengers boarding and the trajectory of passengers alighting based on the direction in which the trajectory passes the count line 15. The processing unit 12 may determine that a trajectory that passes the count line 15 from bottom to top is the trajectory of passengers boarding, or may determine that a trajectory that passes the count line 15 from top to bottom is the trajectory of passengers alighting. The processing unit 12 may also distinguish and estimate the boarding entrance and the alighting entrance of the vehicle by separating and classifying the intersections of the trajectories of passengers boarding and the intersections of the trajectories of alighting into clusters.
[0023] The processing unit 12 outputs the calculated number of people. The processing unit 12 may record the number of people in a non-volatile storage, may display it on a display device, or may transmit it to another information processing device. As described above, the information processing device 10 of the first embodiment acquires image data 13 that shows a vehicle and multiple people moving outside the vehicle. The information processing device 10 detects multiple trajectories indicating the movement routes of the multiple people from the image data 13. The information processing device 10 specifies a range 16 of the count line 15 based on a cluster of multiple intersections where the multiple trajectories intersect with the count line 15 set in the image area of the image data 13. The information processing device 10 calculates at least one of the number of passengers getting on and the number of passengers getting off the vehicle based on the number of trajectories that intersect with the count line 15 within the range 16 among the multiple trajectories.
[0024] This allows the information processing device 10 to estimate the position of the door of the vehicle and count passengers taking the door position into consideration. Therefore, even if the vehicle's stopping position shifts each time the vehicle stops, the accuracy of counting passengers is improved. In addition, it is possible to prevent people who approach the vehicle for reasons other than getting on or off, such as taking in or out luggage, from being erroneously counted as passengers, improving the accuracy of counting passengers.
[0025] The information processing device 10 may classify the intersections into a plurality of clusters based on the coordinates in the image area, and may estimate the door position based on a cluster in which the number of intersections exceeds a threshold value. This allows the door position of the vehicle to be estimated with high accuracy.
[0026] Furthermore, when one trajectory intersects with the count line 15 multiple times, the information processing device 10 may select at most one intersection point based on the movement direction of the trajectory. This prevents duplicate counting of people who cross the count line 15 for reasons other than getting on and off, such as loading luggage before getting on or picking up luggage after getting off. Furthermore, the information processing device 10 may detect a vehicle area in which a vehicle is captured from the image data 13, and may determine the movement direction of the trajectory based on whether or not the start and end points of the trajectory are included in the vehicle area. This allows the boarding point or disembarking point to be accurately determined from multiple intersection points detected from one trajectory.
[0027] Furthermore, the information processing device 10 may detect human regions in which each of a plurality of people is captured, and may correct the height of the human region of some people based on the relationship between the vertical position of the image region and the height of the human region. This allows the trajectories of the plurality of people to be detected with high accuracy even when a plurality of people are captured overlapping in the image data 13.
[0028] Furthermore, the information processing device 10 may set a door area in the image area based on the range 16, and may increase the calculated number of passengers getting on or off based on the number of trajectories that do not intersect with the count line 15 and whose starting or ending points are included in the door area. This prevents passengers from being overlooked and improves the accuracy of counting passengers, even when people are crowded around the vehicle door and the recognition accuracy of the movement paths of people is low.
[0029] [Second embodiment] Next, a second embodiment will be described. FIG. 2 is a diagram illustrating an information processing apparatus according to the second embodiment.
[0030] The information processing device 20 of the second embodiment analyzes image data and counts passengers getting on and off a vehicle, similar to the first embodiment. The information processing device 20 corresponds to the information processing device 10 of the first embodiment. The information processing device 10 and the information processing device 20 may be the same device.
[0031] The information processing device 20 has a memory unit 21 and a processing unit 22. The memory unit 21 corresponds to the memory unit 11 of the first embodiment. The processing unit 22 corresponds to the processing unit 12 of the first embodiment. The memory unit 21 stores image data 23. The image data 23 corresponds to the image data 13 of the first embodiment. The processing unit 22 detects multiple trajectories indicating the movement routes of multiple people from the image data 23, similar to the first embodiment. For example, the processing unit 22 detects trajectories 24a, 24b, and 24c from the image data 23.
[0032] The processing unit 22 sets a surrounding area 25 in the image area of the image data 23. The surrounding area 25 indicates, for example, a pedestrian section through which a passenger passes when entering a station, such as an entrance / exit of the station, and a pedestrian section through which a passenger passes when leaving the station. The surrounding area 25 may be set before the image data 23 is acquired, taking into consideration the installation position of the camera and the structure of the station. Furthermore, the processing unit 22 detects a vehicle area 26 in which a vehicle is captured from the image data 23. The vehicle area 26 may be different for each stop of the vehicle.
[0033] The processing unit 22 counts trajectories that move from one of the set surrounding area 25 and the detected vehicle area 26 to the other, among a plurality of trajectories corresponding to a plurality of people. The processing unit 22 calculates at least one of the number of people getting on and getting off the vehicle, based on the counted number. At this time, the processing unit 22 may exclude from the counting targets trajectories whose starting point and / or ending point are not included in either the surrounding area 25 or the vehicle area 26.
[0034] The processing unit 22 may calculate the number of passengers from the number of trajectories moving from the surrounding area 25 to the vehicle area 26. The processing unit 22 may also calculate the number of passengers getting off from the number of trajectories moving from the vehicle area 26 to the surrounding area 25. The processing unit 22 may also calculate only one of the number of passengers getting on and the number of passengers getting off from the difference between the number of trajectories moving from the surrounding area 25 to the vehicle area 26 and the number of trajectories moving from the vehicle area 26 to the surrounding area 25.
[0035] The processing unit 22 outputs the calculated number of people. The processing unit 22 may record the number of people in a non-volatile storage, may display it on a display device, or may transmit it to another information processing device. As described above, the information processing device 20 of the second embodiment acquires image data 23 depicting a vehicle and multiple people moving outside the vehicle. The information processing device 20 detects multiple trajectories indicating the movement routes of the multiple people from the image data 23. The information processing device 20 calculates at least one of the number of passengers in the vehicle and the number of people getting off the vehicle based on the number of trajectories moving from one of the surrounding area 25 set in the image area of the image data 23 and the vehicle area 26 in which the vehicle is depicted to the other, among the multiple trajectories.
[0036] This allows the information processing device 20 to count passengers by using information on the routes of travel when passengers move through sections away from the vehicle, such as routes into and out of stations, etc. Therefore, even when the area around the vehicle doors is crowded and the accuracy of person recognition is low, the accuracy of counting passengers is improved.
[0037] The information processing device 20 may use the counting method of the first embodiment in combination. For example, when the number of passengers calculated by the counting method of the first embodiment and the counting method of the second embodiment differ, the information processing device 20 may select the larger one. Also, when the number of passengers calculated by the counting method of the first embodiment and the counting method of the second embodiment differ, the information processing device 20 may select the larger one.
[0038] Furthermore, the information processing device 20 may exclude from the counting target, among the trajectories of a person, a trajectory whose starting point or ending point is not included in either the surrounding area 25 or the vehicle area 26. This improves the counting accuracy by not counting pedestrians who merely pass through a bus stop.
[0039] [Third embodiment] Next, a third embodiment will be described. FIG. 3 illustrates an example of an information processing system according to the third embodiment.
[0040] The information processing system of the third embodiment collects image data from each of a plurality of bus stops, analyzes the collected image data, and calculates the number of passengers boarding and alighting at each bus stop. The information processing system includes cameras 35, 36 and an information processing device 100. The cameras 35, 36 and the information processing device 100 are connected to a network 30. The network 30 is, for example, a wide area data communication network such as the Internet.
[0041] Camera 35 is installed at bus stop 31, and captures an image of a bus arriving at bus stop 31 and the sidewalk from the sidewalk side. One or more buses, such as bus 33, stop at bus stop 31 each day. Bus 33 has a boarding and alighting door on the left side, so camera 35 captures bus 33 from the left side. Camera 36 is installed at bus stop 32, and captures an image of a bus arriving at bus stop 32 and the sidewalk from the sidewalk side. One or more buses, such as bus 34, stop at bus stop 32 each day. Bus 34 has a boarding and alighting door on the left side, so camera 36 captures bus 34 from the left side. Bus stops 31 and 32 are sometimes called berths.
[0042] The cameras 35 and 36 are fixed cameras with fixed imaging directions and may be called surveillance cameras. The cameras 35 and 36 continuously transmit image data having a constant resolution and a constant frame rate to the information processing device 100. The resolution is, for example, 1920 wide x 1080 high. The frame rate is, for example, 10 frames per second (fps).
[0043] The information processing device 100 is a server computer that receives and analyzes image data from the cameras 35, 36. The information processing device 100 recognizes people walking at the bus stops 31, 32 and buses 33, 34 from the image data. The information processing device 100 calculates the number of passengers getting on and off at each of the bus stops 31, 32 based on the image recognition results. The information processing device 100 may be called a passenger counting device or an image recognition device. The information processing device 100 corresponds to the information processing device 10 of the first embodiment and the information processing device 20 of the second embodiment.
[0044] In the third embodiment, the bus stop management company that manages the bus stops 31 and 32 is different from the bus operating company that operates the buses 33 and 34. Although the bus operating company has information on the number of passengers getting on and off at each bus stop, the information on the number of passengers getting on and off is not reported in real time from the bus operating company to the bus stop management company. Therefore, the bus stop management company may want to know the number of passengers quickly by using image data from the cameras 35 and 36. The information on the number of passengers getting on and off can be used for the management of the bus stops 31 and 32, such as changing the bus stop location or securing cleaning staff.
[0045] Therefore, for example, the information processing device 100 generates and outputs report data indicating the number of passengers getting on and off each bus that arrives at the bus stops 31 and 32 periodically, such as once a day. The report data may be stored in a non-volatile storage, may be displayed on a display device, or may be transmitted to another information processing device. The information processing device 100 may analyze image data received from the cameras 35 and 36 in real time, or may analyze accumulated image data as a batch process periodically, such as once a day.
[0046] There are three types of buses: high-decker buses, double-decker buses, and community buses. High-decker buses have a high passenger floor and one door at the front. Double-decker buses are two-story buses with a driver's door at the front and a passenger door in the middle. However, at the last bus stop, passengers may disembark from the front door. Community buses have a low passenger floor and a boarding door at the front and a disembarking door in the middle. However, at the last bus stop, passengers may disembark from the front door.
[0047] There are three types of bus stops: boarding only, alighting only, and both. At boarding only bus stops, there are no passengers getting off the buses for all or most of the buses that stop there. At alighting only bus stops, there are no passengers getting on the buses for all or most of the buses that stop there. At boarding and alighting bus stops, there may be both passengers getting on and off the buses for all or most of the buses that stop there.
[0048] FIG. 4 is a diagram illustrating an example of hardware of an information processing device. The information processing device 100 has a CPU 101, a RAM 102, a HDD 103, a GPU 104, an input interface 105, a medium reader 106, and a communication interface 107, all connected via a bus. The CPU 101 corresponds to the processing unit 12 of the first embodiment and the processing unit 22 of the second embodiment. The RAM 102 or the HDD 103 corresponds to the storage unit 11 of the first embodiment and the storage unit 21 of the second embodiment.
[0049] The CPU 101 is a processor that executes instructions of a program. The CPU 101 loads the program and data stored in the HDD 103 into the RAM 102 and executes the program. The information processing device 100 may have multiple processors.
[0050] The RAM 102 is a volatile semiconductor memory that temporarily stores programs executed by the CPU 101 and data used in calculations by the CPU 101. The information processing device 100 may have a type of volatile memory other than a RAM.
[0051] The HDD 103 is a non-volatile storage that stores software programs such as an operating system (OS), middleware, and application software, and data. The information processing device 100 may have other types of non-volatile storage, such as a flash memory or a solid state drive (SSD).
[0052] The GPU 104 performs image processing in cooperation with the CPU 101, and outputs an image to a display device 111 connected to the information processing device 100. The display device 111 is, for example, a CRT (Cathode Ray Tube) display, a liquid crystal display, an organic EL (Electro Luminescence) display, or a projector. Other types of output devices, such as a printer, may be connected to the information processing device 100.
[0053] The GPU 104 may be used as a general purpose computing on graphics processing unit (GPGPU). The GPU 104 may execute a program in response to an instruction from the CPU 101. The information processing device 100 may include a volatile semiconductor memory other than the RAM 102 as a GPU memory.
[0054] The input interface 105 receives an input signal from an input device 112 connected to the information processing device 100. The input device 112 is, for example, a mouse, a touch panel, or a keyboard. A plurality of input devices may be connected to the information processing device 100.
[0055] The medium reader 106 is a reading device that reads the program and data recorded on the recording medium 113. The recording medium 113 is, for example, a magnetic disk, an optical disk, or a semiconductor memory. The magnetic disk includes a flexible disk (FD) and a HDD. The optical disk includes a compact disc (CD) and a digital versatile disc (DVD). The medium reader 106 copies the program and data read from the recording medium 113 to another recording medium such as the RAM 102 or the HDD 103. The read program may be executed by the CPU 101.
[0056] The recording medium 113 may be a portable recording medium. The recording medium 113 may be used for distributing programs and data. The recording medium 113 and the HDD 103 may be called computer-readable recording media.
[0057] The communication interface 107 communicates with the cameras 35 and 36 via the network 30. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router, or a wireless communication interface connected to a wireless communication device such as a base station or an access point.
[0058] Next, the flow of counting passengers will be described. FIG. 5 is a diagram showing an example of a flow for counting passengers getting on and off from image data. The information processing device 100 receives image data including frames 131-1 to 131-5. The information processing device 100 sequentially performs object recognition 141, object tracking 142, stop period detection 143, and passenger count 144 on the image data. Then, the information processing device 100 outputs data 132 indicating the arrival time, departure time, number of passengers getting on, and number of passengers getting off.
[0059] Frame 131-1 is an image taken at a time when the bus is approaching the bus stop but has not yet stopped. Frame 131-2 is an image taken at a time when the bus has stopped but passengers have not yet started getting on or off. Frame 131-3 is an image taken at a time when the bus is stopped and passengers have started getting on or off. Frame 131-4 is an image taken at a time after frame 131-3 and when the bus is stopped. People are captured in frames 131-3 and 131-4. Frame 131-5 is an image taken at a time when the bus has departed from the bus stop.
[0060] The object recognition 141 detects objects from each of the frames 131-1 to 131-5. The object recognition 141 generates a bounding box indicating a rectangular area in which the object is captured, and assigns a label indicating the class of the object to the bounding box. For example, the object recognition 141 detects a bus from the frames 131-1 to 131-5, and generates a bounding box to which a label indicating the bus class is assigned. Furthermore, the object recognition 141 detects a person from the frames 131-3 and 131-4, and generates a bounding box to which a label indicating the person class is assigned.
[0061] Based on the output of object recognition 141, object tracking 142 determines whether bounding boxes included in different frames represent the same object. Object tracking 142 determines whether a change in the position of a bounding box represents normal movement of an object based on the distance between two bounding boxes assigned the same class between adjacent frames and the class. Object tracking 142 assigns the same tracking ID (track ID) to bounding boxes representing the same object.
[0062] For example, the object tracker 142 assigns the same tracking ID to the bounding boxes of a bus included in frames 131-1 to 131-5, and also assigns the same tracking ID to the bounding boxes of a person included in frames 131-3 and 131-4.
[0063] The information processing device 100 may use a machine learning model for the object recognition 141 and the object tracking 142. The object recognition 141 is described, for example, in the following non-patent literature. Zheng Ge, Songtao Liu, Feng Wang, Zeming Li and Jian Sun, "YOLOX: Exceeding YOLO Series in 2021", arXiv:2107.08430, July 2021. The object tracking 142 is described, for example, in the following non-patent literature. Yifu Zhang, Peize Sun, Yi Jiang, Dongdong Yu, Zehuan Yuan, Ping Luo, Wenyu Liu and Xinggang Wang, "ByteTrack: Multi-Object Tracking by Associating Every Detection Box", arXiv:2110.06864, October 2021.
[0064] Stop period detection 143 detects the stop period during which the bus is stopped at the bus stop based on the output of object tracking 142, and extracts frames belonging to the stop period from the image data. At this time, stop period detection 143 determines whether the position of each bounding box of a bus with the same tracking ID is within an allowable area set in advance for each bus stop. Stop period detection 143 determines the time of the frame when the bounding box position enters the allowable area as the arrival time, and determines the time of the frame when the bounding box position leaves the allowable area as the departure time.
[0065] The period from the arrival time to the departure time is the stop period during which the bus was stopped at the bus stop. For example, stop period detection 143 determines the time of frame 131-2 as the arrival time and the time of frame 131-4 as the departure time. Then, stop period detection 143 extracts frames 131-2 to 131-4 from the image data.
[0066] The boarding and alighting passenger count 144 calculates the number of passengers who got on and got off the bus that was stopped during the stop period based on the output of the stop period detection 143. However, depending on the type of bus stop or the type of bus, one of the number of passengers who got on and the number of passengers who got off may be fixed to 0.
[0067] The passenger count 144 extracts the coordinates of the bounding boxes of people with the same tracking ID, and calculates a trajectory showing the movement route of the people by arranging the extracted coordinates in chronological order. In this way, the passenger count 144 calculates multiple trajectories corresponding to multiple people captured during the stop period. The passenger count 144 counts the number of passengers getting on and off based on the relationship between the bus area in which the stopped bus is located and the multiple trajectories.
[0068] The accuracy of the passenger count by the information processing device 100 is evaluated, for example, by the following index: 1-(|c1-d1|+|c2-d2|) / (c1+c2). c1 is the correct number of passengers boarding the train as visually confirmed by a human. c2 is the correct number of passengers disembarking as visually confirmed by a human. d1 is the number of passengers boarding the train calculated by the information processing device 100. d2 is the number of passengers disembarking calculated by the information processing device 100. The above index represents the accuracy rate obtained by subtracting the error rate of the number of passengers boarding and disembarking from 1, and a larger value represents a higher accuracy. For example, when c1=100, c2=10, d1=98, and d2=15, the accuracy is approximately 93.6%.
[0069] FIG. 6 is a diagram showing an example of differences in the number of passengers getting on and off depending on logic and detection mode. The information processing device 100 can execute the count line logic and the surrounding area logic as an algorithm for the passenger count 144. In the third embodiment, the count line logic and the surrounding area logic are used together. However, depending on the settings, the information processing device 100 may execute only one of the count line logic and the surrounding area logic. Furthermore, the information processing device 100 may execute the count line logic or the surrounding area logic in multiple ways using different setting values.
[0070] The count line logic calculates the number of people getting on and off based on the intersections between the trajectory of the bounding box of people and a count line that is set in advance on the image area for each bus stop. The count line logic can count people getting on and off separately. When congestion around the boarding and alighting entrance of the vehicle is light, the counting accuracy of the count line logic is high. The information processing device 100 can also execute multiple count line logics with different count lines for the same image data.
[0071] The surrounding area logic detects the trajectory of the bus moving between the bus area in the image area where the bus is located and the surrounding area set in advance on the image area, and calculates the number of passengers getting on or off. The surrounding area logic cancels out boarding and alighting, so either the number of passengers getting on or the number of passengers alighting becomes 0. The surrounding area logic can calculate the number of passengers getting on or alighting with relatively high accuracy even when the tracking accuracy of people near the boarding and alighting doors of the vehicle is low. Examples of cases where the tracking accuracy of people is reduced include cases where multiple passengers getting on or alighting near the boarding and alighting doors overlap in the image due to a large number of passengers getting on or alighting, or cases where the driver stands next to the boarding and alighting doors and hides the passengers getting on or alighting.
[0072] As shown in table 133, the information processing device 100 calculates the number of passengers getting on and off for each of count line logic 1, count line logic 2, and surrounding area logic. The count line logic 1 and count line logic 2 have different setting values. For example, the count line logic 1 and count line logic 2 have different count lines.
[0073] The information processing device 100 selects the maximum number of passengers from among the number of passengers in count line logic 1, the number of passengers in count line logic 2, and the number of passengers in the surrounding area logic. In the example of FIG. 6, the number of six passengers calculated in count line logic 2 is adopted. In addition, the information processing device 100 selects the maximum number of passengers from among the number of passengers alighting in count line logic 1, the number of passengers alighting in count line logic 2, and the number of passengers alighting in the surrounding area logic. In the example of FIG. 6, the number of seven passengers calculated in the surrounding area logic is adopted.
[0074] As described above, there are three types of bus stops: boarding only bus stops, disembarking only bus stops, and both boarding and disembarking bus stops. Therefore, a detection mode is set for each bus stop, as shown in table 134. The detection mode is selected from among a get on mode, a get off mode, an automatic mode, and a both mode.
[0075] Boarding mode is a detection mode that considers the number of passengers disembarking to be 0 regardless of the execution result of the above logic, and is expected to be set for bus stops exclusively for boarding. Disembarking mode is a detection mode that considers the number of passengers boarding to be 0 regardless of the execution result of the above logic, and is expected to be set for bus stops exclusively for disembarking. Automatic mode is a detection mode that considers the smaller of the number of passengers boarding and disembarking to be 0. If the number of passengers boarding and disembarking are equal, the number of passengers disembarking is considered to be 0. Boarding and disembarking mode allows both the number of passengers boarding and disembarking to be non-zero.
[0076] Here, it is assumed that the number of passengers boarding and the number of passengers alighting are calculated as 6 and 7, respectively, as described above. In the case of a bus stop whose detection mode is the boarding mode, the information processing device 100 finally determines the number of passengers boarding to be 6 and the number of passengers alighting to be 0. In the case of a bus stop whose detection mode is the alighting mode, the information processing device 100 finally determines the number of passengers boarding to be 0 and the number of passengers alighting to be 7. In the case of a bus stop whose detection mode is the automatic mode, the information processing device 100 finally determines the number of passengers boarding to be 0 and the number of passengers alighting to be 7. In the case of a bus stop whose detection mode is the boarding / alighting mode, the information processing device 100 finally determines the number of passengers boarding to be 6 and the number of passengers alighting to be 7.
[0077] Next, detection of a stopped period of the vehicle will be described. FIG. 7 shows an example of an anomaly in a bounding box of a bus. The information processing device 100 determines the stop period based on the bounding box of the bus to which the tracking ID is assigned. However, since there is a limit to the accuracy of the object recognition and object tracking, which are the pre-processing, an abnormal bounding box may be generated. Therefore, the information processing device 100 detects and corrects the abnormal bounding box.
[0078] Bounding box anomalies can occur in frames that contain two buses. For example, bounding boxes 201 and 202 are detected from frame t. Bounding box 201 is assigned class=bus and tracking ID=1. Bounding box 202 is assigned class=bus and tracking ID=2. Bounding boxes 201 and 202 each correctly represent one bus.
[0079] In this case, from the frame t+1 following the frame t, only a bounding box 203 may be detected for a vehicle. The bounding box 203 is assigned class=bus and tracking ID=1. Therefore, the bounding box for tracking ID=2 has disappeared. The bounding box 203 straddles two buses and does not correctly indicate a specific bus.
[0080] Also, from frame t+1, only a bounding box 204 may be detected for a vehicle. The bounding box 204 has class=bus and tracking ID=2. Thus, the bounding box for tracking ID=1 is missing. The bounding box 204 straddles two buses and does not correctly indicate a specific bus. Such anomalies may occur when other objects, such as a person, are present between the two buses.
[0081] Therefore, the information processing device 100 corrects the bounding boxes as follows: The information processing device 100 calculates the IoU (Intersection over Union) of two bounding boxes that have a vehicle-related class and the same tracking ID between adjacent frames. The IoU is the ratio of the logical product (common area) of two areas to the logical sum of the two areas. The greater the overlap between the two areas, the greater the IoU.
[0082] The information processing device 100 detects a pair of frames including a bounding box whose IoU is less than a threshold value. This is because a large movement of an object in a short period of time is highly likely to be an abnormality. The threshold value is, for example, 0.8. The information processing device 100 determines whether the front frame of the pair includes two tracking IDs for a vehicle and the rear frame of the pair does not include one of the tracking IDs (one of the tracking IDs is missing). If this condition is met, the information processing device 100 determines that the bounding box of the rear frame is abnormal.
[0083] When the subsequent frame includes a new tracking ID for a vehicle that does not exist in the previous frame, the information processing device 100 associates two bounding boxes in the previous frame and two bounding boxes in the subsequent frame that are close to each other. The information processing device 100 considers that the associated bounding boxes indicate the same vehicle, and shares a tracking ID. For example, the information processing device 100 replaces the tracking IDs in the subsequent frames with the tracking IDs in the previous frame.
[0084] On the other hand, if the subsequent frame does not include a new tracking ID for the vehicle, the information processing device 100 determines that the reliability of the bounding box in the subsequent frame is low, as in the example of Fig. 7. In this case, the information processing device 100 deletes the bounding box of the vehicle included in the subsequent frame and copies the two bounding boxes included in the previous frame.
[0085] FIG. 8 is a graph showing an example of the relationship between the frame number and the IoU. Curve 210 shows the IoU of bounding boxes with the same tracking ID included in adjacent frames. Since the time elapsed between adjacent frames is small, the IoU is close to 1 if each bounding box correctly indicates the same bus. However, as in points 211 and 212, the IoU may temporarily decrease. In frames where the IoU decreases, the bus may not be recognized correctly due to the influence of people moving around the bus. In particular, in frame 212 where the IoU decreases significantly, the bounding box has moved significantly, causing a recognition anomaly.
[0086] Next, the information processing device 100 corrects the class assigned to the bounding box. In object recognition, a bus may be erroneously classified into other vehicle classes such as trucks and trains. Meanwhile, large vehicles captured in image data of a bus stop are usually only buses. Therefore, the information processing device 100 regards the class of vehicles other than buses as the bus class. However, multiple bounding boxes of different classes may be generated for the same vehicle. In that case, the information processing device 100 deletes some of the bounding boxes to eliminate duplication.
[0087] The information processing device 100 assigns a score indicating a priority to a vehicle-related class. For example, the information processing device 100 determines a score of 1.0 for a bus and a score of 0.5 for a truck and a train. Next, when the same frame includes two or more bounding boxes of a vehicle-related class, the information processing device 100 calculates the IoU between those bounding boxes.
[0088] The information processing device 100 executes non-maximum suppression (NMS) based on the calculated IoU and the score assigned to the class. When there are two bounding boxes whose IoU exceeds a threshold, NMS deletes the bounding box with the lower score. This deletes redundant bounding boxes that essentially indicate the same bus. The information processing device 100 regards the class of the remaining bounding boxes as a bus.
[0089] Next, the information processing device 100 detects different tracking IDs that indicate the same bus and makes the different tracking IDs common. The object recognition may fail to recognize a bus in a certain frame. In that case, the object tracking may not be able to determine the continuity of the bounding box of the bus included in the frames before and after that frame, and the tracking ID may change.
[0090] Therefore, the information processing device 100 uses a common tracking ID by three algorithms described below. The three algorithms are used in the order of priority: first algorithm, second algorithm, and third algorithm. For example, if a bounding box meets the conditions of both the first algorithm and the second algorithm, only the first algorithm is used.
[0091] FIG. 9 is a diagram showing a first example of sharing a tracking ID. Frame 221 includes a bounding box 224 for a bus with trace ID=1. Frame 221 is, for example, the last frame in which trace ID=1 appears. Frame 223 is a frame after frame 221 and within T frames of frame 221. Frame 223 includes a bounding box 225 for a bus with trace ID=2. Frame 223 is, for example, the first frame in which trace ID=2 appears.
[0092] There may be one or more frames between frame 221 and frame 223 that do not contain a bounding box of a bus. For example, between frame 221 and frame 223 there is frame 222 that does not contain a bounding box of a bus.
[0093] In this case, the information processing device 100 calculates the center of gravity of the bounding box 224 and the center of gravity of the bounding box 225. The center of gravity is, for example, the center point of the area indicated by the bounding box. The information processing device 100 determines whether the distance between the two centers of gravity is less than a threshold. If the distance between the centers of gravity is less than the threshold, the information processing device 100 shares the old tracking ID and the new tracking ID. For example, the information processing device 100 replaces tracking ID=2 with tracking ID=1.
[0094] FIG. 10 is a diagram showing a second example of sharing a tracking ID. Frame 231 includes a bounding box 235 of a bus with tracking ID=1. Frame 232 is the frame following frame 231 and includes a bounding box 236 of a bus with tracking ID=1. Frame 233 is the frame after frame 232 and includes a bounding box 237 of a bus with tracking ID=1. Frame 233 is, for example, the last frame in which tracking ID=1 appears. There are N frames in the section from frame 231 to frame 233. N is, for example, the number of frames in 5 seconds.
[0095] Frame 234 is a frame after frame 233 and includes a bounding box 238 of a bus with tracking ID=2. Frame 234 is, for example, the first frame in which tracking ID=2 appears. Frame 234 may be the frame following frame 233. Frame 234 may also be a frame within T frames of frame 233. There may be a frame between frames 233 and 234 that does not include a bounding box of a bus.
[0096] In this case, the information processing device 100 calculates a bounding box 239 by averaging the bounding boxes of tracking ID=1 from N frames from frame 231 to frame 233. In the averaging, the information processing device 100 calculates the average of each of the top left coordinate, bottom left coordinate, top right coordinate, and bottom right coordinate, and regards the rectangle defined by the four average coordinates as the bounding box 239.
[0097] The information processing device 100 determines whether the center of gravity of the bounding box 238 is within the bounding box 239. If the center of gravity is within the bounding box 239, the information processing device 100 makes the old tracking ID and the new tracking ID the same. For example, the information processing device 100 replaces tracking ID=2 with tracking ID=1. If there are multiple new tracking IDs that satisfy the above conditions, the information processing device 100 selects the one whose center of gravity is closest to the center of gravity of the bounding box 239.
[0098] FIG. 11 is a diagram showing a third example of sharing a tracking ID. Frame 241 contains bounding box 245 of bus with trace ID=1. Frame 242 is the frame following frame 241 and contains bounding box 246 of bus with trace ID=1. Frame 243 is the frame after frame 242 and contains bounding box 247 of bus with trace ID=1 and bounding box 248 of bus with trace ID=2. There are N frames in the section from frame 241 to frame 243.
[0099] Frame 243, for example, is the last frame in which tracking ID=1 appears. The frame in which tracking ID=2 first appears is after the frame in which tracking ID=1 first appears. For example, frame 243 is the first frame in which tracking ID=2 appears. Frame 243 shows a bus, but the bounding box that was correctly generated in the previous frame has been split into two. Frame 244 is a frame after frame 243, and includes the bounding box of the bus with tracking ID=2. Frame 244 is, for example, the frame following frame 243.
[0100] In this case, the information processing device 100 calculates a bounding box 249 by averaging the bounding boxes of tracking ID=1 from N frames from frame 241 to frame 243. The information processing device 100 determines whether the center of gravity of the bounding box 248 is inside the bounding box 249. If the center of gravity is inside the bounding box 249, the information processing device 100 makes the old tracking ID and the new tracking ID the same. For example, the information processing device 100 replaces tracking ID=2 with tracking ID=1. If there are multiple new tracking IDs that satisfy the above conditions, the information processing device 100 selects the one whose center of gravity is closest to the center of gravity of the bounding box 249.
[0101] Next, the information processing device 100 determines the stop period of the bus by scanning the position of the bounding box of the bus with the same tracking ID in chronological order. Here, an allowable area is set in advance for at least a part of the left end coordinate, right end coordinate, top end coordinate, bottom end coordinate, and center of gravity coordinate of the bounding box for each bus stop. The information processing device 100 determines the time of the first frame in which the position of the bounding box satisfies the condition as the arrival time of the bus.
[0102] The information processing device 100 also determines the departure time of the bus when the bounding box position does not satisfy the condition for a certain period of time, or when a certain period of time has passed since the tracking ID disappeared. However, if the stop time from the arrival time to the departure time is less than a threshold, the information processing device 100 ignores the stop time because it is highly likely that no passengers have gotten on or off. The threshold for the stop time is, for example, 40 seconds.
[0103] FIG. 12 is a diagram showing an example of an allowable area within a frame. Frame 250 includes a bounding box 251 of the bus. Furthermore, at this bus stop, a center of gravity allowable area 252 that the center of gravity of the bounding box must satisfy, and a left edge allowable area 253 that the left edge of the bounding box must satisfy are set for the image area. The center of gravity of bounding box 251 is within center of gravity allowable area 252. Furthermore, the left edge of bounding box 251 is within left edge allowable area 253. Therefore, frame 250 is included in the stop period.
[0104] Next, a process common to the two logics in counting passengers will be described. The information processing device 100 detects a bus area in which the bus is present on the screen area from frames of the stop period. The information processing device 100 also detects a trajectory indicating the movement route of people.
[0105] FIG. 13 is a diagram showing an example of a bus region calculated from a bounding box of a bus. The information processing device 100 averages the bounding boxes of buses included in frames belonging to the stop period for each tracking ID. When there are two or more tracking IDs related to a bus, the information processing device 100 excludes bounding boxes whose centroids are outside the centroid allowable area from among the average bounding boxes. When two or more bounding boxes remain, the information processing device 100 merges, selects right, or selects left according to settings to combine the bounding boxes into one.
[0106] In the merge, the smallest rectangular area that encloses two or more bounding boxes is considered to be the correct bounding box. In the right selection, the rightmost bounding box is selected from two or more bounding boxes. In the left selection, the leftmost bounding box is selected from two or more bounding boxes. One of the merge, right selection, and left selection is specified in advance according to the structure of the bus stop and the position of the camera. In this way, the bounding box 261 is determined.
[0107] Next, the information processing device 100 calculates the right margin M right , Left Margin M left , Top Margin M top and bottom margin M bottom According to the above, an enlarged region 262 is calculated by enlarging the bounding box 261.
[0108] The right side of the enlarged area 262 is smaller than the right side of the bounding box 261 by the width W of the bounding box 261 plus the right margin M. right The left edge of the expansion area 262 is located to the right of the left edge of the bounding box 261 by the width W multiplied by the left margin M. left The top edge of the enlarged area 262 is located to the left of the top edge of the bounding box 261 by the height H of the bounding box 261 plus the top margin M. top The bottom edge of the enlarged area 262 is above the bottom edge of the bounding box 261 by the height H multiplied by the bottom margin M. bottom It is lower by the amount multiplied by .
[0109] Furthermore, for each bus stop, a bus candidate area 263 in which a stopped bus may be captured is set in the image area. The bus candidate area 263 may be a polygonal shape other than a rectangle. The information processing device 100 calculates the common area between the enlarged area 262 and the bus candidate area 263 as a bus area 264. The bus area 264 is a section in the image area in which a stopped bus is present. The bus area 264 may be a polygonal shape other than a rectangle. Note that an area that is set in advance in the image area may be called a region of interest (ROI).
[0110] FIG. 14 is a diagram showing an example of a trajectory calculated from a bounding box of a person. The information processing device 100 extracts representative coordinates from the bounding box of the person included in the frame belonging to the stop period. In the third embodiment, the representative coordinates are the coordinates of the center of the bottom side. The information processing device 100 calculates a trajectory showing the movement route of the same person by arranging the representative coordinates of the bounding boxes having the same tracking ID in chronological order.
[0111] For example, bounding box 271 is a bounding box of a person with tracking ID = 1. Bounding box 272 is a bounding box of a person with tracking ID = 1, and is included in the frame after bounding box 271. Bounding box 273 is a bounding box of a person with tracking ID = 1, and is included in the frame after bounding box 272. The information processing device 100 calculates a trajectory 274 by combining the coordinates of the centers of the bottom sides of bounding boxes 271 to 273.
[0112] However, due to the limitations of recognition accuracy, the position of the bounding box may vary slightly between frames. In addition, in consideration of the purpose of grasping the general movement route of a person, it is easier to analyze if the trajectory does not reflect the person's small movements. Therefore, the information processing device 100 uses a low-pass filter to smooth the trajectory of the person.
[0113] FIG. 15 is a diagram showing an example of smoothing a trajectory using a low-pass filter. Curve 275 is a plot of the trajectory in the image domain before applying the low-pass filter. Curve 276 is a plot of the trajectory in the image domain after applying the low-pass filter. As the low-pass filter, for example, a Butterworth filter is used. The Butterworth filter is a filter circuit designed to have a frequency characteristic in the pass band that is as flat as possible.
[0114] Next, the information processing device 100 corrects the height of the bounding box of some people and recalculates the trajectory using the bounding box after correction. In an image area, multiple people may overlap, and some people's feet may not be captured. In that case, the height of the bounding box of some people may be shortened, and an inaccurate trajectory may be calculated. Therefore, the information processing device 100 analyzes the height of the bounding box of the person and extends the bottom side of the bounding box whose height is too short downward.
[0115] FIG. 16 is a graph showing an example relationship between the Y coordinate and height of a bounding box of a person. Here, the upper left corner of the image area is the origin, the right direction from the origin is the X axis, and the downward direction from the origin is the Y axis. top and the height L of the bounding box, and the point (Y top , L). The information processing device 100 generates the generated points as top and plotted on a plane whose vertical axis is L. Graph 280 represents such a plane.
[0116] Note that the Y used here top and L are values after applying the low-pass filter. The information processing device 100 arranges the coordinates of the upper center of the bounding box in chronological order and applies a low-pass filter to obtain Y top In addition, the information processing device 100 calculates Y bottom The information processing device calculates Y bottom From Ytop By subtracting this, the normalized height L for each time point is calculated.
[0117] The information processing device 100 calculates Y top The minimum value of Min(Y top The information processing device 100 searches for Min(Y top ) to Y1=Min(Y top In the range of (Y1, L1), the maximum value L1 of L is searched from the graph 280. ΔY is a parameter that is set in advance. The information processing device 100 generates a point P1=(Y1, L1).
[0118] In addition, the information processing device 100 top is within the MaxHeight range, graph 280 to Y top Max(Y' top ) where MaxHeight is a parameter that is set in advance. The information processing device 100 searches for Y2=Max(Y' top )-ΔY to Max(Y' top ), a maximum value L2 of L is searched for from the graph 280. The information processing device 100 generates a point P2=(Y2, L2).
[0119] FIG. 17 is a graph showing an example of a correction function for correcting the height of a person's bounding box. The information processing device 100 calculates a correction function F(Y top )=Coef×f(Y top ) is generated. Coef is a parameter that is set in advance and is a number between 0 and 1. The function f(Y top ) is Y top If is less than Y1, return L1 and Y top If exceeds Y2, return L2 and Y top If Y1 is greater than or equal to Y2, then (L2-L1) / (Y2-Y1)×(Y top -Y1)+L1. Curve 281 returns the function f(Y top ). Curve 282 represents the correction function F(Y top ) is shown.
[0120] The information processing device 100 calculates, for each bounding box, L'=F(Y top ) and Y' bottom =Y top +L'. The information processing device 100 calculates Y bottom Y' bottom The bottom edge of the smaller bounding box is the one with the Y coordinate Y' bottom This lowers the lower limit of the height L to F(Y top ), and points below the curve 282 in the graph 280 are moved above the curve 282. The information processing device 100 corrects the trajectory of the person using the corrected bounding box.
[0121] Curve 281 indicates that people further back in the image area, who are closer to the top, are shorter in height, and people further forward in the image area, who are closer to the bottom, are taller in height. Points below curve 282 represent people who are unnaturally short, taking into account the relationship between the Y coordinate of the image area and the height of people.
[0122] Next, the information processing device 100 clips the coordinates included in the trajectory to the range of the image area. The trajectory may include coordinates outside the image area due to the expansion of the bounding box or the application of a low-pass filter. For example, when the resolution is 1920×1080, the trajectory may include an X coordinate less than 0 or greater than 1920, or a Y coordinate less than 0 or greater than 1080.
[0123] Therefore, the information processing device 100 replaces coordinates outside the image area with coordinates within the image area. For example, the information processing device 100 replaces an X coordinate less than 1 with 1, and replaces an x coordinate greater than 1919 with 1919. In addition, the information processing device 100 replaces a Y coordinate less than 1 with 1, and replaces a Y coordinate greater than 1079 with 1079.
[0124] FIG. 18 is a diagram illustrating an example of a setting table for location analysis. In the common processing described above, setting values shown in the setting table 135 are used. The setting table 135 is created for each bus stop and stored in the information processing device 100.
[0125] The center of gravity allowable area is an ROI that indicates the allowable range of the center of gravity of the bus bounding box, and is specified by the coordinates of the end points. The bus candidate area is an ROI for calculating the bus area, and is specified by the coordinates of the end points. The right margin is a parameter for determining the right side of the enlarged area from the bus bounding box. The left margin is a parameter for determining the left side of the enlarged area from the bus bounding box. The top margin is a parameter for determining the top side of the enlarged area from the bus bounding box. The bottom margin is a parameter for determining the bottom side of the enlarged area from the bus bounding box.
[0126] Bounding box selection indicates how to obtain one bounding box from two or more bounding boxes for a bus, and can be Merge, Right or Left. Filter order, Sampling frequency and Cutoff frequency are parameters that adjust the behavior of the low pass filter. Correction coefficient is a coefficient included in the correction function that corrects the height of the bounding box of the person. Y coordinate width is ΔY used in generating the correction function. Maximum Y coordinate is MaxHeight used in generating the correction function.
[0127] Next, the count line logic will be described. FIG. 19 is a diagram showing an example of passenger counting using the count line logic. The count line logic calculates the number of people getting on and off based on the intersection of a pre-set count line and people's trajectories during the bus stop period. However, bus stop locations are not always strictly fixed. Also, the location of boarding and alighting gates may differ depending on the bus. Also, people's trajectories may cross the count line for reasons other than boarding and alighting. Therefore, the count line logic estimates the bus boarding and alighting gate from the trajectories of multiple people and counts the trajectories that pass through the estimated boarding and alighting gate, thereby improving the accuracy of counting people getting on and off.
[0128] When using the count line logic, a line is first set as a count line for each bus stop. The count line is set at a position where passengers pass, such as the edge of the sidewalk or between the sidewalk and the roadway. To improve counting accuracy, multiple count lines may be set. In that case, the number of passengers boarding and disembarking is calculated for each count line, and the count line with the maximum value is adopted. Once the count line is set, a right margin, left margin, top margin, and bottom margin are then set so that the aforementioned bus area includes the count line. Then, a bus candidate area is set so that the bus area includes the count line.
[0129] The information processing device 100 detects trajectories 302-305 from the image data. Then, the information processing device 100 identifies intersections between the count line 301 and each of the trajectories 302-305. The information processing device 100 searches for an area from the count line 301 where intersections are densely concentrated, and determines that the area where intersections are densely concentrated is the boarding / alighting entrance. Then, the information processing device 100 counts the trajectories of the trajectories 302-305 that intersect with the count line 301 within the area of the boarding / alighting entrance.
[0130] Trajectories 302-304 intersect with count line 301 within the range of the boarding / alighting entrance, and thus represent passengers getting on and off. Thus, trajectories 302-304 are counted as the number of passengers getting on or off. On the other hand, trajectory 305 intersects with count line 301 outside the range of the boarding / alighting entrance, and thus does not represent passengers getting on or off. Thus, trajectory 305 is not counted as the number of passengers getting on or off. The above process will be described in more detail below.
[0131] FIG. 20 is a diagram showing an example of an intersection point between the count line and the locus. When one trajectory crosses the count line multiple times, the information processing device 100 narrows down the intersection points to at most one. This is because getting on or off is an action that occurs only once. First, the information processing device 100 detects all intersection points between the trajectory and the count line, and classifies each intersection point as a candidate boarding point or a candidate disembarking point. When the trajectory passes the count line from bottom to top, the intersection point is a candidate boarding point. When the trajectory passes the count line from top to bottom, the intersection point is a candidate disembarking point.
[0132] Next, when the distance between adjacent boarding point candidates and alighting point candidates in the image area is less than a threshold, the information processing device 100 deletes both the boarding point candidates and alighting point candidates. This is because it is highly likely that a person has only approached the bus temporarily to load luggage into or remove luggage from the trunk. When any intersection has been deleted, the information processing device 100 also deletes other intersections within a certain distance from the center of the deleted intersection. This is because the same person may approach the bus multiple times for the same reason.
[0133] Next, if the end point of the trajectory is outside the bus area, the information processing device 100 deletes all boarding point candidates in the trajectory, because the trajectory does not represent a boarding passenger. Also, if the start point of the trajectory is outside the bus area, the information processing device 100 deletes all alighting point candidates in the trajectory, because the trajectory does not represent alighting passengers.
[0134] When one or more boarding point candidates remain, the information processing device 100 selects the last boarding point candidate as the boarding point. This is because when the trajectory indicates a boarding person, it is considered that the person boarded the bus when the count line was last crossed. When one or more disembarking point candidates remain, the information processing device 100 selects the first disembarking point candidate as the disembarking point. This is because when the trajectory indicates a disembarking person, it is considered that the person disembarked from the bus when the count line was crossed for the first time.
[0135] Next, the information processing device 100 deletes the boarding and alighting points that are outside the bus area. As a result, such boarding points do not represent boarding on the bus, and such alighting points do not represent alighting from the bus. Finally, due to failure in tracking a person, the movement path of the same person may be divided into two or more trajectories, and both boarding and alighting points may still remain in the trajectory. In this case, the information processing device 100 appropriately processes the boarding and alighting points.
[0136] If a boarding point is followed by an alighting point in the time series, such a trajectory is abnormal, and therefore the information processing device 100 deletes both the boarding point and the alighting point. If a boarding point is followed by an alighting point in the time series, the boarding / alighting entrance is often located to the left, and therefore the information processing device 100 deletes the intersection on the right side of the boarding point and the alighting point.
[0137] For example, the information processing device 100 detects a bus area 311 from the image data. The information processing device 100 also detects intersections 314-318 between the count line 312 and the trajectory 313. The intersections 314, 316, and 318 are candidate boarding points that cross the count line 312 from bottom to top. The intersections 315 and 317 are candidate disembarking points that cross the count line 312 from top to bottom.
[0138] Intersection 316, which is a candidate boarding point, and intersection 317, which is a candidate disembarking point, are adjacent intersections whose distance is less than the threshold. Therefore, the information processing device 100 deletes intersections 316 and 317. Furthermore, since the starting point of trajectory 313 is outside the bus area 311, the information processing device 100 deletes intersection 315, which is a candidate disembarking point. Then, from among intersections 314 and 318, which are candidate boarding points, the information processing device 100 selects intersection 318, which is the last candidate boarding point.
[0139] FIG. 21 is a diagram showing an example of boarding and disembarking entrances determined from clusters. When multiple boarding points are identified from multiple trajectories, the information processing device 100 classifies the boarding points into multiple clusters using a clustering algorithm. When multiple disembarking points are identified from multiple trajectories, the information processing device 100 classifies the disembarking points into multiple clusters using a clustering algorithm. The clustering algorithm is, for example, the k-means++ method.
[0140] The k-means++ method is a clustering algorithm that classifies a set of points into k clusters based on their coordinates. The number of clusters, k, is specified initially. The k-means++ method is an iterative algorithm that calculates the center point of each of the k clusters and repeatedly reclassifies each point into the cluster whose center point is closest. The k-means++ method selects the centers of the initial k clusters to be as far away from each other as possible.
[0141] For each of the set of boarding points and the set of disembarking points, the information processing device 100 first performs clustering with k=n (n is an integer equal to or greater than 2). If the distance between the center points of the two clusters is less than a threshold, the information processing device 100 determines that there are too many clusters, reduces the number of clusters k, and performs clustering again. If the value obtained by multiplying the number of elements in a cluster by a coefficient is less than the number of elements in the largest cluster, the information processing device 100 deletes the small cluster.
[0142] When there are multiple clusters of boarding points, the information processing device 100 leaves the leftmost cluster among them and deletes the other clusters. Also, when there are multiple clusters of disembarking points, the information processing device 100 leaves the leftmost cluster among them and deletes the other clusters.
[0143] For a cluster of boarding points, the information processing device 100 extracts the X coordinate of the boarding point at the left end and the X coordinate of the boarding point at the right end among the boarding points included in the cluster. The information processing device 100 determines the range of the count line between the two extracted X coordinates as the boarding entrance. However, the width of the door equipped on the bus is physically determined. Therefore, if the determined width of the boarding entrance exceeds an upper limit value, the information processing device 100 reduces the range of the boarding entrance so that the width becomes the upper limit value. Also, if the determined width of the boarding entrance is below a lower limit value, the information processing device 100 expands the range of the boarding entrance so that the width becomes the lower limit value.
[0144] Similarly, for a cluster of alighting points, the information processing device 100 extracts the X coordinate of the leftmost alighting point and the X coordinate of the rightmost alighting point among the alighting points included in the cluster. The information processing device 100 determines the range of the count line between the two extracted X coordinates as the alighting entrance. However, if the width of the determined alighting entrance exceeds an upper limit, the information processing device 100 reduces the range of the alighting entrance so that the width becomes the upper limit. Also, if the width of the determined alighting entrance is below a lower limit, the information processing device 100 expands the range of the boarding entrance so that the width becomes the lower limit.
[0145] For example, the information processing device 100 classifies boarding points on the count line 321 into clusters 322 and 323. The information processing device 100 also classifies disembarking points on the count line 321 into clusters 324 and 325. Since cluster 324 is a smaller cluster than cluster 325, the information processing device 100 deletes cluster 324. The information processing device 100 also deletes cluster 323, which is to the right of cluster 322. The information processing device 100 determines the boarding entrance from cluster 322 and the disembarking entrance from cluster 325.
[0146] The information processing device 100 detects a trajectory that intersects with the count line 321 within the range of the boarding entrance, and classifies the intersections into boarding points and disembarking points. The information processing device 100 also detects a trajectory that intersects with the count line 321 within the range of the disembarking entrance, and classifies the intersections into boarding points and disembarking points. The method described in FIG. 20 may be used to identify the boarding points and disembarking points here. Also, information on the boarding points and disembarking points used to determine the boarding entrance and disembarking entrance may be used. However, among the procedures described in FIG. 20, the process of deleting other intersections within a certain distance when adjacent boarding point candidates and disembarking point candidates are deleted is not executed here.
[0147] The information processing device 100 calculates the number of passengers by subtracting the number of alighting points at the boarding entrance from the number of boarding points at the boarding entrance. Also, the information processing device 100 calculates the number of alighting people by subtracting the number of boarding points at the alighting entrance from the number of alighting points at the alighting entrance. This is because the driver or passengers may get off temporarily.
[0148] The information processing device 100 modifies the calculated number of passengers getting on and getting off according to the detection mode set for each bus stop. In the boarding mode, the information processing device 100 rewrites the number of passengers getting off to 0. In the disembarking mode, the information processing device 100 rewrites the number of passengers getting on to 0. In the automatic mode, if the number of passengers getting on is equal to or greater than the number of passengers getting off, the information processing device 100 rewrites the number of passengers getting on to 0. If the number of passengers getting on is less than the number of passengers getting off, the information processing device 100 rewrites the number of passengers getting on to 0.
[0149] In the case of the boarding / alighting mode, the information processing device 100 basically maintains the calculated number of passengers getting on and off. However, in the count line logic, the boarding / alighting mode is enabled only when the passing times of the boarding / alighting gates of multiple passengers satisfy certain conditions. If the passing times of the boarding / alighting gates do not satisfy certain conditions, the automatic mode is applied instead of the boarding / alighting mode.
[0150] FIG. 22 is a graph showing an example of determination of the getting-off period and the getting-on period in the getting-on / off mode. The information processing device 100 identifies, for each of the multiple trajectories, a frame in which the trajectory passes through an entrance and generates a point of (frame number, +1). The information processing device 100 also identifies, for each of the multiple trajectories, a frame in which the trajectory passes through an exit and generates a point of (frame number, -1). The information processing device 100 plots these points on a plane whose horizontal axis represents the frame number and whose vertical axis represents integers.
[0151] The information processing device 100 determines the getting off period 331 and the riding period 332 from the graph generated in this manner. The riding period 332 is the period following the getting off period 331. At this time, the information processing device 100 fits a step function to the set of points, which returns −1 if the frame number is less than C and returns +1 if the frame number is C or greater.
[0152] Varying the parameter C changes the fitting accuracy of the step function. The fitting accuracy of the step function is the lower of the drop-off period accuracy, which is the proportion of points with a value of -1 among points with frame numbers less than C, and the ride period accuracy, which is the proportion of points with a value of +1 among points with frame numbers equal to or greater than C. The information processing device 100 identifies the value of the parameter C that maximizes the accuracy, and identifies the range of the parameter C where the accuracy remains almost unchanged near the maximum value. In this way, the information processing device 100 determines the last frame of the drop-off period 331 where drop-off points are dense, and the first frame of the ride period 332 where boarding points are dense.
[0153] The information processing device 100 determines whether the boarding / alighting interval, which is the time between the alighting period 331 and the boarding period 332, exceeds a threshold. The information processing device 100 also determines whether the fitting accuracy of the step function exceeds a threshold. If the boarding / alighting interval exceeds the threshold and the fitting accuracy exceeds the threshold, the information processing device 100 enables the boarding / alighting mode. If the boarding / alighting interval does not exceed the threshold or the fitting accuracy does not exceed the threshold, the information processing device 100 disables the boarding / alighting mode and enables the automatic mode.
[0154] Next, for bus stops where the additional count is set to ON, the information processing device 100 executes an additional count to increase either the number of passengers boarding or the number of passengers alighting. At some bus stops, many people walk around the entrance and exit, so the movement of people around the entrance and exit may not be accurately tracked, and a fragmented trajectory that does not intersect with the count line may be generated. Therefore, the information processing device 100 analyzes such a fragmented trajectory to estimate passengers who have been missed from the count.
[0155] FIG. 23 is a diagram showing an example of count addition using a door region. The information processing device 100 sets a rectangular door area 326 above the boarding / alighting entrance on the count line 321 determined as described above. The bottom side of the door area 326 is a line segment on the count line 321 indicating the boarding or alighting entrance. The top side of the door area 326 is a line segment parallel to the bottom side and above the bottom side. The right and left sides of the door area 326 are line segments perpendicular to the count line 321. The height of the door area 326 is set in advance.
[0156] The information processing device 100 detects a trajectory 327 that satisfies the following conditions: The start point or the end point of the trajectory 327 is within the door area 326. The trajectory 327 does not include any point below the count line 321. The length of the trajectory 327 does not exceed a threshold. The left end point of the trajectory 327 with the smallest X coordinate is the start point or the end point of the trajectory 327. The right end point of the trajectory 327 with the largest X coordinate is the start point or the end point of the trajectory 327. The upper end point of the trajectory 327 with the smallest Y coordinate is the start point or the end point of the trajectory 327. The lower end point of the trajectory 327 with the largest Y coordinate is the start point or the end point of the trajectory 327. Thus, the trajectory 327 is a fragmentary trajectory that is sufficiently short and does not cross the count line 321.
[0157] The information processing device 100 determines the boarding / alighting direction of the trajectory 327. At this time, the information processing device 100 calculates the cross product of a vector extending from the start point to the end point of the trajectory 327 and a vector extending from the left side to the right side on the count line 321. If the cross product is positive, the trajectory 327 represents the boarding direction, and if the cross product is negative, the trajectory 327 represents the alighting direction.
[0158] The information processing device 100 calculates the number of additional passengers by subtracting the number of trajectories in the alighting direction from the number of trajectories in the alighting direction. If the number of passengers before the additional count is positive and the additional passengers is positive, the information processing device 100 adds the additional passengers to the number of passengers. If the number of alighting people before the additional count is positive and the additional passengers is negative, the information processing device 100 adds the absolute value of the additional passengers to the alighting number.
[0159] FIG. 24 is a diagram illustrating an example of a setting table for the count line logic. The count line logic described above uses setting values shown in the setting table 136. The setting table 136 is created for each bus stop and stored in the information processing device 100.
[0160] The count line is a line segment set on the image area, and is expressed by the coordinates of the left end and the right end. The minimum distance between points is a distance threshold for determining whether to delete adjacent boarding point candidates and disembarking point candidates. The door area height is the height of the door area set in the additional count. If the door area height is 0, additional counting is not performed. The maximum trajectory length is the upper limit of the length of the trajectory that is subject to additional counting. The trajectory length is expressed, for example, in the number of frames. The X coordinate constraint is a flag indicating whether the right end point and the left end point are limited to the start point or the end point in the additional count. The Y coordinate constraint is a flag indicating whether the top end point and the bottom end point are limited to the start point or the end point in the additional count.
[0161] The maximum number of clusters is the initial value of the number of clusters k when classifying boarding and disembarking points into clusters. The minimum distance between clusters is the threshold value of the distance between clusters for determining whether to reduce the number of clusters k. The cluster size coefficient is a coefficient multiplied by the number of elements in a cluster when determining whether the size of the cluster is too small. The maximum door width is the upper limit of the width of the range on the count line that is determined to be a boarding or disembarking entrance. The minimum door width is the lower limit of the width of the range on the count line that is determined to be a boarding or disembarking entrance.
[0162] The alighting minimum score is the lower limit of the number of points included in the alighting period when determining the validity of the boarding / alighting mode. If the number of points included in the alighting period is less than the alighting minimum score, it is determined that the fitting of the step function has failed, and the boarding / alighting mode is invalid. The boarding minimum score is the lower limit of the number of points included in the boarding period. If the number of points included in the boarding period is less than the boarding minimum score, it is determined that the fitting of the step function has failed, and the boarding / alighting mode is invalid. The accuracy threshold is the lower limit of the acceptable fitting accuracy. The boarding / alighting interval threshold is the lower limit of the boarding / alighting interval between the alighting period and the boarding period.
[0163] Next, the peripheral area logic will be described. FIG. 25 is a diagram showing an example of passenger counting based on the surrounding area logic. The surrounding area logic calculates the number of passengers getting on and off based on the movement of people between a preset surrounding area 342 and the bus area 341 calculated as described above. However, even in the case of a bus stop that is used for both boarding and alighting, the calculated number of passengers getting on and off is the difference between the number of passengers getting on and the number of passengers getting off, and either the number of passengers getting on or the number of passengers getting off is output as 0.
[0164] When using the surrounding area logic, for each bus stop, an area in the image area where there may be passengers about to board the bus or passengers just getting off the bus is set in advance as a bus candidate area. In addition, the right margin, left margin, top margin, and bottom margin are set in advance so that such passengers are included in the enlarged area.
[0165] In addition, a surrounding area such as the surrounding area 342 is set in advance for each bus stop. The surrounding area 342 corresponds to the entrance / exit of the bus stop, and is usually separated from the bus area 341. A passenger enters the surrounding area 342 from outside the bus stop, and moves to the bus boarding entrance through the surrounding area 342. Thus, the movement path of the passenger is represented by a trajectory from a point in the surrounding area 342 to a point in the bus area 341. A passenger disembarking moves from the bus alighting entrance to the surrounding area 342, and exits to the outside of the bus stop through the surrounding area 342. Thus, the movement path of the disembarking passenger is represented by a trajectory from a point in the bus area 341 to a point in the surrounding area 342.
[0166] The information processing device 100 determines whether the trajectory represents a passenger getting on or a passenger getting off, based on the movement direction of the trajectory. A trajectory that passes through the bus area 341 after passing through the surrounding area 342 represents a passenger, in principle. However, a trajectory whose starting point is outside the surrounding area 342 or whose ending point is outside the bus area 341 simply passes through a bus stop and is excluded. A trajectory that passes through the surrounding area 342 after passing through the bus area 341 represents a passenger, in principle. However, a trajectory whose starting point is outside the bus area 341 or whose ending point is outside the surrounding area 342 simply passes through a bus stop and is excluded.
[0167] The information processing device 100 increments the count by 1 for each detected trajectory of a passenger getting on and decrements the count by 1 for each detected trajectory of a passenger getting off. If the final count is positive, the information processing device 100 determines the count as the number of passengers getting on and the number of passengers getting off to be 0. If the final count is negative, the information processing device 100 determines the absolute value of the count as the number of passengers getting off and the number of passengers getting on to be 0.
[0168] Then, the information processing device 100 corrects and outputs the number of passengers getting on and off according to the set detection mode. However, unlike the case of the count line logic, the information processing device 100 does not determine the validity of the boarding and alighting mode. Since the surrounding area logic also uses information on the movement paths of people in places away from the bus boarding and alighting entrance, it is possible to reduce missed counts of passengers getting on and off and improve counting accuracy even when the area around the boarding and alighting entrance is very crowded.
[0169] For example, the information processing device 100 detects trajectories 343-345 of different people. The trajectories 343-345 are trajectories having one end point within the bus area 341 and the other end point within the surrounding area 342. Therefore, the information processing device 100 calculates the number of people getting on and the number of people getting off according to the movement direction of each of the trajectories 343-345.
[0170] FIG. 26 is a diagram showing an example of an increase or decrease in the count for each trajectory. Trajectory 346 is a trajectory whose starting point is within surrounding area 342 and whose ending point is within bus area 341. Therefore, information processing device 100 increments the count from trajectory 346 by 1. Trajectory 347 is a trajectory whose starting point is within bus area 341 and whose ending point is within surrounding area 342. Therefore, information processing device 100 decrements the count from trajectory 347 by 1.
[0171] Trajectory 348 is a trajectory that passes through peripheral area 342 and moves into bus area 341, but the starting point is outside peripheral area 342. Therefore, information processing device 100 does not increase or decrease the count for trajectory 348. Trajectory 349 is a trajectory that passes through bus area 341 and moves into peripheral area 342, but the starting point is outside bus area 341. Therefore, information processing device 100 does not increase or decrease the count for trajectory 349. Note that trajectories 348 and 349 may be the trajectories of staff assisting with bus operation or bus stop operations.
[0172] Next, the functions and processing procedures of the information processing device 100 will be described. FIG. 27 is a block diagram illustrating an example of functions of the information processing device. The information processing device 100 has an image storage unit 121, a model storage unit 122, a setting storage unit 123, and a passenger number storage unit 124. These storage units are implemented using, for example, the RAM 102 or the HDD 103. The information processing device 100 also has an image receiving unit 125, an object recognition unit 126, an object tracking unit 127, a stop period detection unit 128, and a passenger counting unit 129. These processing units are implemented using, for example, the CPU 101, the GPU 104, the communication interface 107, and a program.
[0173] The image storage unit 121 stores image data of each bus stop. The image data is video data having a certain resolution and a certain frame rate. The model storage unit 122 stores an image recognition model used for object recognition and object tracking. The image recognition model is a trained machine learning model. The image recognition model may be a neural network.
[0174] The setting storage unit 123 stores parameter values that control the behavior of bus stop period detection and passenger boarding / alighting count. The parameter values are set for each bus stop. The above-mentioned setting tables 135 and 136 are stored in the setting storage unit 123. The boarding / alighting number of passengers storage unit 124 stores count data generated by the information processing device 100. The count data associates bus stops, arrival times, departure times, the number of passengers boarding, and the number of passengers alighting.
[0175] The image receiving unit 125 continuously receives image data from the cameras at each of the bus stops. The image receiving unit 125 stores the received image data in the image storage unit 121. The object recognition unit 126 reads image data from the image storage unit 121, reads an image recognition model from the model storage unit 122, and inputs each frame included in the image data to the image recognition model. The object recognition unit 126 adds the coordinates and class labels of each of the one or more bounding boxes output by the image recognition model to the frame.
[0176] The object tracking unit 127 obtains frames including bounding boxes from the object recognition unit 126, and reads out an image recognition model from the model storage unit 122. The object tracking unit 127 detects movement of bounding boxes between adjacent frames according to the image recognition model, and assigns the same tracking ID to bounding boxes that are likely to represent the same object.
[0177] The stop period detection unit 128 obtains a frame including a bounding box to which a tracking ID has been assigned from the object tracking unit 127, and reads parameter values from the setting storage unit 123. The stop period detection unit 128 deletes abnormal bounding boxes and corrects the tracking ID, and detects the stop period of the bus by scanning the bounding boxes of buses having the same tracking ID.
[0178] Passenger counting unit 129 obtains frames belonging to the stop period from stop period detection unit 128, and reads parameter values from setting storage unit 123. Passenger counting unit 129 detects the bus area in which the bus was present during the stop period, and detects a trajectory indicating the movement route of people during the stop period. Passenger counting unit 129 counts the number of passengers who get on and off based on the bus area and the trajectory.
[0179] At this time, passenger counting unit 129 counts passengers using both the count line logic and the surrounding area logic. Passenger counting unit 129 combines the number of passengers getting on and the number of passengers getting off calculated using the two logics to determine the final number of passengers getting on and the number of passengers getting off. Passenger counting unit 129 generates count data indicating the calculated number of passengers getting on and the number of passengers getting off, and stores the count data in passenger count storage unit 124. Passenger counting unit 129 may display the count data on display device 111, or may transmit the count data to another information processing device.
[0180] FIG. 28 is a flowchart showing an example of a procedure for detecting a stopped period. (S10) The stopped period detection unit 128 detects a frame that includes two or more bounding boxes related to the vehicle, and calculates the IoU between the frame and the next frame for bounding boxes that have the same tracking ID.
[0181] (S11) The stop period detection unit 128 determines whether the IoU is less than a threshold and any tracking ID included in the previous frame is missing in the subsequent frame. If the condition is met, the process proceeds to step S12, and if the condition is not met, the process proceeds to step S15.
[0182] (S12) The stop period detection unit 128 determines whether the subsequent frame includes a new tracking ID related to the vehicle that is not included in the previous frame. If the new tracking ID is included, the process proceeds to step S13. If the new tracking ID is not included, the process proceeds to step S14.
[0183] (S13) The stopping period detection unit 128 compares the positions of the bounding boxes between the previous frame and the subsequent frame, and associates the bounding boxes whose positions are close to each other. The stopping period detection unit 128 standardizes the tracking ID between the associated bounding boxes. For example, the stopping period detection unit 128 replaces the new tracking ID with the old tracking ID of the previous frame. Then, the process proceeds to step S15.
[0184] (S14) The stopped period detection unit 128 deletes the bounding box related to the vehicle from the subsequent frame and copies the bounding box of the previous frame to the subsequent frame, thereby replacing the bounding box of the subsequent frame with that of the previous frame.
[0185] (S15) The stop duration detection unit 128 assigns a score according to the priority to the vehicle-related class. The vehicle-related class includes, for example, a bus, a truck, and a train. (S16) The stopped period detection unit 128 detects a frame that includes two or more bounding boxes related to the vehicle, and calculates the IoU between the bounding boxes of the same frame.
[0186] (S17) The stopped period detection unit 128 determines whether the IoU calculated in step S16 exceeds a threshold. If the IoU exceeds the threshold, the process proceeds to step S18, and if the IoU does not exceed the threshold, the process proceeds to step S19.
[0187] (S18) The stopped period detection unit 128 keeps the bounding box with the maximum score from among the two or more bounding boxes in step S16, and deletes the bounding boxes with the other scores. (S19) The stop period detection unit 128 regards the remaining bounding boxes as a vehicle-related class of a bus. Therefore, a bounding box recognized as a truck or a bounding box recognized as a train may be regarded as a bounding box of a bus.
[0188] FIG. 29 is a flowchart (continued 1) showing an example of a procedure for detecting a stopped period. (S20) The stop period detection unit 128 detects that, for the bounding box of the bus, the old tracking ID has disappeared and a new tracking ID has appeared within T frames.
[0189] (S21) The stop period detection unit 128 calculates the center of gravity of the last bounding box having the old tracking ID and the center of gravity of the first bounding box having the new tracking ID. (S22) The stopped period detection unit 128 determines whether the distance between the two centers of gravity calculated in step S21 is less than a threshold value. If the distance between the centers of gravity is less than the threshold value, the process proceeds to step S28, and if the distance between the centers of gravity is not less than the threshold value, the process proceeds to step S23.
[0190] (S23) The stop period detection unit 128 extracts a bounding box having the old tracking ID from the N frames immediately before the old tracking ID disappears, and calculates the time average of the extracted bounding boxes. (S24) The stop period detection unit 128 determines whether the center of gravity of the first bounding box having the new tracking ID is within the average bounding box calculated in step S23. If the condition is met, the process proceeds to step S28, and if the condition is not met, the process proceeds to step S25.
[0191] (S25) The stop period detection unit 128 detects that the new tracking ID is included in the last frame including the old tracking ID, and extracts a bounding box having the new tracking ID. (S26) The stop period detection unit 128 calculates a time average of the bounding box having the old tracking ID for N frames immediately before the old tracking ID is lost.
[0192] (S27) The stop duration detection unit 128 determines whether the center of gravity of the bounding box extracted in step S25 is within the average bounding box. If the condition is met, the process proceeds to step S28, and if the condition is not met, the process proceeds to step S29.
[0193] (S28) The stopping period detection unit 128 makes the old tracking ID and the new tracking ID a common ID. For example, the stopping period detection unit 128 replaces the new tracking ID with the old tracking ID. FIG. 30 is a flowchart (continued 2) showing an example of a procedure for detecting a stopped period.
[0194] (S29) The stop period detection unit 128 selects a bounding box of the bus from each frame. (S30) When an allowable area is set for at least a part of the center of gravity and end points of the bounding box, the stopped period detection unit 128 determines whether the relevant point is within the allowable area.
[0195] (S31) The stop duration detection unit 128 determines, for each tracking ID, the time at which the bounding box first satisfies the allowable area condition of step S30 as the arrival time. (S32) The stop period detection unit 128 determines the departure time to be the time when a certain time has elapsed since the tracking ID disappeared. Alternatively, the stop period detection unit 128 determines the departure time to be the earlier of the time when a certain time has elapsed since the tracking ID disappeared or the time when a certain time has elapsed since the conditions of the allowable region are no longer satisfied. Which method is used may be specified by a setting value.
[0196] (S33) The stop duration detection unit 128 calculates the stop duration from the arrival time to the departure time by subtracting the arrival time in step S31 from the departure time in step S32. (S34) The stop duration detection unit 128 determines whether the stop duration calculated in step S33 exceeds a threshold value. If the stop duration exceeds the threshold value, the process proceeds to step S35. If the stop duration does not exceed the threshold value, the process ends.
[0197] (S35) The stop period detection unit 128 calculates the mode of the end points of the bounding box during the stop period, and determines whether the mode is within the allowable region of step S30. If the mode is within the allowable region, the process proceeds to step S36; otherwise, the process ends.
[0198] (S36) The stop period detection unit 128 extracts frames that belong to the stop period. FIG. 31 is a flowchart showing an example of a procedure for position analysis. (S40) The passenger counting unit 129 extracts a bounding box of the bus from the frames belonging to the stop period, and averages bounding boxes with the same tracking ID.
[0199] (S41) The passenger counting unit 129 calculates the center of gravity of each averaged bounding box, and deletes any bounding boxes whose center of gravity is outside the allowable area. (S42) The passenger counting unit 129 determines whether multiple bounding boxes remain. If multiple bounding boxes remain, the process proceeds to step S43. If only one bounding box remains, the process proceeds to step S44.
[0200] (S43) The passenger counting unit 129 performs integration, right selection, or left selection on the remaining multiple bounding boxes according to the settings, to obtain one bounding box. (S44) The passenger counting unit 129 calculates an enlarged area by enlarging the bounding box of the bus obtained in step S43, based on the set margin.
[0201] (S45) The passenger getting on and off counting unit 129 calculates a bus area where the enlarged area calculated in step S44 and the set bus candidate area overlap. (S46) The passenger getting on / off counting unit 129 extracts a bounding box of a person from the frames belonging to the stop period, and selects the midpoint of the bottom side of the extracted bounding box as a reference point.
[0202] (S47) The passenger counting unit 129 calculates the trajectory of each person by arranging the reference points of the bounding boxes of people who have the same tracking ID in chronological order. (S48) The passenger counting unit 129 inputs the trajectory calculated in step S47 to a low-pass filter to obtain a smoothed trajectory.
[0203] FIG. 32 is a flowchart (continuation) illustrating an example of a procedure for location analysis. (S49) The passenger counting unit 129 calculates the Y coordinate Y of the upper side of the bounding box of the person. top and height L, and extract the point (Y top , L) and plot them on a plane.
[0204] (S50) The passenger count unit 129 calculates the horizontal axis range [Min(Y top ), Y1] to find the maximum value L1. (S51) The passenger count unit 129 calculates the horizontal axis range [Y2, Max(Y' top )] to find the maximum value L2.
[0205] (S52) The passenger count unit 129 calculates a linear function having upper and lower limits from the points (Y1, L1) and (Y2, L2) as a correction function F(Y top ) (S53) The passenger count unit 129 calculates the correction function F(Y top ) for each person's bounding box, bottom Calculate.
[0206] (S54) The passenger count unit 129 calculates the Y coordinate Y of the bottom side of the bounding box. bottom is Y' in step S53. bottom Determine if it is less than Y bottom <Y’bottom If so, the process proceeds to step S55; otherwise, the process proceeds to step S56.
[0207] (S55) The passenger count unit 129 calculates the Y coordinate of the bottom side of the bounding box corresponding to step S54 as Y' bottom The bounding box is corrected by extending it to the range from 0 to 100. The passenger counting unit 129 corrects the trajectory of the person using the corrected bounding box.
[0208] (S56) The passenger counting unit 129 clips the coordinates of the points included in the corrected trajectory so that they fall within the range of the resolution of the image area. FIG. 33 is a flowchart showing an example of a procedure of the count line logic.
[0209] (S60) The boarding / alighting counting unit 129 detects an intersection point with the set count line for each trajectory. The boarding / alighting counting unit 129 classifies each intersection point as a candidate boarding point or a candidate alighting point based on the direction in which the trajectory passes through the count line.
[0210] (S61) The passenger getting on and off counting unit 129 deletes, for each trajectory, a pair of adjacent boarding point candidates and alighting point candidates whose distance is less than a threshold. (S62) The passenger counting unit 129 deletes other intersections that are within a certain distance from the center of the set of intersections deleted in step S61.
[0211] (S63) The passenger counting unit 129 determines whether the end point of the trajectory is outside the bus area. If the end point is outside the bus area, the process proceeds to step S64, and if the end point is inside the bus area, the process proceeds to step S65.
[0212] (S64) The passenger getting on and off counting unit 129 deletes all the boarding point candidates of the corresponding trajectory. (S65) The passenger counting unit 129 determines whether the starting point of the trajectory is outside the bus area. If the starting point is outside the bus area, the process proceeds to step S66. If the starting point is inside the bus area, the process proceeds to step S67.
[0213] (S66) The passenger getting on and off counting unit 129 deletes all the alighting point candidates of the corresponding trajectory. (S67) The passenger counting unit 129 determines whether one or more boarding point candidates remain within the trajectory. If there are boarding point candidates remaining, the process proceeds to step S68. If there are no boarding point candidates remaining, the process proceeds to step S69.
[0214] (S68) The passenger counting unit 129 selects the last boarding point candidate as the boarding point. (S69) The passenger getting on and off counting unit 129 determines whether one or more alighting point candidates remain within the trajectory. If there are alighting point candidates remaining, the process proceeds to step S70. If there are no alighting point candidates remaining, the process proceeds to step S71.
[0215] (S70) The passenger getting on / off counting unit 129 selects the first alighting point candidate as the alighting point. FIG. 34 is a flowchart (continued 1) showing an example of a procedure of the count line logic. (S71) The passenger boarding and alighting counting unit 129 deletes boarding and alighting points outside the bus area.
[0216] (S72) The boarding / alighting count unit 129 determines whether both a boarding point and an alighting point remain for the same trajectory and whether there is an alighting point after the boarding point. If the condition is met, the process proceeds to step S73, and if the condition is not met, the process proceeds to step S74.
[0217] (S73) The passenger boarding and alighting count unit 129 deletes both the boarding and alighting points of the corresponding trajectory. Then, the process proceeds to step S76. (S74) The boarding / alighting count unit 129 determines whether both a boarding point and an alighting point remain for the same trajectory and whether there is a boarding point after the alighting point. If the condition is met, the process proceeds to step S75, and if the condition is not met, the process proceeds to step S76.
[0218] (S75) The passenger getting on and off counting unit 129 deletes the right-side point of the boarding and alighting points of the corresponding trajectory, that is, the point with the larger X coordinate. (S76) The boarding and alighting passenger counting unit 129 classifies the multiple boarding points identified from the multiple trajectories into clusters, and classifies the multiple alighting points identified from the multiple trajectories into clusters.
[0219] (S77) The boarding / alighting passenger counting unit 129 determines whether or not there is a pair of boarding point clusters whose center-to-center distance is less than a threshold value among the multiple boarding point clusters. The boarding / alighting passenger counting unit 129 also determines whether or not there is a pair of alighting point clusters whose center-to-center distance is less than a threshold value among the multiple alighting point clusters. If there is a corresponding pair of boarding point clusters or alighting point clusters, the process proceeds to step S78. Otherwise, the process proceeds to step S79.
[0220] (S78) The boarding / alighting passenger counting unit 129 reduces the number of clusters by one. Then, the process returns to step S76, and clustering is performed with the reduced number of clusters. Note that reclustering may be performed only on either the boarding point or the alighting point whose center-to-center distance is less than the threshold value, or may be performed on both the boarding point and the alighting point.
[0221] (S79) The boarding / alighting counting unit 129 deletes boarding point clusters that are smaller in size than the boarding point cluster of the maximum size from among the multiple boarding point clusters. Also, the boarding / alighting counting unit 129 deletes alighting point clusters that are smaller in size than the alighting point cluster of the maximum size from among the multiple alighting point clusters.
[0222] (S80) When multiple boarding point clusters remain, the boarding / alighting counting unit 129 selects the leftmost boarding point cluster. Also, when multiple alighting point clusters remain, the boarding / alighting counting unit 129 selects the leftmost alighting point cluster.
[0223] (S81) The boarding / alighting counting unit 129 determines an entrance / exit from the distribution of X-coordinates of boarding points included in the boarding point cluster. The boarding / alighting counting unit 129 also determines an exit / exit from the distribution of X-coordinates of alighting points included in the alighting point cluster.
[0224] FIG. 35 is a flowchart (continued 2) showing an example of a procedure of the count line logic. (S82) The boarding and alighting passenger counting unit 129 detects boarding and alighting points that intersect with the trajectory within the boarding entrance range. The boarding and alighting points are detected using the same method as in steps S60 to S75. However, the process equivalent to step S62 is not performed.
[0225] (S83) The passenger getting on and off counting unit 129 calculates the number of passengers by subtracting the number of disembarking points from the number of boarding points detected in step S82. (S84) The boarding / deboarding passenger counting unit 129 detects alighting points and boarding points that intersect with the trajectory within the range of the alighting entrance. The alighting points and boarding points are detected using the same method as in steps S60 to S75. However, the process equivalent to step S62 is not performed.
[0226] (S85) The getting on / off passenger counting unit 129 calculates the number of people who have got off by subtracting the number of getting on points from the number of getting off points detected in step S84. (S86) The passenger count unit 129 determines whether the detection mode is the boarding / alighting (Both) mode. If the detection mode is the boarding / alighting mode, the process proceeds to step S87, and if the detection mode is not the boarding / alighting mode, the process proceeds to step S91.
[0227] (S87) The boarding / alighting counting unit 129 identifies a boarding time corresponding to a boarding point within the range of the boarding / alighting gates, and generates a point (boarding time, +1). The boarding / alighting counting unit 129 also identifies a disembarking time corresponding to a disembarking point within the range of the disembarking gates, and generates a point (disembarking time, -1). The boarding / alighting counting unit 129 plots the generated points on a plane.
[0228] (S88) The passenger boarding / alighting counting unit 129 determines an alighting period in which alighting-related points are densely packed and aboarding period in which boarding-related points are densely packed by fitting a step function to the set of points generated in step S87.
[0229] (S89) The passenger count unit 129 determines whether the fitting accuracy exceeds a threshold and the boarding / alighting interval between the alighting period and the boarding period exceeds a threshold. If the conditions are met, the process proceeds to step S91. If the conditions are not met, the process proceeds to step S90.
[0230] (S90) The passenger counting unit 129 regards the detection mode as the automatic mode. (S91) The passenger getting on / off count unit 129 corrects either the number of passengers getting on calculated in step S83 or the number of passengers getting off calculated in step S85 to 0, depending on the detection mode. However, if the detection mode is the boarding / alighting mode, no correction is required.
[0231] FIG. 36 is a flowchart (continued 3) showing an example of a procedure of the count line logic. (S92) The boarding / alighting counting unit 129 generates a door area on the bus side based on the boarding entrance. The boarding / alighting counting unit 129 also generates a door area on the bus side based on the disembarking entrance. Note that here, it is assumed that additional counting is enabled by settings.
[0232] (S93) The passenger getting on / off counting unit 129 searches for a trajectory whose start point or end point is within the door area from among the multiple detected trajectories. (S94) The passenger counting unit 129 excludes any trajectory that includes a point below the count line.
[0233] (S95) The passenger counting unit 129 excludes any trajectory whose length exceeds a threshold value. (S96) Passenger counting unit 129 excludes any trajectory whose left end point with the smallest X coordinate is neither the start point nor the end point. Also, passenger counting unit 129 excludes any trajectory whose right end point with the largest X coordinate is neither the start point nor the end point.
[0234] (S97) The passenger counting unit 129 excludes any trajectory whose upper end point with the smallest Y coordinate is neither the start point nor the end point. The passenger counting unit 129 also excludes any trajectory whose lower end point with the largest Y coordinate is neither the start point nor the end point.
[0235] (S98) The passenger counting unit 129 determines the boarding and alighting direction of each remaining trajectory. For example, the passenger counting unit 129 calculates the cross product of a vector extending from the start point to the end point of the trajectory and the vector of the count line, and determines the boarding and alighting direction based on the positive or negative of the cross product.
[0236] (S99) The passenger boarding / alighting counting unit 129 calculates the number of additional passengers by subtracting the number of trajectories in the alighting direction from the number of trajectories in the boarding direction. The number of additional passengers may be negative. (S100) The passenger counting unit 129 determines whether the number of passengers corrected in step S91 is positive and whether the additional number of passengers is positive. If the conditions are met, the process proceeds to step S101. If the conditions are not met, the process proceeds to step S102.
[0237] (S101) The passenger getting on / off count unit 129 adds the number of additional passengers to the number of passengers. Then, the process ends. (S102) The boarding / alighting passenger counting unit 129 determines whether the number of alighting passengers after the correction in step S91 is positive and the additional number of passengers is negative. If the condition is met, the process proceeds to step S103, and if the condition is not met, the process ends.
[0238] (S103) The getting on / off passenger counting unit 129 adds the absolute value of the additional getting on passengers (the number obtained by inverting the positive and negative signs of the additional getting on passengers) to the number of getting off passengers. FIG. 37 is a flowchart showing an example of a procedure of the surrounding area logic.
[0239] (S110) The passenger counting unit 129 searches for a trajectory that passes through both the bus area and the set surrounding area. The passenger counting unit 129 determines the order in which each of the searched trajectories passes through the bus area and the surrounding area.
[0240] (S111) The passenger counting unit 129 determines whether there is a path moving from the surrounding area to the bus area. If there is a corresponding path, the process proceeds to step S112, and if there is no corresponding path, the process proceeds to step S114.
[0241] (S112) The passenger counting unit 129 excludes, from the trajectories corresponding to step S111, trajectories whose starting point is outside the surrounding area or whose ending point is outside the bus area. (S113) The passenger getting on / off counting unit 129 increments the count by the number of remaining trajectories.
[0242] (S114) The passenger counting unit 129 determines whether there is a path moving from the bus area to the surrounding area. If there is a corresponding path, the process proceeds to step S115. If there is no corresponding path, the process proceeds to step S117.
[0243] (S115) The passenger counting unit 129 excludes, from the trajectories corresponding to step S114, trajectories whose starting point is outside the bus area or whose ending point is outside the surrounding area. (S116) The passenger getting on / off counting unit 129 decrements the count by the number of remaining trajectories.
[0244] (S117) If the count is positive, passenger getting on / off counting unit 129 sets the count to the number of passengers getting on and the number of passengers getting off to 0. If the count is negative, passenger getting on / off counting unit 129 sets the absolute value of the count to the number of passengers getting off and the number of passengers getting on to 0.
[0245] (S118) Depending on the detection mode, the getting on / off passenger count unit 129 corrects either the number of passengers getting on or the number of passengers getting off calculated in step S117 to 0. However, if the detection mode is the automatic mode or the getting on / off mode, no correction is required.
[0246] As described above, the information processing device 100 according to the third embodiment analyzes image data from cameras installed at bus stops to estimate the number of passengers boarding and alighting for each bus. This generates information useful for managing bus stops in real time.
[0247] The information processing device 100 also calculates the number of people getting on and getting off from the intersections of a count line set near the bus and a trajectory showing the movement route of people. This achieves high counting accuracy. Also, based on the direction in which the trajectory crosses the count line, passengers are distinguished from passengers getting on and getting off, and the number of passengers getting on and getting off are calculated separately. The information processing device 100 also estimates the boarding and disembarking entrances of the bus from the trajectories of multiple people, and counts the trajectories that cross the count line within the range of the boarding and disembarking entrances. This prevents erroneous counting of people who cross the count line for reasons other than boarding and disembarking, improving counting accuracy.
[0248] Furthermore, the information processing device 100 detects a trajectory that passes through both the bus area and the surrounding area away from the bus, separately from the count line logic, and calculates the number of people getting on and getting off. This allows the information processing device 100 to calculate the number of people getting on and getting off even if the detection accuracy of the trajectory of people around the boarding and alighting gates is low.
[0249] In addition, the information processing device 100 uses the count line logic and the surrounding area logic in combination, and adopts the maximum value of two or more estimated values calculated as the number of passengers boarding the vehicle and the maximum value of two or more estimated values calculated as the number of passengers disembarking the vehicle. This utilizes the advantages of the two logics, and prevents omissions in counting. [Explanation of symbols]
[0250] 10,20 Information processing device 11,21 Storage section 12,22 Processing section 13,23 Image data 14a,14b,14c,24a,24b,24c trajectory 15 Count Line 16 Range 25 Surrounding Areas 26 Vehicle Area
Claims
1. Acquire image data of a vehicle and a plurality of people moving outside the vehicle; Detecting a plurality of trajectories indicating movement routes of the plurality of people from the image data; identifying a range of the count line based on a cluster of a plurality of intersections where the count line set in an image area of the image data intersects with the plurality of trajectories; calculating at least one of the number of passengers boarding the vehicle and the number of passengers alighting from the vehicle based on the number of trajectories that intersect with the count line within the specified range among the plurality of trajectories; A passenger counting program that causes a computer to execute processing.
2. The identification includes a process of classifying the plurality of intersections into a plurality of clusters based on coordinates within the image region, and estimating positions of doors provided in the vehicle as the range based on a cluster among the plurality of clusters in which a number of intersections exceeds a threshold value.
2. The passenger counting program according to claim 1.
3. The identification includes a process of selecting at most one intersection point based on a moving direction of the one trajectory when the one trajectory intersects the count line multiple times.
2. The passenger counting program according to claim 1.
4. The detection includes a process of detecting a vehicle area in which the vehicle is captured from the image data, The identification includes a process of determining the moving direction based on whether or not a start point and an end point of the one trajectory are included in the vehicle area.
4. The passenger counting program according to claim 3.
5. the detection includes a process of detecting a human region in which each of the plurality of people is captured, correcting the human region of some of the plurality of people based on a relationship between a vertical position of the image region and a height of the human region, and detecting the plurality of trajectories based on the corrected human region.
2. The passenger counting program according to claim 1.
6. setting a door area in the image area based on the specified range; increasing the number of passengers getting on or getting off based on the number of trajectories that do not cross the count line and have a starting point or an ending point included in the door area among the plurality of trajectories; 2. The passenger counting program according to claim 1, further comprising a process for causing the computer to execute the process.
7. calculating at least one of the number of other passengers and the number of other disembarking passengers of the vehicle based on the number of trajectories that move from one of the peripheral area set in the image area and the vehicle area in which the vehicle is captured to the other of the plurality of trajectories; When a plurality of numbers of passengers including the number of passengers and the other number of passengers are calculated, the maximum number of the plurality of numbers of passengers is selected, and when a plurality of numbers of passengers alighting including the number of passengers alighting and the other number of passengers is calculated, the maximum number of the plurality of numbers of passengers alighting is selected.
2. The passenger counting program according to claim 1, further comprising a process for causing the computer to execute the process.
8. The calculation of at least one of the number of other passengers and the number of other passengers getting off includes a process of excluding a trajectory whose starting point or ending point is not included in either the surrounding area or the vehicle area from among the plurality of trajectories.
8. The passenger counting program according to claim 7.
9. determining a bounding box representing the vehicle from each of a plurality of frames included in the image data, and determining a stop period during which the vehicle is stopped among the plurality of frames based on whether or not a position of the bounding box within the image region satisfies a specific condition; The plurality of trajectories are detected from frames included in the stop period.
2. The passenger counting program according to claim 1.
10. Acquire image data of a vehicle and a plurality of people moving outside the vehicle; Detecting a plurality of trajectories indicating movement routes of the plurality of people from the image data; calculating at least one of the number of passengers and the number of passengers alighting from the vehicle based on the number of trajectories that move from one of a surrounding area set in an image area of the image data and a vehicle area in which the vehicle is captured to the other of the plurality of trajectories; A passenger counting program that causes a computer to execute processing.
11. A storage unit that stores image data of a vehicle and a plurality of people moving outside the vehicle; a processing unit that detects from the image data a plurality of trajectories indicating the movement paths of the plurality of people, identifies a range of the count line based on a cluster of a plurality of intersections where the plurality of trajectories intersect with a count line set in an image area of the image data, and calculates at least one of the number of passengers and the number of passengers disembarking from the vehicle based on the number of trajectories that intersect with the count line within the identified range among the plurality of trajectories; An information processing device having the above configuration.
Citation Information
Patent Citations
Monitoring system, imagine device, and data managing device
JP2014054899A
Device for counting number of passing person and system for managing number of visiting and leaning person using the device
JP1998049718A
Apparatus for counting number of getting on / off passengers
JP2014219913A
Incoming / outgoing passenger number counting system, incoming / outgoing passenger number counting method, and incoming / outgoing passenger number counting program
JP2022149027A
Cited By
Pig aisle checking method and computer equipment
CN119785282A
