Target pose recognition method, training method, device and storage medium

By processing the target image using a pose recognition model, angle values ​​in multiple axial directions and preset pose types are obtained. The model is then trained using a joint loss value, which solves the problem of pose recognition accuracy under the influence of lighting and pose changes, and achieves higher recognition accuracy.

CN118447085BActive Publication Date: 2026-11-27HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410346925.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2026-11-27
Estimated Expiration
2044-03-25

AI Technical Summary

Technical Problem

In existing technologies, target pose recognition is poor due to factors such as lighting, occlusion, and different postures, resulting in low recognition accuracy.

Method used

A pose recognition model is used to process the target image to obtain the pose recognition results of the target part, including angle values ​​in multiple axis directions and preset pose types. The model is trained by joint loss values ​​to improve the recognition accuracy.

Benefits of technology

It improves the recognition effect of target body posture within the preset angle range, and improves the overall accuracy of posture recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118447085B_ABST
    Figure CN118447085B_ABST
Patent Text Reader

Abstract

The application discloses a target posture recognition method, a training method, a device and a storage medium. The method comprises the following steps: acquiring a target image, wherein the target image comprises a target part; processing the target image by using a posture recognition model to obtain a posture recognition result of the target part; wherein the posture recognition result is an angle value of a plurality of axis directions, and / or the posture recognition result is a preset posture type, and the preset posture type represents whether the posture angle belongs to a preset angle range. The above scheme can improve the accuracy of posture recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to a method, training method, device and storage medium for recognizing target pose. Background Technology

[0002] With the continuous development of computer vision, its application in the field of pose recognition is also increasing. Currently, pose recognition is usually performed by using a single camera to acquire images containing the target to be recognized. However, factors such as lighting, occlusion, and different poses of the acquired images may affect the recognition effect of pose recognition, resulting in poor pose recognition results. Summary of the Invention

[0003] The main technical problem addressed by this application is to provide a method, training method, device, and storage medium for identifying target postures, which can improve the accuracy of posture recognition.

[0004] To address the aforementioned issues, the first aspect of this application provides a method for recognizing a target posture. The method includes: acquiring a target image containing a target part; processing the target image using a posture recognition model to obtain a posture recognition result for the target part; wherein the posture recognition result is angle values ​​in multiple axial directions, and / or the posture recognition result is a preset posture type, whereby the preset posture type indicates whether the posture angle belongs to a preset angle range.

[0005] To address the aforementioned issues, a second aspect of this application provides a method for training a pose recognition model. This method includes: acquiring sample images containing target parts; processing the sample images using a pose recognition model to obtain pose recognition results, wherein the pose recognition results include sample angle values ​​along multiple axes and a preset pose type, the preset pose type indicating whether the pose angle falls within a preset angle range; obtaining a joint loss value based on the sample angle values ​​along multiple axes and the preset pose type; and adjusting the network parameters of the pose recognition model using the joint loss value to obtain a trained pose recognition model.

[0006] To address the aforementioned problems, a third aspect of this application provides a computer device comprising a memory and a processor coupled to each other, wherein the memory stores program data and the processor executes the program data to implement any step of any of the methods described above.

[0007] To address the aforementioned problems, a fourth aspect of this application provides a computer-readable storage medium storing program data executable by a processor, the program data being used to implement any step of any of the methods described above.

[0008] The above scheme acquires a target image containing a target part, processes the target image using a pose recognition model, and obtains the pose recognition result of the target part. The pose recognition result consists of angle values ​​in multiple axial directions and / or a preset pose type, indicating whether the pose angle falls within a preset angle range. This allows for the identification of the specific angle value and / or preset pose type of the target part's pose. For pose angles within the preset angle range, the preset pose type can be output as the pose recognition result, improving the recognition effect for poses within the preset angle range and thus enhancing the overall accuracy of pose recognition.

[0009] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in this application, the accompanying drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:

[0011] Figure 1 This is a flowchart illustrating an embodiment of the target pose recognition method of this application;

