A pre-labeled human body image key point labeling system and method
By using a pre-annotated human image key point annotation system, combining pre-annotation models and manual annotation, a new key point annotation model is constructed, which solves the problem of tedious manual annotation workload and achieves efficient automatic key point annotation.
Patent Information
- Application Number
- CN202410453694.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-16
AI Technical Summary
When faced with diverse needs across different fields, existing technologies require tedious manual annotation of key points on the human body and face, which is difficult to respond to quickly, resulting in high costs and low efficiency.
A pre-annotated human image key point annotation system is adopted, which includes a pre-annotation module, a new key point annotation module, a model building module, and an automatic annotation module. By combining the pre-annotated model with manual annotation, a new key point annotation model is built through geometric relationships to achieve automatic annotation.
Reduce the additional costs of adding new annotation items, improve annotation speed and efficiency, and enhance annotation capabilities.
Smart Images

Figure CN118314603B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of automatic key point labeling, and particularly relates to a human image key point labeling system and method based on pre-labeling. BACKGROUND
[0002] Human and face key application fields are relatively wide, for example, human key points are used in motion analysis, virtual reality (VR) and reality enhancement (AR), security monitoring and human-computer interaction, and face key points are used in face recognition, facial expression capture, beauty and makeup, and various needs may be derived in various fields, and different needs inevitably bring different requirements for key point labeling positions and quantities. According to different tasks in different fields, the labeling key point requirements are also various, and facing various and changing needs, and a large amount of data is manually labeled, which inevitably brings a large amount of tedious work. How to quickly respond with the least cost is a problem that automatic labeling is now facing. Considering the characteristics of human structure, symmetry, proportion, and the geometric relationship between the key points of different parts of the human body. SUMMARY
[0003] The application aims to solve the problems of the prior art, and provides a human image key point labeling system and method based on pre-labeling, which can greatly improve the labeling efficiency of key points in the scene of adding new key points.
[0004] To achieve the above object, the application provides the following scheme.
[0005] A human image key point labeling system based on pre-labeling comprises a pre-labeling module, an added key point labeling module, a model construction module and an automatic labeling module.
[0006] The pre-labeling module is used for pre-labeling key points in a plurality of human images to obtain labeled images containing pre-labeled key points.
[0007] The added key point labeling module is used for extracting samples from the labeled images and manually labeling the samples to obtain sample images containing added key points.
[0008] The model construction module is used for constructing an added key point labeling model based on the geometric relationship between the pre-labeled key points and the added key points in the sample images.
[0009] The automatic labeling module is used for automatically labeling the added key points of the remaining human images based on the added key point labeling model.
[0010] Preferably, the pre-labeling module comprises an image collection unit and a pre-labeling unit.
[0011] The image collection unit is used to collect several unlabeled human body images;
[0012] The pre-annotation unit uses an existing keypoint annotation model to pre-annotate the keypoints in the human body image, thereby obtaining the annotated image containing the pre-annotated keypoints.
[0013] Preferably, the newly added key point annotation module includes: a sample extraction unit and a manual annotation unit;
[0014] The sample extraction unit is used to extract samples from the labeled image;
[0015] The manual annotation unit is used to manually annotate the key points of the sample based on the new requirements, obtain the new key points, and at the same time check and correct the annotation results to obtain the sample image containing the new key points.
[0016] Preferably, the model building module includes: a geometric relationship building unit, a model building unit, and a model training unit;
[0017] The geometric relationship construction unit is used to calculate the distance between the newly added key point and the pre-annotated key point, and construct the geometric relationship;
[0018] The model building unit is used to build an initial labeled model based on a neural network, and to build training and validation datasets based on the geometric relationships;
[0019] The model training unit is used to train the initial annotation model based on the training dataset, and to verify the trained initial annotation model using the verification dataset, so as to obtain the newly added key point annotation model.
[0020] The present invention also provides a method for annotating key points in human images based on pre-annotation, wherein the annotation method is applied to the annotation system described in any of the above claims, and includes the following steps:
[0021] S1. Pre-annotate the key points in several human body images to obtain an annotated image containing the pre-annotated key points;
[0022] S2. Extract samples from the annotated image and manually annotate the samples to obtain a sample image containing newly added key points;
[0023] S3. Construct a new keypoint annotation model based on the geometric relationship between the pre-annotated keypoints and the newly added keypoints in the sample image;
[0024] S4. Based on the newly added key point annotation model, automatically annotate the remaining human body images with the newly added key points.
[0025] Preferably, S1 includes:
[0026] Collect several unlabeled images of the human body;
[0027] The key points in the human body image are pre-annotated using an existing key point annotation model to obtain the annotated image containing the pre-annotated key points.
[0028] Preferably, S2 includes:
[0029] Samples are extracted from the labeled images;
[0030] Based on the new requirements, the sample is manually annotated with key points to obtain new key points. At the same time, the annotation results are checked and corrected to obtain the sample image containing the new key points.
[0031] Preferably, S3 includes:
[0032] Calculate the distance between the newly added key points and the pre-annotated key points, and construct the geometric relationship;
[0033] An initial annotation model is constructed based on a neural network, and training and validation datasets are constructed based on the geometric relationships described above.
[0034] The initial annotation model is trained based on the training dataset, and the trained initial annotation model is validated using the validation dataset to obtain the newly added keypoint annotation model.
[0035] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0036] This invention utilizes the key points annotated by the pre-trained model. Based on some geometric features of the human body structure, it can complete the annotation task of adding new key points, which can reduce the additional costs brought by adding new annotation items, improve annotation speed, and thus improve annotation efficiency and capability. Attached Figure Description
[0037] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a schematic diagram of the system structure according to an embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of the initial annotation model according to an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of the method flow according to an embodiment of the present invention. Detailed Implementation
[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0042] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] First, let's introduce the common key points in human body images, including: human body key points and facial key points; there are 17 human body key points, including: nose, left eye, right eye, left ear, right ear, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist, left hip, right hip, left knee, right knee, left ankle, and right ankle; there are 68 facial key points, including: left eyebrow (5), right eyebrow (5), left eye (6), right eye (6), bridge of nose (1), tip of nose (1), around the nostrils (7), upper lip (10), lower lip (10), and facial contour from cheekbone to chin (17).
[0044] Example 1
[0045] In this embodiment, as Figure 1 As shown, a human image key point annotation system based on pre-annotation includes: a pre-annotation module, a new key point annotation module, a model construction module, and an automatic annotation module.
[0046] The pre-annotation module is used to pre-annotate key points in several human images, resulting in an annotated image containing the pre-annotated key points.
[0047] The pre-annotation module includes an image collection unit and a pre-annotation unit. The image collection unit is used to collect several unannotated human images. The pre-annotation unit uses an existing keypoint annotation model to pre-annotate the keypoints in the human images, resulting in an annotated image containing the pre-annotated keypoints.
[0048] In this embodiment, after the image collection unit collects several unlabeled human images, it divides the key points of the human images that need to be labeled into key points that can be labeled using existing pre-trained models and newly added key points that are not within the recognition range of the pre-labeling model. Here, key points usually refer to specific points on the human body that can represent the location of specific body parts. These key points usually include the main joints and body parts of the human body, such as the head, shoulders, elbows, wrists, hips, knees, and ankles. Then, the pre-labeling unit prepares a key point labeling model to pre-label the human images and converts the pre-labeling results into a format that the labeling tool can recognize, resulting in a labeled image containing the pre-labeled key points. Since the labeling results output by each key point labeling model vary greatly, this embodiment uses different fields to represent the key point location and category to convert it into a data format supported by the labeling tool: {label: key point name, pos:(x,y): position coordinates}. The labeling tool can then visualize and modify the labeled data by reading the data in the supported data format.
[0049] The newly added key point annotation module is used to extract samples from the annotated images and manually annotate the samples to obtain sample images containing the newly added key points.
[0050] The newly added key point annotation module includes a sample extraction unit and a manual annotation unit. The sample extraction unit is used to extract samples from the annotated image. The manual annotation unit is used to manually annotate the key points of the samples based on the new requirements, obtain the new key points, and at the same time check and correct the annotation results to obtain a sample image containing the new key points.
[0051] In this embodiment, the sample extraction unit extracts a small number of representative samples, where representativeness refers to various human postures. Then, the manual annotation unit manually annotates the newly added key points on the image using an annotation tool, marking the new key points and adding identifiers to the data structure to distinguish them from pre-annotated key points. Simultaneously, the pre-annotation results are checked and corrected to obtain a sample image containing the key points. Here, "new requirements" refers to key points that need to be newly annotated because conventional key points cannot meet the requirements for certain special tasks.
[0052] The model building module is used to build a new keypoint annotation model based on the geometric relationship between pre-annotated keypoints and newly added keypoints in the sample image.
[0053] The model building module includes: a geometric relationship building unit, a model building unit, and a model training unit. The geometric relationship building unit is used to calculate the distance between newly added keypoints and pre-annotated keypoints to build geometric relationships. The model building unit is used to build an initial annotation model based on a neural network and to build training and validation datasets based on geometric relationships. The model training unit is used to train the initial annotation model based on the training dataset and to validate the trained initial annotation model using the validation dataset to obtain the new keypoint annotation model.
[0054] In this embodiment, the geometric relationship construction unit constructs geometric relationships by calculating the distances between known pre-annotated keypoints and newly added keypoints. Since the human body is symmetrical and proportional, the positions of some keypoints can be calculated based on the positions of other annotated keypoints using geometric relationships. The model construction unit uses a neural network to simulate a mapping function, which models the mapping between the positions of pre-annotated keypoints and newly added keypoints, and uses this to construct the initial annotation model. The basic architecture of the initial annotation model is as follows: Figure 2 As shown, the network consists of stacked linear layers (or fully connected layers). The input layer accepts a 6-dimensional vector, here composed of three points (x1, y1), (x2, y2), and (x3, y3). This vector is then fed into a linear layer for dimensionality upscaling to obtain more features, effectively increasing the 6-dimensional features to 16-dimensionality. Following the linear layer is a non-linear activation function, here ReLU is used to increase the non-linearity. After the input layer is a hidden layer, which passes through two fully connected layers. The network output is 2-dimensional data, and the loss function used is the Mean Squared Error (MSE) loss function.
[0055]
[0056] Where n is the total number of samples, y i It is the true value of the i-th sample. This is the predicted value of the i-th sample; then, the training dataset and the validation dataset are split from the pre-annotated keypoints after the geometric relationships are constructed and the newly added keypoints. The model training unit trains the initial annotation model based on the training dataset and validates the trained initial annotation model using the validation dataset to obtain the newly added keypoint annotation model.
[0057] The automatic annotation module is used to automatically annotate the remaining human images with new key points based on the new key point annotation model.
[0058] Example 2
[0059] In this embodiment, as Figure 3As shown, a method for annotating key points in human images based on pre-annotation includes the following steps:
[0060] S1. Pre-annotate the key points in several human body images to obtain an annotated image containing the pre-annotated key points.
[0061] S1 includes: collecting several unlabeled human images; using existing keypoint annotation models to pre-annotate the keypoints in the human images to obtain an annotated image containing the pre-annotated keypoints.
[0062] In this embodiment, after collecting several unlabeled human images, the key points in the human images that need annotation are divided into key points that can be annotated using existing pre-trained models and newly added key points that are not within the recognition range of the pre-annotation models. Here, key points typically refer to specific points on the human body that can represent the location of specific body parts. These key points usually include major joints and body parts, such as the head, shoulders, elbows, wrists, hips, knees, and ankles. Next, a key point annotation model is prepared to pre-annotate the human images, and the pre-annotation results are converted into a format recognizable by the annotation tool, resulting in an annotated image containing the pre-annotated key points. Since the annotation results output by each key point annotation model vary greatly, this embodiment uses different fields to represent the key point location and category to convert it into a data format supported by the annotation tool: {label: key point name, pos:(x,y): position coordinates}. The annotation tool reads the data in the supported data format and can then visualize and modify the annotated data.
[0063] S2. Extract samples from the labeled images and manually label the samples to obtain sample images containing the newly added key points.
[0064] S2 includes: extracting samples from the labeled images; manually annotating the samples with key points based on the new requirements to obtain new key points; and checking and correcting the annotation results to obtain sample images containing the new key points.
[0065] In this embodiment, a small number of representative samples are extracted, where representativeness refers to various human postures. Then, using an annotation tool, newly added key points on the image are manually annotated. These new key points are marked, and identifiers are added to the data structure to distinguish them from pre-annotated key points. Simultaneously, the pre-annotation results are checked and corrected to obtain a sample image containing the key points. Here, "new requirements" refers to key points that need to be newly annotated for certain special tasks where conventional key points cannot meet the requirements.
[0066] S3. Construct a new key point annotation model based on the geometric relationship between pre-annotated key points and newly added key points in the sample image.
[0067] S3 includes: calculating the distance between newly added keypoints and pre-annotated keypoints to construct geometric relationships; constructing an initial annotation model based on a neural network, and constructing a training dataset and a validation dataset based on the geometric relationships; training the initial annotation model based on the training dataset, and validating the trained initial annotation model using the validation dataset to obtain the newly added keypoint annotation model.
[0068] In this embodiment, geometric relationships are constructed by calculating the distance between known pre-annotated keypoints and newly added keypoints. Since the human body is symmetrical and proportional, the positions of some keypoints can be calculated based on the positions of other annotated keypoints through geometric relationships. Then, a neural network is used to simulate a mapping function, which models the mapping between the positions of pre-annotated keypoints and newly added keypoints, and uses this to construct the initial annotation model. The initial annotation model consists of stacked linear layers (or fully connected layers). The input layer accepts a 6-dimensional vector, here composed of a vector of three points (x1, y1), (x2, y2), and (x3, y3). This vector is then fed into a linear layer for dimensionality upscaling to obtain more features, i.e., increasing the 6-dimensional features to 16 dimensions. Following the linear layer is a non-linear activation function, here ReLU is used to increase the non-linearity. After the input layer is a hidden layer, which passes through two fully connected layers. The network output is 2-dimensional data, and the model's loss function is the Mean Squared Error (MSE) loss function.
[0069]
[0070] Where n is the total number of samples, y i It is the true value of the i-th sample. This is the predicted value of the i-th sample. Then, the training dataset and validation dataset are separated from the pre-annotated keypoints after the geometric relationships have been constructed and the newly added keypoints. The initial annotation model is trained based on the training dataset, and the trained initial annotation model is validated using the validation dataset to obtain the new keypoint annotation model.
[0071] S4. Automatically annotate the remaining human images with new key points based on the new key point annotation model.
[0072] Example 3
[0073] In this embodiment, an example is used to illustrate how to automatically annotate newly added key points using existing pre-annotated key points.
[0074] First, we analyze the human keypoint annotation task. By reading the annotation requirements, we understand which human keypoints need to be annotated in the task and the details of how to accurately locate these keypoints. Then, based on the keypoints that can be annotated by current mainstream human keypoint models, we divide the keypoints that need to be annotated in the task. This includes human keypoints that can be accurately annotated by the model, and newly added keypoints that are not included in the keypoint output range of the model and need to be manually annotated. Next, we select a model that can annotate human keypoints and pre-annotate the acquired human images to obtain keypoint annotation information, for example: {label:“right eye”,x:10,y:20}. We then manually annotate a small, representative sample from the human images to annotate the newly added keypoints for this task. The specific number of samples can be around 10% to 15%. For datasets with less than 1000 samples, this can be adjusted appropriately; for large datasets, a fixed number can be chosen. Then, by calculating the distance (geometric relationship) from each newly added keypoint to the pre-annotated keypoints (points annotated by the model), a certain number of points (depending on the task) closest to the newly added keypoint are selected. Generally, 3 to 5 keypoints can be selected. In this embodiment, the 3 known keypoints closest to the keypoint to be annotated are selected from the known keypoints. Next, a neural network is used to simulate a mapping function, which models the mapping between the positions of the pre-annotated keypoints and the newly added keypoints, and an initial annotation model is constructed based on this. Then, a training dataset and a validation dataset (15%) are split from the pre-annotated keypoints and newly added keypoints after the geometric relationship is constructed. The initial annotation model is trained based on the training dataset, and validated using the validation dataset to obtain the newly added keypoint annotation model. Finally, the newly added keypoint annotation model is used to automatically annotate the remaining human images with new keypoints.
[0075] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.
Claims
1. A human image key point annotation system based on pre-annotation, characterized in that, include: The module includes a pre-annotation module, a new key point annotation module, a model building module, and an automatic annotation module. The pre-annotation module is used to pre-annotate key points in several human images to obtain an annotated image containing the pre-annotated key points. The newly added key point annotation module is used to extract samples from the annotated image and manually annotate the samples to obtain a sample image containing newly added key points. The model building module is used to build a new key point annotation model based on the geometric relationship between the pre-annotated key points and the newly added key points in the sample image; The automatic annotation module is used to automatically annotate the newly added key points on the remaining human body images based on the newly added key point annotation model. The newly added key point annotation module includes: a sample extraction unit and a manual annotation unit; The sample extraction unit is used to extract samples from the labeled image; The manual annotation unit is used to manually annotate the key points of the sample based on the new requirements, obtain the new key points, and at the same time check and correct the annotation results to obtain the sample image containing the new key points. The model building module includes: a geometric relationship building unit, a model building unit, and a model training unit; The geometric relationship construction unit is used to calculate the distance between the newly added key point and the pre-annotated key point, and construct the geometric relationship; The model building unit is used to build an initial labeled model based on a neural network, and to build training and validation datasets based on the geometric relationships; The model training unit is used to train the initial annotation model based on the training dataset, and to verify the trained initial annotation model using the verification dataset, so as to obtain the newly added key point annotation model.
2. The human image key point annotation system based on pre-annotation according to claim 1, characterized in that, The pre-annotation module includes: an image collection unit and a pre-annotation unit; The image collection unit is used to collect several unlabeled human body images; The pre-annotation unit uses an existing keypoint annotation model to pre-annotate the keypoints in the human body image, thereby obtaining the annotated image containing the pre-annotated keypoints.
3. A method for annotating key points in human images based on pre-annotation, wherein the annotation method is applied to the annotation system described in any one of claims 1-2, characterized in that, Includes the following steps: S1. Pre-annotate the key points in several human body images to obtain an annotated image containing the pre-annotated key points; S2. Extract samples from the annotated image and manually annotate the samples to obtain a sample image containing newly added key points; S3. Construct a new key point annotation model based on the geometric relationship between the pre-annotated key points and the newly added key points in the sample image; S4. Based on the newly added key point annotation model, automatically annotate the remaining human body images with the newly added key points.
4. The method for annotating key points in human images based on pre-annotation according to claim 3, characterized in that, S1 includes: Collect several unlabeled images of the human body; The key points in the human body image are pre-annotated using an existing key point annotation model to obtain the annotated image containing the pre-annotated key points.
5. The method for annotating key points in human images based on pre-annotation according to claim 3, characterized in that, S2 includes: Samples are extracted from the labeled images; Based on the new requirements, the sample is manually annotated with key points to obtain new key points. At the same time, the annotation results are checked and corrected to obtain the sample image containing the new key points.
6. The method for annotating key points in human images based on pre-annotation according to claim 3, characterized in that, S3 includes: Calculate the distance between the newly added key points and the pre-annotated key points, and construct the geometric relationship; An initial annotation model is constructed based on a neural network, and training and validation datasets are constructed based on the geometric relationships described above. The initial annotation model is trained based on the training dataset, and the trained initial annotation model is validated using the validation dataset to obtain the newly added keypoint annotation model.
Citation Information
Patent Citations
Cascaded classifier of tree-shaped structure
CN106778455A
Object posture labeling method and device, computer equipment and storage medium
CN110765914A
