Setting method, setting program and setting device

The automated ROI setting method using heat maps from skeletal part mappings addresses inefficiencies in behavior recognition systems, enhancing scalability and accuracy by optimizing ROI placement for spatial state and action recognition.

JP7548059B2Active Publication Date: 2024-09-10FUJITSU LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2021029293
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-25
Publication Date
2024-09-10
Estimated Expiration
2041-02-25

AI Technical Summary

Technical Problem

Existing behavior recognition systems face inefficiencies in ROI setting due to manual adjustments and camera angle variations, leading to inconsistent and time-consuming settings that hinder scalability and accurate recognition of spatial states and actions.

Method used

An automated ROI setting method that utilizes heat maps generated from skeletal part mappings in videos to determine optimal regions for behavior recognition, based on frequency analysis and user specifications, enhancing the efficiency of ROI placement.

Benefits of technology

This approach allows for more efficient and accurate ROI settings, improving the scalability and effectiveness of behavior recognition systems by reducing manual effort and ensuring relevance to the actions being recognized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548059000010
    Figure 0007548059000010
  • Figure 0007548059000004
    Figure 0007548059000004
  • Figure 0007548059000012
    Figure 0007548059000012
Patent Text Reader

Abstract

To realize streamlining in ROI settings.SOLUTION: A setting method causes a computer to execute processing for acquiring a video, using time-series data of skeleton information obtained by skeleton detection of a first object included in the video to generate, for each skeleton part, a map mapping the position of the skeleton part, and setting ROI to be used in recognizing the space state indicating the relationship between the first object and the space, based on the frequency at which the mapping is observed around a second object included in the map generated for each skeleton part.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a setting method, a setting program, and a setting device. [Background technology]

[0002] There is a known behavior recognition technology that recognizes human behavior from video. One behavior recognition technology recognizes more complex behaviors than basic actions by comparing basic actions recognized from video using a machine learning model such as Deep Learning with combinations of basic actions set in rules. In this case, so-called ROI (Region of Interest) may be set in the rules to include spatial conditions that indicate the relationship between the person recognized from the video and the surrounding space. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Japanese Patent Application Publication No. 9-044758 [Patent Document 2] JP 2019-096006 A [Patent Document 3] JP 2012-059271 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, the above ROI settings are left to manual settings by businesses that provide systems and services using behavior recognition technology and their users. Furthermore, since the camera shooting angle of the subject is not necessarily the same for each video, it is difficult to apply ROI settings used to recognize the same behavior to videos captured by different cameras. These aspects make ROI settings inefficient.

[0005] In one aspect, the present invention aims to provide a setting method, a setting program, and a setting device that can realize efficient ROI setting. [Means for solving the problem]

[0006] In one embodiment of the setting method, a computer executes a process of acquiring a video, generating a map for each skeletal part, mapping the positions of the skeletal parts, using time series data of skeletal information obtained by skeletal detection for a first object included in the video, and setting an ROI to be used for recognizing a spatial state indicating a relationship between the first object and space based on the frequency with which mapping is observed around a second object included in the map generated for each skeletal part. Effect of the Invention

[0007] It is possible to achieve more efficient ROI setting. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of a behavior recognition service according to a first embodiment. [Diagram 2] FIG. 2 is a schematic diagram showing an example of a method for recognizing higher-level actions. [Diagram 3] FIG. 3 is a diagram showing an example of a usage scene. [Figure 4] FIG. 4 is a schematic diagram showing an example of the sample video. [Diagram 5] FIG. 5 is a diagram illustrating an example of a heat map. [Figure 6] FIG. 6 is a diagram illustrating an example of a heat map. [Figure 7] FIG. 7 is a schematic diagram showing an example of a sample video. [Figure 8] FIG. 8 is a diagram illustrating an example of a heat map. [Figure 9] FIG. 9 is a diagram illustrating an example of a heat map. [Figure 10] FIG. 10 is a diagram illustrating an example of a functional configuration of the setting device according to the first embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a functional configuration of the behavior recognition device according to the first embodiment. [Figure 12] FIG. 12 is a flowchart of the ROI setting process according to the first embodiment. [Figure 13] FIG. 13 is a flowchart of the behavior recognition process according to the first embodiment. [Figure 14] FIG. 14 is a diagram showing an example of a usage scene. [Figure 15] FIG. 15 is a diagram illustrating an example of a hardware configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] The setting method, setting program, and setting device according to the present application will be described below with reference to the accompanying drawings. Note that the disclosed technology is not limited to these embodiments. Each embodiment can be appropriately combined as long as the processing contents are not contradictory. EXAMPLES

[0010] [Example of behavior recognition service] FIG. 1 is a diagram illustrating an example of a behavior recognition service according to a first embodiment. The behavior recognition service 1 illustrated in FIG. 1 provides a service for recognizing the behavior of a subject, for example, a person, from an image captured by a camera 2. In such a behavior recognition service 1, a higher-level behavior that becomes complicated by combining a plurality of actions is recognized as a recognition target, merely as an example. For example, examples of the higher-level behavior may be any behavior, such as a work behavior, a suspicious behavior, or a purchasing behavior.

[0011] With the exception of the above-mentioned behavior recognition service 1, recognition of "top behaviors" requires the preparation of a large amount of learning data, such as videos containing the behavior. It can be practically difficult to prepare such a large amount of learning data, or even if it is possible to prepare a large amount of learning data, it can take time and effort, making it difficult to introduce into the field.

[0012] In order to eliminate the need to prepare such a large amount of learning data, the above-mentioned behavior recognition service 1 recognizes higher-level behaviors based on combinations of "elementary behaviors" recognized from "basic actions" performed in daily life through spatial analysis and time-series analysis, which will be described later.

[0013] As shown in FIG. 1, the behavior recognition service 1 may include an object recognition function 3, a basic action recognition function 4, a spatial state recognition function 5, a higher-level behavior recognition function 6, and the like.

[0014] The object recognition function 3 is a function for recognizing objects from the video captured by the camera 2. The term "object" here refers to the subject of the video that is the target of behavior recognition, and may include, for example, a person who is the target of behavior recognition. In addition to people, objects may also include objects related to behavior recognition, such as tools used by people and fixtures, goods, or equipment placed in the environment.

[0015] As an embodiment, the object recognition function 3 recognizes an object for each frame of a video. The term "recognition" here may include recognition of an individual or class of object, as well as recognition of an area in which an object exists, so-called object detection. Such object recognition may be realized by a machine learning model, such as a CNN (Convolutional Neural Network), in which the object has been trained according to any machine learning algorithm, such as deep learning, as an example only. In addition, the object recognition function 3 applies a process called skeleton detection or posture detection (posture estimation) to a person among the objects, thereby extracting skeleton information including skeleton parts, such as the positions of each joint. The coordinates of each joint may be two-dimensional coordinates or three-dimensional coordinates.

[0016] The basic action recognition function 4 is a function that recognizes basic actions from the skeletal information of each frame. The "basic action" referred to here may include "whole body actions" in which movement appears in the whole body of a person, and "partial actions" in which movement appears in a part of the body of a person. Examples of "whole body actions" include actions such as "walking", "running", and "stopping". Examples of "partial actions" include actions such as "raising the right hand", "looking down", and "looking forward". These "whole body actions" and "partial actions" are "basic actions" performed in daily life, and are simpler than "higher actions". Therefore, it is easy to collect images of "basic actions", and high-precision recognition can be achieved by a trained machine learning model. As just one example, recognition of basic actions can be achieved by a machine learning model that has been trained to recognize basic actions according to any machine learning algorithm, such as a neural network or a classifier.

[0017] The spatial state recognition function 5 recognizes a spatial state indicating the relationship between a person obtained by object recognition and the space around the person. The "space" referred to here may be defined by a Region of Interest (ROI), also called a region of interest or a region of interest, as an example. For example, the spatial state recognition function 5 performs spatial analysis such as determining whether a person and a space are inside or outside the area, or determining a threshold value for the distance between a person and a space.

[0018] As one aspect, the spatial state recognition function 5 can recognize a spatial state by determining whether the area between a person and space is inside or outside the area. For example, an example of an ROI is set in the area of ​​a keyboard obtained by object recognition, or in a surrounding area including the area of ​​the keyboard. In this case, the spatial state recognition function 5 determines whether the position of the left wrist, among the joints included in a skeleton in which the 3D skeletal coordinates of a person are modeled, is included in the ROI. As a result, if the position of the left wrist is included in the ROI, the spatial state "keyboard operation" is recognized.

[0019] As another aspect, the spatial state recognition function 5 can recognize the spatial state by determining a threshold value of the distance between the person and the space. For example, as an example of the ROI, an ROI is set in the area of ​​a chair obtained by object recognition, or in a surrounding area including the area of ​​the chair. In this case, the spatial state recognition function 5 determines whether or not the distance between the center position of the waist calculated from the positions of the right waist and the left waist among the joints included in the skeleton in which the 3D skeletal coordinates of a person are modeled, and the center of gravity position of the ROI is equal to or less than a threshold value. As a result, if the distance between the center position of the waist and the center of gravity position of the ROI is equal to or less than a threshold value, the spatial state "sitting on a chair" is recognized.

