Operation estimation device
The motion estimation device enhances motion detection accuracy by converting two-dimensional images to three-dimensional models, enabling precise estimation of object motion and contact in real space.
Patent Information
- Application Number
- JP2023035386
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-20
AI Technical Summary
Conventional motion detection systems using two-dimensional images struggle to accurately estimate the motion of objects in three-dimensional space due to the limitations of viewing from a single direction.
A motion estimation device that acquires a two-dimensional image, generates a three-dimensional target model, estimates depth, and places the model on a three-dimensional space model to estimate motion based on relative positions, using components like an acquisition unit, target model generation, depth estimation, and motion estimation units.
Accurately estimates the motion of objects in a two-dimensional image by projecting onto a three-dimensional space model, improving accuracy in detecting contact and direction of motion, while protecting privacy and reducing processing load.
Smart Images

Figure 2024126769000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a motion estimation device. [Background technology]
[0002] Conventionally, a technology is known that analyzes two-dimensional images captured by a surveillance camera or the like and estimates the behavior of an analysis target. For example, a specific behavior detection device described in Patent Document 1 below judges whether a patient has gotten out of bed, including the presence or absence of a behavior of getting up from the bed and sitting on the bed. The specific behavior detection device includes a camera, a bed detection unit, a person posture detection unit, a relative position calculation unit, a relative position information storage unit, and a behavior estimation unit. The camera captures an image of the entire monitoring area. The bed detection unit extracts the bed from the captured image of the camera and calculates the area of the bed from the extracted information. The person posture detection unit obtains coordinate information of a specific part of the patient on the bed from the captured image of the camera, and detects the posture of the patient from the information. The relative position calculation unit calculates the relative position between the bed and the patient based on the information detected by the bed detection unit and the person posture detection unit. The relative position information storage unit stores the time-series relative position information calculated by the relative position calculation unit. The behavior estimation unit estimates the behavior of the patient on the bed based on multiple pieces of time-series information stored in the relative position information storage unit. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2022-108129 A Summary of the Invention [Problem to be solved by the invention]
[0004] In many cases, a single camera captures an image of the subject of analysis, capturing a two-dimensional image of the subject viewed from one direction. However, real space is three-dimensional, making it difficult to accurately detect the motion of the subject of analysis from a two-dimensional image captured from one direction.
[0005] An object of the present invention is to accurately estimate the motion of an object to be analyzed that is captured in a two-dimensional image. [Means for solving the problem]
[0006] A motion estimation device according to one aspect of the present invention includes an acquisition unit that acquires two-dimensional images of a real space and an analysis object located in the real space; an object model generation unit that generates a three-dimensional object model that imitates a shape of the analysis object in the real space based on the two-dimensional image; a depth estimation unit that estimates a depth of the analysis object relative to an imaging device that captures the two-dimensional image based on the two-dimensional image; a placement unit that places the three-dimensional object model on a three-dimensional space model that imitates the real space based on the depth estimated by the depth estimation unit and a position of the analysis object on the two-dimensional image; and a motion estimation unit that estimates a motion of the analysis object in the real space based on a relative position between the three-dimensional object model and an object model indicating an object in the three-dimensional space model. Effect of the Invention
[0007] According to one aspect of the present invention, the motion of an object to be analyzed captured in a two-dimensional image can be estimated with high accuracy. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing a configuration of a motion estimation device 10 according to a first embodiment. [Diagram 2] FIG. 2 is a schematic diagram showing an example of a two-dimensional image PC. [Diagram 3] FIG. 2 is a schematic diagram showing an example of a three-dimensional space model SV. [Figure 4A] 13 is a diagram illustrating a schematic diagram of a result of motion estimation by a motion estimation unit 145. FIG. [Figure 4B] 13 is a diagram illustrating a schematic diagram of a result of motion estimation by a motion estimation unit 145. FIG. [Diagram 5] 13 is a diagram showing a schematic display example of specific information Ns in operation example 2. FIG. [Figure 6]13 is a diagram showing a schematic display example of specific information Ns based on the duration of an action. FIG. [Figure 7] 1 is a diagram showing a schematic diagram of a position of an analysis object H in a real space SR. [Figure 8] 4 is a flowchart showing the operation of the motion estimation device 10. [Figure 9] FIG. 11 is a block diagram showing a configuration of a motion estimation device 10 according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] A. First embodiment 1 is a block diagram showing the configuration of a motion estimation device 10 according to a first embodiment. Based on a two-dimensional image PC captured in a real space SR, the motion estimation device 10 estimates the motion of an analysis target H (e.g., people H1 and H2) appearing in the two-dimensional image PC.
[0010] Specifically, the motion estimation device 10 is an information processing terminal such as a personal computer, a tablet, or a smartphone. The motion estimation device 10 includes, for example, an input device 100, a display device 110, a communication device 120, a storage device 130, a processing device 140, and a bus 150. The input device 100, the display device 110, the communication device 120, and the storage device 130 are each connected to the processing device 140 by the bus 150 that mediates data transmission and reception. The bus 150 may be configured using a single bus, or may be configured using different buses between each element.
[0011] The input device 100 is an input device (e.g., a keyboard, a mouse, a switch, a button, or a sensor) that accepts input from the outside. The display device 110 is a display device (e.g., various display panels such as a liquid crystal display panel or an organic EL display panel) that displays information to the outside. The input device 100 and the display device 110 may be integrated, for example, as a touch panel.
[0012] The communication device 120 includes a communication interface connectable to a network (not shown) and communicates with other devices via the network. The other devices are, for example, an imaging device C (see FIG. 7) that captures a two-dimensional image PC (see FIG. 2). The imaging device C is, for example, a camera. The communication interface of the communication device 120 may be a wireless communication interface or a wired communication interface.
[0013] The storage device 130 is a recording medium readable by the processing device 140. The storage device 130 may be configured with at least one of, for example, a read only memory (ROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a random access memory (RAM), and the like. A program PG is stored in the storage device 130. The program PG is a program for operating the motion estimation device 10.
[0014] The processing device 140 includes one or more central processing units (CPUs). The processing device 140 reads the program PG from the storage device 130 when an instruction to execute the program PG is received through an input operation on the input device 100. The processing device 140 executes the read program PG. The processing device 140 executes the program PG to function as an acquisition unit 141, an object model generation unit 142, a depth estimation unit 143, an arrangement unit 144, a motion estimation unit 145, and a display control unit 146. At least some of the functions of the acquisition unit 141, the object model generation unit 142, the depth estimation unit 143, the arrangement unit 144, the motion estimation unit 145, and the display control unit 146 may be configured by circuits such as a digital signal processor (DSP), an application specific integrated circuit (ASIC), a programmable logic device (PLD), and a field programmable gate array (FPGA).
[0015] The acquisition unit 141 acquires a two-dimensional image PC in which a real space SR and an analysis target H located in the real space SR are captured. The real space SR may be, for example, an indoor space such as a store, a station, an office, or a hospital, or an outdoor space such as a road, a theme park, or an event venue. The analysis target H is an entity that performs an action, such as a person, an animal, a vehicle, or a robot. The analysis target H may be, for example, an object B such as a thrown ball. In this embodiment, the real space SR is an indoor space, and the analysis target H is people H1 and H2 (see FIG. 2).
[0016] The acquisition unit 141 acquires the two-dimensional image PC from the imaging device C using, for example, the communication device 120. When the imaging device C is located within a range where it can be connected to the motion estimation device 10 by wire, the acquisition unit 141 may acquire the two-dimensional image PC from the imaging device C via a connection interface (not shown) provided in the motion estimation device 10. The connection interface is an interface for connecting the motion estimation device 10 to another device. The connection interface may be, for example, a connector to which a USB (Universal Serial Bus) cable or the like is connected, or a communication module that uses short-range wireless communication such as Bluetooth (registered trademark) or Wi-Fi (registered trademark).
[0017] The acquisition unit 141 may acquire two-dimensional images PC from a plurality of imaging devices C provided at different locations in the real space SR. In addition, the acquisition unit 141 is not limited to acquiring the two-dimensional images PC directly from the imaging devices C, and may acquire the two-dimensional images PC from another information processing device that has acquired the two-dimensional images PC from the imaging devices C.
[0018] In this embodiment, the two-dimensional image PC is a still image constituting a moving image. The imaging device C captures the moving image by generating a still image (two-dimensional image PC) at a predetermined frame rate. The imaging device C transmits each still image (two-dimensional image PC) to the motion estimation device 10 every time it generates it. By capturing the moving image with the imaging device C, the state of the analysis object H is continuously grasped, and the accuracy of motion estimation is improved.
[0019] Fig. 2 is a schematic diagram showing an example of a two-dimensional image PC. The two-dimensional image PC shown in Fig. 2 shows an indoor space as a real space SR. In the real space SR, objects B (B1 to B6) exist. The objects B include, for example, a wall B1, a floor B2, a bench B3, a desk B4, a round stool B5, and a monitor B6. In addition, the two-dimensional image PC shows people H1 and H2 who are the analysis target H.
[0020] For the two-dimensional image PC, the Xp axis is taken as the horizontal direction and the Yp axis is taken as the vertical direction. Each point (for example, each pixel) of the two-dimensional image PC can be specified by two-dimensional coordinate information (Xp, Yp) using the Xp axis and the Yp axis.
[0021] In addition, which of the objects B (in this embodiment, the object B includes inanimate objects such as vehicles, as well as living objects such as humans or animals) in the two-dimensional image PC is to be the analysis target H may be designated in advance before the two-dimensional image PC is acquired, or may be designated after the two-dimensional image PC is acquired. When the analysis target H is designated in advance, the analysis target H in the two-dimensional image PC is detected using, for example, a machine learning model using a neural network. For example, when it is desired to monitor the movement of people in a store, people in the store are detected using a first learning model that detects people (more specifically, an area in which a person appears) from the two-dimensional image PC. When the analysis target H is not designated in advance, for example, an operator visually checks the two-dimensional image PC displayed on the display device 110, and specifies the part in which the object B to be the analysis target H appears using the input device 100. For example, when only a specific person is to be the analysis target H from a two-dimensional image PC in which many people appear, when the operator specifies the part in which the person to be the analysis target H appears, the area in which the person appears is detected by edge detection.
[0022] The object model generation unit 142 generates a three-dimensional object model M that imitates the shape of the analysis object H in the real space SR based on the two-dimensional image PC. The object model generation unit 142 generates the three-dimensional object model M using, for example, a machine learning model (second learning model) using a neural network. The shape of the analysis object H is, for example, the posture of the people H1 and H2 when the analysis object H is people H1 and H2.
[0023] In this embodiment, the three-dimensional object model M is a skeletal model showing the skeletons of people H1 and H2. The object model generation unit 142 detects feature points such as joints and facial parts of the people H1 and H2, and generates a skeletal model by connecting the feature points. By using the three-dimensional object model M as a skeletal model, it is possible to prevent the individual people H1 and H2 from being identified and to protect privacy. In addition, by using the three-dimensional object model M as a skeletal model, information that is not directly related to the movements of the people H1 and H2, such as the clothes of the people H1 and H2, is removed, thereby reducing the processing load of the processing device 140. Note that the three-dimensional object model M is not limited to a skeletal model, and may be, for example, an avatar imitating the people H1 and H2.
[0024] The depth estimation unit 143 estimates the depth of the analysis object H relative to the imaging device C that captures the two-dimensional image PC based on the two-dimensional image PC. The depth of the analysis object H relative to the imaging device C is, for example, the distance between a representative point of the imaging device C (for example, the center point O of the lens of the imaging device C shown in FIG. 7) and each point (or representative point) on the surface of the analysis object H. The depth estimation unit 143 estimates the depth of each pixel of the two-dimensional image PC using, for example, a machine learning model (third learning model) using a neural network. The depth of the pixel of the area of the two-dimensional image PC in which the analysis object H appears is the depth of the analysis object H. In addition, the coordinates of each pixel of the two-dimensional image PC are associated with the depth of each pixel, thereby generating point cloud data of the real space SR including the analysis object H.
[0025] The placement unit 144 places the three-dimensional object model M in the three-dimensional space model SV simulating the real space SR, based on the depth estimated by the depth estimation unit 143 and the position of the analysis object H on the two-dimensional image PC. In the first embodiment, the placement unit 144 estimates three-dimensional coordinates (hereinafter referred to as "real coordinates") indicating the position of the analysis object H in the real space SR, based on the depth estimated by the depth estimation unit 143, the position of the analysis object H on the two-dimensional image PC, and the position of the imaging device C in the real space SR. Then, the placement unit 144 places the three-dimensional object model M at a position on the three-dimensional space model SV that corresponds to the real coordinates.
[0026] Fig. 7 is a diagram showing a schematic diagram of the position of an analysis target H (a person H1 as an example) in the real space SR. Any point in the real space SR can be specified by three-dimensional coordinate information (Xr, Yr, Zr) using the orthogonal Xr, Yr, and Zr axes. Fig. 7 shows a space in which the gaze direction of the imaging device C is Zr, with the center point O of the lens of the imaging device C as the origin, the upward direction on the plane perpendicular to the Zr axis is Yr, and the rightward direction is Xr.
[0027] Generally, since the analysis target H has a three-dimensional spread, the area that the analysis target H occupies in the real space SR is indicated by a plurality of pieces of coordinate information. The position of the analysis target H may be a plurality of pieces of coordinate information indicating the area that the analysis target H occupies in the real space SR, or may be coordinate information indicating the position of the representative point of the analysis target H in the real space SR. In the following, the center point D of the head of the person H1 is assumed to be the representative point of the person H1. That is, the position (real coordinates) of the person H1, who is the analysis target H, is assumed to be indicated by three-dimensional coordinates indicating the center point D. The three-dimensional coordinates indicating the center point D are assumed to be (Xrh, Yrh, Zrh). Note that the representative point of the person H1 is not limited to the center point D of the head of the person H1, and may be any other part as long as it is a feature point of the human body (for example, a waist or a leg) that can be detected from the two-dimensional image PC.
[0028] The imaging device C is attached to the ceiling, and the installation position of the imaging device C in the real space SR is known. Furthermore, if the imaging direction and imaging magnification of the imaging device C are changeable (i.e., pan / tilt / zoom are possible), the acquisition unit 141 also acquires the imaging direction and imaging magnification of the imaging device C when acquiring the two-dimensional image PC. Furthermore, it is assumed that the camera parameters of the imaging device C are also known. Therefore, the arrangement unit 144 can identify the range PA of the real space SR that is captured in the two-dimensional image PC.
[0029] Therefore, the position of the analysis target H on the two-dimensional image PC is projected onto the position in the real space SR, and the position in the depth direction relative to the imaging device C is identified based on the depth estimated by the depth estimation unit 143, thereby estimating three-dimensional coordinates indicating the position of the analysis target H in the real space SR. In the example of Fig. 7, three-dimensional coordinates (Xrh, Yrh, Zrh) indicating the position (center point D) of the person H1 are estimated.
[0030] The placement unit 144 places the three-dimensional object model M at a position on the three-dimensional space model SV corresponding to the three-dimensional coordinates (Xrh, Yrh, Zrh). The three-dimensional space model SV is generated so as to reproduce the real space SR (indoor space in this embodiment) in which the two-dimensional image PC is captured. The three-dimensional space model SV may be generated automatically, for example, by three-dimensionally scanning the real space SR. Alternatively, an operator may manually generate the three-dimensional space model SV while referring to the dimensions of the real space SR, etc. Also, as shown in the second embodiment, the three-dimensional space model SV may be generated from the two-dimensional image PC.
[0031] The degree of accuracy with which the three-dimensional space model SV is created varies depending on, for example, the accuracy with which the contents of the movement are estimated. For example, when the movement estimated by the movement estimation unit 145 is the viewing direction of the people H1 and H2, if it is sufficient to simply estimate in which direction the people H1 and H2 are facing, only the object B that defines the rough structure of the real space SR (if it is an indoor space, the object B that constitutes the layout of the room, such as the floor, wall, ceiling, and shelf) may be included in the three-dimensional space model SV. On the other hand, if it is desired to specifically specify what the people H1 and H2 are looking at, it is preferable to include the object B placed in the real space SR (if it is an indoor space, a poster on the wall or a cup placed on the table, etc.) in the three-dimensional space model SV in addition to the object B that defines the rough structure of the real space SR.
[0032] Fig. 3 is a schematic diagram showing an example of a three-dimensional space model SV. The three-dimensional space model SV shown in Fig. 3 reproduces the real space SR shown in the two-dimensional image PC shown in Fig. 2. The object models Bm (Bm1 to Bm6) included in the three-dimensional space model SV correspond to the object B (B1 to B6) in Fig. 2. Furthermore, three-dimensional target models (skeleton models) M1 and M2 that imitate people H1 and H2 are arranged in the three-dimensional space model SV.
[0033] Any point in the three-dimensional space model SV can be specified by three-dimensional coordinate information (Xv, Yv, Zv) using the orthogonal Xv, Yv, and Zv axes. The correspondence between the coordinate information (Xv, Yv, Zv) of the three-dimensional space model SV and the coordinate information (Xr, Yr, Zr) of the real space SR is known and can be converted into each other. The position of the object model Bm (Bm1 to Bm6) in the three-dimensional space model SV corresponds to the position of the object B (B1 to B6) in the real space SR. The three-dimensional coordinates indicating the position of the three-dimensional target model M1 in the three-dimensional space model SV (more specifically, the center point Dm of the head of the three-dimensional target model M1) are (Xvh, Yvh, Zvh). The placement unit 144 performs coordinate conversion processing on the three-dimensional coordinates (Xrh, Yrh, Zrh) of the person H1 in the real space SR to calculate three-dimensional coordinates (Xvh, Yvh, Zvh), and places the three-dimensional object model M1.
[0034] The motion estimation unit 145 estimates the motion of the analysis target H in the real space SR based on the relative position between the object model Bm and the three-dimensional object model M in the three-dimensional space model SV. When the analysis target H performs a motion in the real space SR, the relative position between the analysis target H and the object B present in the real space SR changes at least at the start and end of the motion. For example, when the motion of the analysis target H is a motion that acts on the object B (for example, moving the object B, etc.), at least a part of the analysis target H (or another object such as a striking tool) is brought into contact with the object B to apply a force. That is, at least a part of the analysis target H is in a position where it contacts the object B. Also, for example, when the motion of the analysis target H is a motion that does not act on the object B (for example, viewing the surrounding object B, etc.), the relative position between at least a part of the body of the analysis target H (the head in the case of viewing the object B) and the surrounding object B changes. Therefore, the motion of the analysis target H in the real space SR can be estimated based on the relative position between the object model Bm and the three-dimensional object model M in the three-dimensional space model SV.
[0035] The motion estimation unit 145 estimates the motion based on, for example, a contact point between the object model Bm in the three-dimensional space model SV and the three-dimensional object model M. For example, when the hand of the three-dimensional object model M1 touches the object model Bm5 representing the stool B5, the motion estimation unit 145 estimates that the person H1 is moving the stool B5. Also, when the lower limbs of the three-dimensional object model M1 touch the object model Bm5, the motion estimation unit 145 estimates that the person H1 is sitting on the stool B5.
[0036] In addition, for example, in a three-dimensional space model SV that imitates a store, when the hand of a three-dimensional object model M that imitates a customer touches an object model Bm that indicates a product, the motion estimation unit 145 estimates that the customer has picked up the product in the store in the real space SR. When the three-dimensional space model SV reproduces the shelf layout of the store in the real space SR, the motion estimation unit 145 can identify the specific product that the customer has picked up. Even when the three-dimensional space model SV does not reproduce the shelf layout of the store in the real space SR, it can be identified that the customer has picked up the product.
[0037] Furthermore, the motion estimation unit 145 estimates the motion based on an object model Bm in the three-dimensional space model SV located in the direction of a specific part of the three-dimensional object model M. For example, by setting the specific part as the eye or face of the three-dimensional object model M, the direction in which the specific part is located can be regarded as the direction of the line of sight of the three-dimensional object model M. Therefore, the object model Bm located in this direction is estimated to correspond to the object B that the analysis target H is looking at.
[0038] Fig. 4A and Fig. 4B are diagrams showing the results of motion estimation by motion estimation unit 145. Fig. 4A is a side view of the three-dimensional space model SV, and Fig. 4B is a top view of the three-dimensional space model SV. Fig. 4A and Fig. 4B show the gaze directions L1 and L2 of the three-dimensional object models M1 and M2. The gaze directions L1 and L2 are obtained by regarding the facial directions of the three-dimensional object models M1 and M2 as the gaze directions.
[0039] An object model Bm1 corresponding to a wall B1 is located in the line of sight direction L1 of the three-dimensional object model M1 corresponding to the person H1. Therefore, the motion estimation unit 145 estimates that the person H1 is looking at the wall B1. Furthermore, an object model Bm6 corresponding to a monitor B6 is located in the line of sight direction L2 of the three-dimensional object model M2 corresponding to the person H2. Therefore, the motion estimation unit 145 estimates that the person H2 is looking at the monitor B6. By arranging the three-dimensional object models M1 and M2 in the three-dimensional space model SV, the direction of motion can be estimated three-dimensionally, and the accuracy of motion estimation is improved compared to estimating the motion of the analysis object H using only the two-dimensional image PC.
[0040] When the action performed by the analysis target H is an action on a predetermined place of the object B in the real space SR, the display control unit 146 displays the specific information Ns that specifies the predetermined place on the three-dimensional space model SV. The action on the predetermined place of the object B may be, for example, an action performed by the analysis target H by touching the predetermined place (action example 1, for example, picking up a predetermined place of a product) or an action performed by directing a specific part of the analysis target H toward the predetermined place (action example 2, for example, looking at a predetermined place on the wall B1).
[0041] For example, in operation example 1, the display control unit 146 displays the contact point (or contact area) between the three-dimensional object model M1 and the object model Bm as specific information Ns on the three-dimensional space model SV. The specific information Ns is displayed on the display device 110 together with the three-dimensional space model SV, for example. More specifically, for example, when the hand of the three-dimensional object model M1 touches the packaging of a product, the specific information Ns is displayed at the contact point between the hand and the packaging. The specific information Ns may be a mark such as a circle. This makes it possible to clearly understand that the three-dimensional object model M1 has picked up some kind of product, and makes it possible to reliably understand the behavior of the analysis object H.
[0042] Also, for example, in operation example 2, the display control unit 146 displays the collision point between the line of sight direction L1 of the three-dimensional object model M1 and the object model Bm (for example, the object model Bm1 indicating the wall B1 in the example of FIG. 4A) in the three-dimensional space model SV as the specific information Ns in the three-dimensional space model SV. The collision point between the line of sight direction L1 and the object model Bm is hereinafter referred to as the "eye point of view."
[0043] FIG. 5 is a diagram showing a schematic display example of specific information Ns in operation example 2. The three-dimensional space model SV shown in FIG. 5 shows the gaze direction L1 of the three-dimensional object model M1 and specific information Ns (Ns-0 and Ns-n). In the example of FIG. 5, the specific information Ns is a circular image. The specific information Ns-0 is the viewpoint of the three-dimensional object model M1 at the time shown in FIG. 5. The specific information Ns-n is specific information Ns other than the specific information Ns-0. The specific information Ns-n is the viewpoint of the three-dimensional object model M1 during a predetermined period of time prior to the time shown in FIG. 5.
[0044] As described above, the two-dimensional image PC is a still image constituting a video, and a new two-dimensional image PC (frame image) is acquired at each predetermined frame rate. Then, every time a two-dimensional image PC is acquired, the change in posture of the people H1, H2 of the analysis object H is reflected in the state of the three-dimensional object models M1, M2. In general, the change in the gaze point is faster than, for example, an action such as picking up a product. Also, it is difficult to grasp the gaze point in the past unless the specific information Ns is indicated. Therefore, in FIG. 5, the collision points in each of the multiple two-dimensional images PC acquired during a predetermined period in the past are indicated as the specific information Ns.
[0045] On the other hand, when the specific information Ns (collision points) in all frame images constituting the video are displayed as in FIG. 5, the collision points during the movement of the line of sight are also displayed, so that it may be difficult to understand the location that the analysis target H is focusing on. Therefore, for example, when the collision point does not change for a predetermined time or more, the specific information Ns indicating the collision point may be displayed. The collision point not changing may include not only the case where the three-dimensional coordinates of the collision point are the same, but also the case where the change in the three-dimensional coordinates of the collision point is within a predetermined range. In other words, since there is a lot of noise when the collision points in all frame images are displayed, the collision points existing within a predetermined range across multiple frame images may be filtered and displayed.
[0046] Fig. 6 is a diagram showing a typical display example of specific information Ns based on the duration of an action. In the three-dimensional space model SV shown in Fig. 6, specific information Ns-k is shown indicating a location where a collision with the line of sight direction L1 of the three-dimensional object model M1 continued for a predetermined period or more. Referring to the specific information Ns-k, the line of sight of the three-dimensional object model M1 is directed toward areas A1 and A2 for a long period. Therefore, areas A1 and A2 are identified as the gaze area of person H1.
[0047] In this way, the display control unit 146 may change the display mode of the specific information Ns based on the duration of the operation. The change in the display mode is not limited to whether or not the specific information Ns is displayed, but may also change, for example, the size of the display (for example, the longer the duration, the larger the display of the specific information Ns) or the color of the display (for example, a color scheme of red-orange-yellow-green-blue-purple, which is generally used as a heat map, is used, and the longer the duration, the closer the color of the specific information Ns becomes to red), etc.
[0048] 8 is a flowchart showing the operation of motion estimation device 10. Processing device 140 of motion estimation device 10 functions as acquisition section 141 and acquires a two-dimensional image PC in which real space SR and analysis object H are photographed from imaging device C (step S10). Processing device 140 functions as object model generation section 142 and generates a three-dimensional object model M that imitates the shape of analysis object H in real space SR, based on the two-dimensional image PC (step S11).
[0049] The processing device 140 functions as a depth estimation unit 143, and estimates the depth of the analysis object H relative to the imaging device C that captures the two-dimensional image PC based on the two-dimensional image PC (step S12). The processing device 140 functions as a placement unit 144, and estimates three-dimensional coordinates indicating the position of the analysis object H in the real space SR based on the depth estimated by the depth estimation unit 143, the position of the analysis object H on the two-dimensional image PC, and the position of the imaging device C in the real space SR (step S13). Note that the order of the processing of step S11 and the processing of steps S12 to S13 may be reversed, or they may be performed simultaneously.
[0050] The processing device 140 functions as a placement unit 144 and places the three-dimensional object model M at a position corresponding to the three-dimensional coordinates estimated in step S13 on the three-dimensional space model SV that imitates the real space SR (step S14). The processing device 140 functions as a motion estimation unit 145 and estimates the motion of the analysis object H in the real space SR based on the relative positions of the object model Bm and the three-dimensional object model M in the three-dimensional space model SV (step S15).
[0051] The processing device 140 functions as the display control unit 146, and displays, on the three-dimensional space model SV, specific information Ns that identifies the predetermined location that is the target of the action of the analysis object H (step S16). After that, the processing device 140 returns the process to step S10, and repeats the subsequent processes.
[0052] As described above, the motion estimation device 10 according to the embodiment generates a three-dimensional object model M of the analysis object H based on the two-dimensional image PC, and places the three-dimensional object model M in a three-dimensional space model SV that imitates the real space SR. Then, the motion estimation device 10 estimates the motion of the analysis object H in the real space SR based on the relative positions of the object model Bm and the three-dimensional object model M in the three-dimensional space model SV. In other words, the analysis object H captured in the two-dimensional image PC is projected onto the three-dimensional space model SV. Therefore, the estimation accuracy of the motion of the analysis object H is improved compared to using only the two-dimensional image PC.
[0053] Furthermore, motion estimation device 10 estimates the motion of analysis object H based on the location of contact between object model Bm and three-dimensional object model M. In two-dimensional image PC, it is difficult to determine whether object B and analysis object H are in contact, particularly in the depth direction, and, if so, the location of contact. By using three-dimensional space model SV, motion estimation device 10 can accurately detect whether object B and analysis object H are in contact, and, if so, the location of contact, improving the estimation accuracy of the motion of analysis object H.
[0054] Furthermore, motion estimation device 10 estimates the motion of analysis object H based on object model Bm located in the direction in which a specific part of three-dimensional object model M faces. In two-dimensional image PC, it is difficult to determine the direction in which some parts of analysis object H face. Motion estimation device 10 uses three-dimensional space model SV to three-dimensionally analyze the direction in which some parts of analysis object H face, so that object B located in the direction in which some parts of analysis object H face can be accurately detected, improving the estimation accuracy of the motion of analysis object H.
[0055] Furthermore, when the analysis target H is performing a motion toward a predetermined location in the real space SR, the motion estimation device 10 displays, on the three-dimensional space model SV, specific information Ns that identifies the predetermined location. This makes the location that is the target of the motion clear, and the content of the motion of the analysis target H can be estimated with greater accuracy.
[0056] Furthermore, when displaying the specific information Ns, the motion estimation device 10 changes the display mode of the specific information Ns based on the duration of the motion. This eliminates noise such as blurring of the motion, and the motion of the analysis target H is estimated with higher accuracy.
[0057] Furthermore, when the analysis target H is people H1 and H2, the motion estimation device 10 generates a skeleton model showing the skeletons of the people H1 and H2 as the three-dimensional object model M. Thus, the people H1 and H2 appearing in the two-dimensional image PC are not identified, and privacy is protected. In addition, since there is no need to process information unrelated to the motions of the people H1 and H2, such as their clothing, the processing load of the motion estimation device 10 is reduced.
[0058] B: Second embodiment The second embodiment of the present invention will be described below. In the following description, for the sake of simplicity, the same reference numerals are used for the same components as those in the first embodiment, and the description of their functions may be omitted. In the following description, for the sake of simplicity, the differences between the second embodiment and the first embodiment will be mainly described.
[0059] 9 is a block diagram showing the configuration of the motion estimation apparatus 10 according to the second embodiment. The motion estimation apparatus 10 according to the second embodiment has a space model generation unit 147 in addition to the configuration of the motion estimation apparatus 10 according to the first embodiment (see FIG. 1).
[0060] The space model generating unit 147 generates a three-dimensional space model SV based on the two-dimensional image PC and the depth estimated by the depth estimation unit 143. As described in the first embodiment, the coordinates of each pixel of the two-dimensional image PC are associated with the depth of each pixel estimated by the depth estimation unit 143, thereby generating point cloud data of the real space SR. The space model generating unit 147 generates a three-dimensional space model SV using the point cloud data. Since a method of generating a three-dimensional space model SV using point cloud data is well known, a detailed description will be omitted. However, when the real space SR is a structure such as a store, there are many parts that are composed of flat surfaces such as floors, walls, and shelves. Therefore, it is preferable to express it using a voxel, which is a unit space having a cubic or rectangular parallelepiped shape.
[0061] The two-dimensional image PC used to generate the three-dimensional space model SV is preferably an image that does not include the analysis target H. Therefore, in the second embodiment, the acquisition unit 141 acquires, in addition to a two-dimensional image PC (e.g., referred to as a "first image") in which the real space SR and the analysis target H located in the real space SR are captured, another two-dimensional image PC (e.g., referred to as a "second image") in which only the real space SR is captured, from the same imaging device C. The depth estimation unit 143 estimates the depth of each pixel in the second image, and generates point cloud data of the second image.
[0062] In the second embodiment, the placement unit 144 places the three-dimensional object model M at a position on the three-dimensional space model SV that corresponds to the position of the analysis object H on the two-dimensional image PC (first image). As described above, since the three-dimensional space model SV is generated using the two-dimensional image PC (second image), the position on the two-dimensional image PC (first image) can be converted to a position on the three-dimensional space model SV with high accuracy.
[0063] The motion estimation unit 145 estimates the motion of the analysis target H in the real space SR based on the relative position between the object model Bm and the three-dimensional target model M in the three-dimensional space model SV, as in the first embodiment. In the first embodiment, the three-dimensional coordinates of the analysis target H in the real space SR were estimated in order to place the three-dimensional target model M in the three-dimensional space model SV. In this process, it is necessary to convert the relative depth to absolute depth, which may cause errors. In contrast, in the second embodiment, the second image that is the basis of the three-dimensional space model SV and the first image in which the analysis target H appears are photographed by the same imaging device C, and the scale of the relative depth is the same. Therefore, since the motion estimation can be calculated while keeping the relative coordinates, it is possible to eliminate errors that occur when converting the relative depth to absolute depth, and the motion of the analysis target H can be estimated more accurately.
[0064] According to the second embodiment, the space model generation unit 147 generates the three-dimensional space model SV by using the two-dimensional image PC. Therefore, the burden on the operator can be reduced compared to, for example, three-dimensionally scanning the real space SR or generating the three-dimensional space model SV while referring to the dimensions of the real space SR.
[0065] Moreover, according to the second embodiment, since the three-dimensional space model SV is generated using the two-dimensional image PC, it is not necessary to convert the relative depth into the absolute depth, and it is possible to eliminate errors that occur during the conversion. Therefore, it is possible to estimate the movement of the analysis object H with higher accuracy.
[0066] C: Modification The following are modified aspects of the above-described embodiment. Two or more aspects selected from the following modified aspects may be combined as appropriate within the scope of not being mutually contradictory.
[0067] C1: First modified example In the above-described embodiment, an image showing the estimation result of the action performed by the analysis target H, such as the three-dimensional space model SV including the specific information Ns (hereinafter referred to as the "estimated result image"), is displayed on the display device 110 of the action estimation device 10. Without being limited to this, for example, an information processing terminal other than the action estimation device 10 may be used to connect to the action estimation device 10, and the estimated result image may be viewed on the other information processing terminal. At this time, the estimated result image may be viewed by streaming on the other information processing terminal, or the estimated result image may be downloaded and then viewed. In addition, the estimation of the action using the two-dimensional image PC may be performed simultaneously with the acquisition of the two-dimensional image PC, or the acquired two-dimensional image PC may be stored in the storage device 130 and may be performed later. In addition, the estimated result image may be stored in the action estimation device 10, so that the estimated result image can be viewed retroactively.
[0068] D:Other (1) In the above-described embodiment, ROM, RAM, etc. are given as examples of storage device 130, but storage device 130 may also be a flexible disk, a magneto-optical disk (e.g., a compact disk, a digital versatile disk, a Blu-ray (registered trademark) disc), a smart card, a flash memory device (e.g., a card, a stick, a key drive), a CD-ROM (Compact Disc-ROM), a register, a removable disk, a hard disk, a floppy (registered trademark) disk, a magnetic strip, a database, a server, or any other suitable storage medium.
[0069] (2) In the above-described embodiments, the described information, signals, etc. may be represented using any of a variety of different technologies. For example, data, instructions, commands, information, signals, bits, symbols, chips, etc. that may be referred to throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or magnetic particles, optical fields or photons, or any combination thereof.
[0070] (3) In the above-described embodiment, the input / output information, etc. may be stored in a specific location (e.g., memory) or may be managed using a management table. The input / output information, etc. may be overwritten, updated, or added. The output information, etc. may be deleted. The input information, etc. may be transmitted to another device.
[0071] (4) In the above-described embodiments, the determination may be made based on a value represented by 1 bit (0 or 1), a Boolean (true or false) value, or a numerical comparison (e.g., comparison with a predetermined value).
[0072] (5) The order of the process steps, sequences, flow charts, etc. illustrated in the above-described embodiments may be changed without causing any inconsistency. For example, the methods described in this disclosure present elements of various steps using an example order, and are not limited to the particular order presented.
[0073] (6) Each function illustrated in FIG. 1 is realized by any combination of at least one of hardware and software. Furthermore, the method of realizing each functional block is not particularly limited. That is, each functional block may be realized by using one device that is physically or logically combined, or may be realized by using two or more devices that are physically or logically separated and directly or indirectly connected (for example, by using wires, wirelessly, etc.). The functional block may be realized by combining the one device or the multiple devices with software.
[0074] (7) The programs exemplified in the above-described embodiments should be broadly interpreted to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, executable files, execution threads, procedures, functions, etc., regardless of whether they are called software, firmware, middleware, microcode, hardware description language, or by other names.
[0075] Additionally, software, instructions, information, etc. may be transmitted or received over a transmission medium. For example, if the software is transmitted from a website, server, or other remote source using wired technologies (such as coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL)), and / or wireless technologies (such as infrared, microwave, etc.), then these wired and / or wireless technologies are included within the definition of transmission media.
[0076] (8) In each of the above embodiments, the terms “system” and “network” are used interchangeably.
[0077] (9) The information, parameters, etc. described in this disclosure may be expressed using absolute values, relative values from a predetermined value, or corresponding other information.
[0078] (10) In the above-described embodiments, the portable device may be a mobile station (MS). A mobile station may be referred to by those skilled in the art as a subscriber station, a mobile unit, a subscriber unit, a wireless unit, a remote unit, a mobile device, a wireless device, a wireless communication device, a remote device, a mobile subscriber station, an access terminal, a mobile terminal, a wireless terminal, a remote terminal, a handset, a user agent, a mobile client, a client, or some other suitable term. In this disclosure, the terms "mobile station", "user terminal", "user equipment (UE)", "terminal", etc. may be used interchangeably.
[0079] (11) In the above-mentioned embodiments, the terms "connected" and "coupled" or any variation thereof refer to any direct or indirect connection or coupling between two or more elements, and may include the presence of one or more intermediate elements between two elements that are "connected" or "coupled" to each other. The coupling or connection between elements may be physical, logical, or a combination thereof. For example, "connected" may be read as "accessed." As used in this disclosure, two elements may be considered to be "connected" or "coupled" to each other using at least one of one or more wires, cables, and printed electrical connections, as well as electromagnetic energy having wavelengths in the radio frequency range, microwave range, and light (both visible and invisible) range, as some non-limiting and non-exhaustive examples.
[0080] (12) In the above embodiments, the phrase "based on" does not mean "based only on," unless otherwise specified. In other words, the phrase "based on" means both "based only on" and "based at least on."
[0081] (13) As used in this disclosure, the terms "determining" and "determining" may encompass a wide variety of actions. "Determining" and "determining" may include, for example, judging, calculating, computing, processing, deriving, investigating, looking up, search, inquiry (e.g., searching in a table, database, or other data structure), ascertaining, and the like. Also, "determining" and "determining" may include receiving (e.g., receiving information), transmitting (e.g., sending information), input, output, accessing (e.g., accessing data in a memory), and the like. In addition, "judgment" and "decision" can include considering resolving, selecting, choosing, establishing, comparing, etc., to be a "judgment" or "decision." In other words, "judgment" and "decision" can include considering some action to be a "judgment" or "decision." In addition, "judgment (decision)" can be interpreted as "assuming," "expecting," "considering," etc.
[0082] (14) In the above embodiments, when "include," "including," and variations thereof are used, these terms are intended to be inclusive, similar to the term "comprising." Furthermore, the term "or" used in this disclosure is not intended to be an exclusive or.
[0083] (15) In this disclosure, where articles have been added by translation, such as a, an, and the in English, the disclosure may include that the nouns following these articles are in the plural.
[0084] (16) In this disclosure, the term "A and B are different" may mean "A and B are different from each other." The term may also mean "A and B are each different from C." Terms such as "separate" and "combined" may also be interpreted in the same way as "different."
[0085] (17) Each aspect / embodiment described in this disclosure may be used alone, in combination, or switched according to execution. In addition, notification of specific information (e.g., notification that "X is the case") is not limited to being done explicitly, but may be done implicitly (e.g., not notifying the specific information). [Explanation of symbols]
[0086] 10...motion estimation device, 100...input device, 110...display device, 120...communication device, 130...storage device, 140...processing device, 141...acquisition unit, 142...object model generation unit, 143...depth estimation unit, 144...placement unit, 145...motion estimation unit, 146...display control unit, 147...spatial model generation unit, B (B1 to B6)...object, Bm (Bm1 to Bm6)...object model, C...imaging device, H...analysis target, H1, H2...person, M (M1, M2)...3D object model, Ns (Ns-0, Ns-k, Ns-n)...specific information, PC...2D image, SR...real space, SV...3D spatial model.
Claims
1. an acquisition unit that acquires a two-dimensional image of a real space and an analysis target located in the real space; an object model generation unit that generates a three-dimensional object model that imitates a shape of the analysis object in the real space based on the two-dimensional image; a depth estimation unit that estimates a depth of the analysis object relative to an imaging device that captures the two-dimensional image based on the two-dimensional image; a placement unit that places the three-dimensional object model on a three-dimensional space model that imitates the real space based on the depth estimated by the depth estimation unit and a position of the analysis object on the two-dimensional image; and a motion estimation unit that estimates a motion of the analysis target in the real space based on a relative position between an object model representing an object in the three-dimensional space model and the three-dimensional target model; A motion estimation device comprising:
2. the motion estimation unit estimates the motion based on a contact point between the object model and the three-dimensional target model. The motion estimation device according to claim 1 .
3. The motion estimation unit estimates the motion based on the object model located in a direction in which a specific part of the three-dimensional target model is facing. The motion estimation device according to claim 1 .
4. the action is an action with respect to a predetermined location in the real space, a display control unit that displays specific information that identifies the predetermined location on the three-dimensional space model, The motion estimation device according to claim 1 .
5. The display control unit changes a display mode of the specific information based on a duration of the action. The motion estimation device according to claim 4.
6. The subject of analysis is a human, The three-dimensional object model is a skeletal model representing the skeleton of the person. The motion estimation device according to claim 1 .
7. the placement unit estimates three-dimensional coordinates indicating a position of the analysis target in the real space based on the depth, the position of the analysis target on the two-dimensional image, and the position of the imaging device in the real space, and places the three-dimensional target model at a position on the three-dimensional space model corresponding to the three-dimensional coordinates. The motion estimation device according to claim 1 .
8. a spatial model generation unit that generates the three-dimensional spatial model based on the two-dimensional image and the depth estimated by the depth estimation unit, the placement unit places the three-dimensional object model at a position on the three-dimensional space model corresponding to a position of the analysis object on the two-dimensional image; The motion estimation device according to claim 1 .
Citation Information
Patent Citations
Three-dimensional coordinate acquisition device, camera attitude estimation device, and program
JP2013092407A
How to reconstruct a 3d scene as a 3d model
JP2018510419A
Display control unit and display control method
JP2022030157A
Work estimation apparatus, method and program
JP2022048017A
Behavior estimation device, behavior estimation method, program and behavior estimation system
JP2022072825A
