Method for estimating three-dimensional key points, apparatus, computing device and medium

Through simultaneous acquisition and 2D key point detection by multiple image acquisition devices, combined with the triangulation method, the problem of accuracy and high cost of 3D key point estimation of objects in the target scene is solved, and efficient 3D key point estimation of multiple objects is achieved. Location determined.

WO2024174218A1PCT designated stage expired Publication Date: 2024-08-29BOE TECHNOLOGY GROUP CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/078081
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

The existing technology is difficult to accurately estimate the three-dimensional key point positions of multiple objects in the target scene, especially when objects in the image are easily occluded, and the cost is high.

Method used

Use multiple image acquisition devices (such as ordinary cameras or cameras) to simultaneously collect images, detect two-dimensional key point data, determine the location of three-dimensional key points through image pair matching, and use triangulation methods to calculate three-dimensional coordinates to ensure that there is no obstruction between objects. Thereby improving the estimation accuracy.

Benefits of technology

It achieves accurate estimation of the three-dimensional key points of multiple objects, reduces costs, does not require special equipment design, and can process the three-dimensional key point data of multiple objects at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023078081_29082024_PF_FP_ABST
    Figure CN2023078081_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a method for estimating three-dimensional key points, an apparatus, a system, a computing device and a medium. The method can be used for estimating three-dimensional key point data of subjects in a target scenario, one or more subjects being present in the target scenario. The method comprises: extracting, from each image associated with the same target scenario, two-dimensional key point data of subjects included in the corresponding image; for each image pair, on the basis of the two-dimensional key point data of each subject in a first image in the image pair and the two-dimensional key point data of each subject in a second image in the image pair, determining a matching subject pair corresponding to the image pair, each matching subject pair comprising a first subject in the first image and a second subject in the second image and corresponding to one subject in the target scenario; and, on the basis of the two-dimensional key point data of each first subject in the corresponding first image and the two-dimensional key point data of each second subject in the corresponding second image, estimating three-dimensional key point data of each subject in the target scenario.
Need to check novelty before this filing date? Find Prior Art

Description

Method, apparatus, computing device, and medium for estimating three-dimensional key points Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, apparatus, computing device, and medium for estimating three-dimensional key points of an object in a target scene. Background Art

[0002] Human keypoint detection has widespread applications in human-computer interaction, behavior recognition, and posture analysis. Identifying keypoints in images is fundamental to enabling these applications. For example, posture analysis requires first determining the locations of keypoints on the limbs, then using a series of algorithms to identify the current posture.

[0003] Compared to two-dimensional keypoints, three-dimensional keypoints contain more accurate positional information about the human body and possess greater practical value. However, since keypoint detection is typically performed on images, the detected keypoints are represented as two-dimensional data. Therefore, a method is needed to simply and accurately represent the positions of keypoints using three-dimensional data—in other words, a solution for estimating the positions of three-dimensional keypoints. Furthermore, in practical applications, captured images may include multiple objects, so it is also desirable to be able to perform keypoint detection on multiple objects simultaneously.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field.

[0005] Summary of the Invention

[0006] According to one aspect of the present application, a method for estimating three-dimensional key point data of an object in a target scene is provided, wherein there are one or more objects in the target scene, and the method comprises: acquiring multiple images associated with the same target scene, and extracting two-dimensional key point data of the objects included in the corresponding image from each of the multiple images; for each image pair consisting of two images, based on the two-dimensional key point data of each object in the first image of the image pair and each object in the second image of the image pair, determining one or more matching object pairs corresponding to the image pair, wherein each matching object pair includes a first object in the first image and a second object in the second image, and corresponds to an object in the target scene; and estimating the three-dimensional key point data of each object in the target scene based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair.

[0007] According to another aspect of the present application, a method for estimating three-dimensional key point data of an object in a target scene is also provided, wherein there are one or more objects in the target scene, and the method includes: acquiring multiple images associated with the same target scene, and extracting two-dimensional key point data of the objects included in the corresponding images from each of the multiple images respectively; based on object recognition, determining an image including a desired object from the multiple images as a reference image; for each image pair consisting of the reference image and each other image in the multiple images, determining whether the image pair corresponds to a matching object pair based on the two-dimensional key point data of the desired object in the reference image as the first image of the image pair and the two-dimensional key point data of each object in the second image of the image pair, wherein the matching object pair includes the desired object in the first image and the desired object in the second image; and estimating the three-dimensional key point data of the desired object in the target scene based on the two-dimensional key point data of the desired object in the corresponding first image and in the corresponding second image of each matching object pair determined for each image pair.

[0008] According to another aspect of the present application, a device for estimating three-dimensional key point data of objects in a target scene is also provided, wherein there are one or more objects in the target scene, and the device includes: an acquisition module for acquiring multiple images associated with the same target scene, and extracting two-dimensional key point data of objects included in the corresponding image from each of the multiple images; a determination module for determining, for each image pair consisting of two images, one or more matching object pairs corresponding to the image pair based on the two-dimensional key point data of each object in the first image of the image pair and each object in the second image of the image pair, wherein each matching object pair includes a first object in the first image and a second object in the second image, and corresponds to an object in the target scene; and an estimation module for estimating the three-dimensional key point data of each object in the target scene based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair.

[0009] According to another aspect of the present application, a device for estimating three-dimensional key point data of an object in a target scene is also provided, wherein there are one or more objects in the target scene, and the device includes: an acquisition module for acquiring multiple images associated with the same target scene and extracting two-dimensional key point data of the objects included in the corresponding images from each of the multiple images; an object recognition module for determining, based on object recognition, an image including a desired object from the multiple images as a reference image; a determination module for determining, for each image pair consisting of the reference image and each other image in the multiple images, whether the image pair corresponds to a matching object pair based on the two-dimensional key point data of the desired object in the reference image as the first image of the image pair and the two-dimensional key point data of each object in the second image of the image pair, wherein the matching object pair includes the desired object in the first image and the desired object in the second image; and an estimation module for estimating the three-dimensional key point data of the desired object in the target scene based on the two-dimensional key point data of the desired object in the corresponding first image and in the corresponding second image of each matching object pair determined for each image pair.

[0010] According to another aspect of the present application, a computing device is provided, including: a processor and a memory on which a computer program is stored. When the computer program is executed by the processor, the processor executes the method described above.

[0011] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the processor executes the method as described above.

[0012] According to an embodiment of the present application, multiple images are obtained by synchronously capturing an actual target scene using multiple image acquisition devices, and then the two-dimensional key point data of each object is detected for each image respectively. Object matching is then performed between different images captured by different image acquisition devices based on these two-dimensional key point data, and for successfully matched objects, the final three-dimensional key point data is obtained again based on the relevant two-dimensional key point data. Since multiple image acquisition devices are used, multiple objects in the target scene can be covered so that there is no occlusion between the objects, thereby improving the accuracy of estimating the three-dimensional key point data, and the three-dimensional key point data of all multiple objects in the target scene can be estimated simultaneously. In addition, the image acquisition device can be a general device, such as an ordinary camera or a camera, so no special design is required, and the cost is also low. In addition, in the case where the three-dimensional key point data of the desired objects in the target scene needs to be obtained, the method can be further combined with object recognition to estimate the three-dimensional key point data of these desired objects. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments of the present application or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the embodiments of the present application.

[0014] FIG1A shows an exemplary application system diagram of a method for estimating three-dimensional key point data of an object in a target scene provided by an embodiment of the present application.