[0020] The higher-level behavior recognition function 6 is a function for recognizing higher-level behaviors. As shown in Fig. 1, the higher-level behavior recognition function 6 may include a component behavior recognition function 6A and a scenario recognition function 6B.

[0021] The element action recognition function 6A is a function that recognizes element actions by performing a time series analysis of the recognition results of basic actions and / or the recognition results of spatial states. For example, the element action recognition function 6A compares the time series data of the recognition results regarding one or more basic actions and / or the time series data of the spatial state with the element action recognition rules 7A. The element action recognition rules 7A define at least one or both of a time series pattern and a spatial state regarding one or more basic actions for each element action to be recognized. For example, examples of the time series pattern include the continuity of the basic action and / or the spatial state, and a state transition of the basic action and / or the spatial state.

[0022] The scenario recognition function 6B is a function that recognizes higher-level actions by checking the recognition results of element actions against scenario recognition rules 7B. In the scenario recognition rules 7B, a combination of element actions is defined as a scenario for each higher-level action to be recognized. Such a scenario can be defined by sequence, logical operation, etc.

[0023] These element behavior recognition rules 7A and scenario recognition rules 7B can be set not only by system definition but also by user definition. For example, the element behavior recognition rules 7A and scenario recognition rules 7B can be customized by a user U, such as a system engineer of a business entity providing the above behavior recognition service 1 or a customer of the above behavior recognition service 1, by editing the element behavior recognition rules 7A and scenario recognition rules 7B.

[0024] FIG. 2 is a schematic diagram showing an example of a method for recognizing higher-level actions. FIG. 2 shows, as an example only, time-series data of basic action recognition results for the whole body and each part of the right arm, face, and waist. Furthermore, FIG. 2 shows, as an example only, an example in which basic action IDs (IDentifications) corresponding to labels of basic action recognition results are plotted in time series. Furthermore, FIG. 2 shows, in the time-series data of basic action recognition results plotted for the whole body and each part, portions that satisfy the time-series patterns of basic actions defined in the component action recognition rules 7A are hatched.

[0025] In the example shown in FIG. 2, the time series data of the recognition result of the basic movements of the whole body, the right arm, and the face from time t1 to time t3 satisfy the time series pattern of the basic movements of the whole body, the right arm, and the face defined as the recognition rule of element action "B" in the element action recognition rule 7A. As a result, the element action recognition function 6A recognizes the element action "B" at time t3. Furthermore, the time series data of the recognition result of the basic movement of the right arm from time t3 to time t7 satisfy the time series pattern of the basic movement of the right arm defined as the recognition rule of element action "A" in the element action recognition rule 7A. As a result, the element action recognition function 6A recognizes the element action "A" at time t7. Furthermore, the time series data of the recognition result of the basic movement of the waist from time t5 to time t9 satisfy the time series pattern of the basic movement of the waist defined as the recognition rule of element action "P" in the element action recognition rule 7A. As a result, the element action recognition function 6A recognizes the element action "P" at time t9. Furthermore, the time series data of the recognition results of the basic movements of the whole body and the right arm from time t6 to time t10 satisfies the time series pattern related to the basic movements of the whole body and the right arm defined as the recognition rule for elemental action "J" in elemental action recognition rules 7A. As a result, elemental action recognition function 6A recognizes elemental action "J" at time t10. The order in which the combinations of these four elemental actions "A", "B", "J" and "P" are recognized matches the scenario order "B", "A", "P", "J" defined as the recognition rule for higher-level action "X" in scenario recognition rules 7B. Therefore, scenario recognition function 6B recognizes higher-level action "X" at time t10.

[0026] In addition, in Fig. 2, an example is given in which the time series data of the basic action recognition result is compared with the time series pattern of the basic action defined in the element action recognition rule 7A, but the present invention is not limited to this. For example, in addition to the comparison illustrated in Fig. 2, the element action may be recognized with an additional requirement of whether or not the spatial state defined in the element action recognition rule 7A has been recognized by the spatial state recognition function 5. Also, the comparison of the time series data of the basic action recognition result with the time series pattern of the basic action defined in the element action recognition rule 7A is not necessarily performed, and the element action may be recognized with only the requirement of whether or not the spatial state defined in the element action recognition rule 7A has been recognized by the spatial state recognition function 5.

[0027] [One aspect of the issue] As one aspect of the challenge, as explained in the Background Technology section above, there is a problem with the efficiency of setting ROI.

[0028] For example, the setting of the ROI is left to manual setting by a user U, such as a system engineer of a business entity providing the behavior recognition service 1 or a customer of the behavior recognition service 1. Furthermore, since the camera's shooting angle with respect to the subject, that is, the so-called camera angle, differs for each camera, it is difficult to reuse the ROI set in the video captured by one camera for the video in which a common element behavior or higher-level behavior is to be recognized. For this reason, manual setting of the ROI on the video for each camera angle, for example, drawing operation of the ROI via a GUI (Graphical User Interface), is required. Therefore, manual setting of one ROI is time-consuming, and the number of manual settings increases as the number of videos to be set with ROI increases, which is inefficient.

[0029] In addition, when setting the ROI, if the skeletal part to be compared with the ROI, for example, the joints, is not also specified, the spatial state recognition may not function. This is because if the part to be compared with the ROI is not changed for each camera angle, the spatial state may not be recognized. For example, if the part to be compared with the ROI is fixed, the spatial state may not be recognized due to the part being missed due to the occlusion caused by obstacles between the optical center of the camera and the object, for example, the human body. In this way, the efficiency of setting the ROI is reduced by the effort of specifying the part to be compared with the ROI for each camera angle.

[0030] This decrease in efficiency reduces the scalability of existing systems, and can be one of the motivations that hinder the introduction of the above-mentioned behavior recognition service 1. For example, the more cameras an existing system, such as a monitoring system or an intercom system, has, the more work it takes to set the ROI. This hinders the full use of the advantage of behavior recognition service 1, which is that it can utilize the cameras of existing systems.

[0031] However, there are problems to be solved in realizing automatic setting of ROI. For example, let us take an example of an advanced technology that automatically sets ROI around an object based on the viewpoint that the position where ROI is set is related to the position of an object among the objects included in the video. This advanced technology is distinguished from the conventional technology described in publicly known patent literature, non-patent literature, etc.

[0032] As one aspect, the above-mentioned advanced technology has an aspect of setting an ROI that does not contribute to the recognition of spatial conditions, and furthermore, element actions and higher-level actions. For example, take a usage scene in which an ROI is set on an automatic teller machine (ATM) from the aspect of recognizing higher-level actions, such as the use of the ATM. In this case, even if the above-mentioned advanced technology sets an ROI around the ATM, the ROI may be set on a part where no operation unit such as a touch panel is installed, such as the side or back of the ATM. Even if the presence of a person in such an ROI is detected, the relevance to the action of operating the ATM is low. For this reason, the ROI set by the above-mentioned advanced technology has an aspect of being unsuitable for practical use, since erroneous recognition and recognition omissions occur.

[0033] On the other hand, the above-mentioned evolution technique only sets the ROI. Therefore, even if the position of the ROI is set appropriately, the part where occlusion occurs changes depending on the camera angle. Therefore, the above-mentioned evolution technique has an aspect that it is difficult to appropriately set the part of the skeleton to be compared with the ROI.

[0034] [One aspect of problem-solving approaches] Therefore, in this embodiment, from the perspective of realizing automatic setting of ROI, a setting function is provided that sets ROI based on the frequency with which mapping is observed around objects on a heat map generated for each part by mapping the positions of skeletal parts detected from each frame of the video.

[0035] When the ROI is automatically set in this way, the specification of the object to be set as the ROI can be accepted as an example of user specification. As just one example, when the ROI to be used for spatial analysis is set in a usage scene in which behavioral recognition regarding the use of an ATM is performed, the specification of the ATM to be set as the ROI among the objects obtained by object detection from the video can be accepted. In this case, the object can be selected from the bounding box displayed for each object in the video as a result of object detection, or from a list in which the class names of the objects are listed. Furthermore, from the aspect of recognizing the spatial state with respect to the part where the operation unit such as a touch panel is installed, the specification of the relative position of the ROI with respect to the ATM, such as "front", "back", "left", "right", "up" or "down", can also be accepted.

[0036] FIG. 3 is a diagram showing an example of a usage scene. FIG. 3 shows, as an example only, user definitions of spatial analysis, time series analysis, and scenario analysis performed under a usage scene in which behavior recognition regarding ATM usage is performed. In the example shown in FIG. 3, it is defined that a spatial state "feet in the ROI in front of the ATM" is performed by spatial analysis to determine whether or not a foot is in front of the ATM. That is, in this example, it means that the ATM is specified as a setting target of the ROI and "front" is specified as the relative position of the ROI with respect to the ATM. Furthermore, it is defined that a time series analysis is performed to determine whether or not the spatial state of feet in front of the ATM satisfies a specific time condition, for example, whether or not it continues for a certain period of time or a specific number of frames. Then, it is defined that a scenario analysis is performed to determine whether or not an element behavior has occurred that matches the scenario "standing in front of the ATM" including an element behavior in which the spatial state of feet in front of the ATM satisfies a specific time condition.

