Model construction method, pose determination method, apparatus, device, and medium

By constructing a posture determination model and using image features and reference posture data, the problem of low efficiency in target part posture prediction in the existing technology is solved, and more accurate and stable posture prediction is achieved, which is suitable for reconstruction scenes such as hands or feet.

WO2024217235A1PCT designated stage expired Publication Date: 2024-10-24BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2024/083967
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2024-03-27
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In some application scenarios, such as the hand or foot reconstruction process, the method of determining the pose of the target part is inefficient, and it is difficult for the existing technology to accurately predict the pose of the part, especially when the image quality is low or the part is occluded.

Method used

By obtaining the sample image and its corresponding posture data label and reference posture data, the pre-built posture recognition model is used to extract image features, and combined with the reference posture data and posture data label, the first posture determination model is trained, and then the second posture determination model is constructed. Pose determination model to more accurately predict the pose of the target part in the image to be processed.

Benefits of technology

It improves the accuracy and stability of posture prediction, can generate posture prediction results that conform to physiological structure and temporal coherence when low-quality images or parts are occluded, and reduces the difficulty and cost of model training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083967_24102024_PF_FP_ABST
    Figure CN2024083967_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a model construction method, a pose determination method, an apparatus, a device, and a medium. The model construction method comprises: first, after acquiring sample images, extracting an image feature from each sample image by means of a pre-constructed pose recognition model, such that the image feature can represent a pose of a target part in the sample image; by means of the image features, reference pose data corresponding to the sample images and pose data labels corresponding to the sample images, training a first pose determination model, such that the trained first pose determination model can better predict a local pose of the target part; and finally, by means of the pose recognition model and the trained first pose determination model, determining a second pose determination model, such that the second pose determination model can, on the basis of reference pose data corresponding to one piece of image data, better predict a local pose of the target part in the image data. Thus, the pose determination process for target parts can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Model construction method, posture determination method, device, equipment, medium

[0001] This application claims priority to Chinese Patent Application No. 202310440737.4 filed on April 21, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] The present application relates to a model construction method, posture determination method, device, equipment, and medium. Background Art

[0003] In some application scenarios (e.g., hand reconstruction, foot reconstruction, etc.), it is necessary to first analyze the posture of a certain part (e.g., hand, foot, etc.) from an image sequence, and then reconstruct the part based on the posture.

[0004] However, how to determine the posture of a certain part is a technical problem that needs to be solved urgently.

[0005] Summary of the Invention

[0006] The present application provides a model construction method, posture determination method, device, equipment, and medium, which can realize the posture determination process for a certain part.

[0007] In order to achieve the above objectives, the technical solutions provided by this application are as follows:

[0008] The present application provides a model construction method, the method comprising:

[0009] Acquire a sample image, a posture data label corresponding to the sample image, and reference posture data corresponding to the sample image; the sample image is used to describe a target part of a first object; the posture data label is used to describe an actual posture of the target part in the sample image;

[0010] Extracting image features from the sample image using a pre-built gesture recognition model;

[0011] Training a first posture determination model using the image features, the reference posture data, and the posture data labels;

[0012] A second posture determination model is determined according to the posture recognition model and the trained first posture determination model.

[0013] In one possible implementation, the reference posture data includes at least one of associated part posture data and historical reference data; the associated part posture data is used to describe the actual posture of the reference part associated with the target part in the image to be used; the reference part and the target part belong to the same object; the image to be used is used to describe at least two parts of the first object, and the at least two parts include the target part and the reference part; the sample image is determined based on the image to be used; and the historical reference data is used to describe the historical status of the target part.

[0014] In a possible implementation manner, the historical reference data includes at least one of historical posture data, historical posture change speed, and historical posture change acceleration.

[0015] In a possible implementation manner, the reference part is a parent node of the target part.

[0016] In one possible implementation, the process of acquiring the reference posture data includes:

[0017] Matching the posture data tag with at least one data frame in a motion capture database; the data frame includes posture data of several parts, and the several parts include the target part;

[0018] If there is a data frame matching the posture data label in the motion capture database, reference posture data corresponding to the sample image is determined based on the matching data frame.

[0019] In one possible implementation, the process of acquiring the reference posture data includes:

[0020] Randomly select a data frame from a motion capture database, wherein the data frame includes posture data of several parts, and the several parts include the target part;

[0021] If the posture data of the target part in the data frame is different from the posture data label, determining posture adjustment description information; the posture adjustment description information refers to information required to be used when adjusting the posture data of the target part in the data frame to the posture data label;

[0022] Determine reference posture data corresponding to the sample image based on the posture adjustment description information and the data frame.

[0023] In one possible implementation, the training process of the first posture determination model includes:

[0024] Determining a posture prediction result based on the first posture determination model, the image features, and the reference posture data; the posture prediction result is used to describe the predicted posture of the target part in the sample image;

[0025] The first posture determination model is updated according to the posture prediction result and the posture data label.

[0026] In a possible implementation manner, the reference posture data includes associated part posture data; the associated part posture data is used to describe the actual posture of the reference part associated with the target part;

[0027] The step of determining a posture prediction result based on the first posture determination model, the image features, and the reference posture data includes:

[0028] Processing the image features and the reference posture data using the first posture determination model to obtain a local posture prediction result; the local posture prediction result is used to describe the predicted rotation state of the target part relative to the reference part;

[0029] A posture prediction result is determined based on the local posture prediction result and the associated part posture data.

[0030] In one possible implementation, the reference posture data further includes historical local posture data and historical local posture change speed;

[0031] The using the first posture determination model to process the image features and the reference posture data to obtain a local posture prediction result includes:

[0032] Inputting the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change speed output by the first posture determination model;

[0033] The local posture prediction result is determined according to the predicted local posture change speed and the historical local posture data.

[0034] In one possible implementation, the reference posture data further includes historical local posture change acceleration;

[0035] Inputting the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change speed output by the first posture determination model includes:

[0036] Inputting the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change acceleration output by the first posture determination model;

[0037] The predicted local posture change speed is determined according to the predicted local posture change acceleration and the historical local posture change speed.

[0038] In a possible implementation manner, the historical local posture data is used to describe a historical rotation state of the target part relative to the reference part.

[0039] In a possible implementation, the posture recognition model includes a feature extraction module; and the second posture determination model includes the feature extraction module and a trained first posture determination model.

[0040] In one possible implementation, before extracting image features from the sample image using the pre-built gesture recognition model, the method further includes:

[0041] The gesture recognition model is trained using the sample images and the gesture data labels corresponding to the sample images; the gesture recognition model is used to perform global gesture determination processing of the target part on the input data of the gesture recognition model.

[0042] The present application provides a posture determination method, the method comprising:

[0043] Acquiring an image to be processed and reference posture data corresponding to the image to be processed; the image to be processed is used to describe a target part of a second object;

[0044] The posture representation data corresponding to the image to be processed is determined based on a pre-constructed second posture determination model, the image to be processed and the reference posture data corresponding to the image to be processed; the second posture determination model is constructed using the model construction method provided in this application.

[0045] The present application provides a model building device, comprising:

[0046] A first acquisition unit is configured to acquire a sample image, a posture data label corresponding to the sample image, and reference posture data corresponding to the sample image; the sample image is used to describe a target part of a first object; the posture data label is used to describe an actual posture of the target part in the sample image;

[0047] A feature extraction unit, configured to extract image features from the sample image using a pre-built gesture recognition model;

[0048] a model training unit, configured to train a first posture determination model using the image features, the reference posture data, and the posture data labels;

[0049] The model determination unit is used to determine a second posture determination model based on the posture recognition model and the trained first posture determination model.

[0050] The present application provides a posture determination device, comprising:

[0051] A second acquisition unit is configured to acquire an image to be processed and reference posture data corresponding to the image to be processed; the image to be processed is used to describe a target part of a second object;

[0052] A posture determination unit is used to determine the posture representation data corresponding to the image to be processed based on a pre-constructed second posture determination model, the image to be processed and the reference posture data corresponding to the image to be processed; the second posture determination model is constructed using the model construction method provided in this application.

[0053] The present application provides an electronic device, the device comprising: a processor and a memory;

[0054] The memory is used to store instructions or computer programs;

[0055] The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the program code of the model building method or posture determination method provided in this application.

[0056] The present application provides a computer-readable medium storing instructions or computer programs. When the instructions or computer programs are executed on a device, the device executes the program code of the model building method or posture determination method provided in the present application.

[0057] The present application provides a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the model construction method or posture determination method provided by the present application. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0059] FIG1 is a schematic diagram of a posture prediction process provided by an embodiment of the present application;

[0060] FIG2 is a flow chart of a model building method provided in an embodiment of the present application;

[0061] FIG3 is a schematic diagram of another posture prediction process provided in an embodiment of the present application;