[0012] Figure 2 This is a flowchart illustrating an embodiment of step S12 of this application;

[0013] Figure 3 This is a flowchart illustrating an embodiment of the training method for the pose recognition model of this application;

[0014] Figure 4 This is a schematic diagram of the structure of an embodiment of the pose recognition model of this application;

[0015] Figure 5 This is a schematic diagram of the structure of an embodiment of the target posture recognition device of this application;

[0016] Figure 6 This is a schematic diagram of the structure of an embodiment of the training device for the pose recognition model of this application;

[0017] Figure 7 This is a schematic diagram of the structure of an embodiment of the computer device of this application;

[0018] Figure 8 This is a schematic diagram of the structure of an embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0020] The terms "first" and "second" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus.

[0021] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0022] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship. Furthermore, "many" in this document means two or more. Moreover, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0023] This application provides the following embodiments, and each embodiment is described in detail below.

[0024] It is understood that the target pose recognition method and pose recognition model training method in this application can be executed by a computer device, which can be any device with processing capabilities, such as mobile phone, computer, server, etc., and this application does not impose any restrictions on this.

[0025] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the target pose recognition method of this application. The method may include the following steps:

[0026] S11: Acquire the target image, which contains the target region.

[0027] The target object can be photographed using a camera device to obtain an image or video. At least one frame of the image or video can be used as the target image. The camera device can be a mobile terminal, a camera, a video camera, etc. This application does not limit the scope of the camera device.

[0028] In some implementations, the target image includes a target region, which may be the head of a target object. The target object may be a user, animal, or object (such as a vehicle or airplane), and can be set according to the specific application scenario; this application does not impose any limitations on this.

[0029] S12: Process the target image using a pose recognition model to obtain the pose recognition result of the target part. The pose recognition result is the angle value of multiple axis directions, and / or the pose recognition result is a preset pose type, which indicates whether the pose angle belongs to a preset angle range.

[0030] A pose recognition model is used to identify the pose of a target image. It has at least two output branches, for example, one output branch is angle values ​​in multiple axis directions, and the other output branch is a preset pose type. By processing the target image using the pose recognition model, the pose recognition result of the target part can be obtained. The pose recognition result is angle values ​​in multiple axis directions, and / or the pose recognition result is a preset pose type, which indicates whether the pose angle belongs to a preset angle range.

[0031] In some implementations, the angle values ​​in multiple axial directions may include three parameters describing the rotation of an object (target part) in three-dimensional space. These parameters may represent the angles of rotation of the object (target part) about its own three axes: pitch, yaw, and roll. Pitch is the rotation about the X-axis, also called the pitch angle; yaw is the rotation about the Y-axis, also called the yaw angle; and roll is the rotation about the Z-axis, also called the roll angle.

[0032] For example, pitch can be compared to an airplane's pitch, which is the head turning up or down. Yaw can be compared to an airplane's yaw, which is the head turning left or right. Roll can be compared to an airplane's roll, which is the head turning left or right.

[0033] In some implementations, a preset posture type indicates whether the posture angle falls within a preset angle range. In some application scenarios, the preset angle range is greater than a first angle threshold, which can be any value between 91 and 105 degrees, such as 91, 95, 97, 99, 100, or 105 degrees. For example, the preset posture type indicates whether the posture angle is greater than 99 degrees, i.e., a large-angle posture. In some application scenarios, the preset angle range is less than a second angle threshold, which can be any value between -91 and -105 degrees. For example, the preset posture type indicates whether the posture angle is less than -99 degrees, i.e., a large-angle posture. In some application scenarios, the preset angle range is the posture angle between a third and a fourth angle threshold. This application is not limited to these preset angle ranges.

[0034] In some implementations, the preset posture type includes at least one posture angle type, where each posture angle type indicates whether the posture angle belongs to a preset angle range divided according to the corresponding angle value. The preset angle range divided according to the corresponding angle value may be less than or equal to -99 degrees, -98 to 0 degrees, 0 to 98 degrees, or greater than or equal to 99 degrees. The specific application scenario requirements can be met by dividing the angle range into categories such as less than or equal to -99 degrees, -98 to 98 degrees, or greater than or equal to 99 degrees. This application does not impose any restrictions on this.