[0037] Under such user designation, in the setting function according to the present embodiment, the above heat map is generated using a sample of a video of a behavior scene to be the subject of behavior recognition, for example, a scene in which an ATM is used. Hereinafter, the sample of the video captured by the camera 2 that is used to generate the above heat map may be referred to as a "sample video."

[0038] Here, the sample video is not necessarily limited to one, and may be multiple. As just one example, sample video captured by the same camera 2 can be used to generate the above heat map. In this case, the sample video is not necessarily limited to being captured by the same camera 2. For example, even if the camera is different from camera 2, if the composition of the subject is common between the cameras, there is a high possibility that the ROI suitable for behavior recognition is also common. For this reason, sample video captured at the same camera angle can also be used to generate the heat map.

[0039] Using such sample videos, the setting function according to the present embodiment extracts behavior scenes to be the target of behavior recognition for each sample video. As merely one example, a video of a section in which a person is recognized as an object by the above-mentioned object recognition may be extracted as a behavior scene from the sample video.

[0040] Next, the setting function according to this embodiment maps the positions of skeletal parts, for example, joints, using time series data of skeletal information obtained by skeletal detection for the above-mentioned action scene. At this time, the positions of skeletal parts are mapped separately for each skeletal part. As an example only, when a skeleton is represented by 13 joints, namely, the head, the left and right wrists, elbows, shoulders, waist, knees, and ankles, 13 heat maps are obtained by mapping. Furthermore, the mapping can be repeated a number of times corresponding to the number of sample images used to generate the heat maps.

[0041] The setting function according to the present embodiment then tallies up, for each heat map, the number of times that the heat map is mapped for each of the multiple regions that the heat map is divided into, thereby obtaining a heat map in which the number of times that the heat map is mapped for each region is tallied.

[0042] Then, the setting function of this embodiment sets an ROI based on the number of times that the object designated by the user as the target for setting an ROI and the area surrounding it are mapped among the areas included in the heat map of each skeletal part.

[0043] [Example of ROI settings] Fig. 4 is a schematic diagram showing an example of a sample video. Fig. 4 shows, as an example only, a sample video 21 in which a person is standing in front of an ATM. Furthermore, Fig. 4 shows objects Obj1 and Obj2 obtained as a result of object detection on the sample video 21 by bounding boxes.

[0044] As shown in FIG. 4, two objects, a human object Obj1 and an ATM Obj2, are obtained from the sample video 21 by object detection. The bounding box of the ATM Obj2 can be selected as an object for setting an ROI on the sample video 21 displaying such object detection results. In addition, the object Obj2 can be selected as an object for setting an ROI from a list in which the objects Obj1 and Obj2 are displayed in a list format as a result of object detection. Note that, although FIG. 4 illustrates the sample video 21 including the human object Obj1, a human does not necessarily need to be included in the user's designation, and therefore a sample video not including the human object Obj1 may be used for user designation.

[0045] FIG. 5 is a diagram showing an example of a heat map. FIG. 5 shows a heat map 41 in which the positions of the midpoints of two skeletal parts, the right ankle and the left ankle, are mapped on the sample video 21 from the time-series data of skeletal information obtained by skeletal detection for the action scene of the sample video 21 shown in FIG. 4. Furthermore, FIG. 5 plots the number of times that the midpoints of the right ankle and the left ankle are mapped for each grid obtained by dividing the heat map 41 into meshes. Furthermore, FIG. 5 displays the number of times that the mapping is narrowed down to the grid corresponding to the front of the ATM, which is specified by the user as the relative position of the ROI to the ATM in the heat map 41. Note that in FIG. 5, skeletal parts such as the left and right wrists, elbows, shoulders, waists, knees, and ankles are shown as white circles, and the positions of the midpoints of the right ankle and the left ankle are shown as hatched ellipses.

[0046] FIG. 6 is a diagram showing an example of a heat map. FIG. 6 shows a heat map 42 in which the positions of the midpoints of two skeletal parts, the right hip and the left hip, are mapped out of the time-series data of skeletal information obtained by skeletal detection for the action scene of the sample video 21 shown in FIG. 4. Furthermore, FIG. 6 plots the number of times that the midpoints of the right hip and the left hip are mapped for each grid obtained by dividing the heat map 42 into meshes. Furthermore, FIG. 6 displays the number of times that the mapping is narrowed down to the grid corresponding to the front of the ATM, which is specified by the user as the relative position of the ROI to the ATM in the heat map 42. Note that in FIG. 6, skeletal parts such as the left and right wrists, elbows, shoulders, hips, knees, and ankles are shown as white circles, and the positions of the midpoints of the right hip and the left hip are shown as hatched ellipses.

[0047] As an example only, an example will be given in which an ROI is set based on two heat maps, a heat map 41 shown in FIG. 5 and a heat map 42 shown in FIG. 6. In this case, a grid in which the highest mapping count is observed is selected from among the grids corresponding to the front of the ATM designated by the user as the relative position of the ROI to the ATM between the heat maps 41 and 42. That is, a grid in which the mapping count "80" is observed is selected from the heat map 41 shown in FIG. 5, and the position and size of the grid are set as the ROI. In addition, a skeletal part "the midpoint of the right ankle and the left ankle" corresponding to the heat map 41 having the grid in which the highest mapping count is observed is set as a skeletal part to be compared with the ROI.

[0048] In this way, in the ROI setting examples shown in Figures 4 to 6, the ROI can be set in an area highly related to the action of operating the ATM, such as the front of the ATM. Furthermore, in the ROI setting examples shown in Figures 4 to 6, a skeletal part that is likely to be detected by skeletal detection during an action can be set as a part to be compared with the ROI, and the ROI can be set in an area where the skeletal part is likely to be detected. Therefore, according to the ROI setting examples shown in Figures 4 to 6, an ROI that contributes to the recognition of a spatial state, and therefore elemental actions and higher-level actions, can be set.

[0049] [Another example of ROI setting] Fig. 7 is a schematic diagram showing an example of a sample video. Fig. 7 shows, as an example only, a sample video 22 in which a person is standing in front of an ATM. Furthermore, Fig. 7 shows objects Obj3 and Obj4 obtained as a result of object detection on the sample video 22 by bounding boxes.

[0050] As shown in FIG. 7, two objects, a human object Obj3 and an ATM Obj4, are obtained from the sample video 22 by object detection. The bounding box of the ATM Obj4 can be selected as an object for setting an ROI on the sample video 22 displaying the result of such object detection. In addition, the object Obj2 can be selected as an object for setting an ROI from a list in which the objects Obj3 and Obj4 are displayed in a list format as a result of object detection. Note that, although FIG. 7 illustrates the sample video 22 including the human object Obj3, a person does not necessarily need to be included in the user's designation, and therefore a sample video of a frame that does not include the human object Obj3 may be used for the user's designation.

[0051] FIG. 8 is a diagram showing an example of a heat map. FIG. 8 shows a heat map 43 in which the positions of the midpoints of two skeletal parts, the right ankle and the left ankle, are mapped on the sample video 22 from the time-series data of skeletal information obtained by skeletal detection for the action scene of the sample video 22 shown in FIG. 7. Furthermore, FIG. 8 plots the number of times that the midpoints of the right ankle and the left ankle are mapped for each grid obtained by dividing the heat map 43 into meshes. Furthermore, FIG. 8 displays the number of times that the mapping is narrowed down to the grid corresponding to the front of the ATM, which is specified by the user as the relative position of the ROI to the ATM in the heat map 43. Note that in FIG. 8, skeletal parts such as the left and right wrists, elbows, shoulders, waists, knees, and ankles are shown with white circles, and the positions of the midpoints of the right ankle and the left ankle are shown with hatched ellipses.

[0052] FIG. 9 is a diagram showing an example of a heat map. FIG. 9 shows a heat map 44 in which the positions of the midpoints of two skeletal parts, the right hip and the left hip, are mapped out of the time-series data of skeletal information obtained by skeletal detection for the action scene of the sample video 22 shown in FIG. 7. Furthermore, FIG. 9 plots the number of times that the midpoints of the right hip and the left hip are mapped for each grid obtained by dividing the heat map 44 into meshes. Furthermore, FIG. 9 displays the number of times that the mapping is narrowed down to the grid corresponding to the front of the ATM, which is specified by the user as the relative position of the ROI to the ATM in the heat map 44. Note that in FIG. 9, skeletal parts such as the left and right wrists, elbows, shoulders, hips, knees, and ankles are shown as white circles, and the positions of the midpoints of the right hip and the left hip are shown as hatched ellipses.

