Model construction method and device, object recognition method and device, equipment, medium and product

By using the feature extraction network and object recognition network in the limb recognition model to build a target recognition model, the problem of sufficient training data for the hand frame recognition network is solved, efficient and accurate hand frame recognition is achieved, and the complexity of model construction is reduced.

CN118675221APending Publication Date: 2024-09-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310267677.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing technology, a large amount of training data is required during the training process of the hand frame recognition network, which results in inaccurate hand frame recognition when the label data is limited, making it difficult to achieve accurate image hand frame recognition.

Method used

By obtaining the limb feature extraction network and object recognition network in the limb recognition model, build a target recognition model, use the known limb feature extraction network to extract image features, and update the recognition results through the object recognition network to reduce the training complexity of the feature extraction network. , improve recognition accuracy.

Benefits of technology

It achieves a high-precision target recognition model at a lower labeling cost, improves training efficiency and recognition accuracy, and reduces the difficulty of model construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675221A
    Figure CN118675221A
Patent Text Reader

Abstract

The embodiment of the invention provides a model construction method and device, an object recognition method and device, equipment, a medium and a product, and the method can comprise the steps that a limb recognition model is obtained, the limb recognition model comprises a limb feature extraction network with known parameters, and the limb recognition model is used for recognizing limbs; inputting a training image into the limb feature extraction network to obtain image limb features; based on the image limb features, an object recognition result of a training image is determined through an object recognition network, the object recognition network is updated based on the object recognition result, and an object recognized by the object recognition network is a local part in a limb; and based on the limb feature extraction network and the updated object identification network, constructing a target identification model which is used for executing identification of local parts of limbs in the target image. The technical problems that target recognition model training is complex and low in precision are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of image processing technology, and in particular to a model building, object recognition method, device, equipment, medium and product. Background Art

[0002] Image-based gesture recognition refers to identifying the hand movements made by people in an image. By identifying hand movements, gesture control can be performed to improve interaction efficiency. Currently, hand movement recognition requires first identifying the area where the hand is located in the image, also known as the hand frame, then extracting the local image corresponding to the hand frame, and then recognizing the gesture from the local image.

[0003] At present, the method for identifying hand frames in images mainly uses a large number of training images, including images and labels of hand frames in images, to train the image recognition network model. However, the current hand frame recognition network training process requires a large amount of training data to complete the network training. When the label data is limited, the problem of inaccurate hand frame recognition frequently occurs.

[0004] Therefore, how to accurately identify the hand frame in the image is a technical problem that needs to be solved urgently. Summary of the invention

[0005] The embodiments of the present disclosure provide a model construction, object recognition method, device, equipment, medium and product to overcome the current problems of difficulty in hand frame training and low recognition accuracy.

[0006] In a first aspect, an embodiment of the present disclosure provides a model building method, comprising:

[0007] Acquire a limb recognition model, wherein the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition model is used to recognize limbs;

[0008] Inputting the training image into the limb feature extraction network to obtain image limb features;

[0009] Based on the image limb features, determining the object recognition result of the training image through an object recognition network, and updating the object recognition network based on the object recognition result, wherein the object recognized by the object recognition network is a local part of the limb;

[0010] Based on the limb feature extraction network and the updated object recognition network, a target recognition model is constructed, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

[0011] In a second aspect, an embodiment of the present disclosure provides an object recognition method, including:

[0012] In response to an image recognition request, receiving an image to be recognized;

[0013] Acquire a trained target recognition model, wherein the target recognition model includes a limb feature extraction network with known parameters and an object recognition network obtained through training; the object recognized by the object recognition network is a local part of a limb;

[0014] Based on the limb feature extraction network with known parameters, extract the limb features of the image to be identified;

[0015] Based on the object recognition network obtained through training, an object recognition result corresponding to the image limb feature of the image to be recognized is determined, and the target recognition model is obtained by adopting the model construction method described in the first aspect.

[0016] In a third aspect, an embodiment of the present disclosure provides a model building device, including:

[0017] A first acquisition unit is used to acquire a limb recognition model, wherein the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition model is used to recognize limbs;

[0018] A feature extraction unit, used for inputting a training image into the limb feature extraction network to obtain image limb features;

[0019] A model training unit, for determining an object recognition result of a training image through an object recognition network based on the image limb features, and updating the object recognition network based on the object recognition result, wherein the object recognized by the object recognition network is a local part of a limb;

[0020] The model building unit is used to build a target recognition model based on the limb feature extraction network and the updated object recognition network, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

[0021] In a fourth aspect, an embodiment of the present disclosure provides an object recognition device, including:

[0022] An image receiving unit, configured to receive an image to be recognized in response to an image recognition request;

[0023] A second acquisition unit is used to acquire a target recognition model obtained through training, wherein the target recognition model includes a limb feature extraction network with known parameters and an updated object recognition network;

[0024] A feature extraction unit, configured to extract image limb features of the image to be identified based on the limb feature extraction network with known parameters;

[0025] The object recognition unit is used to determine the object recognition result corresponding to the image limb feature of the image to be recognized based on the object recognition network obtained by the training, and the target recognition model is obtained by adopting the model construction method described in the first aspect.

[0026] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0027] The memory stores computer-executable instructions;

[0028] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the model building method described in the first aspect and various possible designs of the first aspect or the object recognition method described in the second aspect and various possible designs of the second aspect.

[0029] In a sixth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the model building method described in the first aspect and various possible designs of the first aspect or the object recognition method described in the second aspect and various possible designs of the second aspect are implemented.

[0030] In the seventh aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the model building method described in the first aspect and various possible designs of the first aspect or the object recognition method described in the second aspect and various possible designs of the second aspect.

[0031] The technical solution provided by this embodiment can obtain a limb recognition model. The parameters of the limb feature extraction network in the limb recognition model are known and can be directly used to extract the image limb features of the training image. The image limb features can be object recognized by the object recognition network to obtain the object recognition result of the training image. The object recognition result can be used to update the object recognition network, and the object recognition network can be a local part of the object limb. By directly using the limb feature extraction network to extract the corresponding features, there is no need to train the feature extraction network, which can greatly reduce the difficulty of model construction. At the same time, the image limb features that can be learned by the limb feature extraction network can be applied to the training of the object recognition network, so that the object recognition network can learn the image limb features and perform object recognition. The object recognized by the object recognition network can be a local part of the limb. By reusing the limb feature extraction parameters in the limb recognition model, the object recognition network can be updated using the object recognition result, reducing the number of updated networks, and then realizing fast and accurate training of the object recognition network. This technical solution can achieve the effect of improving training efficiency and effectively improving training accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present disclosure 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, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0033] Figure 1 An application network architecture diagram of an object recognition method provided by an embodiment of the present disclosure;

[0034] Figure 2 A flowchart of an embodiment of a model building method provided by an embodiment of the present disclosure;

[0035] Figure 3 A flowchart of another embodiment of a model building method provided by the embodiment of the present disclosure;

[0036] Figure 4 An example diagram of a target recognition model provided by an embodiment of the present disclosure;

[0037] Figure 5 A flowchart of an embodiment of an object recognition method provided by an embodiment of the present disclosure;

[0038] Figure 6 A schematic diagram of the structure of an image processing device provided by an embodiment of the present disclosure;

[0039] Figure 7 A schematic diagram of the structure of an object recognition device provided by an embodiment of the present disclosure;