[0062] FIG4 is a schematic diagram of another posture prediction process provided in an embodiment of the present application;

[0063] FIG5 is a flow chart of a posture determination method provided in an embodiment of the present application;

[0064] FIG6 is a schematic structural diagram of a model building device provided in an embodiment of the present application;

[0065] FIG7 is a schematic structural diagram of a posture determination device provided in an embodiment of the present application;

[0066] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to facilitate understanding of the technical solutions provided by this application, some technical terms involved in this application are introduced below.

[0068] Global pose refers to the rotation of a body part (e.g., a wrist) relative to the coordinate system of the image capture device (e.g., a camera). For example, in some applications, the global pose of a wrist refers to the rotation of the wrist relative to the camera coordinate system.

[0069] The local pose refers to the rotation information of a part (such as the wrist) relative to its parent node. For example, if the parent node of a finger is the wrist, then the local pose of the finger refers to the rotation information of the finger relative to the wrist. For another example, if the parent node of the wrist is the forearm, then the local pose of the wrist refers to the rotation information of the wrist relative to the forearm; and the global pose of the wrist can be determined by the following formula (1).

[0070] Where t represents a data timing identifier (for example, the number of frames of image data being processed in an image sequence); represents the global posture of the wrist at the time sequence marked by t; represents the global posture of the forearm at the time sequence marked by t; represents the local posture of the wrist at the time sequence marked by t.

[0071] It should be noted that, for Figure 1, It refers to the local posture of the finger at the time sequence marked by t; It refers to the global posture of the wrist at the time sequence marked by t.

[0072] It should also be noted that for an object (e.g., an animal, an object, a person, etc.), if the object is composed of multiple parts, the object can be represented using a tree structure, so that each part of the object can be used as a node in the tree structure, and the association between different parts of the object serves as the connection between different nodes in the tree structure, thereby creating a parent-child node relationship in the tree structure. For example, the forearm is the parent node of the wrist.

[0073] Research has found that in some application scenarios, a neural network can be trained using some image data (for example, image 1 shown in Figure 1) and posture labels marked for these image data (for example, hand posture labels, etc.), so that the trained neural network (for example, model 1 shown in Figure 1) can be used to predict the posture information of a certain part (for example, the global posture of the wrist, etc.), so that the digital model corresponding to the part can be reconstructed based on the posture information.

[0074] Research has also found that for the technical solution shown in the previous paragraph, since the solution only predicts the posture information of a certain part based on a local image of the part (for example, the local image of the hand shown in Figure 1), the solution has relatively high requirements for the local image (for example, the local image needs to have a relatively high image quality). As a result, when the local image (for example, a local image captured from a full-body image with relatively low image quality, an image with part occlusion, etc.) fails to meet the requirements, it is easy to cause posture prediction errors (for example, the predicted posture shows obvious unnatural phenomena) or posture prediction cannot be performed, thus resulting in poor posture prediction effect.

[0075] Based on the above research, in order to better improve the posture prediction effect, the present application provides a model construction method and a posture determination method, which can be specifically: after obtaining the sample image, first use the pre-built posture recognition model to extract image features from the sample image, so that the image features can better represent the posture of the target part (for example, wrist) in the sample image; then use the image features, the reference posture data corresponding to the sample image (for example, the posture of the forearm, the posture of the wrist in the previous frame image, the posture change of the wrist in the previous frame image, etc.) and the posture data label corresponding to the sample image (that is, the posture label) to train the first posture determination model, so that the first posture determination model can learn how to perform local posture prediction processing based on the reference posture data during the training process, so that the trained The first posture determination model can better predict the posture of the target part (especially, the rotation state of the target part relative to the forearm, etc.); finally, the posture recognition model and the trained first posture determination model are used to determine the second posture determination model, so that the second posture determination model can better predict the posture of the target part in the image data based on an image data and the corresponding reference posture data, so that the second posture determination model has a better posture prediction function, so that the posture representation data corresponding to the image to be processed can be determined with the help of the processing process of the second posture determination model on the image to be processed and the reference posture data corresponding to the image to be processed, so that the posture representation data can better represent the posture of the target part in the image to be processed, thereby realizing the posture determination process for a certain part.

[0076] It can be seen that because the second posture determination model above is based on the reference posture data corresponding to an image data, it predicts the posture of the target part in the image data, so that the model can perform posture prediction based on as much information as possible, thereby making the posture predicted by the model more accurate, which is conducive to improving the posture prediction effect.

[0077] In addition, the present application does not limit the execution subject of the model construction method. For example, the model construction method provided in the embodiment of the present application can be applied to a device with data processing function such as a terminal device or a server. For another example, the model construction method provided in the embodiment of the present application can also be implemented with the help of a data communication process between different devices (for example, a terminal device and a server, two terminal devices, or two servers). Among them, the terminal device can be a smart phone, a computer, a personal digital assistant (PDA) or a tablet computer. The server can be a stand-alone server, a cluster server or a cloud server.

[0078] Furthermore, the present application does not limit the execution subject of the posture determination method. For example, the posture determination method provided in the embodiments of the present application can be applied to a device with data processing capabilities, such as a terminal device or a server. Furthermore, the posture determination method provided in the embodiments of the present application can also be implemented via a data communication process between different devices (e.g., a terminal device and a server, two terminal devices, or two servers).

[0079] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0080] To better understand the technical solutions provided by this application, the model construction method provided by this application is described below with reference to some accompanying figures. As shown in Figure 2, the model construction method provided by this embodiment of the application includes the following steps S201-S204. Figure 2 is a flow chart of a model construction method provided by this embodiment of the application.

[0081] S201: Acquire a sample image, a posture data label corresponding to the sample image, and reference posture data corresponding to the sample image; the sample image is used to describe a target part of a first object; the posture data label is used to describe the actual posture of the target part in the sample image.

[0082] Among them, the sample image refers to the image data required to use when constructing the second posture determination model below; and the sample image is used to describe the target part of the first object. Among them, the first object refers to the object described by the sample image; and this application does not limit the first object. For example, it can be a person, an animal, an object, a doll, a virtual character, etc. It should be noted that this application does not limit the target part. For example, it can be a part existing in any object (for example, a wrist). It should also be noted that the relevant content of the second posture determination model can be found in S204 below. For the sake of brevity, it will not be repeated here.

[0083] In addition, the present application does not limit the sample image. For example, when the target part is the wrist, the sample image may be image data including the wrist (eg, image 2 shown in FIG. 3 ).

[0084] In addition, the present application does not limit the number of the sample images mentioned above, which can be determined based on actual application scenarios. That is, several sample images can be used in the process of constructing the second posture determination model.

[0085] The posture data label corresponding to the sample image is used to describe the actual posture of the target part in the sample image, so that the "posture data label corresponding to the sample image" can be used as guidance information in the construction process of the second posture determination model.

[0086] The reference posture data corresponding to the sample image refers to the posture information required to be referenced when performing posture prediction processing on the sample image.

[0087] Furthermore, this application does not limit the implementation of the "reference posture data corresponding to the sample image" described above. For example, it may specifically include at least one of the posture data of the associated parts corresponding to the sample image and the historical reference data corresponding to the sample image. For ease of understanding, these two types of information are introduced below.

[0088] The associated part posture data corresponding to the sample image is used to describe the actual state of the reference part associated with the target part, for example, the actual posture of the reference part in the image to be used. The reference part refers to a part associated with the target part, and the reference part and the target part belong to the same object; in addition, the present application does not limit the reference part, for example, the reference part (for example, forearm) can be the parent node of the target part (for example, wrist). The image to be used is used to describe at least two parts of the first object, and the at least two parts include the target part (for example, wrist) and the reference part (for example, forearm), and the sample image is determined based on the image to be used, so that the sample image is used to describe the entire area or part of the area in the image to be used.

[0089] Based on the content of the previous paragraph, it can be seen that if the target part and the reference part exist in the above sample image, then the above image to be used and the sample image can refer to the same image data, or the sample image can also refer to an image captured from the image to be used; however, if the reference part does not exist in the above sample image, then the sample image can refer to an image captured from the image to be used, so that the sample image can be used to describe a partial area in the image to be used. It can be seen that in one possible implementation, if the sample image is image 2 shown in Figure 3, then the image to be used can refer to a whole-body image data, and image 2 is an image captured from the whole-body image data.

[0090] In addition, this application does not limit the implementation of the above “associated part posture data corresponding to the sample image”. For example, when the above reference part is the forearm, the “associated part posture data corresponding to the sample image” can be as shown in FIG3.

[0091] In addition, this application does not limit the method for obtaining the "posture data of the associated parts corresponding to the sample image" mentioned above. For example, it can be implemented using any existing or future method that can obtain the posture data of a part (such as manual annotation, etc.). For another example, in order to better reduce the difficulty of data acquisition, the "posture data of the associated parts corresponding to the sample image" can be determined with the help of a pre-built motion capture database (that is, the determination process shown in steps 11-12 below or the determination process shown in steps 21-23 below). Please see below for related content.