[0053] As another example, an example will be given in which an ROI is set based on two heat maps, a heat map 43 shown in FIG. 8 and a heat map 44 shown in FIG. 9. In this case, too, a grid in which the highest mapping count is observed is selected from among the grids corresponding to the front of the ATM designated by the user as the relative position of the ROI to the ATM between the heat maps 43 and 44. That is, a grid in which the mapping count "60" is observed is selected from the heat map 44 shown in FIG. 9, and the position and size of the grid are set as the ROI. In addition, a skeletal part "the midpoint between the right hip and the left hip" corresponding to the heat map 44 having the grid in which the highest mapping count is observed is set as a skeletal part to be compared with the ROI.

[0054] In this way, according to the ROI setting example shown in Figs. 7 to 9, as in the ROI setting example shown in Figs. 4 to 6, an ROI can be set in an area highly related to the behavior of operating an ATM, such as the front of an ATM. Furthermore, according to the ROI setting example shown in Figs. 7 to 9, a wall existing between the optical center of the camera and the object of a person to be recognized as a target of behavior recognition becomes an obstacle, and occlusion occurs in the ankle among skeletal parts. Even in such a situation where occlusion of the ankle occurs, the waist can be set as a part to be compared with the ROI instead of the ankle, and the ROI can be set in an area where the skeletal part is easily detected. Therefore, even in the ROI setting example shown in Figs. 7 to 9, an ROI that contributes to the recognition of a spatial state, and therefore elemental behaviors and higher-level behaviors, can be set.

[0055] As described above, the setting function according to the present embodiment can realize automatic setting of ROI that contributes to the recognition of the spatial state. Therefore, the setting function according to the present embodiment can realize efficient setting of ROI. Furthermore, by realizing efficient setting of ROI, motivation for introducing the above-mentioned behavior recognition service 1 can be increased.

[0056] [Configuration of the setting device] Next, a functional configuration of the setting device 10 having the above-mentioned setting function will be described. Fig. 10 is a diagram showing an example of a functional configuration of the setting device 10 according to the first embodiment. In Fig. 10, blocks corresponding to the functions of the setting device 10 are diagrammed.

[0057] The setting device 10 shown in Fig. 10 can be implemented by installing a setting program corresponding to the above setting function as package software or online software on any computer. For example, the setting device 10 may be implemented as a SaaS (Software as a Service) type application to provide the above setting function as a cloud service. Without being limited thereto, the setting device 10 can be implemented as a server that provides the above setting function on-premise.

[0058] 10, the setting device 10 includes a reception unit 11, an image acquisition unit 12, an object recognition unit 13, a heat map generation unit 14, an ROI setting unit 15, and an ROI information storage unit 16. Note that the setting device 10 may include various functional units of known computers, such as functions corresponding to an input / output interface and a communication interface, in addition to the functional units shown in FIG.

[0059] Functional units such as the reception unit 11, the image acquisition unit 12, the object recognition unit 13, the heat map generation unit 14, and the ROI setting unit 15 shown in FIG. 10 are virtually realized by a hardware processor. For example, the hardware processor may be a central processing unit (CPU), a micro processing unit (MPU), a graphics processing unit (GPU), or a general-purpose computing on GPU (GPGPU). The processor reads out an operating system (OS) and other programs such as the setting program from a storage device (not shown), such as a hard disk drive (HDD), an optical disk, or a solid state drive (SSD). The processor then executes the setting program to develop a process corresponding to the functional units on a memory such as a random access memory (RAM). In this way, the setting program is executed, and as a result, the functional units are virtually realized as processes. Here, a CPU and an MPU are exemplified as examples of a processor, but the functional units may be realized by any processor, regardless of whether it is a general-purpose or specialized type. In addition, the above-mentioned functional units or parts of the functional units may be realized by hardwired logic such as an Application Specific Integrated Circuit (ASIC) or a Field Programmable Gate Array (FPGA).

[0060] The storage unit such as the ROI information storage unit 16 can be realized as an auxiliary storage device such as a HDD, optical disk, or SSD, or can be realized by allocating a part of the storage area of ​​the auxiliary storage device.

[0061] The reception unit 11 is a processing unit that receives various information. As an example, the reception unit 11 can receive various information via a terminal device (not shown). For example, the reception unit 11 receives a request for setting an ROI.

[0062] When receiving a request for setting an ROI in this way, the reception unit 11 can receive a designation of a sample video to be used for setting the ROI. For example, the reception unit 11 can receive a designation of a sample video or a group of sample videos to be used for setting the ROI on a list of sample videos or a group of sample videos in which a behavior scene to be a target of behavior recognition is captured for each camera 2.

[0063] In addition, the reception unit 11 can receive a designation of an object for which an ROI is to be set. As just one example, the reception unit 11 receives a designation of a range of an object for which an ROI is to be set on a sample video for which a designation used for setting an ROI has been received. For example, the designation of the range of an object can be realized by an operation input such as drag and drop, input of coordinates of points defining a figure such as a rectangle or an ellipse, such as a vertex, a center of gravity, or a center, or input of a silhouette of an area. Note that the designation of an object for which an ROI is to be set is not limited to a designation of a range, and may also receive an input of a class name of an object used in object detection.

[0064] Furthermore, when accepting the designation of an object for which an ROI is to be set, the accepting unit 11 can use the result of object detection on the sample video, as exemplified using Fig. 4 and Fig. 7. For example, the accepting unit 11 can accept a selection from a bounding box displayed for each object in the sample video as a result of object detection, or can accept a selection from a list of object class names.

[0065] Furthermore, the reception unit 11 can also receive a designation of a relative position of the ROI, as illustrated in Fig. 4 and Fig. 7. For example, the reception unit 11 can receive designation of directions such as "front", "back", "left", "right", "up" or "down". Note that the direction referred to here may be based on the viewpoint of the camera 2 or may be based on a designated object.

[0066] The image acquisition unit 12 is a processing unit that acquires sample images. Here, the image acquisition unit 12 can acquire at least one sample image for each camera for which an ROI is to be set, but can also acquire a group of two or more sample images. As merely one example, the image acquisition unit 12 can acquire sample images from a storage that accumulates images, for example, an auxiliary storage device such as a hard disk or optical disk, or a removable medium such as a memory card or a USB (Universal Serial Bus) memory. In addition, the image acquisition unit 12 can also acquire sample images from an external device (not shown) via a network NW.

[0067] The object recognition unit 13 is a processing unit that recognizes an object from a sample video. The object recognition unit 13 may correspond to the object recognition function 3 shown in FIG. 1. As an example only, the object recognition unit 13 executes the following object recognition for each sample video acquired by the video acquisition unit 12. That is, the object recognition unit 13 recognizes an object for each frame of the sample video. As described above, the "recognition" referred to here may include recognition of an individual or class of object, as well as recognition of an area in which an object exists, that is, so-called object detection. As an example only, such object recognition may be realized by a machine learning model, such as a CNN, in which an object has been trained according to any machine learning algorithm, such as deep learning. Then, the object recognition unit 13 applies a process called skeleton detection or posture detection (posture estimation) to a person among the objects, thereby extracting skeleton information including skeleton parts, such as the positions of each joint.

[0068] The heat map generating unit 14 is a processing unit that generates a heat map. As an example, the heat map generating unit 14 extracts a behavior scene to be a target of behavior recognition for each of K sample videos acquired by the video acquiring unit 12. For example, among the sample videos, a video of a section in which a person is recognized as an object by the above-mentioned object recognition can be extracted as a behavior scene. At this time, the result of object recognition by the object recognizing unit 13 does not necessarily have to be used. For example, a video of a section in which a change appears between frames according to an algorithm such as template matching, block matching, background difference, or optical flow can also be extracted as a behavior scene.

[0069] After the above-mentioned action scene is extracted, the heat map generating unit 14 maps the positions of skeletal parts, for example, joints, using time-series data of skeletal information obtained by skeletal detection for the section of the action scene. For example, the heat map generating unit 14 can map the positions of skeletal parts by distinguishing them for each unit for which the heat map is generated, for example, for each skeletal part. At this time, the heat map generating unit 14 can also map multiple skeletal parts as one by mapping the positions of the midpoints of multiple skeletal parts such as the left and right shoulders, the left and right hips, and the left and right ankles. When mapping is performed in this way, the heat map generating unit 14 counts the number of times mapping has been performed on each area into which the heat map is divided. Furthermore, the heat map generating unit 14 accumulates and adds up the counted values ​​of the number of times mapping has been performed for each area for each of K sample images acquired by the image acquiring unit 12.

[0070] As an example, the heat map generating unit 14 can count the number of times that mapping is performed on each grid obtained by dividing an arbitrary frame of the sample video into meshes. Here, the number and size of the grids used for meshing the heat map can be set to any value. For example, since the distance from the camera 2 to the object to be photographed differs for each camera 2, the size of the object appearing in the video also differs. For this reason, the number and size of the grids can be set based on the number of pixels corresponding to the length of the waist and neck section obtained by skeletal detection. For example, the number of grids can be set to be smaller or the size of the grid can be set to be larger as the number of pixels between the waist and neck increases, and the number of grids can be set to be larger or the size of the grid can be set to be smaller as the number of pixels between the waist and neck decreases. This allows the mesh size to be normalized by the length of the waist and neck section even if the size of the object differs for each camera 2.

