Object posture recognition model construction method and object posture recognition method and device

By enhancing and segmenting sample images, a self-supervised training method is used to construct an object posture recognition model without posture labels, which solves the problems of high training cost and poor recognition accuracy in the existing technology, and improves the accuracy of posture recognition and information processing. ability.

CN118629084APending Publication Date: 2024-09-10BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310257873.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the training of object posture recognition models requires high-cost collection of label samples, resulting in an insufficient number of training samples and affecting the accuracy of the recognition results.

Method used

By enhancing and segmenting the sample image, a mask image block group and an enhanced image block group are generated, and a self-supervised training method is used for network training without pose labels to build an object pose recognition model.

Benefits of technology

It reduces the cost of sample image collection and training, improves the accuracy of gesture recognition results and information processing capabilities, and facilitates the collection of a large number of samples for training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629084A
    Figure CN118629084A
Patent Text Reader

Abstract

The invention relates to a construction method of an object posture recognition model, and an object posture recognition method and device. The construction method of the object posture recognition model comprises the steps of obtaining a first object sample image; enhancing the first object sample image to obtain a sample enhanced image; segmenting the sample enhanced image to obtain an enhanced image block group, and performing mask processing on part of image blocks in the enhanced image block group to obtain a mask image block group; based on the mask image block group, acquiring first posture recognition information of the target object through a first network; and acquiring second posture recognition information of the target object through a second network based on the enhanced image block group, performing self-supervised training on the first network according to the difference between the first posture recognition information and the second posture recognition information; and constructing an object posture recognition model according to the first network after the self-supervised training. The accuracy of the posture recognition result can be improved on the basis of reducing the training cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to a method for constructing an object posture recognition model, an object posture recognition method and a device. Background Art

[0002] In many scenarios such as gaming and control, it is necessary to identify the posture of the target object, where the posture of the target object can be, for example, a hand gesture, a human posture, etc. In the related technologies, most of them require supervised training of the network model using sample images with labels, and the acquisition cost of the required training samples is high, that is, the model training cost is high; and because the cost of acquiring training samples is high, the number of training samples used is usually insufficient, resulting in poor accuracy of the object posture recognition results of the trained network model. Summary of the invention

[0003] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a method for constructing an object posture recognition model, an object posture recognition method and a device.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for constructing an object posture recognition model, comprising: obtaining a first object sample image; wherein the first object sample image is an image containing a target object; performing enhancement processing on the first object sample image to obtain a sample enhanced image; segmenting the sample enhanced image to obtain an enhanced image block group, and performing mask processing on some image blocks in the enhanced image block group to obtain a mask image block group; based on the mask image block group, obtaining first posture recognition information of the target object through a first network; and, based on the enhanced image block group, obtaining second posture recognition information of the target object through a second network; performing self-supervised training on the first network according to the difference between the first posture recognition information and the second posture recognition information; and constructing an object posture recognition model based on the first network after the self-supervised training.

[0005] In a second aspect, an embodiment of the present disclosure provides an object posture recognition method, comprising: acquiring an image to be recognized; using a pre-built object posture recognition model to recognize the posture of a target object in the image to be recognized; wherein the object posture recognition model is obtained based on the method for constructing the object posture recognition model provided in the first aspect.

[0006] In a third aspect, an embodiment of the present disclosure provides a device for constructing an object posture recognition model, comprising: a sample image acquisition module, used to acquire a first object sample image; wherein the first object sample image is an image containing a target object; a sample image enhancement module, used to enhance the first object sample image to obtain a sample enhanced image; an image segmentation and mask module, used to segment the sample enhanced image to obtain an enhanced image block group, and mask some image blocks in the enhanced image block group to obtain a mask image block group; a posture recognition module, used to obtain first posture recognition information of the target object through a first network based on the mask image block group; and, based on the enhanced image block group, obtain second posture recognition information of the target object through a second network; a self-supervised training module, used to perform self-supervised training on the first network according to the difference between the first posture recognition information and the second posture recognition information; and a model construction module, used to construct an object posture recognition model based on the first network after self-supervised training.

[0007] In a fourth aspect, an embodiment of the present disclosure provides an object posture recognition device, comprising: an image acquisition module for acquiring an image to be recognized; a posture recognition module for using a pre-built object posture recognition model to recognize the posture of a target object in the image to be recognized; wherein the object posture recognition model is obtained based on the object posture recognition model construction method described in the first aspect.

[0008] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the method for constructing an object posture recognition model of the first aspect, or to implement the object posture recognition method of the second aspect.

[0009] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium storing a computer program for executing the method for constructing an object posture recognition model of the first aspect, or implementing the object posture recognition method of the second aspect.

[0010] The above technical solution provided by the embodiment of the present disclosure does not require the object sample image to carry posture labels. By enhancing the sample image, segmenting the sample enhanced image to obtain an enhanced image block group, and masking some image blocks in the enhanced image block group to obtain a mask image block group, the first network is used to perform posture recognition based on the mask image block group, and the second network is used to perform posture recognition based on the enhanced image block group. After that, based on the difference between the first posture recognition information and the second posture recognition information, the network training can be realized by using a self-supervised method. Finally, the object posture recognition model can be constructed using the trained first network. Since the above method does not require the sample image to carry posture labels, the acquisition cost of the sample image is greatly reduced. It can not only effectively reduce the model training cost, but also can conveniently collect a large number of sample images for training, which helps to improve the accuracy of the posture recognition results. The object posture recognition model is constructed based on the first network, and the first network processes the mask image block group during training, so the information processing capability is good, which also helps to further improve the accuracy of the posture recognition results.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0014] Figure 1 A schematic diagram of a flow chart of a method for constructing an object posture recognition model provided by an embodiment of the present disclosure;

[0015] Figure 2 A schematic diagram of network training provided in an embodiment of the present disclosure;