[0035] In some implementations, a preset posture type can indicate whether any of the angle values ​​of the target part in multiple axial directions falls within a preset angle range. If it falls within the preset angle range, the preset posture type can be represented by the character 1, which means the preset posture type is positive; if it does not fall within the preset angle range, the preset posture type can be represented by the character 0, which means the preset posture type is negative.

[0036] In some embodiments, please refer to Figure 2 This embodiment can further extend step S12 of the above embodiment. By processing the target image using a pose recognition model to obtain the pose recognition result of the target region, this embodiment may include the following steps:

[0037] S121: The target image is processed using a pose recognition model to obtain pose discrimination features.

[0038] In some implementations, the attitude discrimination features include: the predicted probability that any angle value in multiple axial directions belongs to a preset angle range, and at least one of the angle prediction features. The predicted probability that any angle value in multiple axial directions belongs to the preset angle range can also represent the predicted probability that the pose angle of the target part belongs to the preset angle range, such as the predicted probability that the pose angle of the target part is greater than 99 degrees. The angle prediction features may include three sets of parameters, each set including displacement parameters, scale parameters, and prediction parameters. For details regarding the specific network structure of the attitude recognition model, please refer to the description of the following embodiments.

[0039] In some implementations, it is determined whether the posture discrimination features meet the posture conditions of a preset posture type. That is, it can be determined whether the predicted probability that the posture angle of the target part belongs to a preset angle range meets the posture conditions of the preset posture type. The posture conditions include: the predicted probability is greater than a probability threshold. For example, if the predicted probability is greater than 0.5, then the posture angle of the target part is considered to belong to the preset angle range, i.e., it meets the posture conditions of the preset posture type.

[0040] In some implementations, the preset posture type includes at least one posture angle type. Each posture angle type represents whether a posture angle belongs to a preset angle range divided according to its angle value. Each posture angle type can correspond to a probability threshold, and the probability thresholds corresponding to each posture angle type can be the same or different. For example, for posture angle types corresponding to preset angle ranges that are more difficult to identify, their probability thresholds can be relatively small; for posture angle types corresponding to preset angle ranges that are easier to identify, their probability thresholds can be relatively large. This application is not limited to this. In this case, the predicted probability of at least one posture angle type can be obtained. If its corresponding predicted probability is greater than the probability threshold, then the posture condition of the corresponding posture angle type is satisfied.

[0041] If the attitude discrimination feature is determined to meet the attitude conditions of the preset attitude type, then proceed to step S122. Otherwise, proceed to step S123.

[0042] S122: In response to the posture condition that the posture discrimination feature satisfies the preset posture type, the preset posture type is used as the posture recognition result.

[0043] When the pose discrimination features meet the pose conditions of the preset pose type, the preset pose type can be used as the pose recognition result. That is, the pose angle of the target part of the target image can be identified as the preset angle range to which the preset pose type belongs, without having to predict its specific angle value. This can improve the efficiency and accuracy of pose recognition for the preset pose type.

[0044] In some implementations, in response to the posture discrimination feature satisfying any one of the posture angle types included in the preset posture type, the posture angle type that satisfies the posture condition is taken as the posture recognition result.

[0045] S123: In response to the attitude discrimination features not meeting the attitude conditions of the preset attitude type, use the angle prediction features to predict the angle and obtain the angle values ​​in multiple axis directions as the attitude recognition result.

[0046] If the pose discrimination features do not meet the pose conditions of the preset pose type, that is, the pose angle of the target part of the target image does not belong to the preset angle range of the preset pose type, another output branch can be used to output the pose recognition result. Specifically, angle prediction features can be used to predict angles and obtain angle values ​​in multiple axial directions as the pose recognition result.