[0071] This makes it possible to generate a heat map for each unit for which the heat map is to be generated, in which the number of times that the positions of skeletal parts for K sample images have been mapped is cumulatively added for each region.

[0072] The ROI setting unit 15 is a processing unit that sets an ROI. For example, the ROI setting unit 15 sets an ROI based on the number of mappings of an object designated by the user as a target for setting an ROI among the areas included in the heat map of each skeletal part and an area corresponding to the periphery of the object.

[0073] In one aspect, the ROI setting unit 15 selects, from among the heat maps generated by the heat map generating unit 14, a heat map having a grid in which the highest number of mapping times is observed.

[0074] More specifically, the ROI setting unit 15 executes the following process for each heat map generated by the heat map generating unit 14. That is, the ROI setting unit 15 extracts a grid with the highest number of mappings among grids that are located within a threshold distance from an object designated by the user as a target for setting an ROI and correspond to the relative position of the ROI designated by the user. Then, the ROI setting unit 15 compares the number of mappings between the grids extracted for each heat map generated by the heat map generating unit 14. At this time, the ROI setting unit 15 selects a heat map having a grid with the highest number of mappings observed among the grids.

[0075] When a heat map is selected in this way, the ROI setting unit 15 sets the position and size of the grid in which the highest mapping count is observed among the grids included in the selected heat map as the ROI. Furthermore, the ROI setting unit 15 sets the skeleton part corresponding to the selected heat map as the skeleton part to be compared with the ROI. The position of the ROI set in this way, the size of the ROI, and the skeleton part to be compared with the ROI are stored in the ROI information storage unit 16 as ROI information.

[0076] Note that, as an example, here, one grid in the selected heat map is set as the ROI, but one grid does not necessarily have to be set as the ROI, and multiple grids may be set as the ROI. For example, a blob of a grid corresponding to a specific percentage from the top, for example, the top 70%, of the total number of mappings in the selected heat map, or a hull including the grid corresponding to a specific percentage from the top, for example, 70%, can be set as the ROI.

[0077] In addition, here, an example of selecting a heat map having a grid with the highest number of mappings is given, but it is not necessary to select a heat map having a grid with the highest number of mappings. For example, when the difference between the first and second highest mappings is equal to or less than a threshold value after sorting the highest mappings observed in each heat map in descending order, a variance value is calculated from the distribution of mapping positions where the positions of the skeletal parts are mapped for each heat map. Then, a heat map with the smallest variance value of the mapping positions may be selected from among the heat maps. In this case, the skeletal part corresponding to the selected heat map is set as a part to be compared with the ROI. Then, an area including mapping positions that are included in a specific percentage, for example, 70%, from the top of the total mappings, such as a polygon or an ellipse, can be set as the ROI, with the position corresponding to the average of the distribution of mapping positions in the selected heat map as the center.

[0078] [Configuration of behavior recognition device] Next, a description will be given of a functional configuration of the behavior recognition device 30 that realizes functions corresponding to the above-mentioned behavior recognition service 1. Fig. 11 is a diagram illustrating an example of a functional configuration of the behavior recognition device 30 according to Example 1. In Fig. 11, blocks corresponding to functions of the behavior recognition device 30 are diagrammed.

[0079] As an embodiment, the behavior recognition device 30 can be implemented by installing a behavior recognition program that realizes the above behavior recognition service 1 on an arbitrary computer as package software or online software. For example, the behavior recognition device 30 may be implemented as a SaaS-type application to provide the above behavior recognition service 1 as a cloud service. Without being limited thereto, the behavior recognition device 30 can be implemented as a server that provides a function corresponding to the above behavior recognition service 1 on-premise.

[0080] Furthermore, as shown in FIG. 11, a camera 2 corresponding to an example of an imaging device may be connected to the behavior recognition device 30. The behavior recognition device 30 and the camera 2 may be communicatively connected to each other via any network. For example, the network may be any type of communication network, such as the Internet or a LAN (Local Area Network), whether wired or wireless. For convenience of explanation, an example in which one camera 2 is connected to one behavior recognition device 30 is shown in FIG. 1 and FIG. 11, but multiple cameras 2 may be connected to one behavior recognition device 30.

[0081] 11, the behavior recognition device 30 includes an image acquisition unit 32, an object recognition unit 33, a basic action recognition unit 34, a spatial state recognition unit 35, an ROI information storage unit 16, a higher-level behavior recognition unit 36, a first rule storage unit 37A, and a second rule storage unit 37B. Note that the behavior recognition device 30 may include various functional units of known computers, such as functions corresponding to an input / output interface and a communication interface, in addition to the functional units shown in FIG.

[0082] Functional units such as the image acquisition unit 32, the object recognition unit 33, the basic action recognition unit 34, the spatial state recognition unit 35, the ROI information storage unit 16, and the upper behavior recognition unit 36 ​​shown in FIG. 11 are virtually realized by a hardware processor. For example, the hardware processor may be a CPU, an MPU, a GPU, or a GPGPU. That is, the processor reads out a program such as an OS and a behavior recognition program in which the behavior recognition service 1 is packaged from a storage device not shown, such as an HDD, an optical disk, or an SSD. Then, the processor executes the behavior recognition program to develop a process corresponding to the functional units on a memory such as a RAM. In this way, the functional units are virtually realized as processes as a result of the execution of the behavior recognition program. Here, a CPU or an MPU is exemplified as an example of a processor, but the functional units may be realized by any processor, regardless of whether it is a general-purpose or specialized type. In addition, the functional units or a part of the functional units may be realized by hardwired logic such as an ASIC or an FPGA.

[0083] Storage units such as the ROI information storage unit 16, the first rule storage unit 17A, and the second rule storage unit 17B can be realized as auxiliary storage devices such as HDDs, optical discs, and SSDs, or can be realized by allocating a portion of the storage area of ​​the auxiliary storage device.

[0084] The image acquisition unit 32 is a processing unit that acquires images. As one aspect, the image acquisition unit 32 can acquire images transmitted from the camera 2 in units of frames. As another aspect, the image acquisition unit 32 can buffer the images transmitted from the camera 2 in a predetermined storage area and acquire a series of images. Here, the information source from which the image acquisition unit 32 acquires images may be any information source and is not limited to the camera 2. For example, the image acquisition unit 32 can acquire images from a storage that accumulates images, such as an auxiliary storage device such as a hard disk or an optical disk, or a removable medium such as a memory card or a USB memory. In addition, the image acquisition unit 32 can acquire images from an external device other than the camera 2 via the network NW.

[0085] The object recognition unit 33 is a processing unit that recognizes an object from a video. The object recognition unit 33 may correspond to the object recognition function 3 shown in FIG. 1. As an example only, the object recognition unit 33 executes the following object recognition for each video acquired by the video acquisition unit 32. That is, the object recognition unit 33 recognizes an object for each frame of the video. Such object recognition may be realized by a machine learning model, for example, a CNN, in which an object has been trained according to an arbitrary machine learning algorithm, for example, deep learning, for example, as an example only. Then, the object recognition unit 33 applies a process called skeleton detection or posture detection (posture estimation) to a person among the objects, thereby extracting skeleton information including skeletal parts, for example, the positions of each joint.

[0086] The basic action recognition unit 34 is a processing unit that recognizes basic actions from skeletal information of each frame. The basic action recognition unit 34 may correspond to the basic action recognition function 4 shown in FIG. 1. As merely one example, recognition of basic actions may be realized by a machine learning model that has been trained to recognize basic actions according to an arbitrary machine learning algorithm, such as a model such as a neural network or a classifier. In this case, the basic action recognition unit 34 inputs skeletal parts, such as the positions of each joint, acquired by the object recognition unit 33 on a frame-by-frame basis to the above model. This allows basic action recognition results for the whole body and each part to be obtained on a frame-by-frame basis.

[0087] The spatial state recognition unit 35 is a processing unit that recognizes a spatial state indicating a relationship between a person and the space around the person obtained as an object recognition result by the object recognition unit 33. The spatial state recognition unit 35 may correspond to the spatial state recognition function 5 shown in FIG.

[0088] As one aspect, the spatial state recognition unit 35 can recognize the spatial state by determining whether a person and a space are inside or outside the area, using the ROI information stored in the ROI information storage unit 16. Here, the ROI information set by the setting device 10 shown in FIG. 10 can be set in the ROI information storage unit 16.