[0016] Figure 3 A schematic diagram of network training provided in an embodiment of the present disclosure;

[0017] Figure 4 A schematic diagram of the structure of an object posture recognition model provided by an embodiment of the present disclosure;

[0018] Figure 5A schematic diagram of an application of an object posture recognition model provided by an embodiment of the present disclosure;

[0019] Figure 6 A flowchart of an object posture recognition method provided by an embodiment of the present disclosure;

[0020] Figure 7 A schematic diagram of the structure of a device for constructing an object posture recognition model provided by an embodiment of the present disclosure;

[0021] Figure 8 A schematic diagram of the structure of an object posture recognition device provided by an embodiment of the present disclosure;

[0022] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0025] Figure 1 The present invention provides a flowchart of a method for constructing an object posture recognition model provided by an embodiment of the present invention. The method can be executed by a device for constructing an object posture recognition model, wherein the device can be implemented by software and / or hardware and can generally be integrated in an electronic device. Figure 1 As shown, the method mainly includes the following steps S102 to S112:

[0026] Step S102, obtaining a first object sample image; wherein the first object sample image is an image containing a target object.

[0027] The embodiments of the present disclosure do not limit the target object. For example, the target object may be a hand or other designated part of the human body, or the target object may be the entire human body; or the target object may be an animal such as a cat or a dog, or a robot, which is not limited here.

[0028] Step S104: performing enhancement processing on the first object sample image to obtain a sample enhanced image.

[0029] In practical applications, one or more random data enhancement processes may be performed on the first object sample image, and the enhancement processes may be, for example, rotation processing, blurring processing, color change processing, scaling processing, filtering processing, etc., which are not limited here. In some specific implementation examples, two enhancement processes may be performed on the first object sample image respectively, and sample enhanced images corresponding to each enhancement process may be obtained respectively, that is, the sample enhanced image includes a first enhanced image and a second enhanced image, and the first object sample image is enhanced to obtain a sample enhanced image, including: performing a first enhancement process on the first object sample image to obtain a first enhanced image; and performing a second enhancement process on the first object sample image to obtain a second enhanced image; wherein the first enhancement process is different from the second enhancement process. Through the above-mentioned enhancement processing method, an image with different information presentation methods can be obtained on the basis of the original first object sample image, so that the network training can be better performed based on the two images with different information presentation methods in the subsequent process, which helps the network finally trained to have a stronger information processing capability.

[0030] Step S106 , segmenting the sample enhanced image to obtain an enhanced image block group, and performing mask processing on some image blocks in the enhanced image block group to obtain a masked image block group.

[0031] In the embodiment of the present disclosure, the sample enhanced image obtained by the enhancement process can be segmented to obtain multiple image blocks, which can be called an enhanced image block group. After that, some image blocks in the enhanced image block group can be masked, that is, some image blocks are covered or erased, and in practical applications, the image blocks to be masked can be specified, or the masked image blocks can be randomly selected, which is not limited here. In addition, if the aforementioned step S104 obtains multiple sample enhanced images, each sample enhanced image has a corresponding enhanced image block group and a mask image block group.

[0032] Step S108, based on the mask image block group, obtaining first posture recognition information of the target object through the first network; and based on the enhanced image block group, obtaining second posture recognition information of the target object through the second network.

[0033] In practical applications, the first network can be directly used to extract features from the mask image block group to obtain the posture recognition information of the target object, or the mask image block group can be preliminarily extracted, and then the shallow feature vector of the mask image block group is input into the first network for deep feature extraction, which is not limited here. To distinguish it from the posture recognition information of the second network, the posture recognition information of the target object obtained by the first network is referred to as the first posture recognition information, and the posture recognition information of the target object obtained by the second network is referred to as the second posture recognition information. The posture recognition information may include, for example, the posture of the object obtained by network recognition (referred to as the recognition posture), and the recognition posture may be characterized by parameters such as shape parameters and posture parameters, for example, the shape parameters and posture parameters of the three-dimensional model data corresponding to the target object, etc. In addition, the posture recognition information may also include intermediate information for generating the recognition posture, which may include image block information in the enhanced image block group or the mask image block group, and the image block information may be used for posture recognition or image reconstruction. The intermediate information may also include feature vectors for generating image block information, such as the feature vector output by the specified network layer of the first network, which is not limited here.

[0034] In the disclosed embodiment, two networks are used to perform gesture recognition based on the mask image block group and the enhanced image block group, respectively, wherein the first network can be regarded as a student network and the second network can be regarded as a teacher network; the structures of the first network and the second network can be the same or different, which is not limited here. In some specific implementation examples, the first network and the second network can both be implemented using Transformer networks.

[0035] In practical applications, all first posture recognition information can be directly obtained through the first network; part of the first posture recognition information can also be obtained through the first network, and then the rest of the first posture recognition information can be obtained through other networks based on the output information of the first network; the feature vector used to generate the first posture recognition information can also be obtained through the first network, and then the first posture recognition information can be generated through other networks based on the feature vector output by the first network. The specific implementation method can be flexibly set according to the needs and is not limited here. The method of obtaining the second posture recognition information through the second network is similar and will not be repeated here.

[0036] In some specific implementation examples, when obtaining posture recognition information through the first network or the second network, the first network or the second network can also be used to obtain posture recognition information with the help of other networks, such as the first network and the second network are mainly used for feature extraction, and the other network is mainly used for information recognition. In some implementation examples, the first network and the second network are respectively connected to the third network, that is, the third network is a shared network of the first network and the second network; on this basis, when the above step S108 is specifically implemented, the feature vector of the mask image block group can be obtained through the first network, and the first posture recognition information of the target object corresponding to the feature vector of the mask image block group can be obtained through the third network; and the feature vector of the enhanced image block group can be obtained through the second network, and the second posture recognition information of the target object corresponding to the feature vector of the enhanced image block group can be obtained through the third network. The embodiment of the present disclosure does not limit the implementation method of the third network. For example, the third network can be an MLP (Multilayer Perceptron) network. MLP is a fully connected neural network, including an input layer, a hidden layer and an output layer. The layers are fully connected, and can effectively perform classification processing based on the feature vector, and finally output posture recognition information.