[0092] Based on the relevant content of "the posture data of the associated parts corresponding to the sample image" above, it can be known that under one possible implementation method, when performing posture prediction processing of the target part for the sample image, the posture data of the associated parts corresponding to the sample image can be referred to, so that the posture prediction processing can be carried out under the constraints of the physiological structure, which is conducive to better improving the accuracy of posture prediction.

[0093] Because the above reference posture data includes the actual posture of the reference part (for example, the forearm) associated with the target part, the first posture determination model trained based on the reference posture data can learn the physiological structure constraints of the target part, thereby making the first posture determination model have better posture prediction performance, and thus making the second posture determination model determined based on the first posture determination model also have better posture prediction performance.

[0094] The historical reference data corresponding to the sample image is used to describe the historical state of the target part in the sample image, for example, the state of the target part in the sample image within the historical time period (for example, posture data, posture change speed, posture change acceleration, etc.). The historical time period refers to the time period before the state of the target part in the sample image is reached (for example, before the acquisition time of the sample image); and the present application does not limit the historical time period. For example, it may at least include the acquisition time of the previous frame of image data corresponding to the sample image.

[0095] In addition, the present application does not limit the implementation method of the above-mentioned "historical reference data corresponding to the sample image". For example, it may include at least one of historical posture data, historical posture change speed, and historical posture change acceleration. The historical posture data is used to describe the posture of the target part in the historical time period, and the present application does not limit the historical posture data. For example, it may include historical local posture data and / or historical global posture data; the historical local posture data refers to the local posture of the target part in the historical time period, so that the historical posture data is used to describe the rotation state of the target part relative to the reference part in the historical time period, that is, the historical rotation state of the target part relative to the reference part. The historical global posture data refers to the global posture of the target part in the historical time period. The historical posture change speed is used to describe the posture change speed presented by the target part in the historical time period, and the present application does not limit the historical posture change speed. For example, it may include the historical local posture change speed and / or the historical global posture change speed. The historical local posture change speed refers to the local posture change speed presented by the target part in the historical time period; the historical global posture change speed refers to the global posture change speed presented by the target part in the historical time period. The historical posture change acceleration is used to describe the posture change acceleration presented by the target part in the historical time period, and the present application does not limit the historical posture change acceleration. For example, it may include the historical local posture change acceleration and / or the historical global posture change acceleration. The historical local posture change acceleration refers to the local posture change acceleration presented by the target part in the historical time period; the historical global posture change speed refers to the global posture change acceleration presented by the target part in the historical time period.

[0096] In addition, this application does not limit the method for obtaining the "historical reference data corresponding to the sample image" mentioned above. For example, it can be implemented using any existing or future method that can obtain historical posture information of a part (such as manual annotation, etc.). For another example, in order to better reduce the difficulty of data acquisition, the "historical reference data corresponding to the sample image" can be determined with the help of a pre-built motion capture database (that is, the determination process shown in steps 11-12 below or the determination process shown in steps 21-23 below). Please see below for related content.

[0097] Based on the relevant content of "historical reference data corresponding to the sample image" above, it can be seen that in one possible implementation method, when performing posture prediction processing on the target part of the sample image, the historical state information corresponding to the target part in the sample image (for example, historical posture data, historical posture change speed, historical posture change acceleration, etc.) can be referred to, so that the posture prediction processing can be carried out under the constraints of temporal continuity, which is conducive to better improving the accuracy of posture prediction.

[0098] Because the above reference posture data includes historical reference data (for example, the posture of the wrist in the previous frame image, the posture change speed of the wrist in the previous frame image, the posture change acceleration of the wrist in the previous frame image, etc.), the first posture determination model trained based on the historical reference data can learn the temporal change continuity corresponding to the target part, so that the first posture determination model has better posture prediction performance, and then the second posture determination model determined based on the first posture determination model also has better posture prediction performance.

[0099] Based on the relevant content of the "reference posture data corresponding to the sample image" above, it can be known that in one possible implementation, the "reference posture data corresponding to the sample image" may include the posture data of the associated parts corresponding to the sample image, so that the posture prediction processing process for the sample image can be carried out under the constraints of the physiological structure. In another possible implementation, the "reference posture data corresponding to the sample image" may also include the posture data of the associated parts corresponding to the sample image and the historical reference data corresponding to the sample image, so that the posture prediction processing process for the sample image can be carried out under the constraints of the physiological structure and temporal continuity.

[0100] In fact, in order to better reduce the difficulty of obtaining training data, this application also provides two possible implementation methods of the acquisition process of the above "reference posture data corresponding to the sample image", which are introduced below.

[0101] In a possible implementation manner, the acquisition process of the above “reference posture data corresponding to the sample image” may include the following steps 11 and 12.

[0102] Step 11: Match the posture data label corresponding to the sample image with at least one data frame in the motion capture database; the data frame includes posture data of several parts, including the target part.

[0103] Among them, the motion capture database is a data set constructed by capturing the motion of an object wearing a preset device, so that the motion capture database records the composition structure of the object (for example, animal body, human body, etc.), the posture information of the object, and the motion information of the object (for example, speed, acceleration, etc.), so that the physiological structure constraint learning between different parts of the object and the temporal continuity learning between different actions can be carried out based on the motion capture database.

[0104] A data frame is a data recorded in a motion capture database that describes the actual state (e.g., posture or motion state) of various parts of an object when the object is in a certain action state. As can be seen, the data frame includes at least posture data and / or motion data of several parts of the object.

[0105] In addition, the present application does not limit the implementation method of the above step 11. For example, it can be specifically as follows: after obtaining the posture data label (that is, posture label) corresponding to the sample image, the posture data label can be compared with the posture data recorded for the target part in each data frame in the motion capture database, so that when it is determined that there is a data frame in the motion capture database whose posture data recorded for the target part is consistent with the posture data label, it can be determined that there is a data frame in the motion capture database that matches the posture data label, so that the reference posture data corresponding to the sample image can be determined based on the matching data frame.

[0106] Step 12: If there is a data frame in the motion capture database that matches the posture data label, then the reference posture data corresponding to the sample image is determined based on the matching data frame.

[0107] To facilitate understanding, two examples are provided below for illustration.

[0108] Example 1: When the reference posture data corresponding to the above sample image at least includes the posture data of the associated part corresponding to the sample image, and the several parts involved in the data frame in the above motion capture database at least include the target part and the reference part, the above step 12 can be specifically as follows: if there is a data frame in the motion capture database that matches the above "posture data label corresponding to the sample image", it can be determined that the posture data recorded for the target part in the matched data frame is consistent with the above "posture data label corresponding to the sample image", so that it can be determined that the state of the target part described by the matched data frame is the same as the state of the target part in the sample image, and further, it can be inferred that the state of the reference part described by the matched data frame should also be the same as the state of the reference part corresponding to the target part in the sample image. Therefore, the posture data of the reference part in the matched data frame can be directly determined as the posture data of the associated part corresponding to the sample image. In this way, the purpose of determining the posture label of the reference part with the help of the motion capture database can be achieved, thereby effectively reducing the difficulty of obtaining the posture label of the reference part.

[0109] Example 2, when the reference posture data corresponding to the above sample image at least includes the historical reference data corresponding to the sample image, the above step 12 can be specifically as follows: if there is a data frame in the motion capture database that matches the above "posture data label corresponding to the sample image", then it can be determined that the posture data recorded by the matched data frame for the target part is consistent with the above "posture data label corresponding to the sample image", so that it can be determined that the state of the target part described by the matched data frame is the same as the state of the target part in the sample image, and then it can be determined that the first N data frames corresponding to the matched data frame can describe the historical state of the target part in the sample image (for example, historical posture data, historical posture change speed, historical posture change acceleration, etc.), so the historical reference data corresponding to the sample image can be directly determined based on the first N data frames. Wherein, N is a positive integer, for example, N=1, or N>1, and this application does not make specific restrictions on this. It should be noted that the acquisition time of the first N data frames corresponding to the matched data frame is earlier than the acquisition time of the matched data frame.

[0110] Based on the relevant content of steps 11 to 12 above, it can be seen that in some application scenarios, after obtaining a sample image, a data frame consistent with the current posture can be matched from a pre-built motion capture database based on the current posture of the target part in the sample image, and the matched data frame and the historical data frame corresponding to the data frame (for example, the previous data frame, etc.) are used to determine the reference posture data corresponding to the sample image, so that the reference posture data can assist the posture prediction processing process for the sample image, which is conducive to improving the accuracy of posture prediction.

[0111] In another possible implementation, the process of obtaining the above “reference posture data corresponding to the sample image” may include the following steps 21 to 23.