[0040] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0042] The technical solution disclosed in the present invention can be applied to the recognition scenarios of key parts of an image, such as a hand frame and a palm. By adopting a trained limb recognition model, the limb feature extraction network in the limb recognition model is involved in the training process of the recognition network of objects such as a hand frame and a palm. By reusing the limb feature extraction network and updating the object recognition network, the construction of the target recognition model can be completed, thereby improving the construction efficiency of the recognition model.

[0043] In the related art, hand recognition is an important branch in the field of artificial intelligence, which can be applied to many fields such as home appliances, transportation, finance, and entertainment. In order to obtain accurate hand recognition results, a processing flow of first identifying the hand frame, extracting a partial image of the hand frame, and identifying the hand gesture in the partial image can generally be adopted. From this process, it can be seen that the recognition accuracy of the hand frame plays an important role in the hand recognition accuracy. At present, the hand frame recognition model is generally obtained through learning by machine learning models, neural networks, etc. Generally, the hand frame recognition model can be trained using images and training data corresponding to the hand frame annotations in the image. A large amount of training data is required in this training process. Even if a large amount of training data is used to train the hand frame recognition model, the accuracy is not high, resulting in low hand recognition accuracy.

[0044] In order to solve the above technical problems, the technical solution disclosed in the present invention takes into account that the hands are essentially partial features of the human body, and currently, the limb recognition model also needs to be trained. Therefore, the feature extraction network in the limb recognition model can be used on the basis of the limb recognition model obtained through training. After the feature extraction network extracts features from the image, a regression network for the hands, palms, and other parts is added to realize the extraction of local parts of the limbs. In this way, the feature extraction network in the limb recognition model can be used to extract limb features, and the limb features learned by the model can be applied to the learning process of the object recognition network of the local parts, thereby improving the extraction accuracy of the local parts of the limbs and reducing the complexity of the target recognition model training.

[0045] In an embodiment of the present disclosure, a limb recognition model can be obtained, and the limb recognition model can include a limb feature extraction network with known parameters. In addition, the limb recognition model can also include a limb recognition network with known parameters, and the limb recognition network can recognize the limb as a whole based on the features extracted by the limb feature extraction network. The limb recognition model can be a model obtained through training, and the feature extraction network can be reused on the basis of the limb recognition model. By inputting the training image into the limb feature extraction network, the image limb features can be obtained, and the image limb features can be used for object recognition of the object recognition network, and the object recognition network is updated by the obtained object recognition results, so as to achieve the purpose of reusing the limb feature extraction network. The object recognized by the object recognition network can be a representation of a local limb part in the image to be recognized, such as a hand frame, a palm, etc. that represents a hand. By fixing the limb feature extraction network, the limb feature extraction network can be directly used to extract the corresponding features, and the extracted limb features can be directly used to train the object recognition network, which can greatly reduce the difficulty of building the target recognition model. At the same time, the target recognition model can be constructed using the limb feature extraction network and the updated object recognition network, and the local parts of the limb can be more accurately extracted through the target recognition model, and the target recognition model can be quickly and accurately obtained. This technical solution can achieve the effect of improving both training efficiency and effectively improving training accuracy.

[0046] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0047] Figure 1 This is an application network architecture diagram according to the object recognition method disclosed in the present invention. The application network architecture according to the embodiment of the present invention may include an electronic device and a client connected to the electronic device through a local area network or a wide area network. It is assumed that the electronic device may be a personal computer, an ordinary server, a super personal computer, a cloud server or other type of server. The present invention does not make too many restrictions on the specific type of the electronic device. The client may be, for example, a mobile phone, a tablet computer, a personal computer, a smart home appliance, a wearable device or other terminal device. The present invention does not make too many restrictions on the specific type of the client. Figure 1As shown, taking the electronic device as the cloud server 1 and the first client 2 as the mobile phone 21 and the tablet computer 22 as an example, the target recognition model can be trained in the cloud server 1 based on the technical solution of the present disclosure. Any first client 2 can request the cloud server 1 to obtain the trained target recognition model. For example, the client can send a recognition request to the cloud server to obtain the trained target recognition model. Of course, in actual applications, the cloud server can also directly receive the image to be recognized, and recognize the target object among the objects to be recognized based on the object recognition method of the present disclosure.

[0048] When the cloud server 1 adopts the technical solution of the present disclosure to build a model, the limb feature extraction network 11 and the limb recognition network 12 in the limb recognition model can be fixed. An object recognition network 13 is added after the limb feature extraction network 11. The object recognition network 13 can be, for example, one or more of a hand frame recognition network and a palm recognition network. During the training process of the object recognition network 13, the limb feature extraction network 11 and the limb recognition network 12 are fixed, that is, the limb feature extraction network 11 and the limb recognition network 12 do not participate in the training, and the object recognition network 13 only needs to be trained.

[0049] refer to Figure 2 , Figure 2 A flowchart of an embodiment of a model building method provided in an embodiment of the present disclosure, the model building method may include the following steps:

[0050] 201: Obtain a limb recognition model, the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition network is used to recognize limbs.

[0051] Optionally, the limb recognition model can be used to recognize limbs in an image, specifically the entire limb, which may include the entire limb area and / or limb key points. The entire limb area may be a rectangular frame that can contain the entire human body, and the limb key points may include position points or coordinate points corresponding to various local parts of the limb. The local parts of the limb may include: the hands, feet, upper and lower limbs, head and other local parts of the limb.

[0052] The limb recognition model can be obtained by pre-training. The limb recognition model may include a limb feature extraction network with known parameters and a limb recognition network with known parameters. The limb feature extraction network can be used to extract limb features of an input image. The limb recognition network can perform regression calculation on the limb features to obtain corresponding human body frames or limb key points, which can be set specifically according to task requirements.

[0053] Exemplarily, the limb recognition model can be obtained by building a network structure of the convolutional neural network, recurrent neural network, etc. In this embodiment, there are no excessive restrictions on the specific algorithm used in the limb recognition network.

[0054] 202: Input the training image into the limb feature extraction network to obtain the image limb features.

[0055] The limb feature extraction network in step 202 is a trained limb feature extraction network.

[0056] The training image may include a two-dimensional training image and / or a three-dimensional training image. The limb feature extraction network may be directly used to extract limb features of the training image. The image limb features may be overall features of the limb in the training image.

[0057] 203: Based on the image limb features, determine the object recognition result of the training image through the object recognition network, and update the object recognition network based on the object recognition result. The object recognized by the object recognition network is a local part of the limb.

[0058] Optionally, the object recognition network can identify local limb parts of the input image limb features to obtain an object recognition result. The object recognition result is the recognition result of a local part of the limb in the training image. The local part of the limb may include, for example, the hand, the center point of the hand, the eye and / or the center point of the eye of the limb. In this embodiment, the specific type of the local part of the limb is not limited too much.

[0059] Based on the object recognition result, updating the object recognition network can be to determine the recognition error based on the object recognition result, and judge whether the object recognition network meets the convergence condition according to the recognition error. If so, it is determined that the current object recognition network is the updated object recognition network. If not, the object recognition network is updated based on the recognition error, and the process returns to step 203 to continue execution.

[0060] 204: Based on the limb feature extraction network and the updated object recognition network, a target recognition model is constructed, and the target recognition model is used to recognize the local parts of the limbs in the target image.