[0015] FIG1B shows an exemplary application target scene of the method for estimating three-dimensional key point data of an object in a target scene provided by an embodiment of the present application.

[0016] FIG2 shows a flow chart of a method for estimating three-dimensional key point data of an object in a target scene provided by an embodiment of the present application.

[0017] FIG3 shows more details of step S220 of the method in FIG2 .

[0018] FIG4 shows a schematic diagram of the principle of the triangulation method.

[0019] FIG5 is a schematic diagram showing a process of calibrating rotation parameters and translation parameters between image acquisition devices.

[0020] FIG6 shows a structural block diagram of an apparatus for estimating three-dimensional key point data of an object in a target scene according to an embodiment of the present application.

[0021] FIG7 shows more details of the modules of FIG6 .

[0022] FIG8 shows a schematic block diagram of a computing device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0024] To estimate the positions of the three-dimensional key points of objects in the target scene, in one method, a single or monocular camera is used for three-dimensional key point estimation, but the error of the positions of the three-dimensional key points estimated by this method is large; in another method, a binocular camera is used for three-dimensional key point estimation, but objects (for example, multiple human bodies) in the images obtained during use are easily occluded by each other, so a Kalman filter is needed to estimate the missing key points of one or some objects, and a TOF camera is needed for depth measurement, so the processing process is more complicated and the cost is higher.

[0025] In this regard, an embodiment of the present application provides a solution for estimating the three-dimensional key point data of an object based on two-dimensional key point data from multiple image acquisition devices (for example, ordinary cameras or cameras). Since multiple image acquisition devices are used at the same time, the multiple image acquisition devices can capture images of one or more objects in the target scene from multiple angles. Therefore, the images obtained using the multiple image acquisition devices can include the position information (two-dimensional coordinate data) of all objects, that is, it can be assumed that objects will hardly occlude each other, so that the three-dimensional key point data of each object can be estimated more accurately.

[0026] The solution for estimating three-dimensional key point data of an object of the present application will be described in more detail below with reference to FIG. 1A to FIG. 8 .

[0027] FIG1A shows an exemplary application system diagram of a method for estimating three-dimensional key point data of an object in a target scene provided by an embodiment of the present application.

[0028] As shown in FIG1A , the image acquisition system 10 includes a plurality of image acquisition devices, which are respectively arranged at different positions and angles, and after acquiring images of one or more objects, the acquired images are respectively transmitted to a computing device, such as a server 20. Alternatively, each image acquisition device sends the acquired video to a computing device, and the computing device obtains a plurality of images from the received video. After receiving each image, the server 20 uses the method for estimating the three-dimensional key point data of the object in the target scene provided by the embodiment of the present application to estimate the three-dimensional key point data based on each image. For example, the server first determines the two-dimensional key point data (e.g., two-dimensional coordinate data) of each object in each acquired image, and then estimates the three-dimensional key point data based on these two-dimensional key point data, and stores the obtained three-dimensional key point data in a memory, or transmits it back to a local terminal (e.g., a computer, a mobile phone, a camera) or transmits it back to a local memory. Among them, the server can be a cloud server, a local server, a physical server, or a virtual server, and this application does not limit this.

[0029] In addition, the method for estimating the three-dimensional key point data of objects in the target scene provided by the embodiment of the present application can also be executed at the terminal. In this way, the image acquisition system can also transmit the acquired images of one or more objects to a local terminal (such as a computer, mobile phone, or camera), and the local terminal can execute the method for estimating the three-dimensional key point data of objects in the target scene provided by the embodiment of the present application to store the obtained three-dimensional key point data in the memory. Alternatively, in other embodiments, the method can also be executed jointly by the server and the terminal.

[0030] FIG1B shows an exemplary application target scene of the method for estimating three-dimensional key point data of an object in a target scene provided by an embodiment of the present application.

[0031] As shown in FIG1B , two images A and B are captured by two image acquisition devices from different positions and angles. A server (such as the server in FIG1A ) receives the two images A and B and uses the method for estimating the three-dimensional key point data of an object provided in an embodiment of the present application to estimate the three-dimensional key point data. For example, the server first determines the two-dimensional data (two-dimensional key point data) of each key point in each of the two images A and B, and then estimates the three-dimensional key point data based on the two-dimensional key point data of each of the two images. The estimated three-dimensional key point data is stored and optionally displayed. For example, as shown in FIG1B , each key point is displayed on the interface, and lines are drawn between the key points so that the effect of the estimation can be observed intuitively.

[0032] Figure 1B shows an example of estimating the 3D key point data of a single person in a target scene for a single-player game. According to the method provided in the embodiment of the present application, the 3D key point data of multiple people in the target scene can also be estimated simultaneously.

[0033] For example, in a multiplayer game, first the server can obtain multiple images collected from different positions and angles (using multiple images can make the collected information of the people more comprehensive and complete, so that the occlusion between people is as non-existent as possible), and then according to the method provided in the embodiment of the present application, the three-dimensional key point data of each person can be estimated based on the multiple images, thereby laying the foundation for human behavior analysis. For example, the three-dimensional key point data at each sampling time point can be determined for each person, so that the posture of each person at each sampling time point can be determined, and then the action performed by each person can be determined based on the posture of each person at multiple consecutive sampling time points, so as to perform the game operation associated with the action. For another example, in some teaching applications, such as dance teaching, it is possible to judge whether the dance action is standard based on the dance action of each person determined by the above process.

[0034] FIG2 shows a schematic flow diagram of a method for estimating three-dimensional key point data of an object in a target scene provided by an embodiment of the present application. The method shown in FIG2 can be executed by a server, a terminal, or a combination of the two. In the present application, there are one or more objects in the target scene, and an image acquisition system (including multiple image acquisition devices arranged at different locations) performs image acquisition on the target scene.

[0035] As shown in FIG. 2 , in step S210 , a plurality of images associated with the same target scene are acquired, and two-dimensional key point data of an object included in the corresponding image is extracted from each of the plurality of images.

[0036] For example, multiple images can be acquired from multiple image acquisition devices in the image acquisition system. For example, the multiple image acquisition devices can be, but are not limited to, four, for example, arranged at the four corners of the space of the target scene.

[0037] For example, each of the multiple image acquisition devices can be a camera or a still camera, and the intrinsic parameters of each image acquisition device should be as close as possible, for example, they can be of the same model. As an example, the intrinsic parameters of a camera are parameters related to the camera's own characteristics, such as the camera's focal length, pixel size, etc.

[0038] In addition, the number of objects in the target scene may be one or more. Since the positions and angles of the multiple image acquisition devices are different, the image captured by each image acquisition device may only include a part of the objects, and the images captured by different image acquisition devices may include different objects. For example, the image captured by the first image acquisition device may include the first and second objects, while the image captured by the second image acquisition device may include the first, second and third objects, and the image captured by the third image acquisition device may include the second and third objects. In an embodiment of the present application, as long as each object in the target scene can be captured by more than two image acquisition devices, the proposed method can be used to estimate the three-dimensional key point data of each object in the target scene.

[0039] Optionally, the image acquired from each image acquisition device may be a picture or a video, wherein in the case of a video, the image is processed to obtain a video frame. The multiple image acquisition devices in the image acquisition system acquire images synchronously, so when performing key point detection on the video frames, key point detection is performed on the video frames acquired at the same time (or the same number in chronological order) by the multiple image acquisition devices.