[0112] Step 21: Randomly select a data frame from the motion capture database, where the data frame includes posture data of several parts, including the target part.

[0113] In this application, after obtaining the posture data label corresponding to a sample image, a data frame can be randomly selected from the motion capture database so that the reference posture data corresponding to the sample image can be determined with the help of the data frame and the previous N data frames corresponding to the data frame.

[0114] Step 22: If the posture data of the target part in the above data frame is different from the posture data label corresponding to the sample image, determine the posture adjustment description information; the posture adjustment description information refers to the information required to adjust the posture data of the target part in the data frame to the posture data label.

[0115] The posture adjustment description information indicates the adjustment method (e.g., rotation matrix) used to adjust the posture data of the target part in the data frame to the posture data label corresponding to the sample image. In other words, after the data frame is adjusted according to the posture adjustment description information, the posture data of the target part in the adjusted data frame remains consistent with the posture data label corresponding to the sample image.

[0116] In addition, the present application does not limit the method for obtaining the above-mentioned posture adjustment description information. For example, it can be specifically: rotating the above-mentioned data frame until it is determined that the posture data of the target part in the data frame is consistent with the posture data label corresponding to the above-mentioned sample image, stopping the rotation, and determining the rotation matrix used in the rotation processing as the above-mentioned posture adjustment description information, so that the posture adjustment description information can indicate that the posture data of the target part in the data frame can be adjusted to the posture data label corresponding to the sample image according to the rotation matrix.

[0117] Step 23: Determine reference pose data corresponding to the sample image based on the pose adjustment description information and the data frame.

[0118] To facilitate understanding, two examples are provided below for illustration.

[0119] Example 1: When the reference posture data corresponding to the above sample image at least includes the associated part posture data corresponding to the sample image, and the several parts involved in the data frame in the above motion capture database at least include the target part and the reference part, the above step 23 can be specifically as follows: after obtaining the above posture adjustment description information, the posture data of the reference part in the above randomly selected data frame can be adjusted according to the posture adjustment description information to obtain the associated part posture data corresponding to the sample image.

[0120] Example 2: When the reference posture data corresponding to the above sample image at least includes the historical reference data corresponding to the sample image, and the historical reference data includes the historical local posture data, the historical local posture change speed and the historical local posture change acceleration, the above step 23 can be specifically as follows: after obtaining the above posture adjustment description information, the posture data of the target part in the first N data frames corresponding to the randomly selected data frames above can be adjusted and processed according to the posture adjustment description information to obtain the historical data corresponding to the sample image, and the historical local posture data (for example, the local posture of the wrist in the previous frame), the historical local posture change speed (for example, the local posture change speed of the wrist in the previous frame or the local posture change speed shown in formula (2) below) and the historical local posture change acceleration (for example, the local posture change acceleration of the wrist in the previous frame or the local posture change acceleration shown in formula (3) below) corresponding to the sample image are determined based on these historical data.

[0121] Among them, t-1 represents the time series identifier of the previous data; t-2 represents the time series identifier of the previous two data; represents the local posture of the wrist at the time sequence marked by t-1; represents the local posture of the wrist at the time sequence marked by t-2; represents the local posture change speed of the wrist at the time sequence marked by t-1; represents the local posture change speed of the wrist at the time sequence marked by t-2; Indicates the local posture change acceleration of the wrist at the time sequence marked by t-1.

[0122] Based on the relevant content of steps 21 to 23 above, it can be seen that in some application scenarios, after obtaining a sample image, a data frame can be randomly selected from a pre-built motion capture database; then, based on the posture data label corresponding to the sample image, the data frame is rotated so that the posture data of the target part in the data frame is rotated to be consistent with the posture data label corresponding to the sample image, so that the reference posture data corresponding to the sample image can be determined based on the rotation matrix used for the rotation processing, the data frame and the historical data frames corresponding to the data frame (for example, the first N data frames, etc.), so that the reference posture data corresponding to the sample image can assist the posture prediction processing process for the sample image, which is conducive to improving the accuracy of posture prediction.

[0123] Based on the above content on the reference pose data corresponding to the sample images, it can be seen that in some application scenarios, the reference pose data corresponding to any sample image can be determined with the help of a pre-built motion capture database. Since the motion capture database is a relatively easy-to-obtain and rich database, the process of determining the reference pose data based on the motion capture database is relatively easy to implement. This can effectively reduce the difficulty of obtaining the reference pose data, thereby effectively avoiding the adverse effects of manually annotating the reference pose data (e.g., high cost, difficulty in obtaining, etc.), and thus effectively lowering the threshold for model training.

[0124] Because the reference posture data involved in the model construction process can be automatically determined with the help of the motion capture database, this can effectively avoid the impact caused by manual labeling of the posture (for example, it is relatively difficult, etc.), thereby effectively reducing the training difficulty of the second posture determination model mentioned above.

[0125] Based on the relevant content of S201 above, it can be known that in some application scenarios (such as hand reconstruction scenarios, etc.), in order to be able to build a model with relatively good posture prediction performance for the target part (such as the wrist), it is possible to first obtain some sample images (such as image 2 shown in Figures 3 and 4), and the posture data labels corresponding to each sample image and the reference posture data corresponding to each sample image (such as the image 2 shown in Figure 4). etc.), so that model training can be performed based on these three pieces of information.

[0126] S202: Extracting image features from the sample image using a pre-built gesture recognition model.

[0127] The posture recognition model is used to perform posture prediction processing on at least one part of the input data of the posture recognition model (for example, global posture prediction processing of the wrist or local posture prediction processing of the fingers, etc.); and the at least one part at least includes the target part mentioned above.

[0128] It can be seen that in one possible implementation, the above posture recognition model can be specifically used to perform global posture prediction processing of the target part based on the input data of the posture recognition model. For example, the posture recognition model can be the model 1 shown in Figures 1, 3 and 4.

[0129] In addition, the present application does not limit the implementation method of the above posture recognition model. For example, it can be implemented using any existing or future model that can perform global posture prediction processing on the target part.

[0130] In addition, the present application does not limit the construction process of the above posture recognition model. For example, it can be implemented using any existing or future construction method that can construct a model with global posture prediction processing for the target part.

[0131] In addition, the present application does not limit the model structure of the above-mentioned posture recognition model. For example, the posture recognition model may include a feature extraction module and a posture prediction module, and the input data of the posture prediction module includes the output data of the feature extraction module. The feature extraction module is used to perform feature extraction processing on the input data of the feature extraction module; and the posture prediction module is used to perform posture determination processing based on the input data of the posture prediction module. It should be noted that the present application does not limit the implementation methods of the feature extraction module and the posture prediction module. For example, the feature extraction module can be implemented using a backbone network.

[0132] Image features refer to the intermediate features generated when the above-mentioned posture recognition model processes the sample image, so that the image features can represent the image information carried by the sample image, thereby enabling the image features to better represent the posture of the target part in the sample image; and this application does not limit the method of extracting the image features. For example, when the posture recognition model includes a feature extraction module, the specific process of obtaining the image features can be: using the feature extraction module to perform feature extraction processing on the sample image to obtain the image features corresponding to the sample image, so that the image features can better represent the image information carried by the sample image.

[0133] Based on the relevant content of S202 above, it can be known that in some application scenarios, after obtaining a sample image, the sample image can be processed using a pre-built posture recognition model (for example, model 1 shown in Figure 3 or Figure 4) to obtain the image features corresponding to the sample image, so that the image features can better represent the image information carried by the sample image, so that the rotation state of the target part in the sample image compared to the reference part can be determined based on the image features.

[0134] S203: Train a first posture determination model using image features, reference posture data, and posture data labels.

[0135] The first posture determination model is used to determine and process the posture information of the target part (e.g., local posture, posture change speed, or posture change acceleration, etc.) based on the input data of the first posture determination model. For example, the first posture determination model can be model 2 shown in Figure 3 or model 3 shown in Figure 4.

[0136] In addition, the present application does not limit the model structure of the above-mentioned first posture determination model.

[0137] In addition, this application does not limit the model training process of the above-mentioned first posture determination model.

[0138] In fact, in order to better improve the model training effect, the present application also provides a possible implementation method of the above S203, which may specifically include the following steps 31 to 33.

[0139] Step 31: Determine a posture prediction result based on the first posture determination model, the above image features, and the above reference posture data; the posture prediction result is used to describe the predicted posture of the target part in the sample image.

[0140] The pose prediction result is used to describe the predicted pose of the target part in the sample image. It can be seen that in a possible implementation, the pose prediction result can be the global pose of the target part predicted from the sample image.

[0141] In addition, the present application does not limit the implementation method of the above step 31. For ease of understanding, two examples are used for illustration below.

[0142] As an example, when the reference posture data corresponding to the above sample image at least includes associated part posture data, step 31 may specifically include the following steps 311 to 312.