[0061] Optionally, the target recognition model may include a limb feature extraction network and an updated object recognition network, wherein the limb feature extraction network and the updated object recognition network may be used to perform recognition of local parts of a limb, such as recognition of a limb hand, recognition of a local limb part such as a hand center point, etc.

[0062] Optionally, the application steps of the target recognition model may include: extracting features of the input image through a limb feature extraction network, inputting features output by the limb feature extraction network into the updated object recognition network, identifying local parts of the limb through the object recognition network, and realizing the comprehensive application of the limb feature extraction network and the object recognition network.

[0063] Optionally, the target recognition model may also include: adding a feature enhancement network between the limb feature extraction network and the object recognition network, enhancing the output features of the limb feature extraction network through the feature enhancement network, and inputting the enhanced features into the object recognition network to identify local parts of the limb.

[0064] In the disclosed embodiment, a limb recognition model can be obtained, and the limb recognition model can include a limb feature extraction network with known parameters. In addition, the limb recognition model can also include a limb recognition network with known parameters, and the limb recognition network can recognize the limb as a whole based on the features extracted by the limb feature extraction network. The limb recognition model can be a trained model, and the feature extraction network can be reused on the basis of the limb model. By inputting the training image into the limb feature extraction network, the image limb features can be obtained, and the image limb features can be used for object recognition of the object recognition network, and the object recognition network is updated by the obtained object recognition results, so as to achieve the purpose of reusing the limb feature extraction network. The object recognized by the object recognition network can be a representation of a local limb part in the image to be recognized, such as a hand frame, a palm, etc. that represents the hand. By fixing the limb feature extraction network, the limb feature extraction network can be directly used to extract the corresponding features, and the extracted limb features can be directly used to train the object recognition network, which can greatly reduce the difficulty of building the target recognition model. At the same time, the target recognition model can be constructed using the limb feature extraction network and the updated object recognition network, and the local parts of the limb can be more accurately extracted through the target recognition model, and the target recognition model can be quickly and accurately obtained. This technical solution can achieve the effect of improving both training efficiency and effectively improving training accuracy.

[0065] In addition, since the parameters of the limb feature extraction network in the target recognition model are known, no additional feature network training is required. On the basis of the limb feature extraction network, the object recognition network can be trained separately, which reduces the complexity of the network that needs to be trained. Therefore, for simpler network training, a small number of training images with local limb labels can be used. Through the model construction method of this case, high-precision training of the object recognition network can be completed through a small number of labeled samples, that is, training images. On the basis of accurately training the object recognition network, a target recognition model with high recognition accuracy of local parts of the limbs is obtained, thereby achieving the purpose of achieving higher model training effects at lower labeling costs.

[0066] like Figure 3 FIG. 1 is a flowchart of another embodiment of a model building method provided by an embodiment of the present disclosure, which is different from the aforementioned embodiment in that, based on the image limb features, the object recognition result of the training image is determined through the object recognition network, which may include:

[0067] 301: Determine candidate parameters for the object recognition network; the candidate parameters are parameter values ​​of each network function in the object recognition network.

[0068] Optionally, the candidate parameters may be parameter values ​​of each network function in the object recognition network. The object recognition network may include multiple network functions, such as activation functions, excitation functions, etc. In some embodiments, each network function has a corresponding weight and an offset, which can generally be expressed as: y = ω*f(x)+b, where f(x) is the network function, ω is the weight of the network function, and b is the offset or bias of the network function. The candidate parameters may include the value of the weight and the value of the offset.

[0069] The candidate parameters can be obtained by parameter initialization, and the parameter initialization can be, for example, randomly determining the parameter values ​​corresponding to each network function, or obtaining historical parameters as candidate parameters. During a round of training, the candidate parameters of the object recognition network can remain unchanged. At the end of a round of training, the candidate parameters of the object recognition network can be updated to perform iterative training of the network.

[0070] 302: Determine an object recognition result corresponding to the image limb feature based on the object recognition network corresponding to the candidate parameters.

[0071] The limb feature extraction network can be an encoder in the target recognition model. The limb features in the image can be accurately extracted through the limb feature extraction network. In the process of building the object recognition model, the limb feature extraction network is known, and the image limb features of the training image can be extracted through the limb feature extraction network. The image limb features can be a vector or matrix that characterizes the limb characteristics in the training image.

[0072] Step 302 may specifically include: inputting the image limb features into the object recognition network corresponding to the candidate parameters to obtain the object recognition result. In addition, the image limb features may be feature enhanced, and the enhanced image limb features may be input into the object recognition network corresponding to the candidate parameters to obtain the object recognition result. The image limb features may also be processed in other ways and then input into the object recognition network corresponding to the candidate parameters.

[0073] The difference from the above embodiment is that in step 203, updating the object recognition network based on the object recognition result may further include:

[0074] 303: According to the object recognition result, determine whether the object recognition network meets the convergence condition; if so, execute step 304, if not, execute step 305.

[0075] 304: Determine the candidate parameters as target parameters, and determine the object recognition network corresponding to the target parameters as the updated object recognition network.

[0076] 305: Update the candidate parameters and return to step 302 to continue execution.

[0077] The training image may be associated with a recognition result label, and the recognition result label may be the annotation result of the local limb in the image. For example, when the local part identified by the object recognition network is a hand, the recognition result label may be the annotation result of the real rectangular frame where the hand is located, referred to as the hand frame label. When the local part identified by the object recognition network is the palm, the recognition result label may be the annotation result of the real coordinate point corresponding to the palm.

[0078] According to the object recognition result, determining whether the object recognition network meets the convergence condition may include: determining the recognition error through the object recognition result and the recognition result label corresponding to the training image, judging whether the object recognition network meets the convergence condition according to the recognition error, and if so, determining that the current object recognition network is the updated object recognition network, and if not, updating the object recognition network based on the recognition error.

[0079] The object recognition network can perform feature regression and classification on the limb features of the image to obtain the corresponding object recognition result. The object recognition result may include a rectangular frame corresponding to the area or the location point of the object. The result type of the object recognition result can be specifically determined according to the object characteristics of the recognized object. For example, the object recognition result may be a hand frame.

[0080] The object recognition result can be used for loss calculation of the object recognition network to obtain the recognition error. Judging whether the object recognition network meets the convergence condition according to the recognition error can include: judging whether the recognition error is less than the loss threshold, if so, determining that the recognition error meets the convergence condition, if not, determining that the recognition error does not meet the convergence condition.

[0081] Optionally, updating the candidate parameters may include: updating the candidate parameters based on a gradient descent algorithm and a recognition error to obtain updated candidate parameters.

[0082] In this embodiment, when training the object recognition network, the image limb features of the training image can be extracted using the limb feature extraction network, and the object recognition network corresponding to the candidate parameters can be used to perform local limb recognition on the image limb features to obtain object recognition results. The object recognition results are used to detect the convergence conditions of the object recognition network. The current candidate parameters of the object recognition network can be evaluated for their use effect through the convergence conditions, so that the object recognition network can be applied to the limb feature extraction network during the training process, reducing the complexity of the network that needs to be trained and improving the training efficiency of the object recognition network. In addition, the convergence conditions are used to judge whether the object recognition network has terminated training, accurately monitor the training process of the object recognition network, and improve the training accuracy of the object recognition network.