[0040] In the embodiments of this application, since the 2D keypoint data of each object is used to estimate the 3D keypoint data, the 2D keypoints must be consistent with the 3D keypoints and pre-selected. The selection of keypoints can be determined based on actual needs. For example, if the object is a person, the keypoints could be the eyes, ears, nose, elbows, and knees. Of course, the object can also be other physical objects, such as robots, animals, etc., and their keypoints can be pre-determined based on their characteristics.

[0041] Optionally, a two-dimensional key point detection model can be used to perform key point detection on multiple images acquired from an image acquisition system including multiple image acquisition devices. For example, the two-dimensional key point detection model can be an HRNet model or an OpenPose model. For each image, the output result of the two-dimensional key point detection model is the two-dimensional key point data in the image coordinate system of the corresponding image acquisition device, and its dimension size is M. i ×K×2, where M i is the number of objects detected in the image (the number of objects detected in images acquired from different image acquisition devices may be different), K is the number of key points of each object (such as 17), 2 is the two-dimensional coordinate value (x, y) of each key point, and negative two-dimensional coordinate values ​​can be used to indicate that the corresponding key point is not detected.

[0042] In step S220, for each image pair consisting of two images, one or more matching object pairs corresponding to the image pair are determined based on the two-dimensional key point data of each object in the first image of the image pair and each object in the second image of the image pair, wherein each matching object pair includes a first object in the first image and a second object in the second image, and corresponds to an object in the target scene. For example, each object in the target scene will be captured by at least two image acquisition devices, and the two-dimensional key point data of the object in each image in each image pair can be used to estimate the three-dimensional key point data of the object. Since each image may include multiple objects, for each image pair, it is necessary to first determine the object matching relationship between the image pairs, that is, whether the successfully matched objects in the image pairs are the same object in the target scene captured by different image acquisition devices. Only then can the two sets of two-dimensional key point data of the successfully matched objects (matching object pairs, corresponding to an object in the target scene) in the two images of the image pair be used to estimate the corresponding three-dimensional key point data. For example, image 1 captured by the first image acquisition device includes two objects, and image 2 captured by the second image acquisition device includes three objects. Therefore, it is necessary to determine the matching relationship between the two objects in image 1 and the three objects in image 2. For example, if it is determined that object A in image 1 and object B in image 2 are the same object (that is, object A in image 1 and object B in image 2 are a matching object pair and correspond to an object in the target scene), the three-dimensional key point data of the object corresponding to the matching object pair in the target scene can be estimated based on the two-dimensional key point data of object A in image 1 and the two-dimensional key point data of object B in image 2.

[0043] More details on how to determine the matching object pair corresponding to each image pair in the image acquired from the image acquisition device will be described later with reference to Figures 3-4.

[0044] In step S230 , three-dimensional key point data of each object in the target scene is estimated based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair.

[0045] As mentioned above, the object that is successfully matched between the image pair is the same object in the target scene captured by different image acquisition devices. Therefore, the two sets of two-dimensional key point data of the successfully matched object (an object in the target scene corresponding to the matching object pair) in the two images of the image pair can be used to estimate the corresponding three-dimensional key point data.

[0046] In addition, since each object will be captured by at least two image acquisition devices, that is, there may be a situation where the object is included in multiple image pairs, more groups of three-dimensional key point data may be calculated for the object. In this case, the multiple groups of three-dimensional key point data estimated for each image pair can be averaged to determine the final three-dimensional key point data of the object. For example, an object TA in a target scene is captured by three image acquisition devices (the three captured images are numbered 1 / 2 / 3, for example), and the two-dimensional key point data of the object TA in each of the three images is known (for example, detected by a two-dimensional key point detection model). Therefore, for each of the three image pairs (image 1-image 2, image 2-image 3, image 1-image 3), the two-dimensional key point data of the object can be used to estimate the three-dimensional key point data of the object TA respectively. Therefore, the three groups of three-dimensional key point data of the object TA estimated for the three image pairs can be averaged to determine the final three-dimensional key point data of the object.

[0047] As can be seen, in the method for estimating the three-dimensional key point data of an object described with reference to FIG2 , multiple images of the actual target scene are obtained by synchronously capturing the actual target scene using multiple image acquisition devices. The two-dimensional key point data of each object is then detected for each image. Object matching is then performed between different images captured by different image acquisition devices based on these two-dimensional key point data. For successfully matched objects, the final three-dimensional key point data is obtained again based on the relevant two-dimensional key point data. Since this method uses multiple image acquisition devices, it can cover multiple objects in the target scene so that there is no occlusion between the objects, thereby improving the accuracy of the estimated three-dimensional key point data and simultaneously estimating the three-dimensional key point data of multiple objects. In addition, the image acquisition device can be a general-purpose device, such as an ordinary camera or a video camera, so no special design is required, which also reduces the cost.

[0048] FIG3 shows more details of step S220 of the method in FIG2 .

[0049] As shown in Figure 3, the step of determining a matching object pair between each image pair may include the following sub-steps. The following sub-steps are performed for each pair of images acquired by two image acquisition devices. For example, each image pair includes a first image and a second image.

[0050] In sub-step S220 - 1 , based on the two-dimensional key point data of each object in the first image and the two-dimensional key point data of each object in the second image, the three-dimensional key point data of each object in the first image in a predetermined coordinate system is determined.

[0051] For example, the predetermined coordinate system may be the coordinate system of the image acquisition device (first image acquisition device) that captured the first image, or, because the coordinate systems of different image acquisition devices can be converted between each other, the predetermined coordinate system may also be the coordinate system of the image acquisition device (second image acquisition device) that captured the second image, or the coordinate system of another image acquisition device. Furthermore, the two-dimensional key point data for each object in the first image (based on the coordinate system of the first image acquisition device) and the two-dimensional key point data for each object in the second image (based on the coordinate system of the second image acquisition device) may also be converted to the coordinate system of any desired image acquisition device through coordinate conversion.

[0052] For example, when the predetermined coordinate system is the coordinate system of the second image acquisition device, the three-dimensional key point data of each object in the first image in the coordinate system of one of the multiple image acquisition devices (for example, the coordinate system of the first image acquisition device) can be determined using a triangulation method based on the two-dimensional key point data of each object in the first image and the two-dimensional key point data of each object in the second image; and the three-dimensional key point data of each object in the first image in the coordinate system of one of the multiple image acquisition devices (the coordinate system of the first image acquisition device) are coordinate-transformed to obtain the three-dimensional key point data of each object in the first image in the predetermined coordinate system.

[0053] For example, the images captured by the i-th image acquisition device and the j-th image acquisition device (represented by the first image and the second image) constitute an image pair, and triangulation is performed on the two-dimensional key point data of each object in the first image and the second image included in the image pair, for example, triangulation is performed on the two-dimensional key point data of the k-th object in the first image and the l-th object in the second image (the triangulation result is based on the coordinate system of the i-th image acquisition device). Since the object matching relationship between the first image and the second image cannot be determined at this time, any two objects between the first image and the second image need to be triangulated, that is, any two objects are assumed to be a matching object pair in turn, and triangulation is used to calculate the three-dimensional key point data of the objects corresponding to the matching object pair in a predetermined coordinate system (which will be used to determine accurate three-dimensional key point data in subsequent processes). For example, assuming that the first image includes 4 objects and the second image includes 5 objects, 4×5=20 triangulations are required. The value of the measurement result in the coordinate system of the i-th image acquisition device is P ikjl , its dimension size is K×3, where K is the number of key points of the object (such as 17), and 3 represents the x, y, and z coordinate values ​​(three-dimensional).