[0089] As merely one example, the ROI described with reference to Fig. 5 is set as an example of the ROI, and the midpoints of the left and right ankles are set as an example of the parts to be compared with the ROI. In this case, the spatial state recognition unit 35 determines whether or not the positions of the midpoints of the left and right ankles among the skeletal parts included in the skeleton modeled on the human 3D skeletal coordinates are included in the ROI shown in Fig. 5, i.e., the grid of the hatched portion shown in Fig. 5. As a result, if the positions of the midpoints of the left and right ankles are included in the ROI, the spatial state "ankles are in the ROI in front of the ATM" is recognized.

[0090] As another example, the ROI described with reference to Fig. 9 is set as an example of the ROI, and the midpoints of the left and right hips are set as an example of a part to be compared with the ROI. In this case, the spatial state recognition unit 35 judges whether or not the positions of the midpoints of the left and right hips among the skeletal parts included in a skeleton modeled with the 3D skeletal coordinates of a person are included in the ROI shown in Fig. 9, i.e., the grid of the hatched part shown in Fig. 9. As a result, if the positions of the left and right hips are included in the ROI, the spatial state "ankles are in the ROI in front of the ATM" is recognized.

[0091] The higher-level behavior recognition unit 36 ​​is a processing unit that recognizes higher-level behaviors. The higher-level behavior recognition unit 36 ​​may correspond to the higher-level behavior recognition function 6 shown in Fig. 1. As shown in Fig. 11, the higher-level behavior recognition unit 36 ​​has an element behavior recognition unit 36A and a scenario recognition unit 36B.

[0092] The element action recognition unit 36A is a processing unit that recognizes element actions by performing a time series analysis of the recognition result of the basic action and / or the recognition result of the spatial state. For example, the element action recognition function 6A compares the time series data of the recognition result regarding one or more basic actions and / or the time series data of the spatial state with the element action recognition rule 7A stored in the first rule storage unit 37A. The element action recognition rule 7A defines at least one or both of a time series pattern regarding one or more basic actions and a spatial state for each element action to be recognized. For example, examples of the time series pattern include the continuity of the basic action and / or the spatial state, and the state transition of the basic action and / or the spatial state.

[0093] The scenario recognition unit 36B is a processing unit that recognizes higher-level actions by checking the recognition result of the element actions against the scenario recognition rules 7B stored in the second rule storage unit 37B. In the scenario recognition rules 7B, a combination of element actions is defined as a scenario for each higher-level action to be recognized. Such a scenario can be defined by sequence, logical operation, etc.

[0094] These element behavior recognition rules 7A and scenario recognition rules 7B can be set not only by system definition but also by user definition. For example, the element behavior recognition rules 7A and scenario recognition rules 7B can be customized by a user U, such as a system engineer of a business entity providing the above behavior recognition service 1 or a customer of the above behavior recognition service 1, by editing the element behavior recognition rules 7A and scenario recognition rules 7B.

[0095] [Processing flow] Next, a description will be given of the process flow of the setting device 10 and the behavior recognition device 30 according to the present embodiment. Here, the (1) ROI setting process executed by the setting device 10 will be described, and then the (2) behavior recognition process executed by the behavior recognition device 30 based on the ROI information set in the ROI setting process will be described.

[0096] (1) ROI setting process Fig. 12 is a flowchart showing the procedure of the ROI setting process according to the first embodiment. This process is performed when a request for ROI setting is received, as an example only. As shown in Fig. 12, the receiving unit 11 receives a designation of a sample video to be used for setting the ROI (step S101). Next, the video acquisition unit 12 acquires the sample video designated in step S101 (step S102).

[0097] The receiving unit 11 also receives a designation of an object for which an ROI is to be set (step S103). In step S103, the receiving unit 11 can further receive a designation of a relative position of the ROI together with the designation of the object for which an ROI is to be set.

[0098] Thereafter, loop process 1 is started in which the processes from step S104 to step S108 are repeated a number of times corresponding to the number K of sample videos acquired in step S102.

[0099] That is, the object recognition unit 13 recognizes objects for each frame of the sample video (step S104). Next, the heat map generation unit 14 extracts behavior scenes to be the target of behavior recognition from the sample video (step S105).

[0100] Then, loop process 2 is started, in which the processes from step S106 to step S108 are repeated a number of times corresponding to the number M of heat maps to be generated.

[0101] That is, the heat map generation unit 14 uses time series data of skeletal information obtained by skeleton detection for the section of the behavior scene extracted in step S105 to map the positions of skeletal parts corresponding to the heat map being processed in loop processing 2 (step S106).

[0102] Then, the heat map generating unit 14 counts the number of times mapping was performed in step S106 for each of the regions into which the heat map is divided (step S107).

[0103] Then, the heat map generating unit 14 updates the heat map by accumulating, for each region, the aggregated value of the number of mapping times aggregated for each region in step S107 to the cumulative added value that has been accumulated for each region up to that point (step S108).

[0104] After that, the ROI setting unit 15 executes the following process for each heat map generated by the loop process 1. That is, the ROI setting unit 15 extracts a grid that is located within a threshold distance from the object designated by the user as the target for setting the ROI and has the highest number of mappings among the grids corresponding to the relative position of the ROI designated by the user (step S109).

[0105] Then, the ROI setting unit 15 compares the number of mapping times between the grids extracted for each heat map in step S109, and selects the heat map having the grid in which the highest number of mapping times is observed among the grids (step S110).

[0106] Next, the ROI setting unit 15 sets the position and size of the grid in which the highest mapping count is observed among the grids included in the heat map selected in step S110 as the ROI (step S111). The ROI setting unit 15 also sets the skeletal part corresponding to the heat map selected in step S110 as the skeletal part to be compared with the ROI (step S112).

[0107] Then, the ROI setting unit 15 stores the position of the ROI set in steps S111 and S112, the size of the ROI, and the skeletal part to be compared with the ROI as ROI information in the ROI information storage unit 16 (step S113), and ends the process.

[0108] (2) Behavior recognition processing 13 is a flowchart illustrating a procedure of the behavior recognition process according to the embodiment 1. This process is merely an example and is performed when a video is acquired from the camera 2, a storage, an external device connected to a network, or the like.

[0109] As shown in FIG. 13, the object recognition unit 33 executes object recognition including object detection, skeleton detection, and the like for each frame of the video captured by the video capture unit 32 (step S301).

[0110] Then, the basic action recognition unit 34 inputs the time-series data of the skeleton coordinates obtained in step S301 to a model that has been trained to recognize basic actions, and obtains a basic action recognition result output from the model (step S302).

[0111] In addition, the spatial state recognition unit 35 recognizes the spatial state for each frame of the video based on the relationship between the positions of skeletal parts set as parts to be compared with the ROI in step S112 shown in FIG. 12 from the human skeletal information obtained in step S301 and the space defined by the ROI set in step S111 shown in FIG. 12 (step S303).

[0112] Next, the component action recognition unit 36A checks the time series data of the basic action recognition result obtained in step S302 and / or the time series data of the spatial state obtained in step S303 against the component action recognition rule 7A stored in the first rule storage unit 37A. As a result, the component action recognition unit 36A recognizes the component action (step S304).

[0113] Then, the scenario recognition unit 36B compares the recognition result of the element action obtained in step S304 with the scenario recognition rule 7B stored in the second rule storage unit 37B, thereby recognizing a higher-level action (step S305).

[0114] Thereafter, the scenario recognition unit 36B outputs the label of the higher-level action obtained in step S305 as a recognition result (step S306), and ends the process.

[0115] The recognition result of the higher-level behavior may be output to any output destination. The "output destination" referred to here may be any hardware or software. For example, the recognition result of the higher-level behavior may be output to a service or function that executes any back-end process, such as a suspicious behavior monitoring process, depending on the recognition result of the higher-level behavior. In addition, the output destination of the higher-level recognition result may be a display device, a voice output device, an information processing device, or a mobile terminal device set by the user U of the behavior recognition service 1. The notification form may also be any form, such as the Web or email.

[0116] [One aspect of the effect] As described above, the setting device 10 according to the present embodiment sets the ROI based on the frequency of observation around the object on the heat map generated for each part by mapping the positions of skeletal parts detected from each frame of the video. Therefore, the setting device 10 according to the present embodiment can realize automatic setting of the ROI that contributes to the recognition of the spatial state. Therefore, the setting function according to the present embodiment can realize efficient setting of the ROI. Furthermore, the setting function according to the present embodiment can increase motivation to introduce the above-mentioned behavior recognition service 1 by realizing efficient setting of the ROI. EXAMPLES

[0117] Although the embodiments of the disclosed device have been described above, the present invention may be embodied in various different forms other than the above-described embodiments. Therefore, other embodiments included in the present invention will be described below.

[0118] [Second and subsequent element action recognition rules in the scenario] The setting function described in the above embodiment 1 can also be effectively applied to the case of setting an ROI to be used for recognizing each of a plurality of spatial states included in the scenario of the scenario recognition rule 7 B. An example of such a scenario is a scenario in which the spatial states defined in the elemental action recognition rule 7 A increase cumulatively in a time series.