[0143] Step 311: Process the image features and the reference posture data using the first posture determination model to obtain a local posture prediction result; the local posture prediction result is used to describe the predicted rotation state of the target part relative to the reference part.

[0144] The local posture prediction result is used to describe the rotation state of the target part in the sample image relative to the reference part. For example, the local posture prediction result can be as shown in Figures 3 and 4.

[0145] In addition, the present application does not limit the implementation of the above step 311. For example, in some application scenarios (for example, only posture prediction scenarios based on physiological structure constraints), the step 311 can be specifically as follows: the image features of the sample image and the posture data of the associated parts corresponding to the sample image (for example, the posture data shown in FIG3 ) are combined. ) inputs the first posture determination model, so that the first posture determination model performs a local posture prediction process of the target part according to the associated part posture data (for example, the local posture prediction process shown in FIG3 ), obtains and outputs the local posture prediction result of the target part (for example, the local posture prediction process shown in FIG3 ). ), so that the local posture prediction result can represent the rotation state of the target part relative to the reference part.

[0146] For example, in some application scenarios (e.g., posture prediction scenarios based on physiological structure constraints and temporal continuity constraints), when the reference posture data corresponding to the above sample image includes associated part posture data (e.g., ), historical local posture data (for example, as shown in Figure 4 ) and the historical local posture change speed (for example, as shown in Figure 4 ), the above step 311 can be specifically as follows: first input the image features of the sample image, the associated part posture data, the historical local posture data and the historical local posture change speed into the first posture determination model, so that the first posture determination model performs posture change speed prediction processing of the target part according to the associated part posture data, the historical local posture data and the historical local posture change speed (for example, the posture change speed prediction processing shown in FIG3 ), obtains and outputs the predicted local posture change speed (for example, the predicted local posture change speed shown in FIG4 ). ), so that the predicted local posture change speed can represent the current local posture change speed of the target part in the sample image; then according to the predicted local posture change speed and the historical local posture data, the local posture prediction result (for example, as shown in FIG4 ) is determined.

[0147] ), so that the local posture prediction result can represent the rotation state of the target part relative to the reference part.

[0148] It should be noted that this application does not limit the implementation method of the step in the previous paragraph "determining the local posture prediction result based on the predicted local posture change speed and the historical local posture data". For example, it can be implemented using the following formula (4).

[0149] In the formula, t represents the time sequence identifier of a data; t-1 represents the time sequence identifier of the previous data corresponding to the data; represents the local posture of the wrist at the time sequence marked by t; represents the local posture of the wrist at the time sequence marked by t-1; Indicates the local posture change speed of the wrist at the time sequence marked by t.

[0150] For example, in some application scenarios (for example, posture prediction scenarios based on physiological structure constraints and temporal continuity constraints), when the reference posture data corresponding to the above sample image includes associated part posture data, historical local posture data, historical local posture change speed, and historical local posture change acceleration, the above step 311 can be specifically as follows: first input the image features of the sample image, the associated part posture data, historical local posture data, historical local posture change speed, and historical local posture change acceleration into the first posture determination model, so that the first posture determination model is based on the associated part posture data, historical local posture data, historical local posture change speed, and historical local posture change acceleration. The historical local posture change speed and the historical local posture change acceleration are used to predict the posture change acceleration of the target part to obtain and output the predicted local posture change acceleration; then, the predicted local posture change speed is determined based on the predicted local posture change acceleration and the historical local posture change speed, so that the predicted local posture change speed can represent the current local posture change speed of the target part in the sample image; then, the local posture prediction result is determined based on the predicted local posture change speed and the historical local posture data, so that the local posture prediction result can represent the rotation state of the target part relative to the reference part.

[0151] It should be noted that this application does not limit the implementation method of the step in the previous paragraph "determining the predicted local posture change speed based on the predicted local posture change acceleration and the historical local posture change speed". For example, it can be implemented using the following formula (5).

[0152] In the formula, t represents the time sequence identifier of a data; t-1 represents the time sequence identifier of the previous data corresponding to the data; represents the local posture change speed of the wrist at the time sequence marked by t; represents the local posture change speed of the wrist at the time sequence marked by t-1; It represents the local posture change acceleration of the wrist at the time sequence marked by t.

[0153] Based on the relevant content of step 311 above, it can be known that after obtaining the image features and reference posture data of a sample image, the first posture determination model, the image features and the reference posture data can be used to determine the local posture prediction result of the sample image, so that the local posture prediction result can represent the rotation state of the target part relative to the reference part.

[0154] Step 312: Determine the posture prediction result based on the above local posture prediction result and the above associated part posture data.

[0155] In this application, after obtaining the above local posture prediction result, the posture prediction result can be determined based on the local posture prediction result and the above associated part posture data, so that the posture prediction result can represent the global posture of the target part prediction in the sample image.

[0156] In addition, the present application does not limit the implementation of the above step 312. For example, it can be implemented using the above formula (1).

[0157] Based on the relevant contents of steps 311 to 312 above, it can be known that for a sample image, the first posture determination model can be used to process the image features of the sample image and the reference posture data of the sample image to obtain the local posture prediction result of the sample image (for example, the local posture prediction result shown in FIG. 3 or FIG. 4 ), so that the local posture prediction result can represent the rotation state of the target part relative to the reference part; and then based on the local posture prediction result, determine the posture prediction result, so that the posture prediction result can represent the global posture of the target part in the sample image, so as to achieve the purpose of posture prediction processing based on some constraint information (such as physiological structure constraints and temporal continuity constraints, etc.), thereby helping to improve the posture prediction effect.

[0158] Step 32: Determine whether a preset stop condition is met. If so, end the training process for the first posture determination model. If not, execute the following step 33.

[0159] Among them, the preset stop condition can be set in advance, for example, it can be specifically: the prediction loss of the first posture determination model is lower than the first threshold, or the rate of change of the prediction loss of the first posture determination model is lower than the second threshold (that is, the prediction performance of the first posture determination model reaches convergence), or the number of model updates of the first posture determination model reaches a third threshold.

[0160] The prediction loss of the first posture determination model is used to describe the prediction performance of the first posture determination model; and this application does not limit the determination process of the "prediction loss of the first posture determination model", for example, it can specifically be: determining the prediction loss of the first posture determination model based on the difference between the posture prediction result of the sample image and the posture data label corresponding to the sample image.

[0161] It should be noted that this application does not limit the implementation method of the step in the previous paragraph "determining the prediction loss of the first posture determination model based on the difference between the posture prediction result of the sample image and the posture data label corresponding to the sample image."

[0162] Based on the relevant content of step 32 above, it can be seen that for the current round of training process, if it is determined that the preset stop condition is met, it can be determined that the current first posture determination model has good prediction performance, so the training process for the first posture determination model can be directly ended; however, if it is determined that the preset stop condition is not met, it can be determined that the prediction performance of the current first posture determination model still needs to be further improved, so the following step 33 can be directly executed.

[0163] Step 33: Update the first posture determination model based on the above posture prediction result and the above posture data label, and return to execute the above step 31 and subsequent steps.

[0164] In the present application, for the current round of training process, if it is determined that the preset stop condition has not been met, it can be determined that the prediction performance of the current first posture determination model still needs to be improved. Therefore, the parameters in the first posture determination model can be updated based on the difference between the posture prediction result of the sample image and the posture data label corresponding to the sample image, so that the first posture determination model after the parameter update has better prediction performance, and based on the first posture determination model after the parameter update, continue to execute step 31 and its subsequent steps to start the next round of training process for the first posture determination model, and repeat the iteration until the preset stop condition is reached to end the training process for the first posture determination model.

[0165] Based on the relevant contents of steps 31 to 33 above, it can be known that in some application scenarios, the first posture determination model can be trained using the image features of some sample images, the reference posture data corresponding to these sample images, and the posture data labels corresponding to these sample images, so that the trained first posture determination model can perform posture prediction processing of the target part based on the image features of any image data and the reference posture data. In particular, because the reference posture data includes the posture data of the associated part, the trained first posture determination model learns the posture prediction processing based on physiological structure constraints; and because the reference posture data includes historical reference data, the trained first posture determination model learns the posture prediction processing based on temporal continuity constraints, which is conducive to improving the prediction performance of the first posture determination model.

[0166] S204: Determine a second posture determination model based on the posture recognition model and the trained first posture determination model.

[0167] The second posture determination model is used to predict the posture information of the target part (for example, local posture, posture change speed, or posture change acceleration, etc.) based on the input data of the second posture determination model.

[0168] In addition, the present application does not limit the implementation method of the second posture determination model mentioned above. For example, the second posture determination model may include a posture recognition model and a trained first posture determination model. It can be seen that in one possible implementation method, when the target part mentioned above is the wrist, the second posture determination model may include the posture recognition model and the first posture determination model, so that the second posture determination model can not only be used to predict the posture information of the target part (such as local posture, posture change speed, or posture change acceleration, etc.), but also can perform local posture prediction processing on the fingers, so that the second posture determination model can be used to complete the posture prediction processing for the hand.