[0054] Optionally, for any two image acquisition devices i and j, the value of the measurement result in the coordinate system of the jth image acquisition device ( / P ikjl) can be based on the value of the measurement result in the coordinate system of the i-th image acquisition device (P ikjl ) and is obtained by the following formula: / P ikjl =R ij P ikjl +t ij ,

[0055] Among them, R ij and t ij are the calibrated rotation parameters and translation parameters from image acquisition device i to image acquisition device j (ie, calibration parameters).

[0056] Therefore, if the predetermined coordinate system is the coordinate system of the i-th image acquisition device, coordinate conversion may not be performed, or the rotation parameters and translation parameters may be set to 1 and 0, respectively; if the predetermined coordinate system is the coordinate system of the j-th acquisition device, calibration parameters may be used to perform conversion between coordinate systems.

[0057] Optionally, in the present application, the predetermined coordinate system is used as the coordinate system of the j-th image acquisition device as an example for explanation. This is because in this case the measurement results based on triangulation are further subjected to coordinate transformation, which can better highlight the error between the estimated value and the actual value, so as to facilitate the subsequent determination of matching object pairs.

[0058] FIG4 shows a schematic diagram of the principle of the triangulation method.

[0059] As shown in FIG4 , taking the image acquisition device as a camera as an example, O L is the position of the first camera, O R is the position of the second camera. Based on the camera extrinsics between the second camera and the first camera, we can know O L and O R For the physical point P in the three-dimensional space, the imaging position on the image plane of the first camera is p l (two-dimensional coordinate data), the imaging position on the image plane of the second camera is p r (two-dimensional coordinate data). For example, as mentioned above, if the kth object in the first image and the lth object in the second image are the same object, then in conjunction with FIG4 , it is assumed that the imaging position of a key point of the object in the first image is p l , and the imaging position in the second image is p r , so the coordinates of the key point in the three-dimensional space (i.e. the three-dimensional coordinates of the key point in the camera coordinate system) can be determined by the following process. L , O R , p l and p r Convert to the same coordinate system, for O in the same coordinate system L, O R , p l and p r , O L and p l There is a straight line a1, O R and p r There is a line a2 between them. If lines a1 and a2 intersect, then the intersection of lines a1 and a2 is physical point P. If lines a1 and a2 do not intersect, then physical point P is the point closest to lines a1 and a2 (the sum of the perpendicular distances to line a1 and a2 is the smallest). Based on the above application scenario, triangulation can be used to obtain the 3D coordinates of physical point P, which can be the 3D coordinates of a key point of the object.

[0060] Furthermore, in some embodiments, to facilitate calculation, both two-dimensional and three-dimensional coordinates are formatted as homogeneous coordinates. Homogeneous coordinates use an n+1-dimensional vector to represent an n-dimensional vector. When n is 2, the two-dimensional coordinates are converted to three-dimensional coordinates. For example, when the coordinates of the imaging position pl on the image plane of the first camera are [ul, vl], they can be converted to homogeneous coordinates [ul, vl, w], where w can be any value and there is no restriction on the value of w. For example, when w is 1, the homogeneous coordinates are [ul, vl, 1].

[0061] In this way, the measurement results obtained by triangulation are also expressed using homogeneous coordinates, that is, when any two objects between two images in an image pair are assumed to be the same object, the three-dimensional key point data of the object in the predetermined coordinate system is also in the format of homogeneous coordinates, for example, [x, y, z, w].

[0062] Then, in sub-step S220 - 2 , based on the three-dimensional key point data of each object in the first image in the predetermined coordinate system, the reprojected two-dimensional key point data of each object in the first image in the predetermined coordinate system is determined.

[0063] For example, the three-dimensional key point data corresponding to each object in the first image in the homogeneous coordinate format can be converted into two-dimensional key point data in the non-homogeneous coordinate format, that is, re-projected. The process is as follows (taking the coordinate system of the j-th image acquisition device as the predetermined coordinate system as an example):

[0064] in, Represents the reprojected two-dimensional key point data of each object in the first image in a predetermined coordinate system, with a dimension of K×2, where K is the number of key points of each object (e.g., 17), / P ikjl[…,:2] represents the first two coordinate data (eg, x and y coordinate data) in the coordinate data indicated by the three-dimensional key point data of each object in the first image in the predetermined coordinate system, and / P ikjl […, 2] represents the last coordinate data (e.g., w coordinate data) in the coordinate data indicated by the 3D key point data for each object in the predetermined coordinate system in the first image. The 2D key point data and 3D key point data for each object described herein can be considered as the 2D coordinate data or 3D coordinate data for each key point of the object.

[0065] In sub-step S220 - 3 , one or more matching object pairs corresponding to the image pair are determined based on the reprojected two-dimensional key point data of each object in the first image within the predetermined coordinate system.

[0066] Optionally, based on the reprojected two-dimensional data of each object in the first image in the predetermined coordinate system, the error between the reprojected two-dimensional key point data of each object in the first image in the predetermined coordinate system and the two-dimensional key point data of each object in the second image in the predetermined coordinate system can be determined as a reprojection error; then, based on the reprojection error, one or more matching object pairs corresponding to the image pair can be determined.

[0067] For example, for each object in the first image, the error between the reprojected 2D key point data of the object and the 2D key point data of each of all objects in the second image in a predetermined coordinate system may be calculated as the reprojection error.

[0068] For example, the above reprojection error can be calculated by the following formula:

[0069] Where k represents the kth object in the first image of any image pair, l represents the lth object in the second image of the image pair, size represents the scale (as an example, the average of the diagonal length of the 3D bounding box of the key point of the kth object in the first image and the diagonal length of the 3D bounding box of the key point of the lth object in the second image can be used), δ(v ke ,v le ) indicates that if the e-th key point of the k-th object and the e-th key point of the l-th object are available, it is 1, otherwise it is 0. Whether the e-th key point of the two objects is available is determined by the output result of the two-key key point detection model mentioned above (usually a threshold is set, such as 0.5. If the detection confidence of the corresponding key point is greater than the corresponding threshold, it means that the corresponding key point is available. If the detection confidence is less than the corresponding threshold, it means that the corresponding key point is unavailable). d(p ke ,p le) represents the Euclidean distance between the e-th key point of the k-th object in the first image and the e-th key point of the l-th object in the second image. Note that after the above-mentioned reprojection process, all objects in the first image and all objects in the second image have undergone an object matching process between images and reprojected into a predetermined coordinate system. The so-called object matching process between images means that regardless of whether the two objects are actually matched, they will be assumed to correspond to the same object in the target scene and reprojected relative to a predetermined coordinate system (here taking the coordinate system of the j-th image acquisition device as an example) to obtain reprojected two-dimensional key point data, and perform error calculation on it and the real two-dimensional key point data (the sum of the Euclidean distances of the two-dimensional key point coordinate data of all key points), thereby obtaining the error between the reprojected two-dimensional key point data of each object (k) in the first image and the two-dimensional key point data of each object (l) in the second image.

[0070] In order to facilitate subsequent calculations, these errors can be represented by an error matrix. Therefore, the dimension of the error matrix is ​​M i ×M j , where M i and M j are the number of objects in the first image and the second image, respectively. For example, if there are 3 objects in the first image and 100 objects in the second image, the number of calculated errors (Euclidean distances) is 3×100, that is, the dimension of the error matrix is ​​3×100.