[0037] Step S110, performing self-supervisory training on the first network according to the difference between the first posture recognition information and the second posture recognition information.

[0038] It is understandable that although the first network analyzes and processes the mask image block group and the second network analyzes and processes the enhanced image block group, since both are essentially identifying the posture of the target object in the first object sample image, it is theoretically expected that the posture recognition information output by the two is matched. Therefore, the embodiment of the present disclosure does not require the first object sample image to carry a posture label, but directly performs self-supervisory training on the first network by measuring the difference between the first posture recognition information and the second posture recognition information. While the first network is being self-supervised, the parameters of the second network can also be updated.

[0039] In practical applications, the difference between the first posture recognition information and the second posture recognition information can be represented by a loss function value. The greater the difference, the greater the loss function value. The first network can then be trained based on the loss function value to adjust the parameters of the first network. In a specific implementation, the parameters of the first network can be first adjusted according to the loss function value to reduce the loss function value, that is, the difference between the first posture recognition information and the second posture recognition information can be reduced by adjusting the network parameters. Then, the parameters of the second network can be updated using the adjusted parameters of the first network until the preset training end conditions are met. The training end conditions can be, for example, that the loss function value between the first posture recognition information and the second posture recognition information converges to a preset threshold. In the above manner, the posture recognition information output by the trained first network and the second network can be made similar and meet expectations.

[0040] Step S112, constructing an object posture recognition model based on the first network after self-supervised training.

[0041] It can be understood that since the first network processes the masked image group, the first posture recognition information obtained can still be similar to the second posture recognition information obtained by the second network processing the unmasked image group. Therefore, the first network has good information processing capabilities, can effectively extract features from the image and further obtain more accurate posture recognition information. Therefore, in the embodiment of the present disclosure, the first network after self-supervised training can be directly used to construct an object posture recognition model.

[0042] In summary, the method for constructing the above-mentioned object posture recognition model provided by the embodiments of the present disclosure greatly reduces the cost of collecting sample images because it does not require sample images to carry posture labels. It can not only effectively reduce the cost of model training, but also conveniently collect a large number of sample images for training, which helps to improve the accuracy of posture recognition results. The object posture recognition model is constructed based on the first network, and the first network processes the mask image block group during training, so it has good information processing capabilities, which also helps to further improve the accuracy of posture recognition results.

[0043] On the basis that the sample enhanced image includes a first enhanced image and a second enhanced image, the first posture recognition information includes: a first recognition posture obtained based on the mask image block group of the first enhanced image, and a second recognition posture obtained based on the mask image block group of the second enhanced image; the second posture recognition information includes: a third recognition posture obtained based on the enhanced image block group of the first enhanced image, and a fourth recognition posture obtained based on the enhanced image block group of the second enhanced image.

[0044] Specifically, since two enhanced images can be obtained by using two enhancement processing methods, and each enhanced image has a corresponding enhanced image block group and a mask image block group, and the first enhanced image and the second enhanced image have different corresponding enhancement processing methods, so the information presentation methods are also different. The same untrained network analyzes and processes the enhanced image block groups or mask image block groups corresponding to different first enhanced images and second enhanced images, and the results obtained may also be different. Therefore, the first posture recognition information and the second posture recognition information include two recognition postures, respectively, wherein the recognition posture can be represented by parameters such as shape parameters and posture parameters, for example, the shape parameters and posture parameters of the three-dimensional model data corresponding to the target object, that is, the parameters of different recognition postures may be different. However, since the first enhanced image and the second enhanced image correspond to the same object sample image, it is theoretically expected that the above-mentioned recognition postures output by the network are consistent, that is, it is expected that no matter what kind of enhancement processing method is used or whether some image blocks are masked, the result of the final output of the network is the correct posture of the target object in the first object sample image. In order to improve the generalization and recognition performance of the recognition model finally constructed, the network training can be performed according to the recognition postures output by the first network and the second network. In some specific implementation examples, according to the difference between the first posture recognition information and the second posture recognition information, self-supervised training is performed on the first network, including the following steps a and b:

[0045] Step a, determining a first loss according to a difference between the first recognition posture and the fourth recognition posture, and a difference between the second recognition posture and the third recognition posture.

[0046] In specific implementation, the first loss function value (i.e., the first loss) can be determined by using a preset first loss function according to the difference between the first recognition posture and the fourth recognition posture, and the difference between the second recognition posture and the third recognition posture. The first loss function is not limited in the embodiment of the present disclosure, for example, the first loss function can be a cross entropy loss.

[0047] In practical applications, if the first enhancement processing or the second enhancement processing involves processing methods such as rotation or offset, the network's recognition posture can be restored by posture calibration methods such as inverse matrix so as to correspond to the recognition posture in the first object sample image, thereby better comparing the differences between different recognition postures.

[0048] It is understandable that the first recognition posture is obtained by analyzing the masked image block group of the first enhanced image through the first network, and the fourth recognition posture is obtained by analyzing the enhanced image block group of the second enhanced image through the second network, and both the enhanced images and the image block group categories (masked or not) are different. Comparing the difference between the two has higher requirements on the network than directly comparing the difference between the first recognition posture and the third recognition posture, which helps to train a network with stronger information processing capabilities.