[0047] The above scheme acquires a target image containing a target part, processes the target image using a pose recognition model, and obtains the pose recognition result of the target part. The pose recognition result consists of angle values ​​in multiple axial directions and / or a preset pose type, indicating whether the pose angle falls within a preset angle range. This allows for the identification of the specific angle values ​​and / or preset pose types of the target part's pose. For pose angles within the preset angle range, the preset pose type can be output as the pose recognition result, improving the recognition effect for poses within the preset angle range and thus enhancing the overall accuracy of pose recognition.

[0048] In some implementations, the pose recognition model can be trained before use. This model is obtained through joint training using sample angle values ​​along multiple axes obtained from sample images and preset pose types. Specific training methods can be found in the following embodiments.

[0049] Please see Figure 3 , Figure 3 This is a flowchart illustrating an embodiment of the training method for the pose recognition model of this application. The method may include the following steps:

[0050] S21: Obtain a sample image containing the target region.

[0051] Multiple sample images are acquired, each containing the target region, specifically the head of the target object. Label data for each sample image is also acquired, containing the true angle values ​​P along multiple axes. gt R gt Y gtThe multiple axes it refers to can be represented as pitch, yaw, and roll, respectively.

[0052] In some application scenarios, the label data also includes the actual pose type. For example, the character 1 can be used to indicate that it belongs to the preset pose type, that is, the positive class, and the character 0 can be used to indicate that it does not belong to the preset pose type, that is, the negative class. This application does not impose any restrictions on this.

[0053] Then, multiple sample images can be divided into training set, validation set, and test set according to a preset ratio for subsequent training of the pose recognition model.

[0054] In some application scenarios, the above-mentioned images can be obtained by using camera equipment to capture images of the target parts of the target object as sample images and obtain their label data for training. That is, real sample images can be used as training data, so that the trained pose recognition model has better generalization performance in real-world scenarios.

[0055] S22: Process the sample image using a pose recognition model to obtain pose recognition results. The pose recognition results include sample angle values ​​in multiple axial directions and preset pose types of the sample. The preset pose type of the sample indicates whether the pose angle belongs to a preset angle range.

[0056] In some implementations, sample images from the training set can be selected for training, and the sample images can be processed using a pose recognition model to obtain pose recognition results. The pose recognition results include sample angle values ​​in multiple axial directions and preset pose types of the samples. The preset pose types of the samples indicate whether the pose angles belong to a preset angle range.

[0057] Among them, the sample angle values ​​in multiple axial directions can be represented as P. pred R pred Y pred The preset posture type of the sample can be represented as the predicted probability of whether the posture angle belongs to the preset angle range.

[0058] In some implementations, please refer to Figure 4 The pose recognition model can consist of four modules: a segmented fusion module, a fine-grained structural feature aggregation module, a fully connected layer, and a soft segmented regression module, all connected in series. The pose recognition model has two output branches. One branch outputs three angle values: pitch, yaw, and roll, representing sample angle values ​​across multiple axes. The other branch outputs a preset pose type for the sample, indicating whether the pose angle falls within a preset range. For example, the preset pose type could indicate whether the pose angle exceeds 99 degrees.

[0059] The segmented fusion module is used to extract features from the sample images. It consists of several convolutional layers, pooling layers, normalization layers, and activation layers. It performs feature extraction and fusion on the input sample images in three stages and at multiple scales, and finally outputs three feature maps U1, U2, and U3.

[0060] The fine-grained structural feature aggregation module consists of several convolutional layers, pooling layers, normalization layers, and activation layers. It is used to perform attention processing, fine-grained spatial structure mapping, and other operations on the three input feature maps U1, U2, and U3 to obtain three 16-dimensional feature vectors.

[0061] The fully connected layer consists of several fully connected layers, normalization layers, and activation layers. It performs operations such as splitting, feature calculation, and fusion on the three 16-dimensional feature vectors input to obtain pose discrimination features. These features include angle prediction features and the prediction probability that any angle value in multiple axial directions belongs to a preset angle range; that is, the prediction probability that the pose of the target part belongs to the positive class of a preset pose type. For example, the prediction probability might represent the probability that the pose angle of the target part is greater than 99 degrees. The angle prediction feature can contain three sets of parameters, each set including displacement parameters, scale parameters, and prediction parameters, used to predict sample angle values ​​in multiple axial directions.

