IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM
The image processing device detects and classifies two-dimensional skeletal structures to recognize human states in two-dimensional images, addressing limitations of existing technologies by enabling flexible and robust state recognition.
Patent Information
- Application Number
- JP2021553977
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-10-31
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2039-10-31
AI Technical Summary
Existing image processing technologies struggle to perform flexible state recognition of individuals in two-dimensional images, as they often require depth images and are limited to specific perspectives, making it difficult to classify and search for desired postures and behaviors.
An image processing device and method that detects two-dimensional skeletal structures from two-dimensional images, calculates feature amounts, and performs recognition processing based on the similarity of these features to classify and search for states of individuals.
Enables flexible and robust recognition of human states in two-dimensional images, allowing for classification and search of desired postures and behaviors without relying on depth images, even when specific perspectives are not available.
Smart Images

Figure 0007556556000015 
Figure 0007556556000040 
Figure 0007556556000007
Abstract
Description
[Technical field]
[0001] The present invention relates to an image processing device, an image processing method, and a non-transitory computer-readable medium having an image processing program stored thereon. [Background technology]
[0002] In recent years, in surveillance systems and the like, techniques for detecting and searching for states such as posture and behavior of a person from images of a surveillance camera are used. For example, Patent Documents 1 and 2 are known as related techniques. Patent Document 1 discloses a technique for searching for a similar posture of a person based on key joints of the person's head, limbs, etc. contained in a depth image. Patent Document 2 discloses a technique for searching for a similar image using posture information such as tilt added to an image, which is not related to the posture of a person. In addition, Non-Patent Document 1 is known as a technique related to human skeleton estimation. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Special Publication No. 2014-522035 [Patent Document 2] JP 2006-260405 A [Non-patent literature]
[0004] [Non-Patent Document 1] Zhe Cao, Tomas Simon, Shih-En Wei, Yaser Sheikh, "Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields", The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017, P. 7291-7299 Summary of the Invention [Problem to be solved by the invention]
[0005] In related technologies such as the above-mentioned Patent Document 1, similar postures of a person are searched for based on the person's head, limbs, etc., but since it is premised on acquiring a depth video (depth image), it is not possible to search for postures and other conditions from a two-dimensional image. Also, only searches from a specific perspective are considered. For this reason, the related technologies have a problem in that it is difficult to flexibly perform state recognition processing such as searching and classifying a person's state based on a two-dimensional image.
[0006] In view of such problems, the present disclosure aims to provide an image processing device, an image processing method, and a non-transitory computer-readable medium storing an image processing program that are capable of flexibly performing person state recognition processing based on two-dimensional images. [Means for solving the problem]
[0007] The image processing device according to the present disclosure includes a skeleton detection means for detecting two-dimensional skeletal structures of a plurality of people based on an acquired two-dimensional image, a feature calculation means for calculating features of the detected two-dimensional skeletal structures, and a recognition means for performing a recognition process of the states of the plurality of people based on the similarity of the calculated feature amounts.
[0008] The image processing method of the present disclosure detects two-dimensional skeletal structures of multiple people based on an acquired two-dimensional image, calculates features of the detected multiple two-dimensional skeletal structures, and performs recognition processing of the states of the multiple people based on the similarity of the calculated multiple feature amounts.
[0009] A non-transitory computer-readable medium storing an image processing program according to the present disclosure is a non-transitory computer-readable medium storing an image processing program for causing a computer to execute processing, such as detecting two-dimensional skeletal structures of multiple people based on an acquired two-dimensional image, calculating feature amounts of the detected multiple two-dimensional skeletal structures, and performing recognition processing of the states of the multiple people based on the similarity of the calculated multiple feature amounts. Effect of the Invention
[0010] According to the present disclosure, it is possible to provide an image processing device, an image processing method, and a non-transitory computer-readable medium storing an image processing program that are capable of flexibly performing person state recognition processing based on a two-dimensional image. [Brief description of the drawings]
[0011] [Figure 1] 1 is a configuration diagram showing an overview of an image processing device according to an embodiment; [Diagram 2] 1 is a configuration diagram showing a configuration of an image processing device according to a first embodiment. [Diagram 3] 4 is a flowchart showing an image processing method according to the first embodiment. [Figure 4] 4 is a flowchart showing a classification method according to the first embodiment. [Diagram 5] 4 is a flowchart showing a search method according to the first embodiment. [Figure 6] FIG. 4 is a diagram showing an example of detection of a skeletal structure according to the first embodiment. [Figure 7] FIG. 2 is a diagram showing a human body model according to the first embodiment. [Figure 8] FIG. 4 is a diagram showing an example of detection of a skeletal structure according to the first embodiment. [Figure 9] FIG. 4 is a diagram showing an example of detection of a skeletal structure according to the first embodiment. [Figure 10] FIG. 4 is a diagram showing an example of detection of a skeletal structure according to the first embodiment. [Figure 11] 4 is a graph showing a specific example of the classification method according to the first embodiment. [Figure 12] FIG. 4 is a diagram showing a display example of a classification result according to the first embodiment. [Figure 13] FIG. 2 is a diagram for explaining a search method according to the first embodiment. [Figure 14] FIG. 2 is a diagram for explaining a search method according to the first embodiment. [Figure 15] FIG. 2 is a diagram for explaining a search method according to the first embodiment. [Figure 16] FIG. 2 is a diagram for explaining a search method according to the first embodiment. [Figure 17] FIG. 4 is a diagram showing a display example of search results according to the first embodiment. [Figure 18] FIG. 11 is a configuration diagram showing a configuration of an image processing device according to a second embodiment. [Figure 19] 10 is a flowchart showing an image processing method according to the second embodiment. [Figure 20] 13 is a flowchart showing a specific example 1 of a height pixel number calculation method according to the second embodiment. [Figure 21] 13 is a flowchart showing a specific example 2 of the height pixel number calculation method according to the second embodiment. [Figure 22] 13 is a flowchart showing a specific example 2 of the height pixel number calculation method according to the second embodiment. [Figure 23] 11 is a flowchart showing a normalization method according to the second embodiment. [Figure 24] FIG. 11 is a diagram showing a human body model according to a second embodiment. [Diagram 25] FIG. 11 is a diagram showing an example of detection of a skeletal structure according to the second embodiment. [Figure 26] FIG. 11 is a diagram showing an example of detection of a skeletal structure according to the second embodiment. [Figure 27] FIG. 11 is a diagram showing an example of detection of a skeletal structure according to the second embodiment. [Figure 28] FIG. 11 is a diagram showing a human body model according to a second embodiment. [Figure 29] FIG. 11 is a diagram showing an example of detection of a skeletal structure according to the second embodiment. [Diagram 30]13 is a histogram for explaining a height pixel number calculation method according to the second embodiment. [Diagram 31] FIG. 11 is a diagram showing an example of detection of a skeletal structure according to the second embodiment. [Diagram 32] FIG. 11 is a diagram showing a three-dimensional human body model according to the second embodiment. [Diagram 33] FIG. 11 is a diagram for explaining a height pixel number calculation method according to the second embodiment. [Diagram 34] FIG. 11 is a diagram for explaining a height pixel number calculation method according to the second embodiment. [Diagram 35] FIG. 11 is a diagram for explaining a height pixel number calculation method according to the second embodiment. [Diagram 36] FIG. 11 is a diagram for explaining a normalization method according to the second embodiment. [Figure 37] FIG. 11 is a diagram for explaining a normalization method according to the second embodiment. [Figure 38] FIG. 11 is a diagram for explaining a normalization method according to the second embodiment. [Figure 39] FIG. 2 is a configuration diagram showing an overview of the hardware of a computer according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment will be described with reference to the drawings. In the drawings, the same elements are denoted by the same reference numerals, and repeated explanations will be omitted as necessary.
[0013] (Considerations leading to the embodiment) In recent years, image recognition technology that utilizes machine learning such as deep learning has been applied to various systems. For example, it is being applied to surveillance systems that monitor using images from surveillance cameras. By utilizing machine learning in surveillance systems, it is becoming possible to grasp to some extent the posture, behavior, and other conditions of people from images.
[0014] However, such related technologies may not always be able to grasp the state of a person desired by a user on demand. For example, the state of a person that a user wants to search and grasp may be specified in advance, or may not be specifically specified, such as an unknown state. In such cases, the user may not be able to specify in detail the state of the person that he or she wants to search for. Furthermore, a search or the like may not be possible if part of the person's body is hidden. In the related technologies, the state of a person can only be searched for based on specific search criteria, making it difficult to flexibly search and classify the state of a desired person.
[0015] Therefore, the inventors have considered a method of using a skeleton estimation technique such as that described in Non-Patent Document 1 in order to recognize the state of a person desired by a user from an image on demand. In related skeleton estimation techniques such as OpenPose disclosed in Non-Patent Document 1, a person's skeleton is estimated by learning various patterns of image data with correct answers. In the following embodiment, such a skeleton estimation technique is utilized to enable flexible recognition of a person's state.
[0016] Note that the skeletal structure estimated by a skeletal estimation technique such as OpenPose is composed of "key points" which are characteristic points such as joints, and "bones (bone links)" which indicate the links between the key points. For this reason, in the following embodiments, the skeletal structure will be described using the terms "key points" and "bones", but unless otherwise specified, "key points" correspond to the "joints" of a person, and "bones" correspond to the "bones" of a person.
[0017] (Outline of the embodiment) FIG. 1 shows an overview of an image processing device 10 according to an embodiment. As shown in FIG. 1, the image processing device 10 includes a skeleton detection unit 11, a feature amount calculation unit 12, and a recognition unit 13. The skeleton detection unit 11 detects two-dimensional skeleton structures of a plurality of people based on a two-dimensional image acquired from a camera or the like. The feature amount calculation unit 12 calculates feature amounts of the plurality of two-dimensional skeleton structures detected by the skeleton detection unit 11. The recognition unit 13 performs recognition processing of the states of the plurality of people based on the similarity of the plurality of feature amounts calculated by the feature amount calculation unit 12. The recognition processing is classification processing, search processing, etc. of the state of the people.
[0018] In this manner, in the embodiment, a two-dimensional skeletal structure of a person is detected from a two-dimensional image, and recognition processing such as classification and examination of the person's state is performed based on features calculated from this two-dimensional skeletal structure, thereby enabling the desired state of a person to be flexibly recognized.
[0019] (Embodiment 1) Hereinafter, the first embodiment will be described with reference to the drawings. Fig. 2 shows the configuration of an image processing device 100 according to this embodiment. The image processing device 100, together with a camera 200 and a database (DB) 110, constitutes an image processing system 1. The image processing system 1 including the image processing device 100 is a system that classifies and searches for states such as posture and behavior of a person based on the skeletal structure of the person estimated from an image.
[0020] The camera 200 is an imaging unit such as a surveillance camera that generates a two-dimensional image. The camera 200 is installed at a predetermined location and captures an image of a person or the like in an imaging area from the installation location. The camera 200 is directly connected to the image processing device 100 so as to be able to output the captured image (video) to the image processing device 100, or is connected via a network or the like. The camera 200 may be provided inside the image processing device 100.
[0021] The database 110 is a database that stores information (data) necessary for processing by the image processing device 100, processing results, and the like. The database 110 stores images acquired by the image acquisition unit 101, detection results by the skeletal structure detection unit 102, data for machine learning, features calculated by the feature calculation unit 103, classification results by the classification unit 104, search results by the search unit 105, and the like. The database 110 is directly connected to the image processing device 100 as necessary so as to be able to input and output data, or is connected via a network or the like. The database 110 may be provided inside the image processing device 100 as a non-volatile memory such as a flash memory, a hard disk device, or the like.
[0022] As shown in FIG. 2, the image processing device 100 includes an image acquisition unit 101, a skeletal structure detection unit 102, a feature amount calculation unit 103, a classification unit 104, a search unit 105, an input unit 106, and a display unit 107. The configuration of each unit (block) is an example, and may be configured with other units as long as the method (operation) described later is possible. The image processing device 100 is realized by a computer device such as a personal computer or a server that executes a program, but may be realized by one device or by multiple devices on a network. For example, the input unit 106, the display unit 107, etc. may be external devices. The image processing device 100 may include both the classification unit 104 and the search unit 105, or only one of them. Both or one of the classification unit 104 and the search unit 105 is a recognition unit that performs recognition processing of a person's state.
[0023] The image acquiring unit 101 acquires a two-dimensional image including a person captured by the camera 200. The image acquiring unit 101 acquires, for example, an image including a person (a video including a plurality of images) captured by the camera 200 during a predetermined monitoring period. Note that the image may not be acquired from the camera 200, but may be acquired from a database 110 or the like that includes a person that has been prepared in advance.
[0024] The skeletal structure detection unit 102 detects the two-dimensional skeletal structure of a person in an image based on the acquired two-dimensional image. The skeletal structure detection unit 102 detects the skeletal structure of all people recognized in the acquired image. The skeletal structure detection unit 102 detects the skeletal structure of a person based on the features of the recognized person's joints and the like using a skeletal estimation technology using machine learning. The skeletal structure detection unit 102 uses a skeletal estimation technology such as OpenPose in Non-Patent Document 1, for example.
[0025] The feature amount calculation unit 103 calculates the feature amount of the detected two-dimensional skeletal structure, and stores the calculated feature amount in the database 110. The feature amount of the skeletal structure indicates the feature amount of the person's skeleton, and is an element for classifying and searching the state of the person based on the person's skeleton. The feature amount may be the feature amount of the entire skeletal structure, may be the feature amount of a part of the skeletal structure, or may include a plurality of feature amounts like each part of the skeletal structure. The feature amount may be calculated by any method such as machine learning or normalization, and a minimum value or a maximum value may be obtained as normalization. As an example, the feature amount is a feature amount obtained by machine learning the skeletal structure, a size of the skeletal structure from the head to the feet on the image, etc. The size of the skeletal structure is the height in the vertical direction or the area of the skeletal region including the skeletal structure on the image, etc. The vertical direction (height direction or vertical direction) is the vertical direction (Y-axis direction) in the image, for example, a direction perpendicular to the ground (reference plane). The left-right direction (horizontal direction) is the left-right direction (X-axis direction) in the image, for example, a direction parallel to the ground.
[0026] In order to perform classification and search as desired by the user, it is preferable to use features that are robust to classification and search processing. For example, if the user desires classification and search that are not dependent on the orientation or body type of a person, features that are robust to the orientation or body type of a person may be used. By learning the skeletons of people facing in various directions in the same posture or the skeletons of people with various body types in the same posture, or by extracting features only in the up-down direction of the skeleton, features that are not dependent on the orientation or body type of a person can be obtained.
[0027] The classification unit 104 classifies (clusters) the multiple skeletal structures stored in the database 110 based on the similarity of the feature amounts of the skeletal structures. It can also be said that the classification unit 104 classifies the states of multiple people based on the feature amounts of the skeletal structures as a recognition process of the state of the person. The similarity is the distance between the feature amounts of the skeletal structures. The classification unit 104 may classify based on the similarity of the feature amounts of the entire skeletal structure, or may classify based on the similarity of the feature amounts of a part of the skeletal structure, or may classify based on the similarity of the feature amounts of a first part (e.g., both hands) and a second part (e.g., both feet) of the skeletal structure. Note that the posture of the person may be classified based on the feature amounts of the skeletal structure of the person in each image, or the behavior of the person may be classified based on the change in the feature amounts of the skeletal structure of the person in multiple images that are consecutive in time series. That is, the classification unit 104 can classify the state of the person, including the posture and behavior of the person, based on the feature amounts of the skeletal structure. For example, the classification unit 104 classifies a plurality of skeletal structures in a plurality of images captured during a predetermined monitoring period. The classification unit 104 obtains the similarity between the feature amounts of the classification targets, and classifies them so that skeletal structures with high similarity are in the same cluster (a group of similar postures). As with search, the classification conditions may be specified by the user. The classification unit 104 stores the classification results of the skeletal structures in the database 110, and also displays them on the display unit 107.
[0028] The search unit 105 searches for a skeletal structure having a high similarity to the feature amount of the search query (query state) from among a plurality of skeletal structures stored in the database 110. It can also be said that the search unit 105 searches for a state of a person that meets the search criteria (query state) from among a plurality of states of a person based on the feature amount of the skeletal structure as a recognition process of the state of the person. As with classification, the similarity is the distance between the feature amounts of the skeletal structures. The search unit 105 may search based on the similarity of the feature amount of the entire skeletal structure, or may search based on the similarity of the feature amount of a part of the skeletal structure, or may search based on the similarity of the feature amount of a first part (e.g., both hands) and a second part (e.g., both feet) of the skeletal structure. Note that the posture of a person may be searched based on the feature amount of the skeletal structure of the person in each image, or the behavior of a person may be searched based on the change in the feature amount of the skeletal structure of the person in a plurality of images that are consecutive in time series. That is, the search unit 105 can search for a state of a person including the posture and behavior of a person based on the feature amount of the skeletal structure. For example, the search unit 105 searches for features of multiple skeletal structures in multiple images captured during a specified monitoring period, similar to the classification target. Also, a skeletal structure (posture) specified by the user from the classification results displayed by the classification unit 104 is used as a search query (search key). Note that the search query may be selected from multiple unclassified skeletal structures, not limited to the classification results, or the user may input a skeletal structure to be the search query. The search unit 105 searches for features that are highly similar to the features of the skeletal structure of the search query from the features of the search target. The search unit 105 stores the search results of the features in the database 110 and displays them on the display unit 107.
[0029] The input unit 106 is an input interface that acquires information input by a user who operates the image processing device 100. For example, the user is a monitor who monitors a person in a suspicious state from an image of a surveillance camera. The input unit 106 is, for example, a GUI (Graphical User Interface), and information according to a user's operation is input from an input device such as a keyboard, a mouse, or a touch panel. For example, the input unit 106 accepts a skeletal structure of a specified person from among the skeletal structures (postures) classified by the classification unit 104 as a search query.
[0030] The display unit 107 is a display unit that displays the results of the operation (processing) of the image processing device 100, and is, for example, a display device such as a liquid crystal display or an organic EL (Electro Luminescence) display. The display unit 107 displays the classification results of the classification unit 104 and the search results of the search unit 105 on a GUI according to the similarity, etc.
[0031] Figures 3 to 5 show the operation of image processing device 100 according to this embodiment. Figure 3 shows the flow from image acquisition to search processing in image processing device 100, Figure 4 shows the flow of classification processing (S104) in Figure 3, and Figure 5 shows the flow of search processing (S105) in Figure 3.
[0032] 3, the image processing device 100 acquires an image from the camera 200 (S101). The image acquisition unit 101 acquires images of people in order to classify and search based on their skeletal structures, and stores the acquired images in the database 110. The image acquisition unit 101 acquires, for example, a plurality of images captured during a predetermined monitoring period, and performs the following processes on all people included in the plurality of images.
[0033] Next, the image processing device 100 detects the skeletal structure of the person based on the acquired image of the person (S102). Fig. 6 shows an example of detecting the skeletal structure. As shown in Fig. 6, an image acquired from a surveillance camera or the like includes multiple people, and the skeletal structure is detected for each person included in the image.
[0034] Fig. 7 shows the skeletal structure of the human body model 300 detected at this time, and Fig. 8 to Fig. 10 show examples of detected skeletal structures. The skeletal structure detection unit 102 detects the skeletal structure of the human body model (two-dimensional skeletal model) 300 as shown in Fig. 7 from a two-dimensional image using a skeletal estimation technique such as OpenPose. The human body model 300 is a two-dimensional model made up of key points such as a person's joints and bones connecting each key point.
[0035] The skeletal structure detection unit 102, for example, extracts feature points that can be key points from an image, and detects each key point of a person by referring to information obtained by machine learning the image of the key points. In the example of Fig. 7, the following key points of a person are detected: head A1, neck A2, right shoulder A31, left shoulder A32, right elbow A41, left elbow A42, right hand A51, left hand A52, right hip A61, left hip A62, right knee A71, left knee A72, right foot A81, and left foot A82. Furthermore, the bones of the person connected by these key points are detected as bones, including bone B1 connecting the head A1 and neck A2, bones B21 and B22 connecting the neck A2 to the right shoulder A31 and left shoulder A32 respectively, bones B31 and B32 connecting the right shoulder A31 and left shoulder A32 to the right elbow A41 and left elbow A42 respectively, bones B41 and B42 connecting the right elbow A41 and left elbow A42 to the right hand A51 and left hand A52 respectively, bones B51 and B52 connecting the neck A2 to the right hip A61 and left hip A62 respectively, bones B61 and B62 connecting the right hip A61 and left hip A62 to the right knee A71 and left knee A72 respectively, and bones B71 and B72 connecting the right knee A71 and left knee A72 to the right foot A81 and left foot A82 respectively. The skeletal structure detection unit 102 stores the detected skeletal structure of the person in the database 110.
[0036] Fig. 8 shows an example of detecting a person standing upright. In Fig. 8, an image of a person standing upright is captured from the front, and bones B1, B51 and B52, B61 and B62, and B71 and B72 are detected without overlapping when viewed from the front, and bones B61 and B71 of the right foot are slightly more bent than bones B62 and B72 of the left foot.
[0037] Fig. 9 shows an example of detecting a person in a crouching state. In Fig. 9, the person in a crouching state is imaged from the right side, and bones B1, B51 and B52, B61 and B62, and B71 and B72 are detected as seen from the right side, and bones B61 and B71 of the right foot and bones B62 and B72 of the left foot are greatly bent and overlap each other.
[0038] Fig. 10 shows an example of detecting a person who is lying down. In Fig. 10, the person lying down is imaged from the diagonal front left, and bones B1, B51 and B52, B61 and B62, and B71 and B72 seen from the diagonal front left are detected, and bones B61 and B71 of the right foot and bones B62 and B72 of the left foot are bent and overlapped.
[0039] Next, as shown in Fig. 3, the image processing device 100 calculates the feature amounts of the detected skeletal structure (S103). For example, when the height or area of the skeletal region is used as the feature amount, the feature amount calculation unit 103 extracts a region including the skeletal structure and calculates the height (number of pixels) and area (pixel area) of the region. The height and area of the skeletal region are calculated from the coordinates of the ends of the extracted skeletal region and the coordinates of the key points of the ends. The feature amount calculation unit 103 stores the calculated feature amounts of the skeletal structure in the database 110.
[0040] In the example of Figure 8, a skeletal region including all bones is extracted from the skeletal structure of a person standing upright. In this case, the top end of the skeletal region is key point A1 on the head, the bottom end of the skeletal region is key point A82 on the left foot, the left end of the skeletal region is key point A41 on the right elbow, and the right end of the skeletal region is key point A52 on the left hand. Therefore, the height of the skeletal region is calculated from the difference in the Y coordinates of key point A1 and key point A82. In addition, the width of the skeletal region is calculated from the difference in the X coordinates of key point A41 and key point A52, and the area is calculated from the height and width of the skeletal region.
[0041] In the example of Figure 9, a skeletal region including all bones is extracted from the skeletal structure of a crouching person. In this case, the top end of the skeletal region is key point A1 on the head, the bottom end of the skeletal region is key point A81 on the right foot, the left end of the skeletal region is key point A61 on the right hip, and the right end of the skeletal region is key point A51 on the right hand. Therefore, the height of the skeletal region is calculated from the difference in the Y coordinates of key points A1 and A81. The width of the skeletal region is calculated from the difference in the X coordinates of key points A61 and A51, and the area is calculated from the height and width of the skeletal region.
[0042] In the example of Figure 10, a skeletal region including all bones is extracted from the skeletal structure of a person lying down in the left-right direction of the image. In this case, the top end of the skeletal region is the left shoulder key point A32, the bottom end of the skeletal region is the left hand key point A52, the left end of the skeletal region is the right hand key point A51, and the right end of the skeletal region is the left foot key point A82. Therefore, the height of the skeletal region is calculated from the difference in the Y coordinates of key points A32 and A52. The width of the skeletal region is calculated from the difference in the X coordinates of key points A51 and A82, and the area is calculated from the height and width of the skeletal region.
[0043] Subsequently, as shown in FIG. 3, the image processing device 100 performs a classification process (S104). In the classification process, as shown in FIG. 4, the classification unit 104 calculates the similarity of the calculated feature amount of the skeletal structure (S111), and classifies the skeletal structure based on the calculated feature amount (S112). The classification unit 104 calculates the similarity of the feature amount between all skeletal structures stored in the database 110 to be classified, and classifies (clusters) the skeletal structure (posture) with the highest similarity into the same cluster. Furthermore, the classification is repeated by calculating the similarity between the classified clusters until a predetermined number of clusters are obtained. FIG. 11 shows an image of the classification result of the feature amount of the skeletal structure. FIG. 11 shows an image of cluster analysis by two-dimensional classification elements, and the two classification elements are, for example, the height of the skeletal region and the area of the skeletal region. In FIG. 11, the feature amounts of a plurality of skeletal structures are classified into three clusters C1 to C3 as a result of classification. The clusters C1 to C3 correspond to different postures, such as standing, sitting, and lying down, and skeletal structures (people) are classified according to similar postures.
[0044] In this embodiment, various classification methods can be used by classifying based on the feature amount of the person's skeletal structure. The classification method may be set in advance, or may be set arbitrarily by the user. In addition, classification may be performed by the same method as the search method described later. In other words, classification may be performed by classification conditions similar to the search conditions. For example, the classification unit 104 performs classification by the following classification methods. Any of the classification methods may be used, or arbitrarily selected classification methods may be combined.
[0045] (Classification method 1) Classification based on multiple hierarchies The classification is performed by hierarchically combining classification based on the skeletal structure of the entire body, classification based on the skeletal structure of the upper and lower body, classification based on the skeletal structure of the arms and legs, etc. In other words, classification may be performed based on the feature amounts of the first and second parts of the skeletal structure, and further classification may be performed by weighting the feature amounts of the first and second parts.
[0046] (Classification method 2) Classification using multiple images in chronological order Classification is based on the feature values of the skeletal structure in multiple consecutive images in a time series. For example, feature values may be accumulated in the time series direction and classification may be based on the cumulative value. Furthermore, classification may be based on the change (amount of change) in the feature values of the skeletal structure in multiple consecutive images.
[0047] (Classification method 3) Classification ignoring the left and right sides of the skeletal structure Classify opposite skeletal structures on the right and left sides of a person as the same skeletal structure.
[0048] Furthermore, the classification unit 104 displays the classification result of the skeletal structure (S113). The classification unit 104 acquires the necessary skeletal structure and person images from the database 110, and displays the skeletal structure and person for each similar posture (cluster) on the display unit 107 as the classification result. FIG. 12 shows a display example when postures are classified into three. For example, as shown in FIG. 12, posture areas WA1 to WA3 for each posture are displayed in the display window W1, and the skeletal structure and person (image) of the posture corresponding to each posture area WA1 to WA3 are displayed. The posture area WA1 is, for example, a display area for a standing posture, and displays the skeletal structure and person similar to the standing posture classified into cluster C1. The posture area WA2 is, for example, a display area for a sitting posture, and displays the skeletal structure and person similar to the sitting posture classified into cluster C2. The posture area WA3 is, for example, a display area for a lying posture, and displays the skeletal structure and person similar to the lying posture classified into cluster C2.
[0049] Subsequently, as shown in FIG. 3, the image processing device 100 performs a search process (S105). In the search process, as shown in FIG. 5, the search unit 105 accepts an input of a search condition (S121) and searches for a skeletal structure based on the search condition (S122). The search unit 105 accepts an input of a search query, which is a search condition, from the input unit 106 in response to a user's operation. When inputting a search query from a classification result, for example, in the display example of FIG. 12, the user specifies (selects) a skeletal structure of a posture to be searched from among posture areas WA1 to WA3 displayed in the display window W1. Then, the search unit 105 uses the skeletal structure specified by the user as a search query to search for a skeletal structure having a high similarity in feature amount from among all skeletal structures stored in the database 110 as a search target. The search unit 105 calculates a similarity between the feature amount of the skeletal structure of the search query and the feature amount of the skeletal structure of the search target, and extracts a skeletal structure having a calculated similarity amount higher than a predetermined threshold value. The feature amount of the skeletal structure of the search query may be a feature amount calculated in advance, or a feature amount calculated at the time of the search. Note that the search query may be input by moving each part of the skeletal structure according to the user's operation, or the posture demonstrated by the user in front of the camera may be used as the search query.
[0050] In this embodiment, similarly to the classification method, a variety of search methods can be used by searching based on the feature amount of a person's skeletal structure. The search method may be preset, or may be arbitrarily set by the user. For example, the search unit 105 performs a search using the following search methods. Any of the search methods may be used, or arbitrarily selected search methods may be combined. A search may be performed by combining a plurality of search methods (search conditions) using a logical expression (e.g., AND (logical product), OR (logical sum), NOT (negation)). For example, a search may be performed using the search conditions "(posture with right hand raised) AND (posture with left leg raised)".
[0051] (Search method 1) Search using height features only By performing a search using only the height feature of a person, the effect of lateral changes in the person can be suppressed, and robustness against changes in the person's orientation and body type is improved. For example, as in skeletal structures 501 to 503 in Fig. 13, even if the person's orientation or body type is different, the height feature does not change significantly. For this reason, the skeletal structures 501 to 503 can be determined to have the same posture during search (classification).
[0052] (Search method 2) Partial search When a part of a person's body is hidden in an image, a search is performed using only information on the recognizable part. For example, as in the case of skeletal structures 511 and 512 in FIG. 14, even if the left foot key point cannot be detected because the left foot is hidden, a search can be performed using the feature amounts of other detected key points. For this reason, in the case of skeletal structures 511 and 512, it is possible to determine that the postures are the same at the time of search (classification). In other words, classification and search can be performed using the feature amounts of some key points, not all key points. In the example of skeletal structures 521 and 522 in FIG. 15, although the directions of both feet are different, it is possible to determine that the postures are the same by using the feature amounts of the upper body key points (A1, A2, A31, A32, A41, A42, A51, A52) as a search query. In addition, a search can be performed by weighting the part (feature point) to be searched, or a threshold value for similarity judgment can be changed. When a part of the body is hidden, a search can be performed by ignoring the hidden part, or a search can be performed by taking the hidden part into account. By including hidden parts in the search, it is possible to search for postures in which the same body part is hidden.
[0053] (Search method 3) Search ignoring the left and right sides of the skeletal structure Skeletal structures with opposite skeletal structures on the right and left sides of a person are searched for as the same skeletal structure. For example, a posture in which the right hand is raised and a posture in which the left hand is raised can be searched for (classified) as the same posture, as in skeletal structures 531 and 532 in Fig. 16. In the example of Fig. 16, skeletal structures 531 and 532 have different positions for key point A51 on the right hand, key point A41 on the right elbow, key point A52 on the left hand, and key point A42 on the left elbow, but the positions of the other key points are the same. Of the key points A51 on the right hand and A41 on the right elbow of skeletal structure 531, and the key points A52 on the left hand and A42 on the left elbow of skeletal structure 532, if the key points of one of the skeletal structures are flipped left to right, they will be in the same position as the key points of the other skeletal structure. Furthermore, of the key points A52 on the left hand and A42 on the left elbow of skeletal structure 531, and the key points A51 on the right hand and A41 on the right elbow of skeletal structure 532, if the key points of one of the skeletal structures are flipped left to right, they will be in the same position as the key points of the other skeletal structure, so they are determined to be the same posture.
[0054] (Search method 4) Search by vertical and horizontal features After performing a search using only the features of the person in the vertical direction (Y-axis direction), the obtained results are further searched using the features of the person in the horizontal direction (X-axis direction).
[0055] (Search method 5) Searching for multiple images in chronological order Searches are performed based on the feature values of the skeletal structure in multiple consecutive images in a time series. For example, the feature values may be accumulated in the time series direction, and searches may be performed based on the cumulative value. Furthermore, searches may be performed based on the change (amount of change) in the feature values of the skeletal structure in multiple consecutive images.
[0056] Furthermore, the search unit 105 displays the search results of the skeletal structure (S123). The search unit 105 acquires the necessary skeletal structure and person images from the database 110, and displays the skeletal structure and person obtained as the search results on the display unit 107. For example, when a plurality of search queries (search conditions) are specified, the search results are displayed for each search query. FIG. 17 shows a display example when a search is performed using three search queries (postures). For example, as shown in FIG. 17, in the display window W2, the skeletal structures and people of the specified search queries Q10, Q20, and Q30 are displayed at the left end, and the skeletal structures and people of the search results Q11, Q21, and Q31 of each search query are displayed side by side to the right of the search queries Q10, Q20, and Q30.
[0057] The order in which the search results are displayed next to the search query may be the order in which the corresponding skeletal structures were found, or the order in which the similarity is highest. When a partial search is performed with weights applied to the parts (feature points), the results may be displayed in order of similarity calculated using the weights. The results may also be displayed in order of similarity calculated only from the parts (feature points) selected by the user. In addition, images (frames) before and after the search result image (frame) may be cut out for a certain period of time and displayed.
[0058] As described above, in this embodiment, it is possible to detect a person's skeletal structure from a two-dimensional image, and to perform classification and search based on the feature amount of the detected skeletal structure. This allows classification into similar poses with high similarity, and also allows searching for similar poses with high similarity to a search query (search key). By classifying and displaying similar poses from an image, it is possible to grasp the pose of a person in an image without the user specifying a pose, etc. Since the user can specify the pose of a search query from the classification results, it is possible to search for a desired pose even if the user does not know in advance the pose he or she wants to search in detail. For example, classification and search can be performed using the whole or part of a person's skeletal structure as a condition, which enables flexible classification and search.
[0059] (Embodiment 2) Hereinafter, the second embodiment will be described with reference to the drawings. In this embodiment, a specific example of feature amount calculation in the first embodiment will be described. In this embodiment, the feature amount is obtained by normalizing using the person's height. The rest is the same as in the first embodiment.
[0060] Fig. 18 shows the configuration of an image processing device 100 according to this embodiment. As shown in Fig. 18, the image processing device 100 further includes a height calculation unit 108 in addition to the configuration of embodiment 1. Note that the feature calculation unit 103 and the height calculation unit 108 may be integrated into one processing unit.
[0061] The height calculation unit (height estimation unit) 108 calculates (estimates) the height (called height pixel count) of a person in a two-dimensional image when standing upright, based on the two-dimensional skeletal structure detected by the skeletal structure detection unit 102. The height pixel count can also be said to be the height of a person in a two-dimensional image (the length of the person's entire body in two-dimensional image space). The height calculation unit 108 finds the height pixel count (number of pixels) from the length of each bone of the detected skeletal structure (the length in two-dimensional image space).
[0062] In the following examples, concrete examples 1 to 3 are used as a method for calculating the height pixel number. Any of the concrete examples 1 to 3 may be used, or a combination of a plurality of arbitrarily selected methods may be used. In concrete example 1, the height pixel number is calculated by adding up the lengths of the bones from the head to the feet among the bones of the skeletal structure. If the skeletal structure detection unit 102 (skeletal estimation technology) does not output the top of the head and the feet, it can be corrected by multiplying a constant as necessary. In concrete example 2, the height pixel number is calculated using a human body model that indicates the relationship between the length of each bone and the length of the whole body (height in a two-dimensional image space). In concrete example 3, the height pixel number is calculated by fitting (applying) a three-dimensional human body model to the two-dimensional skeletal structure.
[0063] The feature amount calculation unit 103 in this embodiment is a normalization unit that normalizes the skeletal structure (skeletal information) of a person based on the calculated height pixel count of the person. The feature amount calculation unit 103 stores the feature amount (normalized value) of the normalized skeletal structure in the database 110. The feature amount calculation unit 103 normalizes the height of each key point (feature point) included in the skeletal structure on the image by the height pixel count. In this embodiment, for example, the height direction is the up-down direction (Y-axis direction) in the two-dimensional coordinate (XY coordinate) space of the image. In this case, the height of the key point can be obtained from the Y coordinate value (number of pixels) of the key point. Alternatively, the height direction may be the direction of the vertical projection axis (vertical projection direction) obtained by projecting the direction of the vertical axis perpendicular to the ground (reference plane) in the three-dimensional coordinate space of the real world onto the two-dimensional coordinate space. In this case, the height of the key point can be obtained from the value (number of pixels) along the vertical projection axis obtained by projecting the axis perpendicular to the ground in the real world onto the two-dimensional coordinate space based on the camera parameters. The camera parameters are the imaging parameters of the image, and for example, the camera parameters are the attitude, position, imaging angle, focal length, etc. of the camera 200. The camera 200 can capture an image of an object whose length and position are known in advance, and the camera parameters can be obtained from the image. Distortion occurs at both ends of the captured image, and there are cases where the vertical direction in the real world does not match the up-down direction of the image. In response to this, by using the parameters of the camera that captured the image, it is possible to know to what extent the vertical direction in the real world is tilted in the image. Therefore, by normalizing the value of the keypoint along the vertical projection axis projected into the image based on the camera parameters by height, it is possible to convert the keypoint into a feature value that takes into account the deviation between the real world and the image. Note that the left-right direction (horizontal direction) is the left-right direction (X-axis direction) in the two-dimensional coordinate (XY coordinate) space of the image, or the direction parallel to the ground in the three-dimensional coordinate space of the real world projected onto the two-dimensional coordinate space.
[0064] Fig. 19 to Fig. 23 show the operation of the image processing device 100 according to this embodiment. Fig. 19 shows the flow from image acquisition to search processing in the image processing device 100, Fig. 20 to Fig. 22 show the flow of specific examples 1 to 3 of the height pixel number calculation processing (S201) in Fig. 19, and Fig. 23 shows the flow of the normalization processing (S202) in Fig. 19.
[0065] 19, in this embodiment, height pixel number calculation processing (S201) and normalization processing (S202) are performed as the feature amount calculation processing (S103) in embodiment 1. The rest is the same as in embodiment 1.
[0066] Following image acquisition (S101) and skeletal structure detection (S102), the image processing device 100 performs height pixel number calculation processing based on the detected skeletal structure (S201). In this example, as shown in FIG. 24, the height of the skeletal structure of a person standing upright in the image is defined as the height pixel number (h), and the height of each key point of the skeletal structure in the state of the person in the image is defined as the key point height (y i ) Hereinafter, specific examples 1 to 3 of the height pixel number calculation process will be described.
[0067] <Example 1> In specific example 1, the height pixel number is calculated using the bone lengths from the head to the feet. In specific example 1, as shown in Fig. 20, the height calculation unit 108 obtains the length of each bone (S211) and sums up the obtained lengths of each bone (S212).
[0068] The height calculation unit 108 obtains the length of the bones on the two-dimensional image from the head to the feet of the person, and calculates the height pixel number. That is, from the image in which the skeletal structure is detected, the length (number of pixels) of each of the bones in FIG. 24, bone B1 (length L1), bone B51 (length L21), bone B61 (length L31), and bone B71 (length L41), or bone B1 (length L1), bone B52 (length L22), bone B62 (length L32), and bone B72 (length L42), is obtained. The length of each bone can be obtained from the coordinates of each key point in the two-dimensional image. The total of these, L1+L21+L31+L41, or L1+L22+L32+L42, is multiplied by a correction constant to calculate the height pixel number (h). When both values can be calculated, for example, the longer value is set as the height pixel number. That is, each bone will be the longest in the image when it is photographed from the front, and will appear shorter when tilted in the depth direction relative to the camera. Therefore, it is more likely that a longer bone was photographed from the front, and is closer to the true value. For this reason, it is preferable to select the longer value.
[0069] In the example of Fig. 25, bone B1, bones B51 and B52, bones B61 and B62, and bones B71 and B72 are detected without overlapping. The totals of these bones, L1+L21+L31+L41 and L1+L22+L32+L42, are calculated, and the height pixel number is determined by multiplying the detected bone length, for example, L1+L22+L32+L42 on the left leg side, which is longer, by a correction constant.
[0070] 26, bone B1, bone B51 and bone B52, bone B61 and bone B62, and bone B71 and bone B72 are detected, and bones B61 and B71 of the right foot overlap with bones B62 and B72 of the left foot. The totals of these bones, L1+L21+L31+L41 and L1+L22+L32+L42, are calculated, and the height pixel number is determined by multiplying the detected bone length L1+L21+L31+L41 on the right foot side, which is longer, by a correction constant.
[0071] 27, bone B1, bone B51 and bone B52, bone B61 and bone B62, and bone B71 and bone B72 are detected, and bones B61 and B71 of the right foot overlap with bones B62 and B72 of the left foot. The totals of these bones, L1+L21+L31+L41 and L1+L22+L32+L42, are calculated, and the height pixel number is determined by multiplying the detected bone length L1+L22+L32+L42 on the left foot side, which is longer, by a correction constant.
[0072] In Example 1, height can be calculated by adding up the lengths of the bones from head to toe, so the height pixel count can be calculated in a simple manner. In addition, because it is sufficient to detect at least the skeleton from head to toe using machine learning-based skeleton estimation technology, the height pixel count can be estimated with high accuracy even when the entire person is not necessarily captured in the image, such as when the person is crouching.
[0073] <Example 2> In a second specific example, the height pixel number is calculated using a two-dimensional skeleton model that indicates the relationship between the length of the bones included in the two-dimensional skeleton structure and the length of the entire body of a person in a two-dimensional image space.
[0074] FIG. 28 shows a human body model (two-dimensional skeletal model) 301 used in the concrete example 2, which shows the relationship between the length of each bone in the two-dimensional image space and the length of the whole body in the two-dimensional image space. As shown in FIG. 28, the relationship between the length of each bone of an average person and the length of the whole body (the ratio of the length of each bone to the length of the whole body) is associated with each bone of the human body model 301. For example, the length of the head bone B1 is the length of the whole body×0.2 (20%), the length of the right hand bone B41 is the length of the whole body×0.15 (15%), and the length of the right foot bone B71 is the length of the whole body×0.25 (25%). By storing such information of the human body model 301 in the database 110, the average whole body length can be obtained from the length of each bone. In addition to the human body model of the average person, a human body model may be prepared for each person's attributes such as age, sex, and nationality. This makes it possible to obtain the whole body length (height) appropriately according to the person's attributes.
[0075] In specific example 2, as shown in Fig. 21, height calculation unit 108 acquires the length of each bone (S221). Height calculation unit 108 acquires the length of all bones (length in two-dimensional image space) in the detected skeletal structure. Fig. 29 shows an example in which a person in a crouching state is imaged from diagonally behind to the right and a skeletal structure is detected. In this example, the person's face and left side are not captured, so the head bone and the left arm and left hand bones cannot be detected. Therefore, the length of each of the detected bones B21, B22, B31, B41, B51, B52, B61, B62, B71, and B72 is acquired.
[0076] Next, the height calculation unit 108 calculates the height pixel number from the length of each bone based on the human body model as shown in Fig. 21 (S222). The height calculation unit 108 refers to a human body model 301 showing the relationship between each bone and the length of the whole body as shown in Fig. 28, and calculates the height pixel number from the length of each bone. For example, since the length of the right hand bone B41 is the whole body length × 0.15, the height pixel number based on the bone B41 is calculated by dividing the length of the bone B41 by 0.15. Also, since the length of the right foot bone B71 is the whole body length × 0.25, the height pixel number based on the bone B71 is calculated by dividing the length of the bone B71 by 0.25.
[0077] The human body model to be referenced at this time is, for example, an average human body model, but a human body model may be selected according to the attributes of the person, such as age, sex, and nationality. For example, when a person's face is captured in a captured image, the attributes of the person are identified based on the face, and a human body model corresponding to the identified attributes is referenced. The attributes of the person can be recognized from the facial features of the image by referring to information obtained by machine learning of the face for each attribute. Also, when the attributes of the person cannot be identified from the image, an average human body model may be used.
[0078] Furthermore, the height pixel count calculated from the bone lengths may be corrected by camera parameters. For example, when a person is photographed looking down from a high position with a camera, the horizontal length of the shoulder width bones in the two-dimensional skeletal structure is not affected by the camera's inclination angle, but the vertical length of the neck-waist bones decreases as the camera's inclination angle increases. As a result, the height pixel count calculated from the horizontal length of the shoulder width bones tends to be larger than the actual height pixel count. Therefore, by utilizing camera parameters, the angle at which the camera is looking down on the person can be known, and this inclination angle information can be used to correct the two-dimensional skeletal structure to one as if photographed from the front. This allows the height pixel count to be calculated more accurately.
[0079] Next, the height calculation unit 108 calculates the optimum value of the height pixel number as shown in FIG. 21 (S223). The height calculation unit 108 calculates the optimum value of the height pixel number from the height pixel number obtained for each bone. For example, as shown in FIG. 30, a histogram of the height pixel number obtained for each bone is generated, and the largest height pixel number is selected from among them. In other words, a height pixel number longer than the others is selected from among the multiple height pixel numbers obtained based on multiple bones. For example, the top 30% is set as a valid value, and the height pixel numbers of bones B71, B61, and B51 are selected in FIG. 30. The average of the selected height pixel numbers may be obtained as the optimum value, or the largest height pixel number may be obtained as the optimum value. Since the height is obtained from the length of the bone in the two-dimensional image, if the bone is not shot from the front, that is, if the bone is shot tilted in the depth direction when viewed from the camera, the length of the bone will be shorter than when shot from the front. In this case, a value with a large height pixel number is more likely to have been shot from the front than a value with a small height pixel number, and is therefore a more likely value, so a larger value is set as the optimum value.
[0080] In Example 2, the height pixel number is calculated based on the detected bones of the skeletal structure using a human body model showing the relationship between the bones in the two-dimensional image space and the length of the whole body, so that even if all the bones from the head to the feet cannot be obtained, the height pixel number can be calculated from some of the bones. In particular, the height pixel number can be estimated with high accuracy by adopting the larger value among the values calculated from multiple bones.
[0081] <Example 3> In a third specific example, the two-dimensional skeletal structure is fitted to a three-dimensional human body model (three-dimensional skeletal model), and the skeletal vector of the entire body is obtained using the height pixel count of the fitted three-dimensional human body model.
[0082] In specific example 3, as shown in Fig. 22, height calculation unit 108 first calculates camera parameters based on images captured by camera 200 (S231). Height calculation unit 108 extracts an object whose length is known in advance from a plurality of images captured by camera 200, and obtains camera parameters from the size (number of pixels) of the extracted object. Note that the camera parameters may be obtained in advance, and the obtained camera parameters may be acquired as necessary.
[0083] Next, the height calculation unit 108 adjusts the position and height of the three-dimensional human body model (S232). The height calculation unit 108 prepares a three-dimensional human body model for calculating the number of height pixels for the detected two-dimensional skeletal structure, and places it in the same two-dimensional image based on the camera parameters. Specifically, the "relative positional relationship between the camera and the person in the real world" is specified from the camera parameters and the two-dimensional skeletal structure. For example, assuming that the camera position is at coordinates (0,0,0), the coordinates (x,y,z) of the position where the person is standing (or sitting) are specified. Then, the two-dimensional skeletal structure and the three-dimensional human body model are superimposed by assuming an image when the three-dimensional human body model is placed at the same position (x,y,z) as the specified person and captured.
[0084] FIG. 31 shows an example in which a person who is crouching is imaged from the left diagonal front and a two-dimensional skeletal structure 401 is detected. The two-dimensional skeletal structure 401 has two-dimensional coordinate information. It is preferable that all bones are detected, but some bones may not be detected. For this two-dimensional skeletal structure 401, a three-dimensional human body model 402 as shown in FIG. 32 is prepared. The three-dimensional human body model (three-dimensional skeletal model) 402 has three-dimensional coordinate information and is a skeletal model having the same shape as the two-dimensional skeletal structure 401. Then, as shown in FIG. 33, the prepared three-dimensional human body model 402 is arranged and superimposed on the detected two-dimensional skeletal structure 401. In addition to the superimposition, the height of the three-dimensional human body model 402 is adjusted to match the two-dimensional skeletal structure 401.
[0085] The three-dimensional human body model 402 prepared at this time may be a model in a state close to the posture of the two-dimensional skeletal structure 401, as shown in Fig. 33, or may be a model in an upright state. For example, a three-dimensional human body model 402 in an estimated posture may be generated using a technology that uses machine learning to estimate a posture in three-dimensional space from a two-dimensional image. By learning information on the joints in the two-dimensional image and the joints in three-dimensional space, it is possible to estimate a three-dimensional posture from a two-dimensional image.
[0086] Next, the height calculation unit 108 fits the three-dimensional human body model to the two-dimensional skeletal structure as shown in FIG. 22 (S233). In a state where the three-dimensional human body model 402 is superimposed on the two-dimensional skeletal structure 401 as shown in FIG. 34, the height calculation unit 108 deforms the three-dimensional human body model 402 so that the postures of the three-dimensional human body model 402 and the two-dimensional skeletal structure 401 match. That is, the height, body orientation, and joint angles of the three-dimensional human body model 402 are adjusted and optimized so that there is no difference with the two-dimensional skeletal structure 401. For example, the joints of the three-dimensional human body model 402 are rotated within the range of human movement, and the entire three-dimensional human body model 402 is rotated and the overall size is adjusted. The fitting of the three-dimensional human body model to the two-dimensional skeletal structure is performed in a two-dimensional space (two-dimensional coordinates). In other words, a 3D human body model is mapped onto a 2D space, and the 3D human body model is optimized to a 2D skeletal structure, taking into consideration how the deformed 3D human body model changes in the 2D space (image).
[0087] Next, height calculation unit 108 calculates the height pixel number of the fitted three-dimensional human body model as shown in FIG. 22 (S234). When the difference between three-dimensional human body model 402 and two-dimensional skeletal structure 401 disappears and the postures match as shown in FIG. 35, height calculation unit 108 calculates the height pixel number of three-dimensional human body model 402 in that state. With optimized three-dimensional human body model 402 in an upright state, the length of the entire body in two-dimensional space is calculated based on the camera parameters. For example, the height pixel number is calculated based on the bone length (number of pixels) from the head to the feet when three-dimensional human body model 402 is upright. As in specific example 1, the bone lengths from the head to the feet of three-dimensional human body model 402 may be summed up.
[0088] In specific example 3, a 3D human body model is fitted to a 2D skeletal structure based on the camera parameters, and height pixel count is calculated based on the 3D human body model. This makes it possible to estimate height pixel count with high accuracy even when not all bones are viewed from the front, i.e., even when all bones are viewed at an angle, resulting in a large error.
[0089] <Normalization process> As shown in FIG. 19, the image processing device 100 performs a normalization process (S202) following the height pixel number calculation process. In the normalization process, as shown in FIG. 23, the feature calculation unit 103 calculates the key point height (number of pixels) of all key points included in the detected skeletal structure. The key point height is the length (number of pixels) in the height direction from the lowest end of the skeletal structure (for example, a key point of one of the feet) to that key point. Here, as an example, the key point height is calculated from the Y coordinate of the key point in the image. Note that, as described above, the key point height may be calculated from the length in the direction along the vertical projection axis based on the camera parameters. For example, in the example of FIG. 24, the height (y i ) is the Y coordinate of key point A2 minus the Y coordinate of key point A81 of the right foot or key point A82 of the left foot.
[0090] Next, the feature amount calculation unit 103 specifies a reference point for normalization (S242). The reference point is a point that serves as a reference for expressing the relative height of the key point. The reference point may be set in advance, or may be selectable by the user. The reference point is preferably the center of the skeletal structure or higher than the center (upward in the vertical direction of the image), and for example, the coordinates of the key point of the neck are set as the reference point. Note that the reference point is not limited to the neck, and the coordinates of the head or other key points may be set as the reference point. The reference point is not limited to the key point, and any coordinates (for example, the center coordinates of the skeletal structure, etc.) may be set as the reference point.
[0091] Next, the feature calculation unit 103 calculates the keypoint height (y i) by the number of height pixels (S243). The feature amount calculation unit 103 normalizes each keypoint using the keypoint height, reference point, and number of height pixels of each keypoint. Specifically, the feature amount calculation unit 103 normalizes the relative height of the keypoint with respect to the reference point by the number of height pixels. Here, as an example focusing on only the height direction, only the Y coordinate is extracted, and normalization is performed with the reference point being the neck keypoint. Specifically, the Y coordinate of the reference point (neck keypoint) is calculated as (y c ) and calculate the feature amount (normalized value) using the following formula (1). Note that when using the vertical projection axis based on the camera parameters, (y i ) and (y c ) to a value along the vertical projection axis.
number
[0092] For example, if there are 18 key points, the coordinates of the 18 key points are (x0, y0), (x1, y1), ... (x 17 , y 17 ) is converted into an 18-dimensional feature vector using the above formula (1) as follows:
number
[0093] FIG. 36 shows an example of the feature amount of each key point calculated by the feature amount calculation unit 103. In this example, the neck key point A2 is set as the reference point, so the feature amount of the key point A2 is 0.0, and the feature amounts of the right shoulder key point A31 and the left shoulder key point A32, which are at the same height as the neck, are also 0.0. The feature amount of the head key point A1, which is higher than the neck, is -0.2. The feature amount of the right hand key point A51 and the left hand key point A52, which are lower than the neck, is 0.4, and the feature amount of the right foot key point A81 and the left foot key point A82 are 0.9. If the person raises his / her left hand from this state, the left hand becomes higher than the reference point as shown in FIG. 37, so the feature amount of the left hand key point A52 is -0.4. On the other hand, since normalization is performed using only the coordinate of the Y axis, the feature amount does not change even if the width of the skeletal structure changes as shown in FIG. 38 compared to FIG. 36. That is, the feature amount (normalized value) in this embodiment indicates the feature in the height direction (Y direction) of the skeletal structure (key point), and is not affected by changes in the lateral direction (X direction) of the skeletal structure.
[0094] As described above, in this embodiment, a person's skeletal structure is detected from a two-dimensional image, and each key point of the skeletal structure is normalized using the height pixel count (height when standing upright in two-dimensional image space) calculated from the detected skeletal structure. By using this normalized feature amount, robustness when classification, search, etc. are performed can be improved. That is, the feature amount of this embodiment is not affected by lateral changes of the person as described above, and is therefore highly robust against changes in the person's orientation and body shape.
[0095] Furthermore, in this embodiment, since this can be realized by detecting the skeletal structure of a person using a skeletal estimation technology such as OpenPose, there is no need to prepare learning data for learning the posture, etc. of a person. Also, by normalizing the key points of the skeletal structure and storing them in a database, classification and search of posture, etc. of a person is possible, so classification and search can be performed even for unknown postures. Also, by normalizing the key points of the skeletal structure, clear and easy-to-understand features can be obtained, so that users can be more convinced of the processing results, unlike black-box algorithms such as machine learning.
[0096] Each component in the above-described embodiment may be configured by hardware or software, or both, and may be configured by one piece of hardware or software, or may be configured by multiple pieces of hardware or software. The functions (processing) of the image processing devices 10 and 100 may be realized by a computer 20 having a processor 21 such as a CPU (Central Processing Unit) and a memory 22 serving as a storage device, as shown in Fig. 39. For example, a program (image processing program) for performing the method in the embodiment may be stored in the memory 22, and each function may be realized by the processor 21 executing the program stored in the memory 22.
[0097] These programs can be stored and provided to a computer using various types of non-transitory computer readable media. Non-transitory computer readable media include various types of tangible storage media. Examples of non-transitory computer readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROM (Read Only Memory), CD-R, CD-R / W, and semiconductor memory (e.g., mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM (random access memory)). The programs may also be provided to a computer by various types of transitory computer readable media. Examples of transitory computer readable media include electric signals, optical signals, and electromagnetic waves. The transitory computer readable media can provide the programs to a computer via a wired communication path such as an electric wire and an optical fiber, or via a wireless communication path.
[0098] In addition, the present disclosure is not limited to the above-described embodiment, and can be appropriately modified without departing from the spirit and scope of the present disclosure. For example, in the above, the skeletal structure of a person is detected, but animals (mammals, reptiles, birds, amphibians, fish, etc.) having a skeletal structure other than a person may be detected.
[0099] Although the present disclosure has been described above with reference to the embodiments, the present disclosure is not limited to the above-mentioned embodiments. Various modifications that can be understood by a person skilled in the art can be made to the configuration and details of the present disclosure within the scope of the present disclosure.
[0100] A part or all of the above-described embodiments can be described as, but is not limited to, the following supplementary notes. (Appendix 1) A skeleton detection means for detecting two-dimensional skeleton structures of a plurality of persons based on the acquired two-dimensional images; A feature calculation means for calculating feature amounts of the detected two-dimensional skeletal structures; a recognition means for performing a recognition process of the states of the plurality of persons based on the calculated similarities of the plurality of feature amounts; An image processing device comprising: (Appendix 2) The recognition means classifies states of the plurality of persons as the recognition processing. 2. An image processing device as described in claim 1. (Appendix 3) The recognition means classifies the states of the plurality of people based on the feature amount of the whole or a part of the two-dimensional skeletal structure. 3. An image processing device as described in claim 2. (Appendix 4) the recognition means classifies states of the plurality of persons based on a feature amount of a first portion of the two-dimensional skeletal structure and a feature amount of a second portion of the two-dimensional skeletal structure; 3. An image processing device as described in claim 2. (Appendix 5) the skeleton detection means detects two-dimensional skeleton structures of the plurality of people from a plurality of two-dimensional images successive in time series; The recognition means classifies the states of the plurality of persons based on features of two-dimensional skeletal structures detected from the plurality of two-dimensional images. 5. An image processing device according to any one of claims 2 to 4. (Appendix 6) The recognition means classifies states of the plurality of persons based on changes in feature amounts of the two-dimensional skeletal structures in the plurality of two-dimensional images. 6. The image processing device according to claim 5. (Appendix 7) The recognition means classifies two-dimensional skeletal structures of the person whose right and left sides are reversed as being in the same state. 7. An image processing device according to any one of claims 2 to 6. (Appendix 8) the recognition means displays a classification result of the states of the plurality of persons according to the similarity. 8. An image processing device according to any one of claims 2 to 7. (Appendix 9) the recognition means searches for a state of a person selected from the displayed classification result from states of the plurality of people; 9. The image processing device according to claim 8. (Appendix 10) The recognition means searches for a query state from states of the plurality of people as the recognition processing. 2. An image processing device as described in claim 1. (Appendix 11) The recognition means searches for the query state based on a feature quantity of the whole or a part of the two-dimensional skeletal structure. 11. The image processing device of claim 10. (Appendix 12) the recognition means searches for the query state based on a feature amount of a first portion of the two-dimensional skeletal structure and a feature amount of a second portion of the two-dimensional skeletal structure; 11. The image processing device of claim 10. (Appendix 13) The recognition means searches for the query state based on weights of the feature amount of the first part and the feature amount of the second part. 13. The image processing device of claim 12. (Appendix 14) the skeleton detection means detects two-dimensional skeleton structures of the plurality of people from a plurality of two-dimensional images successive in time series; The recognition means searches for the query state based on features of a two-dimensional skeletal structure detected from the plurality of two-dimensional images. 14. An image processing device according to any one of claims 10 to 13. (Appendix 15) The recognition means searches for the query state based on a change in a feature amount of the two-dimensional skeletal structure in the plurality of two-dimensional images. 15. The image processing device of claim 14. (Appendix 16) The recognition means searches for two-dimensional skeletal structures of the person with the right and left sides reversed as being in the same state. 16. An image processing device according to any one of claims 10 to 15. (Appendix 17) the recognition means displays a search result of the states of the plurality of persons according to the similarity. 17. An image processing device according to any one of claims 10 to 16. (Appendix 18) The feature amount is a feature amount only in a height direction of the person. 18. An image processing device according to any one of claims 1 to 17. (Appendix 19) The feature amount is a feature amount obtained by normalizing the two-dimensional skeletal structure based on the height of the person when standing upright in the two-dimensional image space. 19. The image processing device of claim 18. (Appendix 20) Detecting two-dimensional skeletal structures of multiple people based on the acquired two-dimensional images; Calculating feature amounts of the detected two-dimensional skeletal structures; performing a process of recognizing states of the plurality of persons based on the calculated similarities of the plurality of feature amounts; Image processing methods. (Appendix 21) The recognition process includes classifying states of the plurality of people. 21. The image processing method according to claim 20. (Appendix 22) As the recognition process, a query state is searched for from states of the plurality of people. 21. The image processing method according to claim 20. (Appendix 23) Detecting two-dimensional skeletal structures of multiple people based on the acquired two-dimensional images; Calculating feature amounts of the detected two-dimensional skeletal structures; performing a process of recognizing states of the plurality of persons based on the calculated similarities of the plurality of feature amounts; An image processing program that causes a computer to carry out the processing. (Appendix 24) The recognition process includes classifying states of the plurality of people. 24. The image processing program according to claim 23. (Appendix 25) As the recognition process, a query state is searched for from states of the plurality of people. 24. The image processing program according to claim 23. [Explanation of symbols]
[0101] 1. Image Processing System 10 Image processing device 11 Skeleton detection section 12 Feature Calculation Unit 13 Recognition part 20. Computers 21 Processors 22 Memory 100 Image processing device 101 Image acquisition unit 102 Skeletal structure detection unit 103 Feature Calculation Unit 104 Classification Department 105 Search Department 106 Input section 107 Display section 108 Height Calculator 110 Database 200 Cameras 300, 301 Human body models 401 2D Skeleton Structure 402 3D Human Body Model
Claims
1. A skeleton detection means for detecting two-dimensional skeleton structures of a plurality of persons based on one or a plurality of acquired two-dimensional images; A feature calculation means for calculating feature amounts of the detected two-dimensional skeletal structures; a recognition means for performing a recognition process of the states of the plurality of persons based on the calculated similarities of the plurality of feature amounts; Equipped with The recognition means, as the recognition processing, classifies states of the plurality of persons or searches for a query state from the states of the plurality of persons; the feature amount is a feature amount based only on a coordinate in a height direction of the person for each of a plurality of feature points included in the two-dimensional skeletal structure; Image processing device.
2. The recognition means classifies states of the plurality of people or searches for the query state based on features of the entire or part of the two-dimensional skeletal structure. The image processing device according to claim 1 .
3. The recognition means classifies states of the plurality of persons or searches for the query state based on a feature amount of a first portion of the two-dimensional skeletal structure and a feature amount of a second portion of the two-dimensional skeletal structure. The image processing device according to claim 1 .
4. the skeleton detection means detects two-dimensional skeleton structures of the plurality of people from a plurality of two-dimensional images successive in time series; The recognition means classifies states of the plurality of persons or searches for the query state based on features of two-dimensional skeletal structures detected from the plurality of two-dimensional images. The image processing device according to claim 1 .
5. The recognition means classifies or searches for two-dimensional skeletal structures of the person whose right and left sides are reversed as being in the same state. The image processing device according to claim 1 .
6. the recognition means displays a classification result of the states of the plurality of persons or a search result according to the similarity. The image processing device according to claim 1 .
7. Detecting two-dimensional skeletal structures of a plurality of persons based on the one or more two-dimensional images obtained; Calculating feature amounts of the detected two-dimensional skeletal structures; performing a recognition process for the states of the plurality of persons based on the calculated similarities of the plurality of feature amounts; As the recognition process, a state of the plurality of people is classified, or a query state is searched from the states of the plurality of people; the feature amount is a feature amount based only on a coordinate in a height direction of the person for each of a plurality of feature points included in the two-dimensional skeletal structure; Image processing methods.
8. Detecting two-dimensional skeletal structures of a plurality of persons based on the one or more two-dimensional images obtained; Calculating feature amounts of the detected two-dimensional skeletal structures; performing a recognition process for the states of the plurality of persons based on the calculated similarities of the plurality of feature amounts; As the recognition process, a state of the plurality of people is classified, or a query state is searched from the states of the plurality of people; the feature amount is a feature amount based only on a coordinate in a height direction of the person for each of a plurality of feature points included in the two-dimensional skeletal structure; An image processing program that causes a computer to carry out the processing.
Citation Information
Patent Citations
Image information updating system, image inputting device, image processing device, image updating device, image information updating method, image information updating program, and recording medium recording the program
JP2006260405A
Apparatus and method for retrieving object poses
JP2014522035A
Image retrieving apparatus, image retrieving method, and setting screen used therefor
JP2019091138A
Apparatus and method for creating pose cluster
US20130181988A1