[0049] Step b, self-supervising training the first network based on the first loss. That is, the parameters of the first network can be adjusted in the direction of reducing the first loss until the first loss meets the requirements. In addition, when adjusting the parameters of the first network according to the first loss, the relevant parameters of the second network will also be adjusted according to the parameter adjustment results of the first network, which will not be repeated here. It should be understood that in actual applications, when self-supervising training is performed on the first network based on the first loss, other losses can also be introduced, that is, the first network can be trained simultaneously based on the first loss and other losses until the total loss of the first loss and other losses meets the requirements.

[0050] In addition, the first posture recognition information may also include: image block information in the mask image block group of the first enhanced image and image block information in the mask image block group of the second enhanced image; the second posture recognition information includes: image block information in the enhanced image block group of the first enhanced image and image block information in the enhanced image block group of the second enhanced image. Among them, the image block information can also be represented in the form of a feature vector, which can reflect image space information, image content information, etc., which is not limited here. The disclosed embodiment expects that the first network can identify the information of the masked image blocks based on the unmasked image blocks in the mask image block group, so that the image block information output by the first network is consistent with the image block information output by the second network. Therefore, in order to achieve the expected result as much as possible, the network training can be performed according to the image block information output by the first network and the second network respectively. In some specific implementation examples, according to the difference between the first posture recognition information and the second posture recognition information, the first network and the second network are self-supervised trained, including the following steps 1 and 2:

[0051] Step 1, determining a second loss according to the difference between the image block information in the mask image block group of the first enhanced image and the image block information in the enhanced image block group of the first enhanced image, and the difference between the image block information in the mask image block group of the second enhanced image and the image block information in the enhanced image block group of the second enhanced image.

[0052] In a specific implementation, the second loss function value (i.e., the second loss) can be determined by using a preset second loss function according to the difference between the image block information in the mask image block group of the first enhanced image and the image block information in the enhanced image block group of the first enhanced image. The disclosed embodiment does not limit the second loss function, for example, the second loss function can be a cross entropy loss.

[0053] It can be understood that some image blocks in the masked image block group have been occluded, so it is more difficult for the first network to analyze and process the masked image block group, and the information of the outputted occluded image blocks is identified based on the information analysis of the unoccluded image blocks. In order to improve the first network's ability to recognize the information of the occluded image blocks, thereby correspondingly improving the information processing capability of the first network, the disclosed embodiment uses a second network to analyze the image block information obtained by analyzing the unoccluded enhanced image block group and compares it with the image block information obtained by analyzing the masked image block group by the first network, and performs network training based on the difference between the two, thereby effectively improving the information processing capability of the first network.

[0054] Step 2, self-supervising training the first network based on the second loss. It should be understood that in practical applications, when self-supervising training the first network based on the second loss, other losses can also be introduced, that is, the first network can be trained based on the second loss and other losses at the same time until the total loss of the second loss and other losses meets the requirements; for example, the aforementioned first loss can be introduced, and the first network can be trained based on the first loss and the second loss together. When adjusting the parameters of the first network based on the first loss and the second loss, the relevant parameters of the second network will also be adjusted according to the parameter adjustment results of the first network, which will not be repeated here.

[0055] In order to further improve the model training effect, the step of performing self-supervisory training on the first network and the second network according to the difference between the first posture recognition information and the second posture recognition information can also be performed with reference to the following steps A to C:

[0056] Step A, obtaining a third loss according to the difference between the first posture recognition information and the second posture recognition information.

[0057] In some specific implementation examples, the third loss includes the first loss and / or the second loss. The specific method of obtaining the first loss and the second loss can refer to the above-mentioned related content and is not limited here.

[0058] Step B: reconstructing an image using the first posture recognition information to obtain a reconstructed image.

[0059] In some implementation examples, upsampling may be performed a specified number of times based on the image block information in the first gesture recognition information. For example, the image block information may be upsampled four times to obtain a better reconstructed image.

[0060] In other implementation examples, image reconstruction can be performed based on intermediate information carried by the first posture recognition information for generating recognized posture and / or image block information. The intermediate information may be, for example, a feature vector output by a specified network layer of the first network. The feature vector output by the specified network layer may be upsampled and / or fused a specified number of times to obtain a reconstructed image.

[0061] Step C, obtaining a fourth loss according to the difference between the reconstructed image and the sample enhanced image.

[0062] In specific implementation, the fourth loss function value (ie, the fourth loss) can be determined by using a preset fourth loss function according to the difference between the reconstructed image and the sample enhanced image. The fourth loss function is not limited in the embodiment of the present disclosure, for example, the fourth loss function can be an L1 loss.

[0063] Theoretically, it is expected that the reconstructed image corresponding to the first network can match the sample enhanced image. By comparing the reconstructed image with the sample enhanced image and training the network according to the difference between the two, the first network can achieve pixel-level information restoration capabilities. By analyzing and processing the mask image block group, the obtained results can also better restore the input image of the first network.

[0064] Step D, performing self-supervised training on the first network according to the third loss and the fourth loss.

[0065] In some implementation examples, the weights of the third loss and the fourth loss can be obtained respectively, and the weights of the two can be the same or different, which is not limited here. The total loss is then determined based on the weighted sum of the third loss and the fourth loss, and the first network is self-supervised trained based on the total loss. Among them, the third loss includes the first loss and / or the second loss. Taking the third loss including the first loss and the second loss as an example, the first network is trained together based on the first loss, the second loss and the fourth loss until the total loss meets the requirements. In addition, when adjusting the parameters of the first network according to the first loss, the second loss and the fourth loss, the relevant parameters of the second network will also be adjusted according to the parameter adjustment results of the first network, which will not be repeated here.

[0066] For ease of understanding, please refer to Figure 2A network training schematic diagram shown clearly illustrates the relationship between the first network, the second network and the third network, wherein the first network and the second network share the third network, the input of the first network is a mask image block group, the input of the second network is an enhanced image block group, and the output of the third network is the first posture recognition information corresponding to the first network and the second posture recognition information corresponding to the second network.