[0169] For example, when the above-mentioned posture recognition model includes a feature extraction module, the above-mentioned second posture determination model may specifically include the feature extraction module and the trained first posture determination model; and the input data of the first posture determination model includes the output data of the feature extraction module, so that the second posture determination model can at least be used to realize the prediction processing of the local posture, posture change speed, or posture change acceleration of the target part.

[0170] Based on the relevant contents of S201 to S204 above, it can be known that for the model construction method provided in the embodiment of the present application, after obtaining the sample image, the pre-built posture recognition model is first used to extract image features from the sample image, so that the image features can better represent the posture of the target part (for example, the wrist) in the sample image; and then the image features, the reference posture data corresponding to the sample image (for example, the posture of the forearm, the posture of the wrist in the previous frame image, the posture change of the wrist in the previous frame image, etc.) and the posture data label corresponding to the sample image (that is, the posture label) are used to train the first posture determination model, so that the first posture determination model can better represent the posture of the target part (for example, the wrist) in the sample image during training. During the training process, it can learn how to perform local posture prediction processing based on the reference posture data, so that the trained first posture determination model can better predict the posture of the target part (especially, the rotation state of the target part relative to the forearm, etc.); finally, the posture recognition model and the trained first posture determination model are used to determine the second posture determination model, so that the second posture determination model can better predict the posture of the target part in the image data based on an image data and the corresponding reference posture data, so that the second posture determination model has a better posture prediction function, and then the posture predicted by the model is more accurate, which is conducive to improving the posture prediction effect.

[0171] In fact, in order to better improve the posture prediction performance of the second posture determination model, the present application also provides a possible implementation of the above model construction method, which may specifically include the following steps 41 to 45.

[0172] Step 41: Obtain a sample image, a posture data label corresponding to the sample image, and reference posture data corresponding to the sample image; the sample image is used to describe the target part of the first object; the posture data label is used to describe the actual posture of the target part in the sample image.

[0173] It should be noted that for the relevant content of step 41, please refer to S201 above.

[0174] Step 42: Using the sample image and the posture data label corresponding to the sample image, a posture recognition model is trained; the posture recognition model is used to perform global posture determination processing of the target part on the input data of the posture recognition model.

[0175] It should be noted that the present application does not limit the implementation method of step 42. For example, it can be implemented by any existing or future method that can train a global pose prediction model based on some image data and its corresponding global pose labels.

[0176] Step 43: Use the trained posture recognition model to extract image features from the sample image.

[0177] It should be noted that for the relevant content of step 43, please refer to S202 above.

[0178] Step 44: Train the first posture determination model using the image features, reference posture data, and posture data labels.

[0179] It should be noted that for the relevant content of step 44, please refer to S203 above.

[0180] Step 45: Determine a second posture determination model based on the trained posture recognition model and the trained first posture determination model.

[0181] It should be noted that for the relevant content of step 45, please refer to S204 above.

[0182] Based on the relevant content of steps 41 to 45 above, it can be seen that in some application scenarios, the posture recognition model and the first posture determination model can be trained separately with the help of the same training data set, so that the two models have relatively good processing performance for image data with certain commonalities, thereby achieving relatively good coordination between the two models (for example, the first posture determination model has relatively good processing performance for the output results of the feature extraction module in the posture recognition model), and thus the second posture determination model determined based on the two models has better posture prediction performance, which is conducive to improving the posture prediction effect for the target part.

[0183] Based on the relevant content of the above model building method, this application also provides a posture determination method, which is described below with reference to the accompanying drawings for ease of understanding. As shown in Figure 5, the posture determination method provided in the embodiment of this application may include the following S501-S502.

[0184] S501: Acquire an image to be processed and reference posture data corresponding to the image to be processed; the image to be processed is used to describe a target part of a second object.

[0185] The image to be processed refers to image data that requires posture prediction processing of the target part; and this application does not limit the image to be processed.

[0186] The second object refers to the object described by the image to be processed; and this application does not limit the second object. For example, the second object can be a person, an animal, a virtual character, an object, etc.

[0187] The reference posture data corresponding to the image to be processed refers to the information required to be referenced when performing posture prediction processing on the target part of the image to be processed; and this application does not limit the "reference posture data corresponding to the image to be processed", for example, it may include at least one of the posture data of the associated part corresponding to the image to be processed and the historical reference data corresponding to the image to be processed.

[0188] The associated part posture data corresponding to the image to be processed is used to describe the state of a reference part associated with the target part, for example, the posture of the reference part in the image to be used corresponding to the image to be processed. The image to be used corresponding to the image to be processed is used to describe at least two parts of the second object, the at least two parts including the target part (e.g., wrist) and the reference part (e.g., forearm), and the image to be processed is determined based on the image to be used so that the image to be processed is used to describe the entire region or a portion of the region in the image to be used.

[0189] In addition, the present application does not limit the acquisition process of the above-mentioned "associated part posture data corresponding to the image to be processed". For example, when the image to be used corresponding to the image to be processed is used to describe several parts, and the several parts include a target part and a reference part, the acquisition process of the "associated part posture data corresponding to the image to be processed" can be specifically as follows: first, the image to be used corresponding to the image to be processed is input into a pre-constructed multi-part posture prediction model to obtain a multi-part posture prediction result output by the multi-part posture prediction model, so that the multi-part posture prediction result can represent the global posture of the several parts in the image to be used; and then the posture prediction result of the reference part in the multi-part posture prediction result is determined as the associated part posture data corresponding to the image to be processed.

[0190] The historical reference data corresponding to the image to be processed is used to describe the historical state of the target part in the image to be processed, for example, the state of the target part in the image to be processed within a historical time period (for example, posture data, posture change speed, posture change acceleration, etc.). The historical time period refers to the time period before the state of the target part in the image to be processed is reached; and this application does not limit the historical time period. For example, it can refer to the acquisition time of the previous frame of image data corresponding to the image to be processed.

[0191] In addition, this application does not limit the implementation of the above "historical reference data corresponding to the image to be processed". For example, it can include at least one of historical posture data, historical posture change speed, and historical posture change acceleration. It should be noted that the relevant content of historical posture data, historical posture change speed, and historical posture change acceleration is mentioned above.

[0192] In addition, the present application does not limit the acquisition process of the above-mentioned "historical reference data corresponding to the image to be processed". For example, when the image to be processed is determined by cropping the t-th frame image data in an image sequence, the acquisition process of the "historical reference data corresponding to the image to be processed" can specifically be: based on the local posture (for example, local posture prediction results, etc.) presented by the previous N frames of image data corresponding to the t-th frame image data on the target part, determine the historical reference data corresponding to the image to be processed.

[0193] It should be noted that the present application does not limit the implementation method of the step in the above paragraph of "determining the historical reference data corresponding to the image to be processed based on the local posture of the previous N frames of image data corresponding to the t-th frame of image data". For example, it can be specifically: the local posture prediction result presented by the previous frame of image data corresponding to the t-th frame of image data (that is, the t-1-th frame of image data) on the target part is determined as the historical local posture data corresponding to the image to be processed (for example, ); using the local posture prediction results presented on the target part by the first two frames of image data corresponding to the t-th frame image data (that is, the t-1-th frame image data and the t-2-th frame image data), calculate the historical local posture change speed corresponding to the image to be processed (for example, ); using the local posture prediction results presented on the target part by the first three frames of image data corresponding to the t-th frame image data (that is, the t-1-th frame image data, the t-2-th frame image data, and the t-3-th frame image data), calculate the historical local posture change acceleration corresponding to the image to be processed (for example, ).

[0194] S502: Determine the posture representation data corresponding to the image to be processed based on a pre-constructed second posture determination model, the image to be processed, and the reference posture data corresponding to the image to be processed; the second posture determination model is constructed using any implementation of the model construction method provided in the embodiments of the present application.

[0195] The posture representation data corresponding to the image to be processed is used to represent the global posture of the target part in the image to be processed.

[0196] In addition, this application does not limit the implementation of the above S502. For ease of understanding, it is described below with reference to examples.

[0197] As an example, when the above second posture determination model includes a feature extraction module and the above first posture determination model, and the reference posture data corresponding to the above image to be processed at least includes the associated part posture data corresponding to the image to be processed, the above S502 can specifically include the following steps 51-52.

[0198] Step 51: The feature extraction module performs feature extraction processing on the image to be processed to obtain image features of the image to be processed, so that the image features are used to represent image information carried by the image to be processed.

[0199] Step 52: The first posture determination model processes the image to be processed based on the reference posture data corresponding to the image to be processed and the image features of the image to be processed to obtain a local posture prediction result of the image to be processed, so that the local posture prediction result can represent the rotation state of the target part in the image to be processed relative to the reference part.