[0062] The soft segmented regression module is used to predict angles for angle prediction features, and obtain the predicted values ​​of three angles: pitch, yaw, and roll, which are sample angle values ​​in multiple axis directions.

[0063] In some application scenarios, the network hierarchy structure of the pose recognition model, which may include segmented fusion modules, fine-grained structural feature aggregation modules, and fully connected layers, can refer to the FSA-Net (Head Pose Estimation) method, but this application is not limited to this.

[0064] In some application scenarios, the soft segmented regression module can use the SSRNet (Synthetic Surveillancethrough Regression Network, a deep learning-based algorithm) method, but this application is not limited to this.

[0065] The aforementioned posture recognition model is lightweight and highly accurate, which is beneficial for rapid inference, reducing equipment costs and deployment complexity, and improving the posture recognition performance of the posture recognition model.

[0066] S23: Based on the sample angle values ​​in multiple axial directions and the preset pose type of the samples, the joint loss value is obtained.

[0067] A joint loss value can be obtained based on sample angle values ​​in multiple axial directions and preset sample pose types, which can then be used to jointly train the pose recognition model.

[0068] In some implementations, the angle loss value can be obtained using sample angle values ​​and true angle values ​​in multiple axial directions; and the pose type loss value can be obtained using a preset pose type of the samples and the true pose type. The angle loss value and the pose type loss value are then weighted to obtain a joint loss value.

[0069] In some implementations, the joint loss value can be expressed by the following formula:

[0070] L=αL pry +βL bigpose .

[0071] In the above formula, L represents the joint loss value, L pry L represents the angle loss value. bigpose The value represents the attitude type loss, and α and β represent the weighting coefficients, which are used to weight the angle loss and attitude type loss values.

[0072] In some implementations, the angle loss value L pry It can be expressed by the following formula:

[0073]

[0074] In the above formula, P pred R pred Y pred P represents the sample angle values ​​in multiple axial directions. gt R gt Y gt These represent the actual angle values ​​in multiple axial directions.

[0075] In some implementations, the pose type loss value L bigpose It can be expressed by the following formula:

[0076]

[0077] In the above formula, y i This indicates the true pose type of the sample image, with 1 representing a positive class and 0 representing a negative class. i This represents the predicted probability that the sample's preset pose type is positive.

[0078] S24: Adjust the network parameters of the pose recognition model using the joint loss value to obtain the trained pose recognition model.

[0079] The network parameters of the pose recognition model are adjusted using the joint loss value obtained above to obtain a trained pose recognition model. Specifically, the joint loss value L can be fed back to the pose recognition model to be trained, and the network parameters are adjusted iteratively. After repeating the above steps for several iterations, the accuracy of the pose recognition model on the validation set reaches a preset threshold, and the pose recognition model training is complete. Then, sample images from the test set can be input into the trained pose recognition model to test the model, enabling it to predict poses more accurately.

[0080] The above scheme acquires sample images containing the target body part; processes these images using a pose recognition model to obtain pose recognition results. The pose recognition model has two output branches: one outputs the angle values ​​of pitch, yaw, and roll, and the other outputs a preset pose type, indicating whether the pose angle of the target body part falls within a preset angle range. A joint loss value is obtained based on sample angle values ​​across multiple axes and the preset pose type. This joint loss value is then used to adjust the network parameters of the pose recognition model to obtain a trained pose recognition model. This solves the problem of poor prediction performance for target body parts within a preset angle range (such as large-angle poses), improving the accuracy of pose recognition within that range. Therefore, it can also improve the overall accuracy of pose recognition for target body parts.