[0067] exist Figure 2 Based on this, for some specific implementation examples, please refer to Figure 3 A network training schematic diagram is shown, in which the structures of the first network and the second network are the same, and both can be Transformer networks; wherein the first network is regarded as a student network, the second network is regarded as a teacher network, and the third network can be implemented using an MLP network, and the student network and the teacher network share the MLP network.

[0068] exist Figure 3 , and an image block group after the first enhanced image is cut by performing a first enhancement process on the first object sample image (referred to as the first enhanced image block group), and an image block group after the second enhanced image is cut by performing a second enhancement process on the first object sample image (referred to as the second enhanced image block group). For the sake of distinction, the image cut by light lines corresponds to the first enhancement process, and the image cut by dark lines corresponds to the second enhancement process. Subsequently, masking will be performed on some image blocks in the first enhanced image block group and the second enhanced image block group to obtain a first masked image block group and a second masked image block group. Figure 3 In the example, a column of light-colored blocks represents the feature vector of the first enhanced image block group, a column of dark-colored blocks represents the feature vector of the second enhanced image block group, and a column of missing blocks (i.e. Figure 3 The light-colored blocks (white blocks with slashes in the figure) represent the feature vectors of the first mask image block group, and the dark-colored blocks with missing blocks in a column represent the feature vectors of the second mask image block group. In specific implementation, some image blocks in the first mask image block group and some image blocks in the second mask image block group can be masked. Figure 3 It is shown that the processed image block group can be initially converted into the representation form of a feature vector so that the student network or the teacher network can process it on this basis. The MLP network can further process based on the information output by the student network and the teacher network, respectively, to generate first posture recognition information corresponding to the student network and second posture recognition information corresponding to the teacher network. In practical applications, the first posture recognition information may include information output by a specified network layer of the student network in addition to the recognition posture and image block information output by the MLP network, which is not limited here.

[0069] Considering that the first enhancement process or the second enhancement process may have a rotation or offset process, Figure 3 It is also indicated that a posture calibration method such as an inverse matrix can be used to restore the recognition posture output by the MLP to match the posture in the sample image, so as to facilitate subsequent posture comparison. Among them, the first posture recognition information output by the MLP includes both the recognition posture (represented by the first single block) and the image block information (represented by a column of blocks located below the first single block). The difference between the recognition posture corresponding to the first mask image block group (the aforementioned first recognition posture) and the recognition posture corresponding to the second enhanced image block group (the aforementioned fourth recognition posture), as well as the difference between the recognition posture corresponding to the second mask image block group (the aforementioned second recognition posture) and the recognition posture corresponding to the first enhanced image block group (the aforementioned third recognition posture) can be used to determine the posture loss L. pose (the aforementioned first loss); and, according to the difference between the image block information corresponding to the first mask image block group and the image block information corresponding to the first enhanced image block group, and according to the difference between the image block information corresponding to the second mask image block group and the image block information corresponding to the second enhanced image block group, determine the image block loss L patch (the aforementioned second loss). In addition, it is also indicated that an image reconstruction operation can be performed based on the output information of the student network, and the reconstruction loss L is determined based on the difference between the reconstructed image and the input image of the student network. recon (the fourth loss mentioned above), the subsequent pose , image block loss L patch and the reconstruction loss L recon The total loss L is calculated and used to train the student network until the total loss L converges to a preset threshold range, thereby obtaining the trained student network. During the training of the student network, the parameters of the teacher network can be adjusted accordingly based on the parameter adjustment results of the student network.

[0070] For ease of understanding, the posture loss L is given below pose , image block loss L patch and the reconstruction loss L recon Specific implementation example:

[0071] Assume P s Represents the student network, P t represents the teacher network, u and v represent the first enhancement processing method and the second enhancement processing method respectively, and the first posture recognition information can be obtained by It indicates that, are posture information obtained after the student network analyzes and processes the mask image block group of the first enhanced image and the mask image block group of the second enhanced image; the second posture recognition information can be represented by U and V, and U and V are posture information obtained after the teacher network analyzes and processes the enhanced image block group of the first enhanced image and the enhanced image block group of the second enhanced image; specifically, U=P t (u), V = P t (v), you can refer to the following formula:

[0072]

[0073]

[0074] L recon= ‖M⊙(T 4 -x)‖ 1

[0075] Among them, T 4 represents four times upsampling based on image block information, x represents the input image corresponding to the student network, and M represents the occluded image block area. pose and L patch is the cross entropy loss, L recon is the L1 loss. In some specific implementation examples, the above losses can be directly added together to obtain the total loss L=L pose +L patch +L recon In practical applications, L pose , L patch , L recon The weights of each network are then added together to obtain the total loss L, which is not limited here. After obtaining the total loss L, the network parameters can be adjusted in the direction of reducing the total loss L. For example, the parameters of the student network can be adjusted first, and then based on the adjusted parameters of the student network, the parameters of the teacher network are updated using the EMA (Exponential Moving Average) method until the total loss L converges to the preset threshold, indicating that a network that meets expectations is obtained and self-supervised training is completed.

[0076] After obtaining the first network after the self-supervised training, the embodiment of the present disclosure can directly construct an object posture recognition model based on the first network after the self-supervised training. In order to further improve the accuracy and reliability of the object posture recognition model, in practical applications, the following steps (1) to (3) can be referred to for execution:

[0077] Step (1), obtaining a second object sample image; wherein the second object sample image is an image containing a target object, and the second object sample image carries a posture label of the target object. In practical applications, since the first object sample image does not require a posture label, a large number of first object sample images can be collected quickly and easily, and since the second object sample image requires a posture label, the number of collected images is usually lower than that of the first object sample images.

[0078] Step (2) uses the second object sample image to perform supervised training on the first network after self-supervised training. Specifically, the posture recognition information of the second object sample image can be obtained through the first network after self-supervised training, and the network parameters of the first network after self-supervised training are adjusted again according to the difference between the posture recognition information and the posture label, and the parameters of the first network are further optimized through supervised training.

[0079] In some specific examples, after the self-supervised training, the first network can also obtain posture recognition information with the help of other networks. When the above step (2) is implemented, the first network and the fourth network after the self-supervised training can be supervised by using the second object sample image; wherein the first network after the self-supervised training is used to extract the feature vector of the second object sample image, and the fourth network is used to identify the posture of the target object in the second object sample image based on the feature vector of the second object sample image. In practical applications, the structure of the fourth network can be the same as that of the third network, or it can be different from the structure of the third network. For example, the fourth network can be an MLP network or a PyMAF (Pyramidal Mesh Alignment Feedback Loop) network. For example, it can be a three-stage key point feedback network, which is not limited here. In the above manner, based on the information output by the first network, the fourth network can be used to more accurately perform posture recognition.

[0080] Step (3), constructing an object posture recognition model based on the first network after supervised training.

[0081] Specifically, the object posture recognition model can be directly obtained based on the first network after supervised training and the fourth network after supervised training. Among them, the first network after supervised training can be used as the backbone network in the object posture recognition model, and the fourth network after supervised training can be used as the recognition head network of the object posture recognition model. The object posture recognition model obtained in the above manner can be directly used to perform posture recognition on an image containing a target object.

[0082] For easier understanding, please refer to Figure 4The structure diagram of an object posture recognition model shown in FIG. 1 shows that the first network and the fourth network are connected; wherein the first network is used as a backbone network and the fourth network is used as a head network. Further, taking the target object as a human hand as an example, see Figure 5 As shown in the figure, an application diagram of an object posture recognition model is shown. By inputting a hand image into the object posture recognition model, gesture recognition information output by the object posture recognition model can be obtained. Then, a three-dimensional hand model can be constructed based on the gesture recognition information, which can be well applied to scenarios such as AR (augmented reality) games.

[0083] Through the method for constructing the above-mentioned object posture recognition model provided by the embodiment of the present disclosure, network training can be achieved by adopting a self-supervised method, and the required training cost is relatively low. Moreover, since a large number of sample images that do not need to be labeled can be easily collected for training, it is also helpful to improve the robustness and accuracy of the object posture recognition model. In addition, the object posture recognition model is constructed based on the first network, and the first network processes the mask image block group during training, so the information processing capability is good, which also helps to further improve the accuracy of the posture recognition results. Furthermore, the first network can also be supervised based on the labeled sample images to further optimize the parameters of the first network, which can further improve the performance of the object posture recognition model and ensure the accuracy and reliability of the object posture recognition results.

[0084] Furthermore, the present disclosure provides a method for object posture recognition, see Figure 6 The flowchart of an object posture recognition method provided by the embodiment of the present disclosure is shown, and the method mainly includes the following steps S602 to S604:

[0085] Step S602: obtaining an image to be recognized.

[0086] Step S604, using a pre-built object posture recognition model to recognize the posture of the target object in the image to be recognized; wherein the object posture recognition model is obtained based on the aforementioned object posture recognition model construction method, which will not be described in detail here.

[0087] Through the above method, the accuracy and reliability of object posture recognition can be effectively improved.

[0088] Corresponding to the aforementioned method for constructing an object posture recognition model, the embodiment of the present disclosure further provides a device for constructing an object posture recognition model. Figure 7 This is a schematic diagram of a structure of a device for constructing an object posture recognition model provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in an electronic device, such as Figure 7 As shown, the device for constructing the object posture recognition model includes:

[0089] The sample image acquisition module 702 is used to acquire a first object sample image; wherein the first object sample image is an image containing a target object;

[0090] The sample image enhancement module 704 is used to perform enhancement processing on the first object sample image to obtain a sample enhanced image;

[0091] An image segmentation and masking module 706 is used to segment the sample enhanced image to obtain an enhanced image block group, and perform masking processing on some image blocks in the enhanced image block group to obtain a masked image block group;

[0092] A posture recognition module 708, configured to obtain first posture recognition information of the target object through a first network based on the mask image block group; and obtain second posture recognition information of the target object through a second network based on the enhanced image block group;

[0093] A self-supervised training module 710, configured to perform self-supervised training on the first network according to the difference between the first posture recognition information and the second posture recognition information;

[0094] The model building module 712 is used to build an object posture recognition model based on the first network after self-supervised training.

[0095] Since the above-mentioned device does not require sample images to carry posture labels, the cost of collecting sample images is greatly reduced. It can not only effectively reduce the cost of model training, but also conveniently collect a large number of sample images for training, which helps to improve the accuracy of posture recognition results; and the object posture recognition model is constructed based on the first network, and the first network processes the mask image block group during training, so it has good information processing capabilities, which also helps to further improve the accuracy of posture recognition results.

[0096] In some embodiments, the sample enhanced image includes a first enhanced image and a second enhanced image; the sample image enhancement module 704 is specifically used to: perform a first enhancement process on the first object sample image to obtain a first enhanced image; and perform a second enhancement process on the first object sample image to obtain a second enhanced image; wherein the first enhancement process is different from the second enhancement process.

[0097] In some embodiments, the first posture recognition information includes: a first recognition posture obtained based on the mask image block group of the first enhanced image, and a second recognition posture obtained based on the mask image block group of the second enhanced image; the second posture recognition information includes: a third recognition posture obtained based on the enhanced image block group of the first enhanced image, and a fourth recognition posture obtained based on the enhanced image block group of the second enhanced image.

[0098] In some embodiments, the self-supervised training module 710 is specifically used to: determine a first loss based on the difference between the first recognition posture and the fourth recognition posture, and the difference between the second recognition posture and the third recognition posture; and perform self-supervised training on the first network based on the first loss.

[0099] In some embodiments, the first posture recognition information includes: image block information in the mask image block group of the first enhanced image and image block information in the mask image block group of the second enhanced image; the second posture recognition information includes: image block information in the enhanced image block group of the first enhanced image and image block information in the enhanced image block group of the second enhanced image.

[0100] In some embodiments, the self-supervised training module 710 is specifically used to: determine a second loss based on the difference between the image block information in the mask image block group of the first enhanced image and the image block information in the enhanced image block group of the first enhanced image, and the difference between the image block information in the mask image block group of the second enhanced image and the image block information in the enhanced image block group of the second enhanced image; and perform self-supervised training on the first network based on the second loss.

[0101] In some embodiments, the self-supervised training module 710 is specifically used to: perform self-supervised training on the first network and the second network based on the difference between the first posture recognition information and the second posture recognition information, including: obtaining a third loss based on the difference between the first posture recognition information and the second posture recognition information; performing image reconstruction using the first posture recognition information to obtain a reconstructed image; obtaining a fourth loss based on the difference between the reconstructed image and the sample enhanced image; and performing self-supervised training on the first network based on the third loss and the fourth loss.

[0102] In some embodiments, the first network and the second network are respectively connected to the third network; the posture recognition module 708 is specifically used to: obtain the feature vector of the mask image block group through the first network, and obtain the first posture recognition information of the target object corresponding to the feature vector of the mask image block group through the third network; obtain the feature vector of the enhanced image block group through the second network, and obtain the second posture recognition information of the target object corresponding to the feature vector of the enhanced image block group through the third network.

[0103] In some embodiments, the model building module 712 is specifically used to: obtain a second object sample image; wherein the second object sample image is an image containing the target object, and the second object sample image carries a posture label of the target object; use the second object sample image to perform supervised training on the first network after self-supervised training; and build an object posture recognition model based on the first network after supervised training.

[0104] In some embodiments, the model building module 712 is specifically used for: using the second object sample image to perform supervised training on the first network after self-supervised training, including: using the second object sample image to perform supervised training on the first network after self-supervised training and the fourth network; wherein the first network after self-supervised training is used to extract the feature vector of the second object sample image, and the fourth network is used to identify the posture of the target object in the second object sample image based on the feature vector of the second object sample image; and obtaining an object posture recognition model based on the first network after supervised training and the fourth network after supervised training.

[0105] The device for constructing an object posture recognition model provided in the embodiments of the present disclosure can execute the method for constructing an object posture recognition model provided in any embodiment of the present disclosure, and has the functional modules and beneficial effects corresponding to the execution method.

[0106] Corresponding to the aforementioned object posture recognition method, the embodiment of the present disclosure further provides an object posture recognition device, Figure 8 FIG. 1 is a schematic diagram of the structure of an object gesture recognition device provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated in an electronic device, such as Figure 8 As shown, the object posture recognition device includes:

[0107] The to-be-recognized image acquisition module 802 is used to acquire the to-be-recognized image;

[0108] The posture recognition module 804 is used to recognize the posture of the target object in the image to be recognized by using a pre-built object posture recognition model; wherein the object posture recognition model is obtained based on the construction method of the aforementioned object posture recognition model.

[0109] The above device can effectively improve the accuracy and reliability of object posture recognition.

[0110] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device embodiment can refer to the corresponding process in the method embodiment, and will not be repeated here.

[0111] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing processor executable instructions; a processor, configured to read executable instructions from the memory and execute the instructions to implement the above-mentioned object posture recognition model construction method, or implement the above-mentioned object posture recognition method.

[0112] Fig. 9 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Fig. 9 As shown, the electronic device 900 includes one or more processors 901 and a memory 902 .

[0113] The processor 901 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 900 to perform desired functions.

[0114] The memory 902 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 901 may execute the program instructions to implement the object posture recognition model construction method, object posture recognition method and / or other desired functions of the embodiment of the present disclosure described above. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0115] In one example, the electronic device 900 may further include: an input device 903 and an output device 904 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0116] In addition, the input device 903 may also include, for example, a keyboard, a mouse, and the like.