[0083] Furthermore, the difference from the above-mentioned embodiment is that the object recognition network includes a hand frame recognition network; based on the image limb features, determining the object recognition result of the training image through the object recognition network may include:

[0084] Based on a hand frame recognition network corresponding to the hand frame parameters, a hand frame recognition result corresponding to the image limb feature is determined, and the hand frame parameters are candidate parameters of the hand frame recognition network.

[0085] Update the object recognition network based on the object recognition results, including:

[0086] According to the hand frame recognition results, determine whether the object recognition network meets the convergence conditions;

[0087] If so, determining that the hand frame parameter corresponds to the hand frame recognition network is the object recognition network that has completed the update;

[0088] If not, update the hand frame parameters, return to the hand frame recognition network corresponding to the hand frame parameters, determine the hand frame recognition result corresponding to the image limb features, and continue to execute.

[0089] Optionally, based on a hand frame recognition network corresponding to the hand frame parameters, determining a hand frame recognition result corresponding to the image limb feature, where the hand frame parameters are candidate parameters of the hand frame recognition network, may include: inputting the image limb feature into the hand frame recognition network corresponding to the hand frame parameters to obtain the hand frame recognition result. The image limb feature may also be feature enhanced, and the feature-enhanced image limb feature is input into the hand frame recognition network corresponding to the hand frame parameters to obtain the hand frame recognition result.

[0090] Optionally, the hand frame recognition network can be used to recognize the hand frame in the limb features of the image. The hand frame recognition result can include a rectangular frame corresponding to the area where the hand is located in the image, which can be called a hand frame.

[0091] Optionally, in addition to the hand frame recognition network, the object recognition network may also include recognition networks of other human body parts, such as a palm recognition network, a face recognition network, etc., which may be specifically determined according to the recognition purpose or recognition requirement of the recognition network.

[0092] In this embodiment, based on the image limb features, hand frame recognition can be performed based on the hand frame recognition network corresponding to the hand frame parameters to obtain a hand frame recognition result. The hand frame recognition result can be used to determine whether the object recognition network meets the convergence condition. When the object recognition network does not meet the convergence condition, the hand frame parameters can be updated, that is, the update of the object recognition network is achieved. When the object recognition network meets the convergence condition, the hand frame recognition network corresponding to the hand frame parameters can be determined as the updated object recognition network. Whether the hand frame recognition network corresponding to the hand frame parameters meets the convergence condition is determined by the hand frame recognition result, and then the hand frame recognition network performs parameter update when the convergence condition is not met. It can achieve iterative update of the hand frame recognition network and obtain an accurate hand frame recognition network.

[0093] In a possible design, the object recognition network may also include: a palm recognition network and a hand frame recognition network.

[0094] Based on the image limb features, the object recognition results of the training image are determined through the object recognition network, including:

[0095] Determine a hand frame recognition result corresponding to the image limb feature based on a hand frame recognition network corresponding to the hand frame parameters, where the hand frame parameters are candidate parameters of the hand frame recognition network;

[0096] Based on the palm recognition network corresponding to the palm parameters, the palm recognition result corresponding to the image limb features is determined, and the palm parameters are candidate parameters of the palm recognition network.

[0097] Update the object recognition network based on the object recognition results, including:

[0098] According to the hand frame recognition results and the palm recognition results, determine whether the object recognition network meets the convergence conditions;

[0099] If so, determining that the hand frame recognition network corresponding to the hand frame parameters and the hand palm recognition network corresponding to the hand palm parameters are the object recognition networks that have completed the update;

[0100] If not, update the hand frame parameters and palm parameters, return to the hand frame recognition network corresponding to the hand frame parameters, determine the hand frame recognition result corresponding to the image limb features, and continue to execute.

[0101] Optionally, the object recognition result may include a hand frame recognition result and a palm recognition result. The palm recognition network may be used to recognize the center point of a human hand, and the palm recognition result may include palm position coordinates, which may refer to the coordinates of the palm in the training image or the image to be recognized.

[0102] For ease of understanding, Figure 4 FIG. 1 is an example diagram of a target recognition model provided by this embodiment. Figure 4, the target recognition model may include a limb feature extraction network 401. The input of the limb feature extraction network 401 may be an image, and the output may be connected to the hand frame recognition network 402, the palm recognition network 403, and the limb recognition network 404 respectively. The features extracted by the limb feature extraction network 401 may be respectively input to the hand frame recognition network 402, the palm recognition network 403, and the limb recognition network 404 to obtain the hand frame recognition result output by the hand frame recognition network 402, the palm recognition result output by the palm recognition network 403, and the limb recognition result output by the limb recognition network 404. The limb recognition result may include, for example, limb key points or limb regions.

[0103] In this embodiment, in addition to the hand frame recognition network, the object recognition network may also include a palm recognition network. By setting the palm recognition network, the effective use of the image limb features can be further achieved. At the same time, on the basis of the hand frame recognition network, the palm recognition network is added, and the two key recognition objects of the hand, that is, the hand frame and the palm point, can be jointly trained, so that the training processes of the hand frame recognition network and the palm recognition network affect each other, thereby improving the recognition accuracy of the hand frame recognition network and the palm recognition network.

[0104] In a possible design, judging whether the object recognition network meets the convergence condition is performed based on the hand frame recognition result and the palm recognition result, including:

[0105] Calculate a first loss value according to the hand frame recognition result and the hand frame label of the training image;

[0106] Calculate a second loss value according to the palm recognition result and the palm label of the training image;

[0107] Perform a weighted summation of the first loss value and the second loss value to obtain a target loss value;

[0108] If it is determined that the target loss value meets the loss threshold, it is determined that the object recognition network meets the convergence condition;

[0109] If it is determined that the target loss value does not meet the loss threshold, it is determined that the object recognition network does not meet the convergence condition.

[0110] Optionally, the first loss value may be obtained by performing a difference calculation between the hand frame recognition result and the hand frame label. For example, the distance between the hand frame recognition result and the hand frame label may be calculated to obtain the first loss value.

[0111] Optionally, the second loss value may be obtained by performing a difference calculation between the palm recognition result and the palm label. For example, the distance between the palm recognition result and the palm label may be calculated to obtain the second loss value.

[0112] The target loss value may be obtained by weighted summing the first loss value and the second loss value. The first weight of the hand frame recognition network and the second weight of the palm recognition network may be determined, the first value may be obtained by multiplying the first weight and the first loss value, the second value may be obtained by multiplying the second weight and the second loss value, and the target loss value may be obtained by summing the first value and the second value.

[0113] In one possible design, the first weight and the second weight may be preset constants. In another possible design, in order to improve the accuracy of model building, the first weight and the second weight may be used as training parameters to participate in the training of the hand frame recognition network and the palm recognition network, and the weight value obtained in the last iteration is the training result of the first weight and the second weight.

[0114] Optionally, the target loss value satisfying the loss threshold may mean that the target loss value is less than or equal to the loss threshold. The target loss value not satisfying the loss threshold may mean that the target loss value is greater than the loss threshold.

[0115] In this embodiment, the training effects of the hand frame recognition network and the palm recognition network can be evaluated respectively by calculating the first loss value of the hand frame recognition network and the second loss value of the palm recognition network. In addition, the final target loss value is calculated by weighted summing the first loss value and the second loss value, so that the two loss values ​​are calculated comprehensively, so that the hand frame recognition network and the palm recognition network can jointly judge the convergence conditions, so as to achieve the purpose of training the hand frame recognition network and the palm recognition network at the same time. At the same time, the palm recognition network and the hand frame recognition network affect each other, thereby improving the network recognition accuracy.