[0081] For the above embodiments, if the technical solution of this application involves personal information, the product applying the technical solution of this application has clearly informed the user of the personal information processing rules and obtained the user's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product applying the technical solution of this application has obtained the user's separate consent before processing the sensitive personal information, and also meets the requirement of "express consent". For example, at personal information collection devices such as cameras, clear and prominent signs are set up to inform users that they have entered the scope of personal information collection and that personal information will be collected. If an individual voluntarily enters the collection scope, it is deemed that they have agreed to the collection of their personal information; or on the personal information processing device, with clear signs / information informing users of the personal information processing rules, authorization is obtained from the individual through pop-up information or by asking the individual to upload their personal information; wherein, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the types of personal information processed.

[0082] Those skilled in the art will understand that, in the above-described method of the specific implementation, the order in which each step is written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.

[0083] The specific implementation of this embodiment can be referred to the implementation process of the above embodiments, and will not be repeated here.

[0084] In accordance with the above embodiments, this application provides a target posture recognition device for implementing the target posture recognition method described above.

[0085] Please see Figure 5 , Figure 5 This is a schematic diagram of an embodiment of the target posture recognition device of this application. The target posture recognition device 30 includes: an acquisition unit 31 and a processing unit 32.

[0086] The acquisition unit 31 is used to acquire a target image, which contains the target region.

[0087] The processing unit 32 is used to process the target image using a pose recognition model to obtain the pose recognition result of the target part; wherein, the pose recognition result is the angle value of multiple axis directions, and / or, the pose recognition result is a preset pose type, and the preset pose type indicates whether the pose angle belongs to a preset angle range.

[0088] It should be noted that the target posture recognition device and the target posture recognition method provided in the above embodiments belong to the same concept. The specific details of each unit and the way the unit performs its operations have been described in detail in the method embodiments, and will not be repeated here. In practical applications, the target posture recognition device provided in the above embodiments can allocate the above functions to different functional units as needed, that is, divide the internal structure of the device into different functional units to complete all or part of the functions described above. This application does not impose any limitations on this.

[0089] In accordance with the above embodiments, this application provides a training apparatus for a posture recognition model, used to implement the above-described posture recognition model training method.

[0090] Please see Figure 6 , Figure 6 This is a schematic diagram of an embodiment of the training device for the pose recognition model of this application. The training device 40 for the pose recognition model includes: a sample unit 41, a recognition unit 42, a loss unit 43, and a training unit 44.

[0091] The sample unit 41 is used to acquire a sample image, which contains the target region.

[0092] The recognition unit 42 is used to process the sample image using the pose recognition model to obtain the pose recognition result. The pose recognition result includes sample angle values ​​in multiple axial directions and a preset pose type of the sample. The preset pose type of the sample indicates whether the pose angle belongs to a preset angle range.

[0093] Loss unit 43 is used to obtain a joint loss value based on sample angle values ​​and sample preset pose types in multiple axis directions.

[0094] Training unit 44 is used to adjust the network parameters of the pose recognition model using the joint loss value to obtain a trained pose recognition model.

[0095] It should be noted that the posture recognition model training device and the posture recognition model training method provided in the above embodiments belong to the same concept. The specific details of each unit and the way it performs operations have been described in detail in the method embodiments and will not be repeated here. In practical applications, the posture recognition model training device provided in the above embodiments can allocate the above functions to different functional units as needed, that is, divide the internal structure of the device into different functional units to complete all or part of the functions described above. This application does not impose any limitations on this.

[0096] Regarding the above embodiments, this application provides a computer device; please refer to [link / reference]. Figure 7 , Figure 7 This is a schematic diagram of the structure of a computer device according to an embodiment of the present application. The computer device 50 includes a memory 51 and a processor 52, wherein the memory 51 and the processor 52 are coupled to each other. The memory 51 stores program data, and the processor 52 is used to execute the program data to implement the steps of any of the embodiments of the target posture recognition method and the posture recognition model training method described above.

[0097] In this embodiment, processor 52 can also be referred to as a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or processor 52 can be any conventional processor.

[0098] The methods described in the above embodiments can be implemented as computer programs; therefore, this application proposes a computer-readable storage medium. Please refer to [link to relevant documentation]. Figure 8 , Figure 8This is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer-readable storage medium 60 stores program data 61 that can be executed by a processor. The program data 61 can be executed by the processor to implement the steps of any of the above-described methods for recognizing target poses and training pose recognition models.