[0117] The output device 904 can output various information to the outside, including the determined distance information, direction information, etc. The output device 904 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0118] Of course, to simplify, Fig. 9Only some of the components related to the present disclosure in the electronic device 900 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 900 may also include any other appropriate components.

[0119] In addition to the above-mentioned methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the object posture recognition model construction method and object posture recognition method provided by the embodiments of the present disclosure.

[0120] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0121] In addition, the embodiments of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the object posture recognition model construction method and object posture recognition method provided by the embodiments of the present disclosure.

[0122] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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.

[0123] The embodiments of the present disclosure also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method for constructing an object posture recognition model and the method for object posture recognition in the embodiments of the present disclosure.

[0124] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0125] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0126] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0127] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0128] It should be noted that, in this article, relational terms such as "first" and "second" are only used 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 "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0129] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be 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 disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for constructing an object posture recognition model, It is characterized in that include: Acquire a first object sample image; wherein the first object sample image is an image containing a target object; Performing enhancement processing on the first object sample image to obtain a sample enhanced image; Segmenting the sample enhanced image to obtain an enhanced image block group, and performing mask processing on some image blocks in the enhanced image block group to obtain a masked image block group; Based on the mask image block group, obtaining first posture recognition information of the target object through a first network; and based on the enhanced image block group, obtaining second posture recognition information of the target object through a second network; performing self-supervised training on the first network according to a difference between the first posture recognition information and the second posture recognition information; An object posture recognition model is constructed based on the first network after self-supervised training.