[0071] Then, the best matching relationship of each object detected between the first image and the second image can be calculated based on the various errors solved above (for example, based on the above error matrix). For example, for each object in the first image, the object in the second image with which it has the smallest error can be determined, or the objects in the second image with which it has an excessively large error (corresponding Euclidean distance) can be removed (for example, two objects with a Euclidean distance exceeding a distance threshold of 0.3 are determined as mismatched). A one-to-one matching object pair can be obtained, and thus after this step of processing, the object matching relationship between the two images is obtained. Optionally, this process can be implemented for the error matrix using, for example, the Hungarian algorithm. The Hungarian algorithm is a common algorithm in this field, so the description of its specific process is omitted here to avoid blurring the content of this application. Of course, other algorithms can also be used to determine the best matching relationship of objects between the two images based on these errors.

[0072] For example, if there are three objects in the first image and 100 objects in the second image, the result may be that objects numbered 0, 1, and 2 in the first image are matched with objects numbered 3, 9, and 87 in the second image, respectively, while the other objects in the second image fail to match, or there are no objects in the first image that can be matched with the objects in the second image (the error (Euclidean distance) is greater than the distance threshold). However, it should be understood that the other objects in the second image can be matched with objects in another image captured by another image acquisition device. In this case, the second image and the other object constitute another image pair, and the object matching relationship between the images is determined similarly to the above process.

[0073] In summary, for each image pair, by determining the errors between the reprojected two-dimensional key point data of each object in the first image of the image pair and the two-dimensional data point data of each object in the second image, the object matching relationship between the first image and the second image can be determined, that is, each object in the first image is the same object as which object in the second image or constitutes a matching object pair.

[0074] By performing the above operation on each image pair, an object matching relationship between the two images of each image pair can be obtained. The following describes in more detail the estimation of the 3D key point data of each object in the target scene based on these matching object pairs in step S230.

[0075] For each image pair, if one or more matching object pairs corresponding to each image pair are obtained, a triangulation algorithm can be used to calculate the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the image pair in the target coordinate system.

[0076] For example, if object A in the first image and object B in the second image match and correspond to a real object TA in the target scene, then based on the two-dimensional key point data of object A in the first image and the two-dimensional key point data of object B in the second image, and using the coordinate system of the image acquisition device that acquired the first image as the target coordinate system corresponding to the image pair, the three-dimensional key point data of the real object TA in the target scene (corresponding to object A in the first image or object B in the second image) in the target coordinate system can be calculated. Optionally, for each image pair, the target coordinate system corresponding to the image pair can also be the coordinate system of any one of multiple image acquisition devices, and can be the same as or different from the predetermined coordinate system corresponding to the image pair mentioned above.

[0077] In addition, since the coordinate systems of the image acquisition devices that acquire each image are different, it is necessary to convert the three-dimensional key point data in the target coordinate system corresponding to each image pair obtained into the reference coordinate system. For example, the reference coordinate system is the coordinate system of the image acquisition device numbered 0 (of course, the coordinate system of any other image acquisition device can also be used as the reference coordinate system), then the three-dimensional key point data P calculated with the coordinate system of any image acquisition device i as the target coordinate system can be converted into the reference coordinate system. ikj The conversion to the coordinate system of the image acquisition device numbered 0 can be expressed as follows:

[0078] Among them, P ikj represents the 3D key point data of the kth object in the coordinate system of image acquisition device i based on the kth object in the first image acquired by the matched image acquisition device i and the lth object in the second image acquired by the image acquisition device j, and R i0 and t i0 are the calibrated rotation parameters and translation parameters from image acquisition device i to image acquisition device 0. In this way, the 3D key point data of all objects can be converted from the target coordinate system to the reference coordinate system.

[0079] In addition, as mentioned above, each object in the target scene will be captured by at least two image capture devices, and a set of 3D key point data can be calculated for each image pair including the object, so multiple sets of 3D key point data may be calculated for the object.

[0080] That is, in some cases, if at least two of the image pairs consisting of multiple images acquired from the image acquisition system include at least one object in the target scene, then for each of the at least one object, three-dimensional key point data of the object in the reference coordinate system is determined for each of the at least two image pairs (as described in the method described in FIG. 2 ), resulting in at least two sets of three-dimensional key point data corresponding one-to-one with the at least two image pairs. Then, based on the at least two sets of three-dimensional key point data, final three-dimensional key point data for the object in the reference coordinate system is estimated. For example, the at least two sets of three-dimensional key point data can be averaged to determine the final three-dimensional key point data for the object.

[0081] For example, an object TA in a target scene is captured by three image capture devices (the three captured images are numbered 1 / 2 / 3, for example). After matching, the two-dimensional key point data of the object TA in each of the three images can be determined. Therefore, the two-dimensional key point data of the object in the three image pairs (1-2, 2-3, 1-3) can be used to estimate the three-dimensional key point data of the object in the reference coordinate system. Therefore, the three groups of three-dimensional key point data estimated for the three image pairs including the object TA can be averaged to determine the final three-dimensional key point data of the object TA. For example,

[0082] Among them, P ikj It represents the three-dimensional key point data of the kth object in the first image captured by image acquisition device i and the lth object in the second image captured by image acquisition device j (corresponding to object TA in the target scene) in the coordinate system of image acquisition device i. NR represents the number of three-dimensional key point data actually involved in the calculation. In actual use, the number of calculations can be appropriately reduced according to the accuracy requirements, such as by only using the image acquisition device as the reference in combination with other image acquisition devices. For example, even if image acquisition devices 0 / 2 / 8 all capture object TA in the target scene, the three-dimensional key point data of object TA in the reference coordinate system is determined only based on the image pairs captured by image acquisition devices 0 and 2.

[0083] Optionally, since the final three-dimensional key point data of each object is a data set of coordinate values ​​of multiple key points of the object, some three-dimensional key points may not actually be detected, and there may be duplicate key points among the multiple key points detected, deduplication processing can be performed.

[0084] Therefore, the method for estimating three-dimensional key points further includes: determining whether any two key points of the object are duplicate key points based on the final three-dimensional key point data of each object; and performing deduplication processing when it is determined that duplicate key points exist.

[0085] For example, based on the final three-dimensional key point data of each object, the error (e.g., Euclidean distance) of the coordinate values ​​between any two key points of the object is calculated; and when the error is less than an error threshold, it is determined that there are duplicate key points and deduplication processing is performed, for example, one of the duplicate key points is selected as the estimated final three-dimensional key point.

[0086] By using the above-mentioned method for estimating the three-dimensional key point data of an object, based on multiple images captured by multiple image acquisition devices, as long as any object in the target scene appears in the field of view of two (or more) of the image acquisition devices (correspondingly, the two-dimensional key point data of the object in each image can be obtained), the three-dimensional key point data of the object in the reference coordinate system can be estimated. Therefore, compared with other methods for estimating three-dimensional key point data, the occlusion between objects has less impact on the estimation result; in addition, when a target object appears in the field of view of more than two image acquisition devices, for these images, the observation results of multiple image acquisition devices can be simultaneously fused to estimate the final three-dimensional key point data. For example, if images from n image acquisition devices are used to estimate the three-dimensional key point data, the variance will be reduced to 1 / n accordingly, and the accuracy will be correspondingly higher.

[0087] By using the method for estimating the three-dimensional key point data of an object described in the above reference figures 2-5, the three-dimensional key point data of all objects in the target scene can be obtained at the same time. Therefore, when only the three-dimensional key point data of some objects (desired objects) may be needed, after obtaining the three-dimensional key point data of all objects, an additional screening process can be added to obtain the three-dimensional key point data of these desired objects.

[0088] Furthermore, according to other embodiments, the above method may be combined with object recognition technology to estimate the three-dimensional key point data of the desired object.