[0116] Further, based on any of the above embodiments, the step of determining the recognition result label corresponding to the training image in the object recognition network includes:

[0117] Determine the limb keypoint labels when training the limb recognition model for the training images;

[0118] According to the limb key point labels, the recognition result labels corresponding to the training images in the object recognition network are generated.

[0119] Optionally, the recognition result label can be determined according to the recognition object of the object recognition network. For example, when the recognition object of the object recognition network is the palm of a hand, the recognition result label can be a palm label. When the recognition object of the object recognition network is a hand frame, the recognition result label can be a hand frame label.

[0120] Further, optionally, a palm label of the training image in the object recognition network can be generated based on the limb key point label. A hand frame label of the training image in the object recognition network can be generated based on the limb key point label.

[0121] In the disclosed embodiments, limb key point labels are obtained when training a limb recognition model using existing training images, and recognition result labels corresponding to the training images in the object recognition network are generated based on the limb key point labels. For example, based on the positional constraint relationship between the limb key points and the recognition objects, the existing limb key point labels can be used through interpolation, fitting, etc. to achieve the labeling of recognition result labels corresponding to local parts of the limbs. In particular, when the number of recognition result labels corresponding to the recognition objects is limited, the labeling efficiency can be improved and the number of labels can be enriched by reusing the limb key point labels.

[0122] As a possible implementation, after performing weighted summation on the first loss value and the second loss value to obtain the target loss value, the method further includes:

[0123] According to the target loss value, update the hand frame parameters and palm parameters.

[0124] Optionally, the target loss value may be used in combination with a gradient descent algorithm to update the hand frame parameters and the palm parameters. Of course, other parameter update algorithms may also be used, such as a stochastic gradient descent algorithm, etc. The specific algorithm used for parameter update in this embodiment is not limited too much.

[0125] In this embodiment, the palm parameters and the hand frame parameters are updated by using the target loss value of this iteration, so that the loss generated by each iteration can be involved in the parameter update process of the hand frame recognition network and the palm recognition network, and more accurate palm parameters and hand frame parameters can be obtained.

[0126] As another possible implementation, calculating a first loss value according to the hand frame recognition result and the hand frame label of the training image includes:

[0127] Using the regression loss function, calculate the first loss value corresponding to the hand frame recognition result and the hand frame label of the training image;

[0128] According to the palm recognition result and the palm label of the training image, the second loss value is calculated, including:

[0129] The mean square error loss function is used to calculate the second loss value corresponding to the palm recognition result and the palm annotation of the training image.

[0130] The regression loss function may include any one of the loss functions such as the mean absolute error (also known as the L1 loss function), the mean square error loss function (also known as the L2 loss function), the smoothed mean absolute error (Huber smoothed L1 loss function), etc. In this embodiment, there are no excessive restrictions on the function type used for the regression loss function.

[0131] The mean squared error loss function (MSE) is also called the L2 loss function, which can calculate the error of the sum of the squares of the difference between the predicted value and the target value. For the specific calculation method of the regression loss function and the mean squared error loss function, please refer to the content in the relevant technology, which will not be repeated here.

[0132] In this embodiment, the first loss value can be calculated using a regression loss function, and the second loss value can be calculated using a mean square error function. By calculating the errors of different networks using different loss functions, targeted loss calculations can be implemented for different networks, making the selected loss function more suitable for the corresponding recognition network and improving the accuracy of the loss calculation.

[0133] Further, based on any of the above embodiments, the hand frame recognition network may include a global average pooling layer and a fully connected layer. The palm recognition network may be constructed based on a heat map algorithm.

[0134] The global average pooling layer can be constructed by the global average pooling algorithm. The global average pooling algorithm can calculate the average of the original data input by each channel, obtain the average corresponding to each channel, and use the average corresponding to each channel as the input of the fully connected layer. The global average pooling algorithm can reduce the complexity of the data structure of each channel and improve the network calculation speed.

[0135] The fully connected layer can be constructed by the fully connected algorithm (FC), which can be used for the classification calculation of the hand frame. The fully connected layer can realize the fast and accurate classification of the hand frame. The heatmap algorithm can be used to identify the palm point of the input feature. When the above algorithm is implemented, the corresponding object can be recognized.

[0136] In order to obtain an accurate limb recognition model, in this solution, the training steps of the limb recognition model may include:

[0137] Based on the two-dimensional limb annotation data, a limb recognition model is trained;

[0138] Alternatively, a limb recognition model is trained based on the two-dimensional limb annotation data and the three-dimensional limb annotation data.

[0139] The two-dimensional limb annotation data may include training images and two-dimensional annotation data of the training images.

[0140] The three-dimensional limb annotation data may include training images and three-dimensional annotation data of the training images.

[0141] The two-dimensional annotation data may refer to data represented in two-dimensional data, such as two-dimensional coordinate points, two-dimensional rectangular boxes, etc. The three-dimensional annotation data may refer to data that includes depth data of an image in addition to two-dimensional data, for example, depth data is added on the basis of two-dimensional coordinate points, and depth data of a two-dimensional rectangular box is added on the basis of a two-dimensional rectangular box.

[0142] The limb recognition model can perform limb recognition on an image and obtain limb recognition results. The limbs involved in this case include but are not limited to limb key points, limb areas, etc. Of course, in actual applications, in addition to human bodies, limbs can also include cartoon characters, animals, etc. as subjects to be recognized.

[0143] In this embodiment, the limb recognition model can be trained using two-dimensional limb annotation data, or the limb recognition model can be trained using two-dimensional limb annotation data and three-dimensional limb annotation data. By training the limb recognition model with two-dimensional limb annotation data or two-dimensional combined with three-dimensional limb annotation data, the limb recognition model can accurately recognize the limbs of the image, thereby improving the training efficiency and accuracy of the limb recognition model.

[0144] In order to achieve a complete limb recognition process. In some embodiments, the limb recognition model further includes: a limb recognition network with known parameters;

[0145] Based on the limb feature extraction network and the updated object recognition network, a target recognition model is constructed, including:

[0146] Based on the limb feature extraction network, the limb recognition network and the updated object recognition network, a target recognition model is determined, and the target recognition model is used to perform recognition of limbs and local parts of limbs in the target image.

[0147] During the construction of the target recognition model, the parameters of the limb feature extraction network and the limb recognition network in the target recognition model remain unchanged, and the parameters of the limb feature extraction network and the limb recognition network are not iteratively updated, while the parameters of the object recognition network are continuously iteratively updated during training until the convergence conditions are met.

[0148] In this embodiment, the limb recognition model is obtained to obtain the limb feature extraction network and the limb recognition network. When constructing the target recognition model, the limb recognition network can be used as a recognition branch of the target recognition model. On the basis of the limb recognition network, an object recognition network is added. On the basis of the same limb feature extraction network, a recognition network branch is added to achieve multi-task recognition, and multiple tasks can share the limb feature extraction network (backbone). There is no need to train the feature extraction network separately for the recognition of limbs and local parts of limbs, which can reduce the complexity of model training, reduce the time consumption of model training, and improve the efficiency and accuracy of model acquisition.