2. The method according to claim 1, It is characterized in that The sample enhanced image includes a first enhanced image and a second enhanced image; the step of performing enhancement processing on the first object sample image to obtain the sample enhanced image includes: Performing a first enhancement process on the first object sample image to obtain a first enhanced image; and performing a second enhancement process on the first object sample image to obtain a second enhanced image; wherein the first enhancement process is different from the second enhancement process.

3. The method according to claim 2, It is characterized in that The first posture recognition information includes: a first recognition posture obtained based on the mask image block group of the first enhanced image, and a second recognition posture obtained based on the mask image block group of the second enhanced image; The second posture recognition information includes: a third recognized posture obtained based on the enhanced image block group of the first enhanced image, and a fourth recognized posture obtained based on the enhanced image block group of the second enhanced image.

4. The method according to claim 3, It is characterized in that The step of performing self-supervisory training on the first network according to the difference between the first posture recognition information and the second posture recognition information comprises: determining a first loss according to a difference between the first recognition gesture and the fourth recognition gesture, and a difference between the second recognition gesture and the third recognition gesture; The first network is trained in a self-supervised manner based on the first loss.

5. The method according to claim 2, It is characterized in that The first posture recognition information includes: image block information in the mask image block group of the first enhanced image and image block information in the mask image block group of the second enhanced image; The second posture recognition information includes: image block information in an enhanced image block group of the first enhanced image and image block information in an enhanced image block group of the second enhanced image.