[0089] For example, all images including the desired object (one or more) may be identified using object recognition technology, and then the three-dimensional key point data of each desired object may be estimated based on the two-dimensional key point data of the desired object in different images.

[0090] For another example, since the computational complexity of the object recognition process is larger than that of the previously described process of determining the matching relationship based on calculating the reprojection error, an image can be first identified for each desired object through object recognition technology, and then a similar process of determining matching object pairs can be used to determine whether the desired object is included in other images, thereby estimating the three-dimensional key point data of the desired object based on the two-dimensional key point data of the desired object in different images.

[0091] Specifically, a method for estimating three-dimensional key point data of an object according to another embodiment may include the following steps.

[0092] First, a plurality of images associated with the same target scene are acquired, and two-dimensional key point data of an object included in the corresponding image is extracted from each of the plurality of images.

[0093] This process is similar to step S210 described with reference to FIG. 2 .

[0094] Then, based on the object recognition, one image including the desired object is determined from the plurality of images as a reference image.

[0095] For example, the desired object may be, for example, a child, an adult, an animal, or the like.

[0096] Optionally, the object recognition technology can be implemented based on a neural network, such as a deep learning model based on a convolutional neural network, etc.

[0097] Optionally, each image may include multiple desired objects, and this step and subsequent steps may be performed for each desired object.

[0098] Then, for each image pair consisting of the reference image and each other image in the multiple images, based on the two-dimensional key point data of the expected object in the reference image which is the first image of the image pair and the two-dimensional key point data of each object in the second image of the image pair, determine whether the image pair corresponds to a matching object pair, wherein the matching object pair includes the expected object in the first image and the expected object in the second image.

[0099] For example, some images may not include the expected object, so the image pairs formed by these images and the reference image do not include matching object pairs. For example, the matching relationship can be determined by referring to the method described above, and the calculated reprojection error may be too large (greater than a threshold), so it can be determined that these image pairs do not include matching object pairs.

[0100] Finally, based on the two-dimensional key point data of the desired object in the corresponding first image and in the corresponding second image of each matching object pair determined for each image pair, the three-dimensional key point data of the desired object in the target scene is estimated.

[0101] For example, similarly, a 3D key data may be estimated based on each pair of 2D key point data of the desired object using triangulation, and all 3D key point data may be averaged to obtain the final 3D key point data of the desired object.

[0102] More details of the steps of determining matching object pairs in image pairs and estimating three-dimensional key point data of the desired object in the method are similar to the processes described above, so their detailed description is omitted here.

[0103] In the above-mentioned method for estimating the three-dimensional key point data of an object, parameter conversion between image acquisition devices or conversion between coordinate systems of image acquisition devices is involved. These conversions are all implemented based on rotation parameters and translation parameters between image devices. Therefore, the method may also include the following steps: pre-calibrating the rotation parameters and translation parameters between image acquisition devices so that coordinate transformation can be performed between the corresponding coordinate systems of the multiple image acquisition devices, thereby being used to estimate the three-dimensional key point data of the object.

[0104] The following describes the process of calibrating the rotation parameters and translation parameters between image acquisition devices in conjunction with Figure 5. As mentioned above, all image acquisition devices should be of the same model and their intrinsic parameters should be as close as possible.

[0105] For example, as shown in FIG5 , in step S510 , corresponding calibration images acquired within a predetermined time period are acquired from each image acquisition device, wherein all calibration images include the same calibration object in the calibration scene.

[0106] For example, the calibration object moves in the calibration scene, and each image acquisition device synchronously captures about 30 seconds of video, so that multiple video frame images can be obtained from the video.

[0107] Then, in step S520, two-dimensional key point detection is performed on each acquired calibration image to obtain corresponding two-dimensional key point data.

[0108] The result of two-dimensional key point detection for each calibration image is the two-dimensional key point data of each key point of the calibration object in the two-dimensional coordinate system of the calibration image, and a data set PD is obtained. The dimension of the data set PD is N×L×K×2, where N represents the number of image acquisition devices, L represents the number of captured frames (such as 30 seconds of data, 30 frames per second, then L=900), K represents the number of key points of the calibration object (as mentioned above, the key points are pre-selected, for example, 17), and 2 represents the x, y coordinate values ​​corresponding to each key point. Negative x, y coordinate values ​​can be used to indicate that the corresponding key point is not detected.

[0109] Then, in step S530, for any two image acquisition devices, a set of rotation parameters and translation parameters between the two image acquisition devices are obtained based on the two-dimensional key point data (P[i] and P[j] (whose dimensions are both L×K×2)) corresponding to the calibration images acquired by the two image acquisition devices.

[0110] For example, a fitting algorithm, such as the Random Consensus Sampling algorithm (RANSAC algorithm), can be used to calculate the eigenvalue matrix E ij , get a set of rotation parameters R of image acquisition device i to jij and translation parameter t ij The RANSAC algorithm is an iterative method for estimating its mathematical model from a set of observation data that contains outliers. For example, when calculating the rotation parameters and translation parameters of image acquisition device i to j, the observation data set is the two-dimensional key point data corresponding to multiple calibration images acquired by image acquisition device i during a predetermined time period, and the two-dimensional key point data corresponding to multiple calibration images acquired by image acquisition device j during a predetermined time period. The specific process of the RANSAC algorithm is well known in the art, and therefore its detailed description is omitted here.

[0111] It should be noted that there is a set of rotation parameters and translation parameters between any two image acquisition devices. For example, there are 3 sets of parameters for 3 image acquisition devices and 6 sets of parameters for 4 image acquisition devices.

[0112] After the parameter calibration process is completed, the parameter conversion between each two image acquisition devices or the conversion between the coordinate systems of the image acquisition devices can be completed based on the pre-calibrated rotation parameters and translation parameters.

[0113] According to another aspect of the present application, a device for estimating three-dimensional key point data of a target object is also provided.

[0114] Figure 6 shows a block diagram of a device for estimating three-dimensional key point data of a target object according to an embodiment of the present application. The device may be a server or a terminal.

[0115] As shown in FIG. 6 , the apparatus 600 may include an acquisition module 610 , a determination module 620 , and an estimation module 630 .

[0116] The acquisition module 610 may be configured to acquire multiple images associated with the same target scene, and extract two-dimensional key point data of an object included in each of the multiple images.

[0117] For example, the acquisition module 610 may perform two-dimensional key point detection on each of the multiple images using a two-dimensional key point detection model to obtain two-dimensional key point data of the object included in the corresponding image.

[0118] The determination module 620 can be used to determine, for each image pair consisting of two images, one or more matching object pairs corresponding to the image pair based on the two-dimensional key point data of each object in the first image of the image pair and each object in the second image of the image pair, wherein each matching object pair includes the first object in the first image and the second object in the second image, and corresponds to an object in the target scene.

[0119] The estimation module 630 may be configured to estimate 3D key point data of each object in the target scene based on the 2D key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair.

[0120] FIG7 shows more details of the modules of FIG6 .

[0121] For example, as shown in FIG7 , the determination module 620 may further include a first determination submodule 620 - 1 , a second determination submodule 620 - 2 , and a third determination submodule 620 - 3 .

[0122] The first determination submodule 620-1 can be used to determine, for each image pair, the three-dimensional key point data of each object in the first image of the image pair within a predetermined coordinate system based on the two-dimensional key point data of each object in the first image of the image pair and the two-dimensional key point data of each object in the second image.

