Determination device, determination method, and determination program
The determination device addresses motion detection inaccuracies and high costs by tracking individuals in video and using aspect ratio changes to identify predefined actions, enhancing accuracy and reducing hardware requirements.
Patent Information
- Application Number
- JP2023060541
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-17
AI Technical Summary
Existing motion detection technologies for individuals in video images suffer from erroneous recognition and high hardware costs or workload, particularly in railway environments, due to factors like weather disturbances, shadow recognition, and the need for multiple cameras.
A determination device that tracks individuals in video and determines their actions based on the temporal change of the aspect ratio of a bounding rectangle enclosing the person, using indices such as w/h or h/w, with threshold comparisons and frequency analysis to accurately identify arm-waving, falling, or crouching motions without requiring additional cameras or extensive neural network training.
Enables accurate determination of predefined actions with reduced hardware costs and workload by minimizing erroneous recognition and eliminating the need for extensive neural network annotation, thus improving efficiency and reducing operational expenses.
Smart Images

Figure 2024147862000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for determining a person's movement. [Background technology]
[0002] There is known technology for detecting people and objects associated with people on station platforms and the like (see, for example, Patent Document 1). There is also known a monitoring system for railway car doors (see, for example, Patent Document 2). There is also known technology for preventing people from getting caught in doors (see, for example, Patent Document 3). There is also known technology for comprehensively detecting abnormal conditions (see, for example, Patent Document 4). There is also known technology for monitoring monitored persons (see, for example, Patent Document 5). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-138630 A [Patent Document 2] International Publication No. 2018 / 180311 [Patent Document 3] Patent Publication No. 2021-109632 [Patent Document 4] JP 2020-98606 A [Patent Document 5] International Publication No. 2017 / 141629 Summary of the Invention [Problem to be solved by the invention]
[0004] In the techniques of Patent Documents 1 to 3, when recognizing the actions of a person appearing in a captured image, erroneous recognition may occur, or the hardware costs or workload may become large.
[0005] In one aspect, the present invention aims to easily determine whether or not a person captured in a video has performed a predetermined action. [Means for solving the problem]
[0006] According to one embodiment, the determination device includes a tracking unit and a determination unit. The tracking unit tracks a person appearing in a video and generates a figure that includes the person. The determination unit determines whether or not the person has performed a predetermined motion based on a time change in an index related to a length in a predetermined direction of the figure. The predetermined motion is any one of a motion of waving an arm, a motion of falling, and a motion of bending. Effect of the Invention
[0007] In one aspect, it is possible to easily determine whether a person appearing in a video has performed a predetermined action. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a functional configuration diagram of a determination device according to an embodiment. [Diagram 2] 13 is a flowchart of a determination process. [Diagram 3] FIG. 1 is a configuration diagram of a recognition system. [Figure 4] FIG. 2 is a functional configuration diagram of a recognition device. [Diagram 5] FIG. 2 is a diagram showing an image included in a video. [Figure 6] FIG. 1 shows an image of a person waving his arms. [Figure 7] FIG. 1 shows an image of a person waving one arm. [Figure 8] 13 is a diagram showing the relationship between the angle θ and the width and height of a rectangle when a person is waving his / her arm. [Figure 9] 13 is a diagram showing the relationship between the angle θ and an index when a person is waving both arms. FIG. [Figure 10] 13 is a diagram showing the relationship between the angle θ and an index when a person is waving one arm. FIG. [Figure 11] FIG. 13 is a diagram showing a first time change in the ratio w / h when a person is waving both arms. [Figure 12]11 is a flowchart of a first recognition process. [Figure 13] FIG. 13 is a diagram showing a sudden change in a rectangle that contains a person. [Figure 14] FIG. 13 is a diagram showing the change over time in the ratio w / h when a person is walking. [Figure 15] FIG. 13 is a diagram showing markers set on a rectangle. [Figure 16] FIG. 13 is a diagram showing a second change over time in the ratio w / h when a person is waving both arms. [Figure 17] FIG. 2 is a diagram illustrating a frequency spectrum. [Figure 18] 13 is a flowchart of a second recognition process. [Figure 19] FIG. 13 shows an image of a person falling. [Figure 20] FIG. 2 shows an image of a person crouching. [Figure 21] FIG. 13 is a diagram showing the change over time in the ratio w / h when a person performs a motion of falling or bending. [Figure 22] FIG. 13 is a diagram showing the change over time in the ratio w / h when a person stands up after performing a falling or bending motion. [Diagram 23] 13 is a flowchart of a third recognition process. [Figure 24] FIG. 13 is a diagram showing the change in position of a rectangle that contains a moving person. [Diagram 25] FIG. 13 is a diagram showing the change in position of a rectangle containing a person who stops in the middle of moving. [Figure 26] FIG. 13 is a diagram showing representative points of a rectangle. [Figure 27] FIG. 2 is a hardware configuration diagram of an information processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the embodiments will be described in detail with reference to the drawings.
[0010] A video display system at a railway station can display video from a surveillance system installed on the platform on the screen of a display device installed on the platform. Crew members such as drivers and conductors, or station staff, can use the video display system to monitor passengers getting on and off the railway car. In addition, with the trend toward one-man operation of trains, video from the surveillance system may be transmitted to a display device in the train's driver's compartment, where the driver can check the video.
[0011] In the detection system of Patent Document 1, the movement vectors of multiple divided regions in a captured image are extracted by optical flow. Then, by comparing the extracted movement vectors, it is possible to detect whether an object such as a person on the platform is caught by the doors of a departing train, or whether a person has fallen from the platform onto the tracks.
[0012] However, in detection methods that use optical flow, disturbances such as weather and shadows may be erroneously recognized as movement.
[0013] In the monitoring system of Patent Document 2, a difference comparison is performed between a still image (reference image) taken in advance in a normal state where nothing is caught in the vehicle door and a still image (observation image) that is first acquired at a predetermined acquisition time after the vehicle door is closed. If there is a difference, a difference comparison is performed between the still image (observation image) acquired after a certain time has elapsed and the reference image, and whether or not something is caught is detected from the movement of the center point of the rectangle that surrounds the difference area.
[0014] However, in the case of a route on which various types of vehicles run, it is necessary to recognize the vehicle type and select an appropriate reference image. Also, external disturbances such as deviations in the vehicle stopping position, weather, and shadows may be erroneously recognized as differences.
[0015] In the technology of Patent Document 3, people around the doors are photographed by cameras installed at each door of a railway vehicle, and the people are recognized using a neural network. Then, based on the distance from the door to the person and the person's moving speed, it is predicted whether or not the person is in a state where they may be caught in the door, and if it is predicted that the person is in a state where they may be caught in the door, the closing operation of the door is controlled.
[0016] However, since it is necessary to install cameras on all doors of a vehicle, the hardware cost increases, and installing cameras in an existing vehicle requires modification of the vehicle. In addition, if the movement speed of a recognized person changes, it becomes difficult to correctly predict whether or not the person may be caught in the door. Furthermore, when performing machine learning of a neural network, it is necessary to annotate all people in the learning image, which increases the workload.
[0017] 1 shows an example of the functional configuration of a determination device according to an embodiment. The determination device 101 in FIG.
[0018] Fig. 2 is a flow chart showing an example of the determination process performed by the determination device 101 of Fig. 1. First, the tracking unit 111 tracks a person appearing in the video (step 201) and generates a figure that includes the person (step 202). Next, the determination unit 112 determines whether or not the person has performed a predetermined motion based on a time change in an index related to the length of the figure in a predetermined direction (step 203). The predetermined motion is any one of a motion of waving an arm, a motion of falling, or a motion of bending.
[0019] According to the determination device 101 in FIG. 1, it is possible to easily determine whether or not a person captured in an image has performed a predetermined action.
[0020] Fig. 3 shows an example of the configuration of a recognition system including the determination device 101 of Fig. 1. The recognition system of Fig. 3 includes an imaging device 311 and a recognition device 312. The recognition device 312 corresponds to the determination device 101 of Fig. 1.
[0021] The imaging device 311 is, for example, a surveillance camera. The imaging device 311 captures an image of a surveillance area 321 and transmits the image to the recognition device 312.
[0022] For example, in the case of monitoring passengers getting on and off trains at a railway station, the monitoring area 321 is an area including the platform and the tracks. The monitoring area 321 may be an aisle in the station. The monitoring area 321 is not limited to a railway station, and may be a road, a sidewalk, a workroom in a factory, an aisle in a store, an office, etc.
[0023] The recognition device 312 receives video from the imaging device 311 and analyzes the received video to recognize the person 331-i (i=1, 2) to be monitored who appears in the video. The recognition device 312 determines the movement of the recognized person 331-i, and when it is determined that the person 331-i has performed a predetermined movement, it notifies the administrator of that effect.
[0024] The predetermined motion is, for example, a motion of waving an arm, a motion of falling, or a motion of bending. When the monitored area 321 is a railway station, the manager is a train crew member, a station attendant, or the like, and the motion of waving an arm is a signal to inform the manager that a passenger has fallen off the platform, or the like.
[0025] Fig. 4 shows an example of a functional configuration of the recognition device 312 in Fig. 3. The recognition device 312 in Fig. 4 includes an acquisition unit 411, an analysis unit 412, a determination unit 413, a notification unit 414, and a storage unit 415. The analysis unit 412 and the determination unit 413 correspond to the tracking unit 111 and the determination unit 112 in Fig. 1, respectively.
[0026] The acquisition unit 411 acquires a video 421 transmitted from the imaging device 311, and stores it in the storage unit 415. The video 421 includes a plurality of images in a time series. An image at each time may also be called a frame.
[0027] The analysis unit 412 analyzes the video 421 to recognize the person 331-i appearing in the image at each time included in the video 421, and tracks the same person 331-i appearing in each image at a plurality of times. The analysis unit 412 then generates a rectangle that includes the person 331-i appearing in the image at each time, and stores in the storage unit 415 rectangle information 422 indicating the generated rectangle.
[0028] The rectangle information 422 includes the width and height of the rectangle. The rectangle that contains the person 331-i corresponds to a figure that contains the person.
[0029] 5 shows an example of an image included in video 421. Rectangle information 422 includes information on rectangle 501-1 and rectangle 501-2. Rectangle 501-1 is a rectangle that contains person 331-1, and rectangle 501-2 is a rectangle that contains person 331-2. Width w1 and height h1 of rectangle 501-1 correspond to the length in a predetermined direction of the figure that contains person 331-1. Width w2 and height h2 of rectangle 501-2 correspond to the length in a predetermined direction of the figure that contains person 331-2.
[0030] The determination unit 413 calculates an index for the rectangle 501-i using the width wi and height hi of the rectangle 501-i indicated by the rectangle information 422. Then, the determination unit 413 determines whether or not the person 331-i has performed a predetermined action based on a change over time in the calculated index. As the index for the rectangle 501-i, for example, the ratio of the height hi to the width wi, or the ratio of the width wi to the height hi is used.
[0031] 6 shows an example of an image of a person 331-1 waving both arms towards the image capture device 311. w(t) represents the width of a rectangle that contains the person 331-1 in the image at time t, and h(t) represents the height of the rectangle.
[0032] 6(a) shows an example of an image at time t1. A rectangle 601 containing the person 331-1 has a width w(t1) and a height h(t1).
[0033] 6(b) shows an example of an image at time t2. A rectangle 602 containing the person 331-1 has a width w(t2) and a height h(t2). The angle θ represents the angle between the horizontal line and the arm of the person 331-1.
[0034] When person 331-1 waves both arms, alternating between the state of FIG. 6(a) and the state of FIG. 6(b), the width and height of the rectangle containing person 331-1 vary periodically as the angle θ changes over time.
[0035] Fig. 7 shows an example of an image of a person 331-1 waving one arm towards the image capture device 311. Fig. 7(a) shows an example of an image at time t1. A rectangle 701 containing the person 331-1 has a width w(t1) and a height h(t1).
[0036] 7(b) shows an example of an image at time t2. A rectangle 702 containing the person 331-1 has a width w(t2) and a height h(t2). The angle θ represents the angle between the horizontal line and the arm of the person 331-1.
[0037] When person 331-1 swings one arm, alternating between the state of FIG. 7(a) and the state of FIG. 7(b), the width and height of the rectangle containing person 331-1 vary periodically as the angle θ changes over time.
[0038] Fig. 8 shows an example of the relationship between the angle θ and the width and height of a rectangle when person 331-1 is waving his / her arms. Fig. 8(a) shows an example of the relationship between the angle θ and the width and height of a rectangle when person 331-1 is waving both arms. The horizontal axis represents the angle θ in Fig. 6(b), and the vertical axis represents the width w and height h. The angle θ is in degrees, and the width w and height h are in pixels (number of pixels).
[0039] Curve 801 shows the change in width w. Width w is maximum when angle θ is 0 degrees, and is minimum when angle θ is 90 degrees. Curve 802 shows the change in height h. Height h is constant when both arms are lower than the head, and increases as angle θ increases when both arms are higher than the head.
[0040] Fig. 8(b) shows an example of the relationship between the angle θ and the width and height of a rectangle when person 331-1 is waving one arm. The horizontal axis represents the angle θ in Fig. 7(b), and the vertical axis represents the width w and height h.
[0041] A curve 811 shows the change in width w. Width w is maximum when angle θ is 0 degrees, and is minimum when angle θ is 90 degrees. A curve 812 shows the change in height h. Height h is constant when the arm is lower than the head, and increases as angle θ increases when the arm is higher than the head.
[0042] The amount of change in width w while the angle θ increases from 0 degrees to 90 degrees is greater when swinging both arms than when swinging one arm.
[0043] Even for the same person 331-1, the size of the rectangle in the image varies depending on the distance from the imaging device 311 to the person 331-1, so the ratio h / w of the height h to the width w, or the ratio w / h of the width w to the height h, is used as an index related to the rectangle.
[0044] Fig. 9 shows an example of the relationship between the angle θ and the index when person 331-1 is waving both arms. Fig. 9(a) shows an example of the relationship between the angle θ and the ratio h / w. The horizontal axis represents the angle θ in Fig. 6(b), and the vertical axis represents the ratio h / w. A curve 901 shows the change in the ratio h / w. The ratio h / w is minimum when the angle θ is 0 degrees, and maximum when the angle θ is 90 degrees.
[0045] Fig. 9(b) shows an example of the relationship between the angle θ and the ratio w / h. The horizontal axis represents the angle θ in Fig. 6(b), and the vertical axis represents the ratio w / h. A curve 902 shows the change in the ratio w / h. The ratio w / h is maximum when the angle θ is 0 degrees, and is minimum when the angle θ is 90 degrees.
[0046] Fig. 10 shows an example of the relationship between the angle θ and the index when person 331-1 is waving one arm. Fig. 10(a) shows an example of the relationship between the angle θ and the ratio h / w. The horizontal axis represents the angle θ in Fig. 7(b), and the vertical axis represents the ratio h / w. A curve 1001 shows the change in the ratio h / w. The ratio h / w is minimum when the angle θ is 0 degrees, and maximum when the angle θ is 90 degrees.
[0047] FIG. 10(b) shows an example of the relationship between the angle θ and the ratio w / h. The horizontal axis represents the angle θ in FIG. 7(b), and the vertical axis represents the ratio w / h. A curve 1002 shows the change in the ratio w / h. The ratio w / h is maximum when the angle θ is 0 degrees, and is minimum when the angle θ is 90 degrees. The maximum value of the ratio w / h in FIG. 10(b) is smaller than the maximum value of the ratio w / h in FIG. 9(b).
[0048] The determination unit 413 calculates the amount of change in the index over time during a specified monitoring time, and if the calculated amount of change is greater than a threshold, determines that the person 331-1 has performed an action of waving both arms or one arm toward the imaging device 311.
[0049] FIG. 11 shows a first example of a change over time in the ratio w / h when person 331-1 is waving both arms. The horizontal axis represents time (seconds), and the vertical axis represents the ratio w / h. In this example, the angle θ changes in the range from 60 degrees to 90 degrees, and the frequency of the change in the angle θ is 1 Hz. Therefore, the ratio w / h fluctuates periodically with a frequency of 1 Hz. The change over time in the ratio w / h when person 331-1 is waving one arm is also similar to that in FIG. 11.
[0050] The determination unit 413 calculates the difference Δ between the maximum and minimum values of the ratio w / h during the monitoring time TC as the amount of change in the index, and compares the difference Δ with a threshold value TH1. If the difference Δ is greater than TH1, the determination unit 413 determines that the person 331-1 has performed a motion of waving both arms or one arm toward the imaging device 311. If the difference Δ is equal to or smaller than TH1, the determination unit 413 determines that the person 331-1 has not performed a motion of waving both arms or one arm.
[0051] The change over time in the ratio h / w when the person 331-1 is waving both arms or one arm is similar to that in Fig. 11. When the ratio h / w is used instead of the ratio w / h, the determination unit 413 calculates the difference between the maximum and minimum values of the ratio h / w during the monitoring time TC as the amount of change in the index, and compares the difference with a threshold value TH2.
[0052] When the difference is larger than TH2, the determination unit 413 determines that the person 331-1 has performed the motion of waving both arms or one arm toward the imaging device 311. When the difference is equal to or smaller than TH2, the determination unit 413 determines that the person 331-1 has not performed the motion of waving both arms or one arm.
[0053] When it is determined that the person 331-i has performed a motion of waving both arms or one arm, the notification unit 414 notifies the administrator by video, audio, or the like that a person in the monitored area 321 is waving his / her arms.
[0054] The recognition system in Fig. 3 does not require the installation of cameras on the doors of train cars, nor the annotation of all people in the images for training the neural network. Therefore, it is possible to easily determine whether a person in the image has performed an arm-waving motion while reducing hardware costs and workload.
[0055] Fig. 12 is a flowchart showing an example of the first recognition process performed by the recognition device 312 in Fig. 4. First, the acquisition unit 411 acquires the video 421 transmitted from the imaging device 311 (step 1201).
[0056] Next, the analysis unit 412 analyzes the video 421 to recognize people appearing in the images at each time included in the video 421, and tracks the same person appearing in the images at each time (step 1202).The analysis unit 412 then generates a rectangle that includes the people appearing in the images at each time, and generates rectangle information 422 that indicates the generated rectangle (step 1203).
[0057] Next, the determination unit 413 calculates the ratio w / h or the ratio h / w using the width w and height h of each rectangle indicated by the rectangle information 422 (step 1204).Then, the determination unit 413 calculates the difference between the maximum and minimum values of the ratio during the monitoring time (step 1205) and compares the difference with a threshold (step 1206).In step 1206, the threshold TH1 is used for the ratio w / h, and the threshold TH2 is used for the ratio h / w.
[0058] If the difference is greater than the threshold value (step 1206, YES), the determination unit 413 determines that the person has performed an arm waving motion (step 1207). Then, the notification unit 414 notifies the administrator that the person in the monitored area 321 is waving his / her arm (step 1208).
[0059] If the difference is equal to or smaller than the threshold value (step 1206, NO), the determination unit 413 determines that the person is not performing the motion of waving his / her arms (step 1209).
[0060] However, in the process of analyzing the video 421, the person 331-1 being tracked may be lost, or a rectangle that includes only a part of the body of the person 331-1 may be generated.
[0061] Figure 13 shows an example of a sudden change in the rectangle that contains the person 331-1 being tracked. Figure 13(a) shows an example of a normal rectangle. The rectangle 1301 contains the entire body of the person 331-1, and the width w and height h of the rectangle 1301 represent the correct width and height of the person 331-1.
[0062] Figure 13(b) shows an example of an incorrect rectangle. Rectangle 1302 is a rectangle generated from an image at the next time point after the image in Figure 13(a). Rectangle 1302 contains only the upper body of person 331-1. Therefore, although the width w of rectangle 1302 represents the correct width of person 331-1, the height h of rectangle 1302 does not represent the correct height of person 331-1.
[0063] If an incorrect rectangle such as rectangle 1302 is generated, the ratio w / h or the ratio h / w will vary significantly, and it may be determined that person 331-1 is waving his or her arms even though he or she is not waving his or her arms.
[0064] 14 shows an example of the change over time in the ratio w / h when the person 331-1 is walking. The horizontal axis represents time (seconds) and the vertical axis represents the ratio w / h. The maximum value of the ratio w / h during the monitoring time TC corresponds to the time when the height h of the rectangle containing the person 331-1 suddenly becomes small.
[0065] In this case, since the difference Δ between the maximum and minimum values of the ratio w / h during the monitoring time TC is greater than the threshold TH1, it is erroneously determined that the person 331-1 has made a motion of waving his / her arm toward the image capture device 311.
[0066] Therefore, the determination unit 413 sets one or more markers on a rectangle that includes the person 331-1, determines whether the rectangle is correct or not based on the amount of movement of each marker, and excludes the incorrect rectangle from the calculation of the difference Δ. For example, if the distance between a marker in an image at time k and the same marker in an image at the next time k+1 is greater than a predetermined value, the rectangle generated from the image at time k+1 is determined to be an incorrect rectangle.
[0067] Fig. 15 shows an example of a marker set on a rectangle. Fig. 15(a) shows an example of a marker set on a rectangle 1501 generated from an image at time k. The rectangle 1501 has a width w and a height h.
[0068] Marker m1 is set at the midpoint of the top side of rectangle 1501, and marker m2 is set at the midpoint of the bottom side of rectangle 1501. Area 1502-1 is a circle with a diameter w centered on marker m1, and area 1502-2 is a circle with a diameter w centered on marker m2.
[0069] 15(b) shows an example of markers set on a rectangle 1503 generated from an image at time k+1. In this case, marker m1 remains inside area 1502-1, but marker m2 moves outside area 1502-2. For this reason, rectangle 1503 is determined to be an incorrect rectangle and is excluded from the calculation of difference Δ.
[0070] In this way, by excluding from the calculation any erroneous rectangles that are generated unexpectedly while tracking person 331-1, the possibility of erroneously determining that person 331-1, who is not waving his / her arms, is waving his / her arms is reduced.
[0071] In the process of analyzing the video 421, the width and height of the rectangle that contains the person 331-1 may vary irregularly. If the width and height of the rectangle vary irregularly, the ratio w / h or the ratio h / w also varies irregularly, and it may be determined that the person 331-1 has performed an arm-waving motion even though he or she has not actually done so.
[0072] Therefore, the determination unit 413 may analyze the frequency of the time change of the index, and determine whether or not the person 331-1 has performed the motion of waving his / her arms based on the analysis result. In this case, the determination unit 413 obtains the frequency spectrum of the index by analyzing the frequency of the time change of the index, and determines that the person 331-1 has performed the motion of waving his / her arms when the maximum value of the index in a predetermined frequency range is greater than a threshold value.
[0073] The predetermined frequency range is a frequency range including the frequency of the change in the angle θ when the person 331-1 is waving his / her arm. The predetermined frequency range may be, for example, a part or all of the range from 0.2 Hz to 5 Hz.
[0074] Fig. 16 shows a second example of the change over time in the ratio w / h when person 331-1 is waving both arms. Fig. 16(a) shows an example of the change over time in the ratio w / h calculated from the width w and height h. The horizontal axis represents time (seconds) and the vertical axis represents the ratio w / h. Fig. 16(b) shows an example of the change over time in the ratio w / h after removing the DC component from the change over time in Fig. 16(a).
[0075] Fig. 17 shows an example of a frequency spectrum obtained by analyzing the frequency of the time change in Fig. 16(b). The horizontal axis represents frequency (Hz), and the vertical axis represents the ratio w / h. The frequency range fC is an example of a predetermined frequency range.
[0076] The determination unit 413 compares the maximum value of the ratio w / h in the frequency range fC with a threshold value TH3. When the maximum value of the ratio w / h is greater than the threshold value TH3, the determination unit 413 determines that the person 331-1 has performed a motion of waving his / her arms toward the imaging device 311. When the maximum value of the ratio w / h is equal to or less than the threshold value TH3, the determination unit 413 determines that the person 331-1 has not performed a motion of waving his / her arms.
[0077] In this way, by analyzing the frequency of the time change in the ratio w / h, it is possible to accurately determine whether or not the person 331-1 has performed an arm-waving motion, even if the width w and height h of the rectangle fluctuate irregularly. Even if the ratio h / w is used instead of the ratio w / h, it is possible to similarly determine whether or not the person 331-1 has performed an arm-waving motion by analyzing the frequency of the time change in the ratio h / w.
[0078] Fig. 18 is a flowchart showing an example of the second recognition process performed by the recognition device 312 in Fig. 4. The processes in steps 1801 to 1804 are similar to the processes in steps 1201 to 1204 in Fig. 12.
[0079] After calculating the ratio w / h or the ratio h / w of each rectangle, the determination unit 413 removes the DC component from the time change of the ratio (step 1805), and obtains a frequency spectrum by analyzing the frequency of the time change from which the DC component has been removed (step 1806).The determination unit 413 then compares the maximum value of the ratio in a predetermined frequency range with a threshold value (step 1807).
[0080] If the maximum ratio is greater than the threshold value (step 1807, YES), the determination unit 413 determines that the person has performed an arm waving motion (step 1808). Then, the notification unit 414 notifies the administrator that the person in the monitored area 321 is waving his / her arms (step 1809).
[0081] If the maximum value of the ratio is equal to or smaller than the threshold value (step 1807, NO), the determination unit 413 determines that the person is not performing an arm waving motion (step 1810).
[0082] Fig. 19 shows an example of an image of a person 331-1 falling. Fig. 19(a) shows an example of an image of a person 331-1 standing upright, and Fig. 19(b) shows an example of an image of a person 331-1 falling. The ratio w / h in a rectangle 1902 in Fig. 19(b) is larger than the ratio w / h in a rectangle 1901 in Fig. 19(a). The ratio h / w in a rectangle 1902 in Fig. 19(b) is smaller than the ratio h / w in a rectangle 1901 in Fig. 19(a).
[0083] Fig. 20 shows an example of an image of a person 331-1 crouching. Fig. 20(a) shows an example of an image of a person 331-1 standing upright, and Fig. 20(b) shows an example of an image of a person 331-1 crouching. The ratio w / h in a rectangle 2002 in Fig. 20(b) is greater than the ratio w / h in a rectangle 2001 in Fig. 20(a). The ratio h / w in a rectangle 2002 in Fig. 20(b) is less than the ratio h / w in a rectangle 2001 in Fig. 20(a).
[0084] 21 shows an example of the change in the ratio w / h over time when the person 331-1 falls or bends. The horizontal axis represents time, and the vertical axis represents the ratio w / h. When the person 331-1 falls or bends at time ta, the ratio w / h changes from a value smaller than the threshold value TH4 to a value larger than the threshold value TH4 at time ta.
[0085] Therefore, when the ratio w / h changes from a value smaller than TH4 to a value larger than TH4 and the time during which the ratio w / h is larger than TH4 is longer than the monitoring time TM, the determination unit 413 determines that the person 331-1 has performed a falling or bending motion. In other cases, the determination unit 413 determines that the person 331-1 has not performed a falling or bending motion. The monitoring time TM is an example of a predetermined time.
[0086] When it is determined that the person 331-i has performed a falling or bending motion, the notification unit 414 notifies the administrator by video, audio, or the like that a person in the monitored area 321 has fallen or bent.
[0087] 22 shows an example of the change over time in the ratio w / h when the person 331-1 stands up after falling or bending. The horizontal axis represents time, and the vertical axis represents the ratio w / h. Even if the person 331-1 falls or bends at time ta, when the person 331-1 stands up at time tb, the ratio w / h changes from a value greater than the threshold value TH4 to a value smaller than the threshold value TH4 at time tb.
[0088] Therefore, if the time during which the ratio w / h is greater than TH4 is equal to or less than the monitoring time TM, the determination unit 413 determines that the person 331-1 is not falling or bending. This reduces the monitoring burden on the administrator because the administrator is not notified of a person who temporarily falls or bends and then stands up on his or her own.
[0089] According to the recognition system of FIG. 3, it is possible to easily determine whether or not a person captured in an image has performed a falling or bending motion while suppressing hardware costs and workload.
[0090] Even if the ratio h / w is used instead of the ratio w / h, it is possible to determine whether the person 331-1 has performed a falling or bending motion based on the change over time in the ratio h / w in a similar manner.
[0091] If the ratio h / w changes from a value larger than the threshold TH5 to a value smaller than the threshold TH5 and the time during which the ratio h / w is smaller than TH5 is longer than the monitoring time TM, the determination unit 413 determines that the person 331-1 has performed a falling or bending motion. Otherwise, the determination unit 413 determines that the person 331-1 has not performed a falling or bending motion.
[0092] Fig. 23 is a flowchart showing an example of the third recognition process performed by the recognition device 312 in Fig. 4. The processes in steps 2301 to 2304 are similar to the processes in steps 1201 to 1204 in Fig. 12.
[0093] After calculating the ratio w / h or the ratio h / w of each rectangle, the determination unit 413 checks whether the ratio has changed across a threshold value from the time change of the ratio (step 2305). In step 2305, if the ratio w / h is used, the determination unit 413 checks whether the ratio w / h has changed from a value smaller than TH4 to a value larger than TH4. In the case where the ratio h / w is used, the determination unit 413 checks whether the ratio h / w has changed from a value larger than the threshold value TH5 to a value smaller than the threshold value TH5.
[0094] If the ratio has changed across the threshold (step 2305, YES), the judgment unit 413 compares the duration during which the state after the change continues with the monitoring time (step 2306). In step 2306, if the ratio w / h is used, the state after the change is a state in which the ratio w / h is larger than TH4, and if the ratio h / w is used, the state after the change is a state in which the ratio h / w is smaller than TH5.
[0095] If the duration is longer than the monitoring time (step 2306, YES), the determination unit 413 determines that the person has fallen or bent over (step 2307). Then, the notification unit 414 notifies the administrator that the person in the monitoring area 321 has fallen or bent over (step 2308).
[0096] If the ratio does not change across the threshold (step 2305, NO), or if the duration is equal to or less than the monitoring time (step 2306, NO), the judgment unit 413 judges that the person is not performing a falling or bending motion (step 2309).
[0097] The recognition device 312 in FIG. 4 can also detect the behavior of a pedestrian stopping at a specific point within the monitored area 321 and notify an administrator.
[0098] 24 shows an example of the change in position of a rectangle containing a person moving from left to right in the image 421. The horizontal axis represents the x coordinate of the image, and the vertical axis represents the y coordinate of the image.
[0099] A point 2401 represents a representative point of the rectangle at time t1, and a point 2402 represents a representative point of the rectangle at time t2. A point 2403 represents a representative point of the rectangle at time t3, and a point 2404 represents a representative point of the rectangle at time t4. The interval between time tj and time t(j+1) (j=1 to 3) may be a specified time equivalent to several images.
[0100] The dashed circle around each point represents a circle of radius r centered at that point. In this example, the person is moving from left to right without stopping, so the circles do not overlap.
[0101] 25 shows an example of the change in position of a rectangle containing a person who stops midway as he moves from left to right in the video 421. Point 2501 represents the representative point of the rectangle at time t1, point 2502 represents the representative point of the rectangle at time t2, point 2503 represents the representative point of the rectangle at time t3, point 2504 represents the representative point of the rectangle at time t4, and point 2505 represents the representative point of the rectangle at time t5.
[0102] In this example, three circles centered on points 2503, 2504, and 2505 overlap each other, so it is estimated that a person is standing still at a specific point between time t3 and time t5.
[0103] 26 shows an example of a representative point of a rectangle. In this example, a center point 2602 of a rectangle 2601 that contains a person is used as the representative point. The representative point of the rectangle 2601 may be any vertex of the rectangle 2601 or a point on any side of the rectangle 2601.
[0104] The determination unit 413 obtains the coordinates of a representative point of a rectangle that includes a person at each specified time, and generates a circle with a radius of r centered on the representative point. The determination unit 413 then checks whether the circle at time tj and the circle at time t(j+1) overlap. The time tj is an example of a first time, and the time t(j+1) is an example of a second time that is later than the first time.
[0105] If any circle at time tj overlaps with the circle at time t(j+1), the determination unit 413 determines that the person is staying at a specific point. If any circle at time tj does not overlap with the circle at time t(j+1), the determination unit 413 determines that the person is not staying at a specific point.
[0106] If the number of times that a person is determined to be staying at a specific point is greater than a specified number of times, the notification unit 414 notifies the administrator by video, audio, etc. that a person is standing still within the monitored area 321. This makes it possible to notify the administrator of the presence of a person behaving suspiciously.
[0107] Instead of a circle with the representative point as its center, the determination unit 413 may use another graphic form, such as a rectangle with the representative point as its center.
[0108] Instead of checking for overlap between figures, the determination unit 413 may check the movement distance of the representative point. In this case, the determination unit 413 calculates the distance between the representative point at time tj and the representative point at time t(j+1), and compares the calculated distance with a threshold. If the calculated distance is smaller than the threshold, the determination unit 413 determines that the person is staying at a specific point. If the calculated distance is equal to or greater than the threshold, the determination unit 413 determines that the person is not staying at a specific point.
[0109] If the monitored area 321 is a railway station, the recognition device 312 can also control the closing of the doors of the train based on the result of determining the motion of the person.
[0110] If it is determined that the person has performed a predetermined action, the notification unit 414 transmits a control signal indicating that the door cannot be closed to the vehicle control device, and the control device prevents the door from closing. If it is determined that the person has not performed a predetermined action, the notification unit 414 transmits a control signal indicating that the door can be closed to the vehicle control device, and the control device allows the door to be closed.
[0111] The configuration of the determination device 101 in FIG. 1 is merely an example, and some of the components may be omitted or changed depending on the application or conditions of the determination device 101.
[0112] The configuration of the recognition system in FIG. 3 is merely an example, and some of the components may be omitted or modified depending on the application or conditions of the recognition system.
[0113] 4 is merely an example, and some of the components may be omitted or changed depending on the purpose or conditions of the recognition system. For example, if there is no need to notify the administrator of the person's actions, the notification unit 414 can be omitted.
[0114] 2, 12, 18, and 23 are merely examples, and some of the processes may be omitted or changed depending on the configuration or conditions of the determination device 101 or the recognition system. For example, if there is no need to notify an administrator of a person's movement, the processes of step 1208 in Fig. 12, step 1809 in Fig. 18, and step 2308 in Fig. 23 can be omitted.
[0115] The images shown in Figures 5 to 7, 13, 15, 19, 20, and 26 are merely examples, and the images included in the video 421 change depending on the captured video 421. Other figures such as a circle, an ellipse, etc. may be used as a figure that includes a person. The relationship between the angle θ and the width and height of the rectangle shown in Figure 8 is merely an example, and the relationship between the angle θ and the width and height of the rectangle changes depending on the person. The relationship between the angle θ and the ratio shown in Figures 9 and 10 is merely an example, and the relationship between the angle θ and the ratio changes depending on the person.
[0116] The time changes of the ratio w / h shown in Figures 11, 14, 16, 21, and 22 are merely examples, and the time changes of the ratio w / h change according to the movement of the person. The frequency spectrum shown in Figure 17 is merely an example, and the frequency spectrum changes according to the time changes of the ratio w / h. The position changes of the rectangles shown in Figures 24 and 25 are merely an example, and the position changes of the rectangles change according to the movement of the person.
[0117] Fig. 27 shows an example of the hardware configuration of an information processing device (computer) used as the determination device 101 in Fig. 1 and the recognition device 312 in Fig. 4. The information processing device in Fig. 27 includes a CPU (Central Processing Unit) 2701, a memory 2702, an input device 2703, an output device 2704, an auxiliary storage device 2705, a medium drive device 2706, and a network connection device 2707. These components are hardware and are connected to each other by a bus 2708.
[0118] The imaging device 311 in FIG. 3 may be connected to the bus 2708 via a communication cable.
[0119] The memory 2702 is, for example, a semiconductor memory such as a Read Only Memory (ROM) or a Random Access Memory (RAM), and stores programs and data used in processing. The memory 2702 may operate as the storage unit 415 in FIG.
[0120] 1 by executing a program using the memory 2702. The CPU 2701 (processor) also operates as the acquisition unit 411, analysis unit 412, determination unit 413, and notification unit 414 in FIG.
[0121] The input device 2703 is, for example, a keyboard, a pointing device, etc., and is used for inputting instructions or information from an operator or user. The output device 2704 is, for example, a display device, a printer, a speaker, etc., and is used for outputting inquiries or instructions to an operator or user, and processing results.
[0122] The auxiliary storage device 2705 is, for example, a magnetic disk device, an optical disk device, a magneto-optical disk device, a tape device, or the like. The auxiliary storage device 2705 may be a hard disk drive or an SSD (Solid State Drive). The information processing device can store programs and data in the auxiliary storage device 2705 and use them by loading them into the memory 2702. The auxiliary storage device 2705 may operate as the storage unit 415 in FIG. 4.
[0123] The medium drive device 2706 drives the portable recording medium 2709 and accesses the recorded contents. The portable recording medium 2709 is a memory device, a flexible disk, an optical disk, a magneto-optical disk, etc. The portable recording medium 2709 may be a CD-ROM (Compact Disk Read Only Memory), a DVD (Digital Versatile Disk), a USB (Universal Serial Bus) memory, etc. An operator or user can store programs and data in the portable recording medium 2709 and load them into the memory 2702 for use.
[0124] Thus, the computer-readable recording medium that stores the program and data used in the processing is a physical (non-transitory) recording medium such as the memory 2702, the auxiliary storage device 2705, or the portable recording medium 2709.
[0125] The network connection device 2707 is a communication interface circuit that is connected to a communication network and performs data conversion associated with communication. The information processing device can receive programs and data from an external device via the network connection device 2707 and load them into the memory 2702 for use.
[0126] It is not necessary for the information processing device to include all of the components in Fig. 27, and some of the components may be omitted depending on the application or conditions. For example, if an interface with an operator or user is not required, the input device 2703 and the output device 2704 may be omitted. If the portable recording medium 2709 or a communication network is not used, the medium drive device 2706 or the network connection device 2707 may be omitted.
[0127] Although the disclosed embodiments and their advantages have been described in detail, it will be appreciated that those skilled in the art may make various modifications, additions and omissions therein without departing from the scope of the invention as clearly set forth in the claims. [Explanation of symbols]
[0128] 101 Judgment device 111 Tracking Department 112, 413 Judgment section 311 Imaging Device 312 recognition device 321 Monitoring area 331-1, 331-2 People 411 Acquisition Department 412 Analysis Department 414 Notification Department 415 Storage section 421 Videos 422 Rectangle information 501-1, 501-2, 601, 602, 701, 702, 1301, 1302, 1501, 1503, 1901, 1902, 2001, 2002, 2601 Rectangle 801, 802, 811, 812, 901, 902, 1001, 1002 curve 1502-1, 1502-2 area 2401~2404, 2501~2505 points 2602 Center point 2701 CPU 2702 Memory 2703 Input Device 2704 Output Device 2705 Auxiliary storage device 2706 Media drive unit 2707 Network connection device 2708 Bus 2709 Portable recording media
Claims
1. a tracking unit that tracks a person appearing in a video and generates a figure that includes the person; a determination unit that determines whether or not the person has performed a predetermined action based on a time change in an index related to a length of the figure in a predetermined direction; Equipped with The determination device is characterized in that the predetermined motion is any one of an arm swinging motion, a falling motion, and a bending motion.
2. The shape is a rectangle, 2. The determination device according to claim 1, wherein the length of the figure in the predetermined direction is the width or height of the rectangle.
3. the predetermined motion is a motion of swinging an arm, The determination device according to claim 2, characterized in that the determination unit calculates the index using the width and height of the rectangle, and determines that the person has performed the arm-waving action if a change in the index over time is greater than a threshold value.
4. the predetermined motion is a motion of swinging an arm, The determination device according to claim 2, characterized in that the determination unit calculates the index using the width and height of the rectangle, obtains a frequency spectrum of the index based on a frequency of a time change of the index, and determines that the person has performed the arm-waving action if a maximum value of the index in a predetermined frequency range is greater than a threshold value.
5. 5. The determination device according to claim 3, wherein the index is a ratio of the width of the rectangle to the height of the rectangle, or a ratio of the height of the rectangle to the width of the rectangle.
6. the predetermined motion is the falling motion or the bending motion, the metric is a ratio of the width of the rectangle to the height of the rectangle; The determination device according to claim 2, characterized in that the determination unit determines that the person has performed the falling motion or the bending motion when the indicator changes from a value smaller than a threshold value to a value larger than the threshold value and the time during which the indicator remains larger than the threshold value is longer than a predetermined time.
7. the predetermined motion is the falling motion or the bending motion, the index being a ratio of the height of the rectangle to the width of the rectangle; The determination device according to claim 2, characterized in that the determination unit determines that the person has performed the falling motion or the bending motion when the indicator changes from a value greater than a threshold value to a value smaller than the threshold value and the time during which the indicator remains smaller than the threshold value is longer than a predetermined time.
8. The determination device described in claim 2, characterized in that the determination unit determines whether the person is remaining at a specific point based on the coordinates of the representative point of the rectangle at a first time and the coordinates of the representative point of the rectangle at a second time that is later than the first time.
9. Tracking people in the footage generating a figure including the person; determining whether the person has performed a predetermined action based on a time change in an index relating to a length of the figure in a predetermined direction; The computer executes the process, The method for determining whether or not the predetermined motion is a motion of swinging an arm, a motion of falling, or a motion of bending.
10. Tracking people in the footage generating a figure including the person; determining whether the person has performed a predetermined action based on a time change in an index relating to a length of the figure in a predetermined direction; The process is executed by a computer, The predetermined motion is any one of an arm swinging motion, a falling motion, and a bending motion.
Citation Information
Patent Citations
Abnormality detection device and abnormality detection method
JP2020098606A
Detection system
JP2020138630A
Vehicle door control device and vehicle door control method
JP2021109632A
Terminal device, display method for terminal device, sensor device, and person-to-be-monitored monitoring system
WO2017141629A1
Monitoring system and monitoring method
WO2018180311A1