[0149] like Figure 5 FIG. 1 is a flowchart of an embodiment of an object recognition method provided by an embodiment of the present disclosure. The object recognition method may include the following steps:

[0150] 501: In response to an image recognition request, receiving an image to be recognized.

[0151] 502: Obtain a trained target recognition model, where the target recognition model includes a limb feature extraction network with known parameters and a trained object recognition network.

[0152] 503: Based on a limb feature extraction network with known parameters, extract limb features of the image to be identified.

[0153] 504: Based on the object recognition network obtained through training, determine the object recognition result corresponding to the image limb feature of the image to be recognized, and the target recognition model is obtained by using the model building method of any of the above embodiments.

[0154] The object recognition results include recognition results of limbs and local parts of limbs.

[0155] Optionally, the object recognition network may include: a palm recognition network and / or a hand frame recognition network. The object recognition result corresponding to the image limb features of the image to be recognized may include: a palm recognition result obtained by the palm recognition network recognizing the image limb features of the image to be recognized, for example, it may include palm point coordinates and / or a hand frame recognition result obtained by the hand frame recognition network recognizing the image limb features of the image to be recognized, for example, it may include a hand frame.

[0156] Further, optionally, the object recognition network may also include: a limb recognition network. The object recognition result corresponding to the image limb features of the image to be recognized may also include: a limb recognition result obtained by the limb recognition network recognizing the image limb features of the image to be recognized, for example, a rectangular frame corresponding to a limb key point or limb area.

[0157] In this embodiment, an image to be identified can be received in response to an image recognition request. By acquiring the trained target recognition model, the limb feature extraction network in the target recognition model can be used to extract the image limb features of the image to be identified. Through the object recognition network, the object recognition result corresponding to the image limb features of the image to be identified can be obtained to achieve accurate recognition of the limb object.

[0158] like Figure 6 FIG. 6 is a schematic diagram of a structure of an embodiment of a model building device provided by an embodiment of the present disclosure. The model building device 600 may include:

[0159] The first acquisition unit 601 is used to acquire a limb recognition model. The limb recognition model includes a limb feature extraction network with known parameters. The limb recognition model is used to recognize limbs.

[0160] Feature extraction unit 602: used to input the training image into the limb feature extraction network to obtain the image limb features.

[0161] Model training unit 603: used to determine the object recognition result of the training image through the object recognition network based on the image limb features, and update the object recognition network based on the object recognition result. The object recognized by the object recognition network is a local part of the limb.

[0162] Model building unit 604: used to build a target recognition model based on the limb feature extraction network and the updated object recognition network, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

[0163] As an embodiment, the model training unit may include:

[0164] A first determination module is used to determine candidate parameters for the object recognition network, where the candidate parameters are parameter values ​​of each network function in the object recognition network;

[0165] A first recognition module, used to determine an object recognition result corresponding to the image limb feature based on an object recognition network corresponding to the candidate parameters;

[0166] The first processing module is used to determine the candidate parameters as target parameters and determine the object recognition network corresponding to the target parameters as the updated object recognition network if it is determined that the object recognition network meets the convergence condition according to the object recognition result.

[0167] The second processing module is used to update the candidate parameters if it is determined based on the object recognition result that the object recognition network does not meet the convergence condition, return to the object recognition network corresponding to the candidate parameters, and determine the object recognition result corresponding to the image limb feature to continue execution.

[0168] In some embodiments, the object recognition network includes a hand frame recognition network; the model training unit may also include:

[0169] A second determination module is used to determine a hand frame recognition result corresponding to the image limb feature based on a hand frame recognition network corresponding to the hand frame parameters, where the hand frame parameters are candidate parameters of the hand frame recognition network;

[0170] The first judgment module is used to judge whether the object recognition network meets the convergence condition according to the hand frame recognition result; if so, determine that the hand frame recognition network corresponding to the hand frame parameters is the object recognition network that has completed the update; if not, update the hand frame parameters, return to the hand frame recognition network corresponding to the hand frame parameters, and determine the hand frame recognition result corresponding to the image limb feature to continue execution.

[0171] As an embodiment, the object recognition network includes: a palm recognition network and a hand frame recognition network.

[0172] The model training unit may also include:

[0173] A third determination module is used to determine a hand frame recognition result corresponding to the image limb feature based on a hand frame recognition network corresponding to the hand frame parameters, where the hand frame parameters are candidate parameters of the hand frame recognition network;

[0174] A fourth determination module is used to determine the palm recognition result corresponding to the image limb feature based on the palm recognition network corresponding to the palm parameters, where the palm parameters are candidate parameters of the palm recognition network;

[0175] The second judgment module is used to judge whether the object recognition network meets the convergence condition according to the hand frame recognition result and the palm recognition result; if so, the hand frame recognition network corresponding to the hand frame parameters and the palm recognition network corresponding to the palm parameters are determined to be the updated object recognition network; if not, the hand frame parameters and the palm parameters are updated, and the hand frame recognition network corresponding to the hand frame parameters is returned to determine the hand frame recognition result corresponding to the image limb feature to continue execution.

[0176] In a possible design, the second judgment module includes:

[0177] A first calculation submodule, used to calculate a first loss value according to a hand frame recognition result and a hand frame label of a training image;

[0178] A second calculation submodule, used for calculating a second loss value according to the palm recognition result and the palm label of the training image;

[0179] A target calculation submodule, used to perform a weighted summation of the first loss value and the second loss value to obtain a target loss value;

[0180] A first judgment submodule, for determining that the object recognition network meets the convergence condition if it is determined that the target loss value meets the loss threshold;

[0181] The second judgment submodule is used to determine that the object recognition network does not meet the convergence condition if it is determined that the target loss value does not meet the loss threshold.

[0182] As an embodiment, it also includes:

[0183] The label determination unit is used to determine the labels of limb key points when training a limb recognition model using a training image.

[0184] The label generation unit is used to generate the recognition result label corresponding to the training image in the object recognition network according to the limb key point label.

[0185] As yet another embodiment, it further includes:

[0186] A first training unit is used to train and obtain a limb recognition model based on two-dimensional limb annotation data;

[0187] Alternatively, the second training unit is used to train and obtain a limb recognition model based on the two-dimensional limb annotation data and the three-dimensional limb annotation data.

[0188] As an embodiment, the body recognition model further includes: a body recognition network with known parameters;

[0189] Model building unit, specifically for:

[0190] Based on the limb feature extraction network, the limb recognition network and the object recognition network to be trained, a target recognition model is constructed;

[0191] Model building unit, which can be used for:

[0192] Based on the limb feature extraction network, the limb recognition network and the updated object recognition network, a target recognition model is determined, and the target recognition model is used to perform recognition of limbs and local parts of limbs in the target image.

[0193] like Figure 7 FIG. 1 is a schematic diagram of a structure of an embodiment of an object recognition device provided by an embodiment of the present disclosure. The object recognition device 700 may include:

[0194] Image receiving unit 701: used for receiving an image to be recognized in response to an image recognition request;

[0195] The second acquisition unit 702 is used to acquire the target recognition model obtained through training, wherein the target recognition model includes a limb feature extraction network with known parameters and an updated object recognition network.

[0196] Feature extraction unit 703: used to extract image limb features of the image to be identified based on a limb feature extraction network with known parameters.