[0200] It should be noted that the implementation of step 52 is similar to the implementation of step 311 above, and for the sake of brevity, it will not be repeated here.

[0201] Step 53: Determine the posture representation data corresponding to the image to be processed based on the local posture prediction result of the image to be processed and the posture data of the associated parts corresponding to the image to be processed.

[0202] It should be noted that the implementation of step 53 is similar to the implementation of step 312 above, and for the sake of brevity, it will not be repeated here.

[0203] Based on the relevant contents of steps 51 to 53 above, it can be known that in some application scenarios, after obtaining the image to be processed and the reference posture data corresponding to the image to be processed, the image to be processed and the reference posture data corresponding to the image to be processed can be input into a pre-constructed second posture determination model, so that the feature extraction module in the second posture determination model performs feature extraction processing on the image to be processed to obtain the image features of the image to be processed, so that the image features are used to represent the image information carried by the image to be processed; then, the second posture in the second posture determination model, the reference posture data and the image features are used to determine the local posture prediction result of the image to be processed, so that the local posture prediction result can represent the rotation state of the target part in the image to be processed relative to the reference part; finally, based on the local posture prediction result and the posture data of the associated part corresponding to the image to be processed, the posture representation data corresponding to the image to be processed is determined, so that the posture representation data can represent the global posture of the target part in the image to be processed, so that the target part can be reconstructed based on the posture representation data.

[0204] Based on the relevant contents of S501 to S502 above, it can be known that for the posture determination method provided in the embodiment of the present application, after obtaining image data and reference posture data corresponding to the image data, a pre-built second posture determination model can be used to process the image data and the reference posture data corresponding to the image data to determine the posture representation data corresponding to the image data, so that the posture representation data can better represent the posture of the target part in the image data, thereby realizing the posture determination process for a certain part. Among them, because the second posture determination model performs posture prediction processing on the posture of the target part in the image data based on the reference posture data, the posture representation data predicted by the model can more accurately represent the posture of the target part in the image data, which is conducive to improving the posture prediction effect.

[0205] Based on the above content of the posture determination method, we can know that its specific advantages are as follows:

[0206] ① Because the posture prediction process based on physiological structure constraints is learned during the construction of the second posture determination model, when the quality of the above-mentioned image to be processed is relatively low (for example, it is almost impossible to see the posture of the target part), the second posture determination model can also predict the posture information of the target part that conforms to the physiological structure constraints based on the posture data of the associated parts corresponding to the image to be processed. This can effectively avoid unnatural posture phenomena (for example, wrist fractures, etc.) caused by the posture information predicted for the target part not conforming to the physiological structure constraints, which is conducive to improving the posture prediction effect of the target part.

[0207] ② Because the posture prediction process based on temporal continuity constraints was learned during the construction of the second posture determination model, when the quality of the above-mentioned image to be processed is relatively low, the second posture determination model can also predict the posture information of the target part that meets the temporal continuity constraints based on the historical reference data corresponding to the image to be processed. This is conducive to improving the smoothness of the posture information, thereby improving the posture prediction effect of the target part.

[0208] ③ Because the reference posture data involved in the construction of the second posture determination model can be determined with the help of the motion capture database, this can effectively avoid the adverse effects caused by manual labeling of the reference posture data, thereby effectively reducing the difficulty of constructing the second posture determination model.

[0209] Based on the model building method provided in the embodiments of this application, the embodiments of this application also provide a model building device, which is explained and illustrated below in conjunction with Figure 6. Figure 6 is a schematic diagram of the structure of a model building device provided in the embodiments of this application. It should be noted that for the technical details of the model building device provided in the embodiments of this application, please refer to the relevant content of the model building method above.

[0210] As shown in FIG6 , the model building device 600 provided in an embodiment of the present application includes:

[0211] A first acquisition unit 601 is configured to acquire a sample image, a posture data label corresponding to the sample image, and reference posture data corresponding to the sample image; the sample image is used to describe a target part of a first object; the posture data label is used to describe an actual posture of the target part in the sample image;

[0212] A feature extraction unit 602 is configured to extract image features from the sample image using a pre-built gesture recognition model;

[0213] A model training unit 603 is configured to train a first posture determination model using the image features, the reference posture data, and the posture data labels;

[0214] The model determination unit 604 is configured to determine a second posture determination model based on the posture recognition model and the trained first posture determination model.

[0215] In one possible implementation, the reference posture data includes at least one of associated part posture data and historical reference data; the associated part posture data is used to describe the actual posture of the reference part associated with the target part in the image to be used; the reference part and the target part belong to the same object; the image to be used is used to describe at least two parts of the first object, and the at least two parts include the target part and the reference part; the sample image is determined based on the image to be used; and the historical reference data is used to describe the historical status of the target part.

[0216] In a possible implementation manner, the historical reference data includes at least one of historical posture data, historical posture change speed, and historical posture change acceleration.

[0217] In a possible implementation manner, the reference part is a parent node of the target part.

[0218] In one possible implementation, the process of acquiring the reference posture data includes:

[0219] Matching the posture data tag with at least one data frame in a motion capture database; the data frame includes posture data of several parts, and the several parts include the target part;

[0220] If there is a data frame matching the posture data label in the motion capture database, reference posture data corresponding to the sample image is determined based on the matching data frame.

[0221] In one possible implementation, the process of acquiring the reference posture data includes:

[0222] Randomly select a data frame from a motion capture database, wherein the data frame includes posture data of several parts, and the several parts include the target part;

[0223] If the posture data of the target part in the data frame is different from the posture data label, determining posture adjustment description information; the posture adjustment description information refers to information required to be used when adjusting the posture data of the target part in the data frame to the posture data label;

[0224] Determine reference posture data corresponding to the sample image based on the posture adjustment description information and the data frame.

[0225] In a possible implementation, the model training unit 603 includes:

[0226] A first determination subunit is configured to determine a posture prediction result based on the first posture determination model, the image features, and the reference posture data; the posture prediction result is used to describe the predicted posture of the target part in the sample image;

[0227] A model updating subunit is used to update the first posture determination model according to the posture prediction result and the posture data label.

[0228] In a possible implementation manner, the reference posture data includes associated part posture data; the associated part posture data is used to describe the actual posture of the reference part associated with the target part;

[0229] The first determining subunit includes:

[0230] a second determination subunit, configured to process the image features and the reference posture data using the first posture determination model to obtain a local posture prediction result; the local posture prediction result is used to describe a predicted rotation state of the target part relative to the reference part;

[0231] The third determining subunit is configured to determine a posture prediction result based on the local posture prediction result and the associated part posture data.

[0232] In one possible implementation, the reference posture data further includes historical local posture data and historical local posture change speed;

[0233] The second determining subunit includes:

[0234] a model prediction subunit, configured to input the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change speed output by the first posture determination model;

[0235] The fourth determining subunit is configured to determine the local posture prediction result according to the predicted local posture change speed and the historical local posture data.

[0236] In one possible implementation, the reference posture data further includes historical local posture change acceleration;

[0237] The model prediction subunit is specifically used to: input the image features and the reference posture data into the first posture determination model to obtain the predicted local posture change acceleration output by the first posture determination model; and determine the predicted local posture change speed based on the predicted local posture change acceleration and the historical local posture change speed.

[0238] In a possible implementation manner, the historical local posture data is used to describe a historical rotation state of the target part relative to the reference part.

[0239] In a possible implementation, the posture recognition model includes a feature extraction module; and the second posture determination model includes the feature extraction module and a trained first posture determination model.

[0240] In a possible implementation manner, the model building device 600 further includes:

[0241] The model building unit is used to train the posture recognition model using the sample image and the posture data label corresponding to the sample image; the posture recognition model is used to perform global posture determination processing of the target part on the input data of the posture recognition model.

[0242] Based on the relevant contents of the above-mentioned model building device 600, it can be known that for the model building device 600 provided in the embodiment of the present application, after obtaining the sample image, the pre-built posture recognition model is first used to extract image features from the sample image, so that the image features can better represent the posture of the target part (for example, the wrist) in the sample image; and then the image features, the reference posture data corresponding to the sample image (for example, the posture of the forearm, the posture of the wrist in the previous frame image, the posture change of the wrist in the previous frame image, etc.) and the posture data label corresponding to the sample image (that is, the posture label) are used to train the first posture determination model, so that the first posture determination model can be trained in the first posture determination model. During the training process, it is possible to learn how to perform local posture prediction based on the reference posture data, so that the trained first posture determination model can better predict the posture of the target part (especially, the rotation state of the target part relative to the forearm, etc.); finally, the posture recognition model and the trained first posture determination model are used to determine the second posture determination model, so that the second posture determination model can better predict the posture of the target part in the image data based on an image data and the corresponding reference posture data, so that the second posture determination model has a better posture prediction function, and then the posture predicted by the model is more accurate, which is conducive to improving the posture prediction effect. Among them, because the above second posture determination model is based on the reference posture data corresponding to an image data, the posture of the target part in the image data is predicted, so that the posture predicted by the model is more accurate, which is conducive to improving the posture prediction effect.