6. The method according to claim 5, It is characterized in that The step of performing self-supervisory training on the first network according to the difference between the first posture recognition information and the second posture recognition information comprises: determining a second loss according to a difference between image block information in the mask image block group of the first enhanced image and image block information in the enhanced image block group of the first enhanced image, and a difference between image block information in the mask image block group of the second enhanced image and image block information in the enhanced image block group of the second enhanced image; The first network is trained by self-supervision based on the second loss.

7. The method according to claim 1, It is characterized in that The step of performing self-supervisory training on the first network according to the difference between the first posture recognition information and the second posture recognition information comprises: obtaining a third loss according to a difference between the first posture recognition information and the second posture recognition information; Reconstructing an image using the first posture recognition information to obtain a reconstructed image; Obtaining a fourth loss according to a difference between the reconstructed image and the sample enhanced image; The first network is trained by self-supervision according to the third loss and the fourth loss.

8. The method according to any one of claims 1 to 7, It is characterized in that The first network and the second network are respectively connected to a third network; The acquiring the first posture recognition information of the target object through the first network based on the mask image block group includes: acquiring the feature vector of the mask image block group through the first network, and acquiring the first posture recognition information of the target object corresponding to the feature vector of the mask image block group through the third network; The method of obtaining the second posture recognition information of the target object through the second network based on the enhanced image block group includes: obtaining the feature vector of the enhanced image block group through the second network, and obtaining the second posture recognition information of the target object corresponding to the feature vector of the enhanced image block group through the third network.

9. The method according to any one of claims 1 to 7, It is characterized in that The step of constructing an object posture recognition model based on the first network after self-supervisory training includes: Acquire a second object sample image; wherein the second object sample image is an image containing the target object, and the second object sample image carries a posture label of the target object; Performing supervised training on the first network after the self-supervised training using the second object sample image; An object posture recognition model is constructed based on the first network after supervised training.

10. The method according to claim 9, It is characterized in that The using the second object sample image to perform supervised training on the first network after the self-supervised training is completed includes: Performing supervised training on the first network and the fourth network after the self-supervised training using the second object sample image; wherein the first network after the self-supervised training is used to extract a feature vector of the second object sample image, and the fourth network is used to recognize the posture of the target object in the second object sample image based on the feature vector of the second object sample image; The method of constructing an object posture recognition model based on the first network after supervised training includes: An object posture recognition model is obtained based on the first network after supervised training and the fourth network after supervised training.

11. A method for object posture recognition, It is characterized in that include: Obtain an image to be recognized; The posture of the target object in the image to be recognized is recognized using a pre-constructed object posture recognition model; wherein the object posture recognition model is obtained based on the object posture recognition model construction method according to any one of claims 1 to 10.

12. A device for constructing an object posture recognition model, It is characterized in that include: A sample image acquisition module, used to acquire a first object sample image; wherein the first object sample image is an image containing a target object; A sample image enhancement module, used for performing enhancement processing on the sample image of the first object to obtain a sample enhanced image; An image segmentation and masking module, used for segmenting the sample enhanced image to obtain an enhanced image block group, and performing masking processing on some image blocks in the enhanced image block group to obtain a masked image block group; a posture recognition module, configured to obtain first posture recognition information of the target object through a first network based on the mask image block group; and obtain second posture recognition information of the target object through a second network based on the enhanced image block group; A self-supervised training module, configured to perform self-supervised training on the first network according to a difference between the first posture recognition information and the second posture recognition information; A model building module is used to build an object posture recognition model based on the first network after self-supervised training.

13. An object posture recognition device, It is characterized in that include: An image acquisition module to be identified, used to acquire an image to be identified; A posture recognition module, used to recognize the posture of the target object in the image to be recognized by using a pre-built object posture recognition model; wherein the object posture recognition model is obtained based on the object posture recognition model construction method described in any one of claims 1 to 10.

14. An electronic device, It is characterized in that The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for constructing an object posture recognition model described in any one of claims 1 to 10, or to implement the object posture recognition method described in claim 11.

15. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the method for constructing an object posture recognition model described in any one of claims 1 to 10, or to implement the object posture recognition method described in claim 11.

Citation Information

Patent Citations

  • Image searching method and device, computer readable storage medium and electronic equipment

    CN115687670A

  • Gait recognition method, gait recognition model training method and device, terminal and storage medium

    CN115761879A

  • Self-supervised single-view 3D reconstruction via semantic consistency

    US20210287430A1

  • System and a method for artificial neural-network based animation

    US20220020195A1