[0123] For example, the first determination submodule 620-1 can be specifically configured to determine, for each image pair, the three-dimensional key point data of each object in the first image of the image pair in the coordinate system of one of the multiple image acquisition devices (for example, the first image acquisition device) based on the two-dimensional key point data of each object in the first image of the image pair and the two-dimensional key point data of each object in the second image of the image pair using a triangulation method; and perform coordinate transformation on the three-dimensional key point data of each object in the first image of the image pair in the coordinate system of the one of the multiple image acquisition devices to obtain the three-dimensional key point data of each object in the first image of the image pair in the predetermined coordinate system.

[0124] The second determination submodule 620-2 can be used to determine, for each image pair, the reprojected two-dimensional key point data of each object in the first image of the image pair within the predetermined coordinate system based on the three-dimensional key point data of each object in the first image of the image pair within the predetermined coordinate system.

[0125] For example, the three-dimensional key point data of each object in the predetermined coordinate system is homogeneous three-dimensional coordinate data, and the second determination submodule 620-2 can be specifically configured as: for each image pair, the three-dimensional key point data of each object in the first image of the image pair in the predetermined coordinate system is converted into non-homogeneous three-dimensional coordinate data, and the reprojected two-dimensional key point data of each object in the first image of the image pair in the predetermined coordinate system is obtained.

[0126] The third determination submodule 620 - 3 may be configured to determine, for each image pair, one or more matching object pairs corresponding to the image pair based on the reprojected two-dimensional key point data of each object in the first image of the image pair within the predetermined coordinate system.

[0127] For example, the third determination submodule 620-3 can be specifically configured to: determine the error between the reprojected two-dimensional key point data of each object in the first image of the image pair in the predetermined coordinate system and the two-dimensional key point data of each object in the second image of the image pair in the predetermined coordinate system based on the reprojected two-dimensional data of each object in the first image of the image pair in the predetermined coordinate system, as a reprojection error; and determine one or more matching object pairs corresponding to the image pair based on the reprojection error.

[0128] As shown in FIG. 7 , the estimation module 630 may include an estimation submodule 630 - 1 and a coordinate conversion submodule 630 - 2 .

[0129] The estimation submodule 630-1 can be used to estimate the three-dimensional key point data of the objects in the target scene corresponding to each matching object pair in each image pair based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image, using a triangulation method.

[0130] The coordinate conversion submodule 630-2 can be used to convert the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the target coordinate system into the reference coordinate system, and obtain the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the reference coordinate system.

[0131] Optionally, at least two image pairs in the image pairs consisting of the multiple images include at least one object in the target scene. In this case, the estimation submodule can also be configured to determine the three-dimensional key point data of the object in the reference coordinate system for each object in the at least one object, respectively for each image pair in the at least two image pairs, to obtain at least two sets of three-dimensional key point data corresponding one-to-one to the at least two image pairs; and estimate the final three-dimensional key point data of the object in the reference coordinate system based on the at least two sets of three-dimensional key point data.

[0132] Optionally, the final three-dimensional key point data of each object is a data set of coordinate values ​​of multiple key points of the object. The determination module may also include a fourth determination submodule, which is configured to determine whether any two key points of the object are duplicate key points based on the final three-dimensional key point data of each object; and perform deduplication processing when it is determined that duplicate key points exist.

[0133] Optionally, the apparatus 600 may further include a calibration module 640 for pre-calibrating rotation parameters and translation parameters between multiple image acquisition devices that acquire the multiple images, so that coordinate transformation can be performed between corresponding coordinate systems of the multiple image acquisition devices.

[0134] For more details on the operations of the above modules, please refer to the descriptions in Figures 2-5, so they will not be repeated here.

[0135] In addition, if the estimation of three-dimensional key point data is implemented in conjunction with an object recognition process, the apparatus 600 may further include an object recognition module for determining, based on object recognition, an image including the desired object from the multiple images as a reference image. Thus, the determination module 620 is alternatively configured to determine, for each image pair consisting of the reference image and each other image in the multiple images, whether the image pair corresponds to a matching object pair based on the two-dimensional key point data of the desired object in the reference image as the first image of the image pair and the two-dimensional key point data of each object in the second image of the image pair, wherein the matching object pair includes the desired object in the first image and the desired object in the second image; and the estimation module 630 is alternatively configured to estimate the three-dimensional key point data of the desired object in the target scene based on the two-dimensional key point data of the desired object in the corresponding first image and the corresponding second image for each matching object pair determined for each image pair.

[0136] In addition, although the above modules and submodules are shown in Figures 6-7 by way of example, it should be understood that the device 600 can be divided into more or fewer modules according to different functions, or each module can be divided into more or fewer submodules. In some example embodiments, a module or its submodule can be implemented using electronic hardware (e.g., a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.), computer software (e.g., which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable ROM (EPROM), etc.), or a combination of the two.

[0137] Fig. 8 shows a schematic block diagram of a computing device according to an embodiment of the present application. The computing device may be the computing device (server 20 or terminal) shown in Fig. 1 .

[0138] As shown in FIG8 , the computing device 800 includes one or more processors, one or more memories, a network interface, an input device, and a display screen connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the terminal stores an operating system and may also store a computer executable program. When the computer executable program is executed by the processor, the processor may implement the various operations of the method for estimating three-dimensional key point data of an object in a target scene as described above. The internal memory may also store a computer executable program. When the computer executable program is executed by the processor, the processor may implement the various operations described in each step of the method for estimating three-dimensional key point data of an object in a target scene.

[0139] The processor can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor, etc., and can be an X84 architecture or an ARM architecture.

[0140] The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0141] The display screen of the computing device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computing device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the terminal housing, or an external keyboard, touchpad or mouse.

[0142] The computing device may be a terminal or a server. The terminal may include, but is not limited to, a smartphone, a tablet computer, a laptop computer, a desktop computer, a smart TV, etc.; a variety of clients (applications, APPs) may run in the terminal, such as a multimedia player client, a social client, a browser client, an information stream client, an educational client, etc. The server may be the server described with reference to FIG2 , that is, it may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0143] According to another aspect of the present application, a system for estimating three-dimensional key point data of objects in a target scene is also provided, comprising: multiple image acquisition devices, arranged in the target scene at different positions and angles, for capturing one or more objects in the target scene, and outputting multiple images or obtaining a video of the multiple images; a computing device, comprising: a processor, and a memory, on which a computer program is stored, and when the computer program is executed by the processor, the processor executes the steps of the method for estimating three-dimensional key point data of objects in the target scene as described above.

[0144] For example, the system may be the system shown in FIG. 1 , and the computing device may have the structure described with reference to FIG. 8 .

[0145] According to another aspect of the present application, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method for estimating three-dimensional key point data of an object in a target scene as described above.

[0146] According to another aspect of the present application, a computer program product is provided, comprising a computer program, which implements the steps of the aforementioned method for estimating three-dimensional key point data of an object in a target scene when the computer program is executed by a processor.

[0147] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the methods and devices according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of the code, and the module, program segment, or a part of the code contains at least one executable instruction for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0148] The exemplary embodiments of the present application described in detail above are merely illustrative and not restrictive. Those skilled in the art will appreciate that various modifications and combinations may be made to these embodiments or their features without departing from the principles and spirit of the present application, and such modifications should fall within the scope of the present application.

Claims

1. A method for estimating three-dimensional key point data of an object in a target scene, wherein the target scene contains one or more objects, the method comprising: Acquire a plurality of images associated with the same target scene, and extract two-dimensional key point data of an object included in the corresponding image from each of the plurality of images; For each image pair consisting of two images, based on the two-dimensional key point data of each object in a first image of the image pair and each object in a second image of the image pair, determine one or more matching object pairs corresponding to the image pair, wherein each matching object pair includes a first object in the first image and a second object in the second image, and corresponds to an object in the target scene; as well as Based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair, the three-dimensional key point data of each object in the target scene is estimated.