[0099] In this embodiment, the computer-readable storage medium 60 can be a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, or a medium that can store program data 61. Alternatively, it can be a server that stores the program data 61. The server can send the stored program data 61 to other devices for execution, or it can run the stored program data 61 itself.

[0100] In some embodiments, the functions or modules of the apparatus provided in the above embodiments of this application can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0101] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0102] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0103] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0104] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0105] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application.

[0106] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, and thus stored in a computer-readable storage medium for execution by a computing device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Therefore, this application is not limited to any particular hardware and software combination.

[0107] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for recognizing a target pose, characterized in that, include: Acquire a target image, wherein the target image contains the target region; The target image is processed using a pose recognition model to obtain the pose recognition result of the target part; wherein, the pose recognition result is an angle value in multiple axial directions, and / or, the pose recognition result is a preset pose type, and the preset pose type indicates whether the pose angle belongs to a preset angle range; The step of processing the target image using a pose recognition model to obtain the pose recognition result of the target region includes: The target image is processed using the posture recognition model to obtain posture discrimination features; wherein, the posture discrimination features include: the predicted probability that any angle value in multiple axial directions belongs to the preset angle range and angle prediction features; In response to the posture discrimination feature satisfying the posture condition of the preset posture type, the preset posture type is used as the posture recognition result; wherein, the preset posture type indicates whether any of the angle values ​​of the target part in multiple axial directions belongs to the preset angle range, and the posture condition includes: the predicted probability is greater than the probability threshold; In response to the posture discrimination feature not meeting the posture conditions of the preset posture type, the angle prediction feature is used to predict the angle and obtain angle values ​​in multiple axial directions as the posture recognition result.

2. The method according to claim 1, characterized in that, The preset posture type includes at least one posture angle type, and each posture angle type indicates whether the posture angle belongs to a preset angle range divided according to the angle value. The step of responding to the posture condition that the posture discrimination feature satisfies the preset posture type and using the preset posture type as the posture recognition result includes: In response to the posture discrimination feature satisfying any one of the posture angle types included in the preset posture type, the posture angle type that satisfies the posture condition is taken as the posture recognition result.

3. The method according to claim 1, characterized in that, The target part is the head of the target object; and / or, the posture recognition model is obtained by jointly training sample angle values ​​in multiple axial directions obtained from sample images and preset posture types of samples.

4. A training method for a pose recognition model, characterized in that, include: Acquire a sample image, wherein the sample image contains the target region; The sample image is processed using a pose recognition model to obtain a pose recognition result, wherein the pose recognition result includes sample angle values ​​in multiple axial directions and a preset pose type of the sample, and the preset pose type of the sample indicates whether the pose angle belongs to a preset angle range. Based on the sample angle values ​​along the multiple axes and the preset pose type of the samples, a joint loss value is obtained; The network parameters of the pose recognition model are adjusted using the joint loss value to obtain a trained pose recognition model, which is used to implement the target pose recognition method according to any one of claims 1 to 3.

5. The method according to claim 4, characterized in that, The joint loss value is obtained based on the sample angle values ​​along the multiple axes and the preset pose type of the samples, including: Angle loss values ​​are obtained using the sample angle values ​​in the multiple axial directions; and posture type loss values ​​are obtained using the preset posture type of the samples. The angle loss value and the attitude type loss value are weighted to obtain the joint loss value.

6. A computer device, characterized in that, It includes a memory and a processor coupled to each other, the memory storing program data, and the processor executing the program data to implement the steps of the method according to any one of claims 1 to 3, and / or the steps of the method according to any one of claims 4 to 5.

7. A computer-readable storage medium, characterized in that, The system stores program data that can be executed by a processor, the program data being used to implement the steps of the method according to any one of claims 1 to 3, and / or the steps of the method according to any one of claims 4 to 5.

Citation Information

Patent Citations

  • Face pose estimation method and device, electronic equipment and readable storage medium

    CN111860031A