[0243] Based on the posture determination method provided in the embodiments of the present application, the embodiments of the present application also provide a posture determination device, which is explained and illustrated below in conjunction with Figure 7. Figure 7 is a schematic structural diagram of a posture determination device provided in the embodiments of the present application. It should be noted that for the technical details of the posture determination device provided in the embodiments of the present application, please refer to the relevant content of the posture determination method above.

[0244] As shown in FIG7 , the posture determination device 700 provided in an embodiment of the present application includes:

[0245] The second acquisition unit 701 is configured to acquire an image to be processed and reference posture data corresponding to the image to be processed; the image to be processed is used to describe a target part of a second object;

[0246] The posture determination unit 702 is used to determine the posture representation data corresponding to the image to be processed based on a pre-constructed second posture determination model, the image to be processed and the reference posture data corresponding to the image to be processed; the second posture determination model is constructed using any embodiment of the model construction method provided in this application.

[0247] Based on the relevant content of the above-mentioned posture determination device 700, it can be known that for the posture determination device 700 provided in the embodiment of the present application, after obtaining an image data and the reference posture data corresponding to the image data, the pre-built second posture determination model can be used to process the image data and the reference posture data corresponding to the image data to determine the posture representation data corresponding to the image data, so that the posture representation data can better represent the posture of the target part in the image data, thereby realizing the posture determination process for a certain part. Among them, because the second posture determination model performs posture prediction processing on the posture of the target part in the image data based on the reference posture data, the posture representation data predicted by the model can more accurately represent the posture of the target part in the image data, which is conducive to improving the posture prediction effect.

[0248] In addition, an embodiment of the present application also provides an electronic device, which includes a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes any implementation of the model building method or posture determination method provided in the embodiment of the present application.

[0249] Referring to FIG8 , a schematic diagram of the structure of an electronic device 800 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG8 is merely an example and should not limit the functionality or scope of use of embodiments of the present disclosure.

[0250] As shown in Figure 8, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0251] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although FIG8 shows the electronic device 800 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0252] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0253] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0254] An embodiment of the present application also provides a computer-readable medium, which stores instructions or computer programs. When the instructions or computer programs are executed on a device, the device executes any implementation of the model building method or posture determination method provided in the embodiment of the present application.

[0255] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0256] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0257] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0258] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can perform the method.

[0259] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0260] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions 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 a different order than 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.

[0261] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit / module does not, in some cases, limit the unit itself.

[0262] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0263] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0264] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.

[0265] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0266] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0267] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0268] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A model building method, include: Acquire a sample image, a posture data label corresponding to the sample image, and reference posture data corresponding to the sample image; The sample image is used to describe the target part of the first object; the posture data label is used to describe the actual posture of the target part in the sample image; Extracting image features from the sample image using a pre-built gesture recognition model; Training a first posture determination model using the image features, the reference posture data, and the posture data labels; A second posture determination model is determined according to the posture recognition model and the trained first posture determination model.

2. The method according to claim 1, in, The reference posture data includes at least one of associated part posture data and historical reference data; the associated part posture data is used to describe the actual posture of the reference part associated with the target part in the image to be used; The reference part and the target part belong to the same object; the image to be used is used to describe at least two parts of the first object, and the at least two parts include the target part and the reference part; the sample image is determined based on the image to be used; and the historical reference data is used to describe the historical status of the target part.

3. The method according to claim 2, in, The historical reference data includes at least one of historical posture data, historical posture change speed, and historical posture change acceleration.

4. The method according to claim 2 or 3, in, The reference part is the parent node of the target part.

5. The method according to any one of claims 1 to 4, in, The process of obtaining the reference posture data includes: Matching the posture data tag with at least one data frame in a motion capture database; the data frame includes posture data of several parts, and the several parts include the target part; If there is a data frame matching the posture data label in the motion capture database, the reference posture data corresponding to the sample image is determined according to the matching data frame.

6. The method according to any one of claims 1 to 5, in, The process of obtaining the reference posture data includes: Randomly select a data frame from a motion capture database, the data frame including posture data of several parts, the several parts including the target part; If the posture data of the target part in the data frame is different from the posture data label, determining posture adjustment description information; the posture adjustment description information refers to information required to be used when adjusting the posture data of the target part in the data frame to the posture data label; The reference posture data corresponding to the sample image is determined according to the posture adjustment description information and the data frame.

7. The method according to any one of claims 1 to 6, in, The training process of the first posture determination model includes: Determine a posture prediction result according to the first posture determination model, the image features and the reference posture data; the posture prediction result is used to describe the predicted posture of the target part in the sample image; The first posture determination model is updated according to the posture prediction result and the posture data label.

8. The method according to claim 7, in, The reference posture data includes associated part posture data; the associated part posture data is used to describe the actual posture of the reference part associated with the target part; The step of determining a posture prediction result according to the first posture determination model, the image feature, and the reference posture data includes: Processing the image features and the reference posture data using the first posture determination model to obtain a local posture prediction result; The local posture prediction result is used to describe the predicted rotation state of the target part relative to the reference part; A posture prediction result is determined according to the local posture prediction result and the associated part posture data.

9. The method according to claim 8, in, The reference posture data also includes historical local posture data and historical local posture change speed; The using the first posture determination model to process the image features and the reference posture data to obtain a local posture prediction result includes: Inputting the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change speed output by the first posture determination model; The local posture prediction result is determined according to the predicted local posture change speed and the historical local posture data.

10. The method according to claim 9, in, The reference posture data also includes historical local posture change acceleration; The step of inputting the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change speed output by the first posture determination model includes: Inputting the image features and the reference posture data into the first posture determination model to obtain a predicted local posture change acceleration output by the first posture determination model; The predicted local posture change speed is determined according to the predicted local posture change acceleration and the historical local posture change speed.

11. The method according to claim 9 or 10, in, The historical local posture data is used to describe the historical rotation state of the target part relative to the reference part.

12. The method according to any one of claims 1 to 11, in, The posture recognition model includes a feature extraction module; The second posture determination model includes the feature extraction module and the trained first posture determination model.

13. The method according to any one of claims 1 to 12, in, Before extracting image features from the sample image using the pre-built gesture recognition model, the method further includes: The gesture recognition model is trained using the sample images and the gesture data labels corresponding to the sample images; the gesture recognition model is used to perform global gesture determination processing of the target part on the input data of the gesture recognition model.

14. A method for determining a posture, include: Acquire an image to be processed and reference posture data corresponding to the image to be processed; The image to be processed is used to describe the target part of the second object; Determine the posture representation data corresponding to the image to be processed according to the pre-constructed second posture determination model, the image to be processed and the reference posture data corresponding to the image to be processed; The second posture determination model is constructed using the model construction method described in any one of claims 1-13.

15. A model building device, include: The first acquisition unit is configured to acquire a sample image and posture data corresponding to the sample image. Label and reference pose data corresponding to the sample image; The sample image is used to describe the target part of the first object; the posture data label is used to describe the actual posture of the target part in the sample image; A feature extraction unit, configured to extract image features from the sample image using a pre-built gesture recognition model; A model training unit, configured to train a first posture determination model using the image features, the reference posture data, and the posture data label; The model determination unit is configured to determine a second posture determination model according to the posture recognition model and the trained first posture determination model.

16. A posture determination device, include: A second acquisition unit is configured to acquire an image to be processed and reference posture data corresponding to the image to be processed; The image to be processed is used to describe the target part of the second object; a posture determination unit configured to determine posture representation data corresponding to the image to be processed according to a pre-constructed second posture determination model, the image to be processed and reference posture data corresponding to the image to be processed; The second posture determination model is constructed using the model construction method described in any one of claims 1-13.

17. An electronic device, include: Processor and memory; The memory is configured to store instructions or computer programs; The processor is configured to execute the instructions or computer programs in the memory so that the electronic device performs the method according to any one of claims 1 to 14.

18. A computer readable medium, in, The computer-readable medium stores instructions or computer programs, and when the instructions or computer programs are executed on a device, the device executes the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Training method, device and equipment for hand posture recognition model and storage medium

    CN111222486A

  • Model training and attitude prediction method and device, equipment and storage medium

    CN112270711A

  • Training method of head posture information determination model and an information determination method and device

    CN113920405A

  • Image-driven model training and image generation

    WO2022002032A1

  • Object attitude estimation method and system based on image and three-dimensional model, and medium

    WO2022100379A1

Cited By

  • High-rise building steel rib inclined column BIM modeling and digital construction control method

    CN122174318A