[0197] Object recognition unit 704: used to determine the object recognition result corresponding to the image limb feature of the image to be recognized based on the object recognition network obtained through training. The target recognition model is obtained by using the model building method provided by any of the above embodiments.

[0198] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0199] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.

[0200] refer to Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 suitable for implementing the embodiment of the present disclosure, and the electronic device 800 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

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

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

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

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

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

[0206] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

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

[0208] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0209] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

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

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

[0212] In a first aspect, according to one or more embodiments of the present disclosure, a model building method is provided, comprising:

[0213] Obtain a limb recognition model, the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition model is used to recognize limbs;

[0214] Input the training image into the limb feature extraction network to obtain the image limb features;

[0215] Based on the image limb features, the object recognition result of the training image is determined through the object recognition network, and the object recognition network is updated based on the object recognition result, and the object recognized by the object recognition network is a local part of the limb;

[0216] Based on the limb feature extraction network and the updated object recognition network, a target recognition model is constructed, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

[0217] According to one or more embodiments of the present disclosure, based on the image limb features, determining the object recognition result of the training image through the object recognition network includes:

[0218] Determine candidate parameters for the object recognition network, where the candidate parameters are parameter values ​​of each network function in the object recognition network;

[0219] Determine the object recognition result corresponding to the limb feature of the image based on the object recognition network corresponding to the candidate parameters;

[0220] Update the object recognition network based on the object recognition results, including:

[0221] If it is determined that the object recognition network meets the convergence condition according to the object recognition result, the candidate parameters are determined as the target parameters, and the object recognition network corresponding to the target parameters is determined as the updated object recognition network;

[0222] If it is determined based on the object recognition result that the object recognition network does not meet the convergence condition, the candidate parameters are updated, and the process returns to the object recognition network corresponding to the candidate parameters to determine the object recognition result corresponding to the image limb feature and continue to execute.

[0223] According to one or more embodiments of the present disclosure, the object recognition network includes a hand frame recognition network;

[0224] Based on the image limb features, the object recognition results of the training image are determined through the object recognition network, including:

[0225] Determine a hand frame recognition result corresponding to the image limb feature based on a hand frame recognition network corresponding to the hand frame parameters, where the hand frame parameters are candidate parameters of the hand frame recognition network;

[0226] Update the object recognition network based on the object recognition results, including:

[0227] According to the hand frame recognition results, determine whether the object recognition network meets the convergence conditions;

[0228] If so, determining that the hand frame parameter corresponds to the hand frame recognition network is the object recognition network that has completed the update;

[0229] If not, update the hand frame parameters, return to the hand frame recognition network corresponding to the hand frame parameters, determine the hand frame recognition result corresponding to the image limb features, and continue to execute.

[0230] According to one or more embodiments of the present disclosure, the object recognition network includes: a palm recognition network and a hand frame recognition network;

[0231] Based on the image limb features, the object recognition results of the training image are determined through the object recognition network, including:

[0232] Determine a hand frame recognition result corresponding to the image limb feature based on a hand frame recognition network corresponding to the hand frame parameters, where the hand frame parameters are candidate parameters of the hand frame recognition network;

[0233] Based on the palm recognition network corresponding to the palm parameters, the palm recognition result corresponding to the image limb features is determined, and the palm parameters are candidate parameters of the palm recognition network;

[0234] Update the object recognition network based on the object recognition results, including:

[0235] According to the hand frame recognition results and the palm recognition results, determine whether the object recognition network meets the convergence conditions;

[0236] If so, it is determined that the hand frame recognition network corresponding to the hand frame parameters and the hand palm recognition network corresponding to the hand palm parameters are the object recognition networks that have completed the update;

[0237] If not, update the hand frame parameters and palm parameters, return to the hand frame recognition network corresponding to the hand frame parameters, determine the hand frame recognition result corresponding to the image limb features, and continue to execute.

[0238] According to one or more embodiments of the present disclosure, judging whether the object recognition network meets the convergence condition according to the hand frame recognition result and the hand palm recognition result includes:

[0239] Calculate a first loss value according to the hand frame recognition result and the hand frame label of the training image;

[0240] Calculate a second loss value according to the palm recognition result and the palm label of the training image;

[0241] Perform a weighted summation of the first loss value and the second loss value to obtain a target loss value;

[0242] If it is determined that the target loss value meets the loss threshold, it is determined that the object recognition network meets the convergence condition;

[0243] If it is determined that the target loss value does not meet the loss threshold, it is determined that the object recognition network does not meet the convergence condition.

[0244] According to one or more embodiments of the present disclosure, the step of determining the recognition result label corresponding to the training image in the object recognition network includes:

[0245] Determine the limb keypoint labels when training the limb recognition model for the training images;

[0246] According to the limb key point labels, the recognition result labels corresponding to the training images in the object recognition network are generated.

[0247] According to one or more embodiments of the present disclosure, the training step of the limb recognition model includes:

[0248] Based on the two-dimensional limb annotation data, a limb recognition model is trained;

[0249] Alternatively, a limb recognition model is trained based on the two-dimensional limb annotation data and the three-dimensional limb annotation data.

[0250] According to one or more embodiments of the present disclosure, the limb recognition model further includes: a limb recognition network with known parameters;

[0251] Based on the limb feature extraction network and the updated object recognition network, a target recognition model is constructed, including:

[0252] Based on the limb feature extraction network, the limb recognition network and the updated object recognition network, a target recognition model is determined, and the target recognition model is used to perform recognition of limbs and local parts of limbs in the target image.

[0253] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an object recognition method, comprising:

[0254] In response to an image recognition request, receiving an image to be recognized;

[0255] Obtaining a trained target recognition model, the target recognition model includes a limb feature extraction network with known parameters and a trained object recognition network; the object recognized by the object recognition network is a local part of a limb;

[0256] Based on a limb feature extraction network with known parameters, the limb features of the image to be identified are extracted;

[0257] Based on the object recognition network obtained through training, an object recognition result corresponding to the image limb feature of the image to be recognized is determined, and the target recognition model is obtained by using the model construction method provided by any of the above embodiments.

[0258] In a third aspect, according to one or more embodiments of the present disclosure, a model building device is provided, comprising:

[0259] A first acquisition unit is used to acquire a limb recognition model, the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition model is used to recognize limbs;

[0260] A feature extraction unit, used for inputting a training image into a limb feature extraction network to obtain image limb features;

[0261] A model training unit is used to determine the object recognition result of the training image through the object recognition network based on the image limb features, and update the object recognition network based on the object recognition result, wherein the object recognized by the object recognition network is a local part of the limb;

[0262] The model building unit is used to build a target recognition model based on the limb feature extraction network and the updated object recognition network, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

[0263] In a fourth aspect, according to one or more embodiments of the present disclosure, there is provided an object recognition device, comprising:

[0264] An image receiving unit, configured to receive an image to be recognized in response to an image recognition request;

[0265] A second acquisition unit is used to acquire a target recognition model obtained through training, wherein the target recognition model includes a limb feature extraction network with known parameters and an updated object recognition network;

[0266] A feature extraction unit, used for extracting image limb features of an image to be identified based on a limb feature extraction network with known parameters;

[0267] The object recognition unit is used to determine the object recognition result corresponding to the image limb feature of the image to be recognized based on the object recognition network obtained through training. The target recognition model is obtained by using the model construction method provided by any of the above embodiments.

[0268] In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0269] Memory stores computer-executable instructions;