[0119] One example is a scenario in which the spatial states included in the logical product of element action recognition rule 7A accumulate and increase over time, such as "element action 1: spatial state A -> element action 2: spatial state A & spatial state B -> element action 3: spatial state A & spatial state B & spatial state C."

[0120] Applying this to the ATM example, an example of recognizing the higher-level action "using an ATM" is based on a scenario such as "Elemental action 1: Put your foot in front of the ATM → Elemental action 2: Put your foot in front of the ATM and put your hand on the ATM panel."

[0121] Fig. 14 is a diagram showing an example of a usage scene. Fig. 14 shows, as an example only, user definitions of spatial analysis, time series analysis, and scenario analysis performed under a usage scene in which behavior recognition regarding ATM usage is performed.

[0122] In the example shown in FIG. 14, it is defined that the spatial state "feet in ROI in front of ATM" is generated by spatial analysis that determines whether feet are in front of ATM. Furthermore, it is defined that the spatial state "hands in ROI on ATM panel" is generated by spatial analysis that determines whether hands are on ATM panel. It is also defined that a time series analysis is performed to determine whether the spatial state "feet in front of ATM" satisfies a specific time condition, for example, whether it continues for a certain period of time or a certain number of frames. It is also defined that a time series analysis is performed to determine whether the spatial state "hands in ATM panel" satisfies a specific time condition, for example, whether it continues for a certain period of time or a certain number of frames. On top of that, it is defined that a scenario analysis is performed to determine whether an element action that matches the scenario of the higher-level action "ATM use" has occurred, which recognizes element action 2 that two spatial states "feet in front of ATM" and "hands in ROI on ATM panel" satisfy a specific time condition after element action 1 that the spatial state "feet in front of ATM" satisfies a specific time condition.

[0123] As shown in the example here, behavior can be recognized in a variety of usage scenarios in the form of rules, such as first detecting that the user is in a specific location, such as in front of an ATM, and then determining whether more detailed conditions, such as operating an ATM, are met while maintaining that the initial condition is met.

[0124] In such a scenario, from the targets of parts to be compared with the ROI when recognizing a spatial state to be added to the second or subsequent element behavior recognition rules 7A, the skeletal parts set in the ROI information used for the spatial state recognition up to that point and the skeletal parts whose interlocking with the skeletal parts is equal to or greater than a threshold value are excluded. As an example, from the skeletal parts unused for the spatial state recognition, it is possible to exclude the skeletal parts for which the cumulative value of the change in the relative distance between the skeletal parts already used for the spatial state recognition and the skeletal parts unused for the spatial state recognition is equal to or less than a threshold value for each frame of the sample video. As another example, from the skeletal parts unused for the spatial state recognition, it is possible to exclude the skeletal parts located within the number of joints of the skeletal parts already used for the spatial state recognition within the threshold value.

[0125] More specifically, when ROI information used for recognizing a spatial state included in the first element behavior recognition rule 7A of a scenario is set, a part of the process of the flowchart shown in FIG. 12 can be changed. For example, when setting ROI information used for recognizing a spatial state to be added to the second or subsequent element behavior recognition rules 7A of a scenario, heat maps for each skeletal part have already been generated from a sample video. From this perspective, the processes from step S101 to step S108 shown in FIG. 12 can be skipped. Furthermore, in steps S109 and S110 shown in FIG. 12, heat maps corresponding to skeletal parts already used for recognizing a spatial state can be excluded from the processing target. This makes it possible to exclude heat maps corresponding to skeletal parts already used for recognizing a spatial state from the setting target of ROI, and narrow down the setting target of ROI to heat maps corresponding to skeletal parts not used for recognizing a spatial state. Furthermore, in steps S109 and S110 shown in FIG. 12, heat maps for which the total number of mapping times obtained by adding up the number of mapping times of each area is less than a threshold value can be excluded from the processing target of steps S109 and S110. Furthermore, in steps S109 and S110 shown in FIG. 12, among the skeletal parts unused for recognizing the spatial state, the heat map corresponding to the skeletal part in which the cumulative value of the change in the relative distance between the skeletal part used for recognizing the spatial state and the skeletal part unused for recognizing the spatial state for each frame of the sample video is equal to or less than a threshold value can be excluded from the processing target of steps S109 and S110. Furthermore, instead of the processing from step S109 onwards, the following adoption determination can be performed in order from the heat map with the largest total number of mappings. For example, as one example of the adoption determination method, the area around the user-specified object is divided into a mesh, for example, 4 rows and 4 columns, and for the area with the largest number of mappings, a rectangle of a specific size centered on the average position of the distribution of mapping positions within the area is set as an ROI candidate, and if the ratio of the number of plots of the mapping positions included in the ROI candidate to the total number of mappings is equal to or more than a threshold value, the ROI candidate can be set as the ROI, and the skeletal part corresponding to the heat map can be set as a part to be compared with the ROI.These processes are repeated until the ROI information used in all the component action recognition rules included in the scenario is set. Note that the adoption judgment used instead of the processes from step S109 onwards can also be applied when setting the ROI information used when recognizing the spatial state included in the first component action recognition rule 7A of the scenario.

[0126] [User-specified overrides] The setting device 10 can also prioritize the ROI or the part to be compared with the ROI designated by the user when setting the ROI or the part to be compared with the ROI. For example, if the difference between the number of mappings of the highest value observed in all heat maps generated in the loop process 2 and the number of mappings of the highest value observed in the heat map corresponding to the skeletal part designated by the user is equal to or less than a threshold, the heat map corresponding to the skeletal part designated by the user can be selected with priority. In addition, the size of the rectangle when setting the ROI can be matched to the size of the figure designated by the user as the ROI to be used for the judgment.

[0127] [Objects used to set ROI] In the above embodiment 1, an ATM is given as an example of an object that accepts user designation when setting an ROI, but the object used when setting an ROI is not necessarily limited to objects other than people. For example, a person other than the person targeted for behavior recognition may be designated as an object.

[0128] [Distribution and Integration] In addition, each component of each device shown in the figure does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of them can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc. For example, the reception unit 11, the image acquisition unit 12, the object recognition unit 13, the heat map generation unit 14, or the ROI setting unit 15 may be connected via a network as an external device of the setting device 10. In addition, the reception unit 11, the image acquisition unit 12, the object recognition unit 13, the heat map generation unit 14, or the ROI setting unit 15 may be included in another device, and may be connected to a network to cooperate with each other to realize the functions of the setting device 10.

[0129] [Settings program] Moreover, the various processes described in the above embodiments can be realized by executing a prepared program on a computer such as a personal computer or a workstation. Therefore, an example of a computer that executes a setting program having the same functions as those in the first and second embodiments will be described below with reference to FIG.

[0130] Fig. 15 is a diagram showing an example of a hardware configuration. As shown in Fig. 15, the computer 100 has an operation unit 110a, a speaker 110b, a camera 110c, a display 120, and a communication unit 130. Furthermore, the computer 100 has a CPU 150, a ROM 160, a HDD 170, and a RAM 180. These units 110 to 180 are connected via a bus 140.

[0131] 15, the HDD 170 stores a setting program 170a that performs the same functions as the reception unit 11, the image acquisition unit 12, the object recognition unit 13, the heat map generation unit 14, and the ROI setting unit 15 shown in the above-mentioned first embodiment. This setting program 170a may be integrated or separated like each of the components of the reception unit 11, the image acquisition unit 12, the object recognition unit 13, the heat map generation unit 14, and the ROI setting unit 15 shown in FIG. 10. That is, the HDD 170 does not necessarily have to store all the data shown in the above-mentioned first embodiment, and it is sufficient that the data used for processing is stored in the HDD 170.

[0132] Under such an environment, the CPU 150 reads out the setting program 170a from the HDD 170 and loads it in the RAM 180. As a result, the setting program 170a functions as a setting process 180a as shown in FIG. 15. The setting process 180a loads various data read out from the HDD 170 in an area of ​​the storage area of ​​the RAM 180 that is assigned to the setting process 180a, and executes various processes using the loaded various data. For example, an example of the process executed by the setting process 180a includes the process shown in FIG. 12. Note that in the CPU 150, all of the processing units shown in the above-mentioned first embodiment do not necessarily need to operate, and it is sufficient that the processing units corresponding to the processes to be executed are virtually realized.

[0133] The setting program 170a does not necessarily have to be stored in the HDD 170 or the ROM 160 from the beginning. For example, the setting program 170a is stored in a "portable physical medium" such as a flexible disk, a so-called FD, a CD-ROM, a DVD disk, a magneto-optical disk, or an IC card that is inserted into the computer 100. The computer 100 may then acquire and execute the setting program 170a from the portable physical medium. The setting program 170a may also be stored in another computer or a server device connected to the computer 100 via a public line, the Internet, a LAN, a WAN, or the like, and the computer 100 may acquire and execute the setting program 170a from the other computer or server device.

[0134] The following supplementary notes are further disclosed regarding the embodiments including the above examples.