2. The method according to claim 1, wherein: Determining one or more matching object pairs corresponding to the image pair based on the two-dimensional key point data of each object in the first image and each object in the second image includes: Determining three-dimensional key point data of each object in the first image within a predetermined coordinate system based on the two-dimensional key point data of each object in the first image and the two-dimensional key point data of each object in the second image; Determining reprojected two-dimensional key point data of each object in the first image in the predetermined coordinate system based on the three-dimensional key point data of each object in the first image in the predetermined coordinate system; and Based on the reprojected two-dimensional key point data of each object in the first image within the predetermined coordinate system, one or more matching object pairs corresponding to the image pair are determined.

3. The method according to claim 2, wherein: Determining three-dimensional key point data of each object in the first image in a predetermined coordinate system based on the two-dimensional key point data of each object in the first image and the two-dimensional key point data of each object in the second image includes: Based on the two-dimensional key point data of each object in the first image and the two-dimensional key point data of each object in the second image, a triangulation method is used to determine the location of each object in the first image. three-dimensional keypoint data within a coordinate system of one of a plurality of image acquisition devices that acquired the plurality of images; The three-dimensional key point data of each object in the first image in the coordinate system of the one of the multiple image acquisition devices is converted to obtain the three-dimensional key point data of each object in the first image in the predetermined coordinate system.

4. The method according to claim 2, wherein: The three-dimensional key point data of each object in the predetermined coordinate system is three-dimensional homogeneous coordinate data, Wherein, determining the reprojected two-dimensional key point data includes: The three-dimensional key point data of each object in the first image in the predetermined coordinate system is converted into three-dimensional non-homogeneous coordinate data to obtain reprojected two-dimensional key point data of each object in the first image in the predetermined coordinate system.

5. The method according to claim 2, wherein: Determining one or more matching object pairs corresponding to the image pair based on the reprojected two-dimensional key point data of each object in the first image in the predetermined coordinate system includes: Based on the reprojected two-dimensional data of each object in the first image in the predetermined coordinate system, determining an error between the reprojected two-dimensional key point data of each object in the first image in the predetermined coordinate system and the two-dimensional key point data of each object in the second image in the predetermined coordinate system as a reprojection error; and Based on the reprojection error, one or more matching object pairs corresponding to the image pair are determined.

6. The method according to claim 1, wherein: Estimating three-dimensional key point data of each object in the target scene, including: Based on the two-dimensional key point data of the first object of each matching object pair corresponding to each image pair in the corresponding first image and the second object of each matching object pair in the corresponding second image, using a triangulation method to determine the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the target coordinate system; The three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the target coordinate system is converted into the reference coordinate system to obtain the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the reference coordinate system.

7. The method according to claim 6, wherein: At least two of the image pairs formed by the plurality of images each include at least one object in the target scene, Wherein, estimating the three-dimensional key point data of each object in the target scene further comprises: for each object of the at least one object, Determining three-dimensional key point data of the object in the reference coordinate system for each of the at least two image pairs, respectively, to obtain at least two groups of three-dimensional key point data corresponding one-to-one to the at least two image pairs; and Based on the at least two sets of three-dimensional key point data, final three-dimensional key point data of the object in the reference coordinate system is estimated.

8. The method according to claim 7, wherein: The final three-dimensional key point data of each object is a data set of coordinate values ​​of multiple key points of the object. Wherein, the method further comprises: Determining whether any two key points of each object are duplicate key points based on the final three-dimensional key point data of the object; and When it is determined that there are duplicate key points, de-duplication processing is performed.

9. The method according to claim 1, wherein: Extracting two-dimensional key point data of an object included in the corresponding image from each of the plurality of images respectively, comprising: A two-dimensional key point detection model is used to perform two-dimensional key point detection on each of the multiple images to obtain two-dimensional key point data of the object included in the corresponding image.

10. The method according to claim 1, further comprising: The rotation parameters and translation parameters between the multiple image acquisition devices that acquire the multiple images are pre-calibrated so that coordinate transformation can be performed between the multiple coordinate systems of the multiple image acquisition devices.

11. A method for estimating three-dimensional key point data of an object in a target scene, wherein the target scene contains one or more objects, the method comprising: Acquire multiple images associated with the same target scene, and respectively from each of the multiple images One extracts two-dimensional key point data of an object included in a corresponding image; Based on object recognition, determining an image including a desired object from the plurality of images as a reference image; for each image pair formed by the reference image and each other image in the plurality of images, determining whether the image pair corresponds to a matching object pair based on the two-dimensional key point data of the desired object in the reference image as the first image of the image pair and the two-dimensional key point data of each object in the second image of the image pair, wherein the matching object pair includes the desired object in the first image and the desired object in the second image; as well as Based on the two-dimensional key point data of the desired object in the corresponding first image and in the corresponding second image for each matching object pair determined for each image pair, three-dimensional key point data of the desired object in the target scene is estimated.

12. A device for estimating three-dimensional key point data of an object in a target scene, wherein the target scene contains one or more objects, the device comprising: An acquisition module, configured to acquire a plurality of images associated with the same target scene, and extract two-dimensional key point data of an object included in the corresponding image from each of the plurality of images; a determination module, configured to determine, for each image pair consisting of two images, one or more matching object pairs corresponding to the image pair based on two-dimensional key point data of each object in a first image of the image pair and each object in a second image of the image pair, wherein each matching object pair includes a first object in the first image and a second object in the second image, and corresponds to an object in the target scene; as well as The estimation module is used to estimate the three-dimensional key point data of each object in the target scene based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair.

13. The device according to claim 12, wherein: The determination module comprises: A first determination submodule is used to determine, for each image pair, three-dimensional key point data of each object in the first image of the image pair in a predetermined coordinate system based on the two-dimensional key point data of each object in the first image of the image pair and the two-dimensional key point data of each object in the second image; The second determination submodule is used to determine, for each image pair, the three-dimensional key point data of each object in the first image of the image pair in the predetermined coordinate system. reprojected two-dimensional key point data of each object in the predetermined coordinate system; and The third determination submodule is used to determine, for each image pair, one or more matching object pairs corresponding to the image pair based on the reprojected two-dimensional key point data of each object in the first image of the image pair in the predetermined coordinate system.

14. The device according to claim 12, wherein: The estimation module comprises: an estimation submodule, configured to estimate the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the target coordinate system by using a triangulation method based on the two-dimensional key point data of the first object in the corresponding first image and the second object in the corresponding second image of each matching object pair corresponding to each image pair; The coordinate conversion submodule is used to convert the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the target coordinate system into the reference coordinate system to obtain the three-dimensional key point data of the object in the target scene corresponding to each matching object pair in the reference coordinate system.

15. A computing device comprising: processor, and A memory having a computer program stored thereon, wherein the computer program, when executed by the processor, causes the processor to perform the method according to any one of claims 1 to 11.

16. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by the processor, the processor is caused to perform the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • 3D attitude estimation method and device, apparatus, and computer storage medium

    CN109214980A

  • Multi-target attitude estimation method, multi-target attitude estimation device and terminal equipment

    CN112528831A

  • Three-dimensional reconstruction method and device, electronic equipment and computer readable medium

    CN114627244A

  • Interactive control method and apparatus, electronic device and storage medium

    US20220066545A1