[0270] At least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the model building method or object recognition method provided by the aforementioned embodiments.

[0271] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the model building method or object recognition method provided in the aforementioned embodiments is implemented.

[0272] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the model building method or object recognition method provided in the aforementioned embodiments.

[0273] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0274] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0275] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A model building method, characterized in that: include: Acquire a limb recognition model, wherein the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition model is used to recognize limbs; Inputting the training image into the limb feature extraction network to obtain image limb features; Based on the image limb features, determining the object recognition result of the training image through an object recognition network, and updating the object recognition network based on the object recognition result, wherein the object recognized by the object recognition network is a local part of the limb; Based on the limb feature extraction network and the updated object recognition network, a target recognition model is constructed, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

2. The method according to claim 1, characterized in that The determining the object recognition result of the training image based on the image limb feature through the object recognition network includes: Determining candidate parameters for the object recognition network, wherein the candidate parameters are parameter values ​​of each network function in the object recognition network; Determine, based on the object recognition network corresponding to the candidate parameters, an object recognition result corresponding to the image limb feature; The updating of the object recognition network based on the object recognition result comprises: If it is determined according to the object recognition result that the object recognition network satisfies the convergence condition, the candidate parameters are determined as target parameters, and the object recognition network corresponding to the target parameters is determined as the updated object recognition network; If it is determined based on the object recognition result that the object recognition network does not meet the convergence condition, the candidate parameters are updated, and the process returns to the process of determining the object recognition result of the training image based on the image limb features through the object recognition network to continue execution.

3. The method according to claim 1, characterized in that: The object recognition network includes a hand frame recognition network; The determining the object recognition result of the training image based on the image limb feature through the object recognition network includes: Determining a hand frame recognition result corresponding to the image limb feature based on the hand frame recognition network corresponding to the hand frame parameters, wherein the hand frame parameters are candidate parameters of the hand frame recognition network; The updating of the object recognition network based on the object recognition result comprises: According to the hand frame recognition result, judging whether the object recognition network meets the convergence condition; If so, determining that the hand frame recognition network corresponding to the hand frame parameter is the updated object recognition network; If not, the hand frame parameters are updated, the hand frame recognition network corresponding to the hand frame parameters is returned, and the hand frame recognition result corresponding to the image limb feature is determined to continue execution.

4. The method according to claim 1, characterized in that: The object recognition network includes: a palm recognition network and a hand frame recognition network; The determining the object recognition result of the training image based on the image limb feature through the object recognition network includes: Determining a hand frame recognition result corresponding to the image limb feature based on the hand frame recognition network corresponding to the hand frame parameters, wherein the hand frame parameters are candidate parameters of the hand frame recognition network; Determine the palm recognition result corresponding to the image limb feature based on the palm recognition network corresponding to the palm parameter, wherein the palm parameter is a candidate parameter of the palm recognition network; The updating of the object recognition network based on the object recognition result comprises: According to the hand frame recognition result and the palm recognition result, determining whether the object recognition network meets a convergence condition; If yes, determining that the hand frame recognition network corresponding to the hand frame parameters and the hand palm recognition network corresponding to the hand palm parameters are the updated object recognition networks; If not, the hand frame parameters and the palm parameters are updated, the hand frame recognition network corresponding to the hand frame parameters is returned, and the hand frame recognition result corresponding to the image limb feature is determined to continue execution.

5. The method according to claim 4, characterized in that The determining, according to the hand frame recognition result and the palm recognition result, whether the object recognition network satisfies a convergence condition includes: Calculating a first loss value according to the hand frame recognition result and the hand frame label of the training image; Calculating a second loss value according to the palm recognition result and the palm label of the training image; Performing a weighted summation of the first loss value and the second loss value to obtain a target loss value; If it is determined that the target loss value satisfies the loss threshold, then it is determined that the object recognition network satisfies the convergence condition; If it is determined that the target loss value does not satisfy the loss threshold, it is determined that the object recognition network does not satisfy the convergence condition.

6. The method according to any one of claims 1 to 5, characterized in that: The step of determining the recognition result label corresponding to the training image in the object recognition network includes: Determine the limb key point labels when training the limb recognition model with the training image; According to the limb key point labels, a recognition result label corresponding to the training image in the object recognition network is generated.

7. The method according to any one of claims 1 to 5, characterized in that: The training steps of the limb recognition model include: Based on the two-dimensional limb annotation data, training to obtain the limb recognition model; Alternatively, the limb recognition model is obtained by training based on the two-dimensional limb annotation data and the three-dimensional limb annotation data.

8. The method according to claim 1, characterized in that The limb recognition model also includes: a limb recognition network with known parameters; The target recognition model is constructed based on the limb feature extraction network and the updated object recognition network, including: Based on the limb feature extraction network, the limb recognition network and the updated object recognition network, a target recognition model is determined, and the target recognition model is used to perform recognition of limbs and local parts of limbs in a target image.

9. An object recognition method, characterized in that: include: In response to an image recognition request, receiving an image to be recognized; Acquire a trained target recognition model, wherein the target recognition model includes a limb feature extraction network with known parameters and an object recognition network obtained through training; the object recognized by the object recognition network is a local part of a limb; Based on the limb feature extraction network with known parameters, extract the limb features of the image to be identified; Based on the object recognition network obtained through training, an object recognition result corresponding to the image limb feature of the image to be recognized is determined, and the target recognition model is obtained by adopting the model construction method as described in any one of claims 1 to 8.

10. A model building device, characterized in that: include: A first acquisition unit is used to acquire a limb recognition model, wherein the limb recognition model includes a limb feature extraction network with known parameters, and the limb recognition model is used to recognize limbs; A feature extraction unit, used for inputting a training image into the limb feature extraction network to obtain image limb features; A model training unit, for determining an object recognition result of a training image through an object recognition network based on the image limb features, and updating the object recognition network based on the object recognition result, wherein the object recognized by the object recognition network is a local part of a limb; The model building unit is used to build a target recognition model based on the limb feature extraction network and the updated object recognition network, and the target recognition model is used to perform recognition of local parts of the limbs in the target image.

11. An object recognition device, characterized in that: include: An image receiving unit, configured to receive an image to be recognized in response to an image recognition request; A second acquisition unit is used to acquire a target recognition model obtained through training, wherein the target recognition model includes a limb feature extraction network with known parameters and an updated object recognition network; A feature extraction unit, configured to extract image limb features of the image to be identified based on the limb feature extraction network with known parameters; An object recognition unit is used to determine the object recognition result corresponding to the image limb feature of the image to be recognized based on the object recognition network obtained by the training, and the target recognition model is obtained by adopting the model construction method as described in any one of claims 1-8.

12. An electronic device, characterized in that: include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor is configured with the method according to any one of claims 1 to 8 or 9.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 8 or 9 is implemented.

14. A computer program product comprising a computer program, characterized in that The computer program is executed by a processor to configure the method according to any one of claims 1 to 8 or 9.

Citation Information

Patent Citations

  • Human body key point recognition method and device and electronic equipment

    CN111079570A

  • Action recognition method and device, computer readable medium and electronic equipment

    CN113553959A

  • Image processing method, image processing device and electronic equipment

    CN113762304A

  • Human hand recognition method and device, electronic equipment and storage medium

    CN114627503A

  • Body language recognition system based on neural network

    CN114882588A