[0135] (Appendix 1) Obtaining video, generating a map for each skeletal part by mapping positions of the skeletal parts using time series data of skeletal information obtained by skeletal detection for a first object included in the video; setting an ROI used for recognizing a spatial state indicating a relationship between the first object and a space based on a frequency at which mapping is observed around a second object included in the map generated for each skeletal part; A setting method characterized in that the processing is executed by a computer.

[0136] (Note 2) The generating process includes a process of tallying up the number of times the map has been mapped into each of a plurality of divided regions, The process of setting includes a process of setting the ROI based on the number of times of mapping of a region corresponding to the periphery of the second object among the regions included in the map generated for each skeletal part. 2. The setting method according to claim 1,

[0137] (Additional Note 3) The process of setting includes a process of comparing the number of mappings of a region corresponding to the periphery of the second object between the maps generated for each skeletal part, and setting the ROI based on the region where the highest number of mappings is observed. 3. The setting method according to claim 2,

[0138] (Note 4) The process of setting includes a process of comparing a region corresponding to the periphery of the second object among the maps generated for each skeletal part and corresponding to a relative position of the ROI whose designation has been accepted, and setting the ROI based on the region in which the highest number of mapping times is observed. 4. The setting method according to claim 3.

[0139] (Appendix 5) The setting process includes a process of setting a skeletal part corresponding to a map including a region in which the highest mapping count is observed as a skeletal part to be compared with the ROI; 4. The setting method according to claim 3.

[0140] (Appendix 6) The setting method according to appendix 2, wherein the area is a grid in which the map is divided into a mesh shape.

[0141] (Appendix 7) The setting process includes, when a second ROI is set after a first ROI is set, a process of setting the second ROI by excluding a map corresponding to a skeletal part set in a part to be compared with the first ROI from among the maps generated for each skeletal part. 2. The setting method according to claim 1,

[0142] (Appendix 8) The setting process includes a process of setting the second ROI by excluding a map corresponding to a first skeletal part set in a part to be compared with the first ROI and a second skeletal part whose linkage with the first skeletal part is equal to or greater than a threshold value from among the maps generated for each skeletal part. 8. The setting method according to claim 7,

[0143] (Appendix 9) Obtaining video, generating a map for each skeletal part by mapping positions of the skeletal parts using time series data of skeletal information obtained by skeletal detection for a first object included in the video; setting an ROI used for recognizing a spatial state indicating a relationship between the first object and a space based on a frequency at which mapping is observed around a second object included in the map generated for each skeletal part; A setting program that causes a computer to execute a process.

[0144] (Additional Note 10) The generating process includes a process of tallying up the number of times the map has been mapped into each of a plurality of divided regions, The process of setting includes a process of setting the ROI based on the number of times of mapping of a region corresponding to the periphery of the second object among the regions included in the map generated for each skeletal part. 10. The setting program according to claim 9,

[0145] (Appendix 11) The process of setting includes a process of comparing the number of mappings of a region corresponding to the periphery of the second object between the maps generated for each skeletal part, and setting the ROI based on the region where the highest number of mappings is observed. 11. The setting program according to claim 10.

[0146] (Appendix 12) The process of setting includes a process of comparing a region corresponding to the periphery of the second object between the maps generated for each skeletal part and corresponding to a relative position of the ROI whose designation has been accepted, and setting the ROI based on the region in which the highest number of mapping times is observed. 12. The setting program according to claim 11,

[0147] (Appendix 13) The setting process includes a process of setting a skeletal part corresponding to a map including a region in which the highest mapping count is observed as a skeletal part to be compared with the ROI; 12. The setting program according to claim 11,

[0148] (Supplementary Note 14) The setting program according to Supplementary Note 10, characterized in that the area is a grid in which the map is divided into a mesh shape.

[0149] (Appendix 15) The setting process includes, when setting a second ROI after setting a first ROI, setting the second ROI by excluding a map corresponding to a skeletal part set in a part to be compared with the first ROI from among the maps generated for each skeletal part. 10. The setting program according to claim 9,

[0150] (Appendix 16) The setting process includes a process of setting the second ROI by excluding a map corresponding to a first skeletal part set in a part to be compared with the first ROI and a second skeletal part whose linkage with the first skeletal part is equal to or greater than a threshold value from among the maps generated for each skeletal part. 16. The setting program according to claim 15,

[0151] (Appendix 17) Obtaining video, generating a map for each skeletal part by mapping positions of the skeletal parts using time series data of skeletal information obtained by skeletal detection for a first object included in the video; setting an ROI used for recognizing a spatial state indicating a relationship between the first object and a space based on a frequency at which mapping is observed around a second object included in the map generated for each skeletal part; A setting device including a control unit that executes processing.

[0152] (Appendix 18) The generating process includes a process of tallying up the number of times the map has been mapped into each of a plurality of divided regions, The process of setting includes a process of setting the ROI based on the number of times of mapping of a region corresponding to the periphery of the second object among the regions included in the map generated for each skeletal part. 18. The setting device according to claim 17,

[0153] (Appendix 19) The process of setting includes a process of comparing the number of mappings of a region corresponding to the periphery of the second object between the maps generated for each skeletal part, and setting the ROI based on the region where the highest number of mappings is observed. 19. The setting device according to claim 18.

[0154] (Appendix 20) The process of setting includes a process of comparing a region corresponding to the periphery of the second object between the maps generated for each skeletal part and corresponding to a relative position of the ROI that has been specified, and setting the ROI based on the region in which the highest number of mapping times is observed. 20. The setting device according to claim 19, [Explanation of symbols]

[0155] 10 Setting device 11 Reception 12 Image acquisition section 13 Object Recognition Unit 14 Heat map generation section 15 ROI setting section 16 ROI information storage section 30 Behavior recognition device 32 Video acquisition section 33 Object Recognition Unit 34 Basic motion recognition section 35 Spatial state recognition unit 36 Upper behavior recognition unit 36A Elemental behavior recognition unit 36B Scenario Recognition Unit 37A First rule memory section 37B Second rule memory section

Claims

1. Get the footage, generating a map in which positions of skeletal parts are mapped for each skeletal part using time-series data of skeletal information obtained by skeletal detection for a first object included in the video; setting an ROI to be used for recognizing a spatial state indicating a relationship between the first object and a space, based on a frequency at which mapping is observed around a second object included in the map generated for each skeletal part; A setting method characterized in that the processing is executed by a computer.

2. The generating process includes a process of tallying up the number of times mapping has been performed on each of the plurality of regions into which the map is divided; the setting process includes a process of setting the ROI based on a number of times of mapping of a region corresponding to a periphery of the second object among regions included in the map generated for each skeletal part; The setting method according to claim 1 .

3. The setting process includes a process of comparing the number of mapping times of a region corresponding to a periphery of the second object between the maps generated for each of the skeletal parts, and setting the ROI based on the region in which the highest number of mapping times is observed. The setting method according to claim 2 .

4. the setting process includes a process of comparing a region that corresponds to the periphery of the second object among the maps generated for each skeletal part and corresponds to a relative position of the ROI whose designation has been accepted, and setting the ROI based on the region in which the highest number of mapping times is observed; The setting method according to claim 3 .

5. The setting process includes a process of setting a skeletal part corresponding to a map including a region in which the highest mapping count is observed as a skeletal part to be compared with the ROI.

5. The setting method according to claim 3 or 4.

6. 6. The setting method according to claim 2, wherein the area is a grid obtained by dividing the map into a mesh shape.

7. The setting process includes, when a second ROI is set after the setting of a first ROI, a process of setting the second ROI by excluding a map corresponding to a skeletal part set in a part to be compared with the first ROI from among the maps generated for each skeletal part. The setting method according to any one of claims 1 to 6.

8. The setting process includes a process of setting the second ROI by excluding a map corresponding to a first skeletal part set in a part to be compared with the first ROI and a second skeletal part having a linkage with the first skeletal part equal to or greater than a threshold value from among the maps generated for each skeletal part. The setting method according to claim 7 .

9. Get the footage, generating a map in which positions of skeletal parts are mapped for each skeletal part using time-series data of skeletal information obtained by skeletal detection for a first object included in the video; setting an ROI to be used for recognizing a spatial state indicating a relationship between the first object and a space, based on a frequency at which mapping is observed around a second object included in the map generated for each skeletal part; A setting program that causes a computer to execute a process.

10. Get the footage, generating a map in which positions of skeletal parts are mapped for each skeletal part using time-series data of skeletal information obtained by skeletal detection for a first object included in the video; setting an ROI to be used for recognizing a spatial state indicating a relationship between the first object and a space, based on a frequency at which mapping is observed around a second object included in the map generated for each skeletal part; A setting device including a control unit that executes processing.

Citation Information

Patent Citations

  • Method and device for detecting abnormal state

    JP1997044758A

  • Human-computer interaction system, hand and hand instruction point positioning method, and finger gesture determination method

    JP2012059271A

  • Movement determination method, movement determination device, and movement determination program

    JP2015114950A

  • Image processing device, image processing method, and image processing system

    JP2016100696A

  • Information processing device, and information processing method

    JP2019096006A