A method, device, equipment and computer-readable storage medium for posture estimation
By training and image enhancement on the infrared image data set, human body candidate frames and skeletal point features are extracted in the infrared light environment, achieving high-precision posture estimation in the infrared light environment, and solving the existing technology problem of posture estimation in the infrared light environment. Low accuracy problem.
Patent Information
- Application Number
- CN202110901833.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-06
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-08-06
AI Technical Summary
Existing attitude estimation methods have low accuracy in infrared light environments and are difficult to effectively apply. Because infrared light images have less contrast and detailed information, it is difficult for deep learning networks to converge.
By acquiring infrared image data sets, the pre-built target detection network and feature extraction network are trained, and image enhancement technology is used to extract human body candidate frames and bone point features, fuse high and low latitude features, and output human bone point coordinates to determine posture.
It improves the accuracy of attitude estimation in infrared images, enhances the network generalization ability, improves the accuracy of attitude estimation of arms, thighs and other parts, and solves the problems of insufficient information and difficult convergence in infrared light environments.
Smart Images

Figure CN113609993B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field, and more specifically, to a posture estimation method, apparatus, device and computer-readable storage medium. Background Art
[0002] In the fields of security, autonomous driving, and robotics, most of them use posture estimation as a participant in auxiliary judgment or as a decision maker for the judgment results.
[0003] At present, most of the existing attitude estimation is applied in visible light environment. However, in the dark, foggy and other environments without strong light supplement, it is not possible to obtain visible light images well. Therefore, in such environments, attitude estimation based on visible light images cannot be well implemented. Infrared images can still clearly detect targets in the dark, so it is of great significance to use infrared images for attitude estimation in the dark. However, compared with visible light images, infrared images have less contrast and detailed information such as human face and limbs, so it is difficult for deep learning networks to converge. Therefore, the existing attitude estimation methods applied to visible light images cannot be well applied to infrared images.
[0004] In summary, how to improve the accuracy of posture estimation in infrared images is a technical problem that needs to be urgently solved by those skilled in the art. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a posture estimation method, device, equipment and computer-readable storage medium for improving the accuracy of posture estimation in infrared images.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] A posture estimation method, comprising:
[0008] Acquire an infrared image data set, and use the infrared image data set to train a pre-built object detection network to obtain a human body detection network;
[0009] A human body candidate frame diagram is obtained according to the target detection network and the infrared image data set, the human body candidate frame diagram is preprocessed, and a pre-constructed feature extraction network is trained using the candidate frame diagram obtained by the preprocessing to obtain a human body skeleton point extraction network; the preprocessing includes image enhancement;
[0010] According to the infrared image to be identified and the human body detection network, a candidate frame diagram of the human body to be identified is obtained;
[0011] The candidate human frame diagram to be identified is preprocessed, and the human skeleton point extraction network is used to extract features of different latitudes from the candidate frame diagram to be identified obtained by the preprocessing, and the features of different latitudes are integrated, and the coordinates of the human skeleton points are output;
[0012] The coordinates of the human skeleton points are mapped to the infrared image to be identified to determine the human posture.
[0013] Preferably, the human skeleton point extraction network includes a backbone network, an upsampling network, a downsampling network, a feature plane output network, and a human skeleton point processing network, wherein:
[0014] The backbone network includes a ResNet network, a preset number of downsampling blocks, and a convolutional layer connected to the downsampling block, wherein the downsampling block is used to downsample a first feature plane output by the ResNet network, and expand a feature dimension of the feature plane obtained by the downsampling during downsampling to obtain a second feature plane, and the convolutional layer connected to the downsampling block is used to change the feature dimension of the second feature plane output by the downsampling block to a preset dimension to obtain a third feature plane;
[0015] The upsampling network is used to upsample the last third feature plane to generate a current upsampled feature plane, connect the current upsampled feature plane with the third feature plane of the same size and merge them in the feature dimension, perform convolution, output the current merged feature plane, upsample the current merged feature plane to generate a new current upsampled feature plane, and perform the steps of connecting the current upsampled feature plane with the third feature plane of the same size and merging them in the feature dimension until the size of the current merged feature plane is the same as that of the first third feature plane;
[0016] The downsampling network is used to downsample the last current merged feature plane to obtain a fourth feature plane, and use the last current merged feature plane as a fourth feature plane, and adjust the size of each of the fourth feature planes to obtain a corresponding fifth feature plane;
[0017] The feature plane output network is used to connect the fifth feature planes and perform convolution to obtain a human skeleton point feature plane.
[0018] The human skeleton point processing network is used to obtain the coordinates of the human skeleton points from the human skeleton point feature plane.
[0019] Preferably, the human skeleton point processing network is specifically used to expand the dimension of each human skeleton point feature plane and perform filtering, obtain the maximum value point from the filtered human skeleton point feature plane, determine the maximum value point as a human skeleton point, and determine the coordinates of the human skeleton point.
[0020] Preferably, using the infrared image dataset to train a pre-built target detection network includes:
[0021] Inputting the infrared image in the infrared image data set into the BlazeFaceNet network to obtain a preset feature plane; wherein the preset feature plane is determined according to the distribution ratio of the human body in the infrared image;
[0022] A human body detection frame whose aspect ratio is within a preset range is extracted from the preset feature plane; wherein the preset range is determined according to the aspect ratio of the human body.
[0023] Preferably, obtaining a human body candidate frame diagram according to the target detection network and the infrared image data set includes:
[0024] Expanding the length and width of the human body detection frame according to a preset expansion coefficient to obtain an expanded human body detection frame; wherein the preset expansion coefficient is greater than 1;
[0025] The human body candidate frame diagram is extracted from the infrared image according to the expanded human body detection frame.
[0026] Preferably, the pretreatment further comprises:
[0027] The size of the human body candidate frame image is adjusted to a preset size.
[0028] Preferably, performing image enhancement on the human body candidate frame map includes:
[0029] The human body candidate frame image is subjected to at least one of pixel flipping and contrast stretching, histogram contrast stretching, and random image block pixel perturbation.
[0030] A posture estimation device, comprising:
[0031] An acquisition module is used to acquire an infrared image data set, and use the infrared image data set to train a pre-built object detection network to obtain a human body detection network;
[0032] A training module is used to obtain a human body candidate frame diagram according to the target detection network and the infrared image data set, pre-process the human body candidate frame diagram, and train a pre-constructed feature extraction network using the pre-processed candidate frame diagram to obtain a human body skeleton point extraction network; the pre-processing includes image enhancement;
[0033] A candidate frame diagram obtaining module is used to obtain a candidate frame diagram of a human body to be identified based on the infrared image to be identified and the human body detection network;
[0034] A feature extraction module is used to perform the preprocessing on the candidate human frame diagram to be identified, perform feature extraction of different latitudes on the candidate human frame diagram to be identified obtained by the preprocessing using the human skeleton point extraction network, fuse the features of different latitudes, and output the coordinates of the human skeleton points;
[0035] A mapping module is used to map the coordinates of the human skeleton points to the infrared image to be identified to determine the human posture.
[0036] A posture estimation device, characterized in that it comprises:
[0037] Memory for storing computer programs;
[0038] A processor is used to implement the steps of the posture estimation method as described in any one of the above when executing the computer program.
[0039] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the posture estimation method described in any one of the above items are implemented.
[0040] The present application provides a posture estimation method, device, equipment and computer-readable storage medium, wherein the method comprises: obtaining an infrared image data set, using the infrared image data set to train a pre-constructed target detection network to obtain a human body detection network; obtaining a human body candidate frame diagram according to the target detection network and the infrared image data set, pre-processing the human body candidate frame diagram, and using the pre-processed candidate frame diagram to train a pre-constructed feature extraction network to obtain a human body skeleton point extraction network; the pre-processing includes image enhancement; obtaining a human body candidate frame diagram to be identified according to the infrared image to be identified and the human body detection network; pre-processing the human body candidate frame diagram to be identified, using the human body skeleton point extraction network to extract features of different latitudes on the pre-processed candidate frame diagram to be identified, and fusing the features of different latitudes, and outputting the coordinates of the human body skeleton points; mapping the human body skeleton point coordinates to the infrared image to be identified to determine the human body posture.
[0041] The above-mentioned technical scheme disclosed in the present application uses an infrared image data set to train a pre-constructed target detection network and a pre-constructed feature extraction network to obtain a human body detection network and a human body skeleton point extraction network accordingly, and uses the human body detection network and the infrared image to be identified to obtain a candidate frame diagram of a human body to be identified, and performs preprocessing including image enhancement on the candidate frame diagram to be identified to simulate more information of the infrared image, so that the human body features are more obvious, thereby facilitating the effective enhancement of the network generalization ability and improving the overall network accuracy. Afterwards, the human body skeleton point extraction network is used to extract features of different latitudes such as high and low latitudes from the pre-processed candidate frame diagram to be identified, and the features of different latitudes such as high and low latitudes are integrated, so that weak feature information in the infrared image can also be learned, and the features have better global information, and the accuracy of posture estimation of the arms, thighs and other parts of the human body in posture estimation is improved, thereby solving the problem of less available information and difficult convergence in infrared image posture estimation, so as to improve the overall accuracy of infrared image posture estimation. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application 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 only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0043] Figure 1 A flowchart of a posture estimation method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of infrared images of people in different scenes collected according to an embodiment of the present application;
[0045] Figure 3 A schematic diagram of marking human skeleton points on an infrared image provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of a human skeleton point extraction network provided in an embodiment of the present application performing feature extraction and outputting human skeleton point coordinates;
[0047] Figure 5 A schematic diagram of an infrared image to be identified provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of a head bone point feature plane extracted using a human bone point extraction network provided in an embodiment of the present application;
[0049] Figure 7A schematic diagram of a shoulder, elbow and wrist bone point feature plane extracted using a human bone point extraction network provided in an embodiment of the present application;
[0050] Figure 8 A schematic diagram of the characteristic planes of the hip, knee and ankle bone points provided in an embodiment of the present application;
[0051] Fig. 9 A schematic diagram of the convergence point information of the characteristic plane after filtering provided in an embodiment of the present application;
[0052] Fig.10 The embodiment of the present application provides Figure 5 Schematic diagram of human skeleton points obtained by posture estimation;
[0053] Fig.11 A schematic diagram of the structure of a posture estimation device provided in an embodiment of the present application;
[0054] Fig.12 A schematic diagram of the structure of a posture estimation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] Compared with visible light images, infrared images can clearly detect targets and accurately identify objects in front in environments without strong light such as darkness, rain and fog. Therefore, it is of great significance to use infrared images for posture estimation in these environments. However, when infrared images are used in the posture estimation currently used for visible light images (specifically implemented using algorithms such as HRNet and RSN), because infrared images have less effective information such as contrast and details compared to visible light images, the posture recognition characters do not have good feature information, and the deep learning network is difficult to converge. Therefore, directly applying the existing methods used for posture estimation of visible light images to infrared images will result in low posture estimation accuracy and poor results.
[0056] To this end, the present application provides a posture estimation method, apparatus, device and computer-readable storage medium for improving the accuracy of infrared image posture estimation.
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] See also Figure 1 , which shows a flow chart of a posture estimation method provided by an embodiment of the present application. The posture estimation method provided by an embodiment of the present application may include:
[0059] S11: Obtain an infrared image dataset, and use the infrared image dataset to train a pre-built object detection network to obtain a human detection network.
[0060] Infrared images of people in different scenes (such as different road intersections, different weather conditions, etc.) are collected, and the collected infrared images of different road intersections are sorted, and people's clothing under different weather conditions is comprehensively collected to improve the diversity of the acquired infrared image data set. Among them, in order to adapt to more scenes, the collected infrared images include different forms of people's clothing (such as summer clothes or winter clothes, etc.) under infrared, and characteristic environmental data such as people getting wet in rainy days and multiple snow spots on people in rainy days are also collected and sorted synchronously. For example, Figure 2 As shown, it shows a schematic diagram of infrared images of people in different scenes collected according to an embodiment of the present application. Figure 2 In the infrared image on the left, the wet parts of the human body are also shown.
[0061] After collecting infrared images in different scenes, multiple human skeleton points can be used to annotate the infrared images. The present application takes 17 human skeleton points as an example for illustration, and the 17 human skeleton points are: 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, so as to facilitate posture estimation of the human body based on these 17 human skeleton points. Of course, other numbers of human skeleton points can also be included, as long as the posture of the human body can be accurately estimated based on the human skeleton points. Among them, when using the above-mentioned 17 human skeleton points to annotate the collected infrared images, the annotated points can be specifically divided into the following three types: 1: the human skeleton points are visible, 2: the human skeleton points appear but are blocked; 3: the human skeleton points do not appear in the infrared image, so as to facilitate the use of the annotated infrared image data to train the subsequent network, for example Figure 3 As shown, it shows a schematic diagram of marking human skeleton points on a certain infrared image provided by an embodiment of the present application.
[0062] The infrared image data set is obtained by collecting infrared images of different scenes and marking the human skeleton points in the infrared images. Afterwards, the pre-constructed target detection network is trained using the acquired infrared image data set to obtain a human detection network. The pre-constructed target detection can be a lightweight target detection network, so as to reduce the amount of network training calculations, improve the network training speed, reduce the amount of calculations when the trained human detection network is used for detection, and improve the detection speed of the trained human detection network. In addition, when training the target detection network, the softmax loss function and the cross entropy loss function can be used as loss functions to train the target detection network until the network converges.
[0063] In addition, it should be noted that in the process of training the target detection network using the infrared image dataset, the target detection network can output a human detection frame, specifically, the coordinates of the upper left corner and lower right corner of the human detection frame, the type of the human detection frame (for example, 0 represents a person, 1 represents a car, etc.), and the probability of the human detection frame (the greater the probability, the more likely it is to be a human body)
[0064] S12: obtaining a human body candidate frame map according to the target detection network and the infrared image data set, preprocessing the human body candidate frame map, and using the preprocessed candidate frame map to train a pre-built feature extraction network to obtain a human body skeleton point extraction network; the preprocessing includes image enhancement.
[0065] On the basis of step S11, a human candidate frame diagram can be obtained according to the human detection frame output during the training of the target detection network and the infrared image data set. Specifically, the human candidate frame diagram can be extracted from the corresponding infrared image in the infrared image data set according to the human detection frame output during the training of the target detection network. In addition, in view of the small image contrast difference, weak color information, and different time or clothing of the characters in the infrared image, the result presented is a large temperature difference, which is reflected in the phenomenon that the pixels of the human body in the infrared image are large. The present application performs preprocessing including image enhancement on the extracted human candidate frame diagram to obtain the candidate frame diagram, wherein, through image enhancement, more infrared image information can be simulated as much as possible, the generalization ability of the network in application can be increased, and the accuracy of infrared image posture estimation can be improved, while other preprocessing can improve the quality of the human candidate frame diagram, which is also convenient for improving the accuracy of infrared image posture estimation.
[0066] After the candidate frame diagram is obtained through the above preprocessing process, the pre-constructed feature extraction network is trained using the candidate frame diagram obtained by preprocessing to obtain a human skeleton point extraction network. Among them, the feature extraction network is used to extract features of different latitudes for the candidate frame diagram, specifically extract features of different latitudes such as high and low latitudes, and fuse the extracted features of different latitudes, and output the coordinates of human skeleton points, wherein, by extracting and fusing features of different latitudes, weak feature information under infrared images is learned, solving the problem of little available information and difficult convergence in posture estimation under infrared images, and disrupting the original internal inter-layer information interaction, so that the features have better global information, so that the posture estimation accuracy of the arms, knees, thighs and other parts of the posture estimation character is improved, thereby facilitating the improvement of the accuracy of posture estimation. In addition, it should be noted that when the present application trains the pre-constructed feature extraction network, the L2loss loss function can be used as the loss function, and the training is carried out until the network converges.
[0067] It should be noted that step S11 and step S12 are the training processes for the human body detection and human bone point extraction networks respectively. These two steps only need to be executed once during posture estimation to obtain the corresponding network, and there is no need to perform training for each posture estimation. That is, step S11 and step S12 are steps that are performed in advance for posture estimation. After the corresponding network is trained, the trained corresponding network can be used to execute subsequent processes.
[0068] S13: Obtain a candidate frame diagram of a human body to be identified based on the infrared image to be identified and the human body detection network.
[0069] After the human body detection network is obtained through training in step S11 and the human body feature network is obtained through training in step S12, the infrared image to be identified can be input into the human body detection network to obtain the human body detection frame to be identified using the human body detection network. After that, the candidate frame diagram of the human body to be identified can be extracted from the infrared image to be identified according to the human body detection frame to be identified.
[0070] S14: Preprocessing the candidate human frame to be identified, using the human skeleton point extraction network to extract features of different latitudes on the preprocessed candidate frame to be identified, fusing the features of different latitudes, and outputting the coordinates of the human skeleton points.
[0071] After extracting the candidate frame diagram of the human body to be identified, the candidate frame diagram of the human body to be identified is preprocessed in the same way as the preprocessing performed on the candidate frame diagram of the human body in step S12, so as to simulate more infrared image information as much as possible through image enhancement, increase the generalization ability of the network in application, improve the accuracy of infrared image posture estimation, and improve the quality of the candidate frame diagram of the human body through other preprocessing, which is also convenient for improving the accuracy of infrared image posture estimation.
[0072] After preprocessing the candidate human frame to be identified to obtain the candidate frame to be identified, the candidate frame to be identified is input into the human skeleton point extraction network, and the human skeleton point extraction network is used to extract features of different latitudes for the candidate frame to be identified, specifically extracting features of different latitudes such as high and low latitudes, and the human skeleton point extraction network is used to fuse the extracted features of different latitudes, and after fusing the features of different latitudes, the coordinates of the human skeleton points are output.
[0073] Among them, by extracting and fusing features of different latitudes for the candidate frame diagram to be identified, weak feature information in infrared images can be learned, solving the problem of little available information and difficult convergence in posture estimation in infrared images. At the same time, the original internal inter-layer information interaction is disrupted, so that the features have better global information, and the posture estimation accuracy of the arms, knees, thighs and other parts of the posture estimation character is improved, thereby facilitating the improvement of the accuracy of posture estimation.
[0074] S15: Mapping the coordinates of the human skeleton points to the infrared image to be identified to determine the human posture.
[0075] After the human skeleton point extraction network is used to output the coordinates of the human skeleton points in the candidate frame diagram to be identified, the coordinates of the human skeleton points are mapped to the corresponding infrared image to be identified to determine the human posture.
[0076] The above-mentioned technical scheme disclosed in the present application uses an infrared image data set to train a pre-constructed target detection network and a pre-constructed feature extraction network to obtain a human body detection network and a human body skeleton point extraction network accordingly, and uses the human body detection network and the infrared image to be identified to obtain a candidate frame diagram of a human body to be identified, and performs preprocessing including image enhancement on the candidate frame diagram to be identified to simulate more information of the infrared image, so that the human body features are more obvious, thereby facilitating the effective enhancement of the network generalization ability and improving the overall network accuracy. Afterwards, the human body skeleton point extraction network is used to extract features of different latitudes such as high and low latitudes from the pre-processed candidate frame diagram to be identified, and the features of different latitudes such as high and low latitudes are integrated, so that weak feature information in the infrared image can also be learned, and the features have better global information, and the accuracy of posture estimation of the arms, thighs and other parts of the human body in posture estimation is improved, thereby solving the problem of less available information and difficult convergence in infrared image posture estimation, so as to improve the overall accuracy of infrared image posture estimation.
[0077] In a posture estimation method provided in an embodiment of the present application, a human skeleton point extraction network may include a backbone network, an upsampling network, a downsampling network, a feature plane output network, and a human skeleton point processing network, wherein:
[0078] The backbone network may include a ResNet network, a preset number of downsampling blocks, and a convolutional layer connected to the downsampling blocks, wherein the downsampling blocks are used to downsample a first feature plane output by the ResNet network, and expand a feature dimension of the feature plane obtained by the downsampling during downsampling to obtain a second feature plane, and the convolutional layer connected to the downsampling blocks is used to change a feature dimension of the second feature plane output by the downsampling blocks to a preset dimension to obtain a third feature plane;
[0079] An upsampling network is used to upsample the last third feature plane to generate a current upsampled feature plane, connect the current upsampled feature plane with the third feature plane of the same size and merge them in the feature dimension, perform convolution, output the current merged feature plane, upsample the current merged feature plane to generate a new current upsampled feature plane, and perform the steps of connecting the current upsampled feature plane with the third feature plane of the same size and merging them in the feature dimension until the size of the current merged feature plane is the same as the size of the first third feature plane;
[0080] A downsampling network is used to downsample the last current merged feature plane to obtain a fourth feature plane, and use the last current merged feature plane as a fourth feature plane, and adjust the size of each fourth feature plane to obtain a corresponding fifth feature plane;
[0081] The feature plane output network is used to connect the fifth feature planes and perform convolution to obtain the human skeleton point feature plane.
[0082] The human skeleton point processing network is used to obtain the coordinates of the human skeleton points from the human skeleton point feature plane.
[0083] In the present application, the feature extraction network and the human skeleton point extraction network have the same structure. The present application describes the specific structure of the human skeleton point extraction network. The specific structure of the feature extraction network can refer to the specific description of the corresponding structure in the human skeleton point extraction network, which will not be repeated here.
[0084] The human skeleton point extraction network can include a backbone network, an upsampling network, a downsampling network, a feature plane output network, and a human skeleton point processing network in sequence, wherein:
[0085] 1) Backbone network: including ResNet network (residual network), a preset number of downsampling blocks, and convolution layers connected to the downsampling blocks. The ResNet network is used to extract features from infrared images (here, the candidate frame diagram to be identified) and output the first feature plane. Specifically, the ResNet network can be ResNet34, and the first half of ResNet34 can be used, with a 7*7 convolution followed by a max pooling layer. The downsampling block includes a convolution module for downsampling the first feature plane, and while downsampling the first feature plane using the downsampling block, the feature dimension of the downsampled feature plane is expanded once to obtain a preset number of second feature planes. The convolution layers connected to each downsampling block are used to change the feature dimension of the feature plane of the second feature plane output by the corresponding downsampling block to a preset dimension, so as to obtain a preset number of third feature planes. The feature extraction of infrared images is performed through the residual network, and the residual is for better nonlinear learning, and the original intention is to learn the strong feature information under the infrared image.
[0086] Specifically, see Figure 4-Figure 8 ,in, Figure 4 A schematic diagram showing a human skeleton point extraction network provided in an embodiment of the present application for feature extraction and output of human skeleton point coordinates is shown. Figure 5 A schematic diagram of an infrared image to be identified provided in an embodiment of the present application is shown. Figure 6 A schematic diagram of a head bone point feature plane extracted using a human bone point extraction network provided in an embodiment of the present application is shown, wherein: Figure 6 The first picture corresponds to the nose, the second picture corresponds to the left eye, the third picture corresponds to the right eye, the fourth picture corresponds to the left ear, and the fifth picture corresponds to the right ear. Figure 7 A schematic diagram of the shoulder, elbow and wrist bone point feature planes extracted using a human bone point extraction network provided in an embodiment of the present application is shown, wherein: Figure 7 The first picture corresponds to the left shoulder, the second picture corresponds to the right shoulder, the third picture corresponds to the left elbow, the fourth picture corresponds to the right elbow, the fifth picture corresponds to the left wrist, and the sixth picture corresponds to the right wrist. Figure 8 A schematic diagram of the characteristic planes of the hip, knee and ankle bone points provided in an embodiment of the present application is shown, wherein: Figure 8 The first picture corresponds to the left hip, the second picture corresponds to the right hip, the third picture corresponds to the left knee, the fourth picture corresponds to the right knee, the fifth picture corresponds to the left ankle, and the sixth picture corresponds to the right ankle.
[0087] Taking the candidate frame diagram to be identified with the input [1*3*192*256] as an example, the first half of ResNet34 is used, a 7*7 convolution followed by a max pooling layer is used to output a [1*16*128*96] feature plane, and then four downsampling blocks are connected. Each downsampling block contains six 3*3 convolutions, the last of which is a convolution with a step size of 2. Each downsampling block contains a ResNet residual network. At the same time, the feature dimension is expanded once each downsampling. The four downsampling blocks output: F1`: [1*32*64*48], F2`: [1*64*32*24], F3`: [1*128*16*1 2], F4`:[1*256*8*6], then connect a 1*1 convolution, a 3*3 convolution, and a 1*1 convolution to these 4 feature planes respectively, and change the output feature dimensions to 256 feature dimensions, and then output 4 feature planes F1, F2, F3, and F4. The sizes of these four feature planes are F1:[1*256*64*48], F2:[1*256*32*24], F3:[1*256*16*12], and F4:[1*256*8*6] respectively.
[0088] 2) Upsampling network: upsample the last third feature plane (specifically, the third feature plane with the smallest size) and perform bilinear difference upsampling to generate the current upsampled feature plane, connect the current upsampled feature plane with the third feature plane of the same size and merge them in the feature dimension, and perform convolution (specifically, 1*1 convolution can be performed), output the current merged feature plane, perform bilinear interpolation upsampling on the current merged feature plane, generate a new current upsampled feature plane, and then execute the step of connecting the current upsampled feature plane with the third feature plane of the same size and merging them in the feature dimension until the size of the current merged feature plane is the same as the size of the first third feature plane (specifically, the third feature plane with the largest size).
[0089] Specifically, following the above example, bilinear interpolation upsampling is performed on F4:[1*256*8*6] to generate U3:[1*256*16*12] feature plane, and the U3:[1*256*16*12] feature plane is merged with F3:[1*256*16*12] of the same latitude as the original feature plane. U3:[1*256*16*12] is concat with F3:[1*256*16*12] After merging in the feature layer depth dimension (i.e., feature dimension), a 1*1 convolution is performed to output the U2`:[1*256*16*12] feature plane, and then the U2`:[1*256*16*12] feature plane is upsampled by bilinear interpolation to generate the U2:[1*256*32*24] feature plane, and the U2:[1*256*32*24] feature plane is merged with the F2:[ 1*256*32*24], U2:[1*256*32*24] and F2:[1*256*32*24] are concatted and merged in the feature layer depth dimension, followed by 1*1 convolution, outputting the U1`:[1*256*32*24] feature plane, and then bilinearly interpolating and upsampling the U1`:[1*256*32*24] feature plane to generate U1:[1*256*6 4*48] feature plane, merge the U1:[1*256*64*48] feature plane with the original feature plane of the same latitude F1:[1*256*64*48], U1:[1*256*64*48] and F1:[1*256*64*48] are concat in the feature layer depth dimension (after merging, then 1*1 convolution is performed to output the D1:[1*256*64*48] feature plane.
[0090] The purpose of the above steps is to combine different semantic information (i.e., features) of high and low dimensions, and a large amount of upsampling and downsampling in the human skeleton point extraction network ultimately makes the learned feature points more accurate, and a large amount of global information can be learned. The posture estimation network needs to utilize global information when learning joint points. Hands and footsteps are very dependent on global information, and local information is very weak, especially in infrared images. Therefore, a large amount of upsampling and downsampling here is also an important means of posture estimation for infrared images.
[0091] 3) Downsampling network: downsample the last current merged feature plane obtained by the upsampling network to obtain multiple (specifically a preset number minus one) fourth feature planes, and use the last current merged feature plane obtained by the upsampling network as a fourth feature plane. Then, adjust the size of the preset number of fourth feature planes to obtain a corresponding preset number of fifth feature planes.
[0092] Specifically, following the above example, a 3*3 convolution operation with a kernel stride of 2 is performed on the feature plane D1:[1*256*64*48], and the feature planes D2:[1*256*32*24], D3:[1*256*16*12], and D4:[1*256*8*6] are output respectively. The sizes of D1:[1*256*64*48], D2:[1*256*32*24], D3:[1*256*16*12], and D4:[1*256*8*6] are adjusted respectively, and the outputs are: O1:[1*256*64*48], O2:[1*64*64*48], O3:[1*16*64*48], and O4:[1*4*64*48] feature planes.
[0093] Among them, the candidate frame diagram to be identified is subjected to a round of downsampling, a round of upsampling, and then a round of downsampling. Each round of upsampling and downsampling uses a preset number of feature planes of dimension. The network can be used to learn the weak feature information of the infrared image, solve the problem of less available information and difficult convergence in the infrared image posture estimation, and improve the overall progress of posture estimation. In addition, by resizing the fourth feature plane to replace the general convolution operation, the main purpose is to reorganize the information, and to add and fuse some information of unclear bone points in the infrared image, which can more advantageously combine information and derive the location information of unclear key points. Compared with convolution, the amount of calculation is reduced, making the overall network lighter. At the same time, it directly disrupts the original internal inter-layer information interaction for reorganization, so that the features have better global information. For some points with a long distance between limbs and torsos in infrared images, such as legs, knees or arms, more and larger global information is required to locate the specific point information at that location. Using this structure, more global information can be obtained, so that the overall network accuracy is improved.
[0094] 4) Feature plane output network: used to connect each fifth feature plane and perform convolution to obtain the human bone point feature plane.
[0095] Specifically, following the above example, the feature plane output network is used to concat the four feature scores O1: [1*256*64*48], O2: [1*64*64*48], O3: [1*16*64*48], and O4: [1*4*64*48], and then the channel is changed through a 1*1 convolution, a 3*3 convolution, and then a 1*1 convolution, and the feature plane of 1*17*64*48 is output. At this time, the feature plane of 1*17*64*48 is the human bone point feature plane that is finally converged.
[0096] 5) Human skeleton point processing network, which obtains the coordinates of human skeleton points from the human skeleton point feature plane.
[0097] Specifically, following the above example, the coordinates of the human skeleton points can be extracted from the 17 feature planes obtained above.
[0098] An embodiment of the present application provides a posture estimation method and a human skeleton point processing network, which is specifically used to expand the dimension of each human skeleton point feature plane and filter it, obtain the maximum value point from the filtered human skeleton point feature plane, determine the maximum value point as a human skeleton point, and determine the coordinates of the human skeleton point.
[0099] In the present application, when the human skeleton point processing network obtains the coordinates of the human skeleton point from the human skeleton point feature plane, the dimension of each human skeleton point feature plane can be expanded first, specifically, 10 pixels can be filled around it, and then filtering can be performed to remove some noise points. Specifically, 11*11 Gaussian filtering feature plane processing can be performed. A large-scale Gaussian kernel is used for filtering here, mainly to remove the influence of some abnormal noise points. For details, please refer to Fig. 9 , which shows a schematic diagram of the convergence point information of the feature plane after filtering provided by an embodiment of the present application. Afterwards, the maximum value point on the feature plane is searched for in the filtered human skeleton point feature plane. At this time, the maximum value point on each feature plane is the corresponding human skeleton point. For 17 human skeleton points, the maximum value points on the 17 feature planes are 17 human skeleton points. Then, according to the execution step S15, coordinate mapping is performed on the human skeleton points on the corresponding feature planes, and the coordinates are mapped back to the original image, and finally the coordinate information of the human skeleton points in the original image is output. For details, please refer to Fig.10 , which shows the embodiment of the present application provides Figure 5 Schematic diagram of human skeleton points obtained through pose estimation.
[0100] An attitude estimation method provided in an embodiment of the present application uses an infrared image dataset to train a pre-built target detection network, which may include:
[0101] Input the infrared images in the infrared image dataset into the BlazeFaceNet network to obtain the preset feature plane;
[0102] A human body detection frame whose aspect ratio is within a preset range is extracted from a preset feature plane; wherein the preset range is determined according to the aspect ratio of the human body.
[0103] When using the infrared image dataset to train the pre-built target detection network, the infrared images in the infrared image dataset can be input into the BlazeFaceNet network, which is a sub-millisecond network suitable for use in practical industrial applications. The BlazeFaceNet network is mainly designed for public datasets. Here, according to the task requirements of this application, the BlazeFaceNet network can be pruned and improved. During training, the infrared image in the infrared image dataset is input, and then the convolution block structure is used for convolution operation. A downsampling is performed after every two convolution blocks. At the same time, each time a dimensional compression is performed, the network depth is doubled, and the preset downsampling is accumulated to finally output the feature plane. Taking the input image of 300*300*3 as an example, the convolution block structure is used for convolution operation. A downsampling is performed after every two convolution blocks. At the same time, each time the dimension is compressed, the network depth is doubled. The cumulative downsampling is performed 6 times. The final feature plane output size is 5*5. Finally, the two feature planes of 10×10 and 5×5 are used, and the SSD idea is used to generate a bounding box for each point on each feature plane to generate a detection box, and then the best bounding box is selected to output the final pedestrian coordinate information.
[0104] Specifically, the infrared images in the infrared image data set are input into the BlazeFaceNet network. The original feature planes are 19×19, 10×10, 5×5, 3×3, 2×2, and 1×1. Considering that the size of the human body is mainly distributed in about 10% to 20% of the infrared image, the present application only uses the two feature planes of 10×10 and 5×5 when using it, that is, the preset feature planes are determined to be 10×10 and 5×5 according to the distribution ratio of the size of the human body in the infrared image. Of course, if the distribution ratio of the size of the human body in the infrared image changes, the selection of the preset feature plane will change accordingly, so as to improve the accuracy of the feature plane.
[0105] After obtaining the preset feature plane, extract the human body detection frame from the preset feature plane, and when extracting the human body detection frame, considering that the present application is mainly to estimate the posture of the human body, therefore, when extracting the human body detection frame, specifically extract the human body detection frame whose aspect ratio is within the preset range from the preset feature plane, wherein the preset range is specifically determined according to the aspect ratio of the human body. Specifically, most of the original detections construct 6 detection frames for each point on each feature plane, with aspect ratios of 1 / 2, 2, 1 / 3, and 3, respectively, and two detection frames with an aspect ratio of 1. Considering that the aspect ratio of the human body is generally 2 / 3, only the two detection frames of 1 / 2 and 1 / 3 and two detection frames with an aspect ratio of 1 are used here, so as to better fit the proportion of the human body, which is beneficial to the convergence of the human body detection network, and at the same time, it is beneficial to reduce the pressure on the feature regression network branch, and the accuracy test results produced for the human body detection frame that is more in line with the actual proportion show better results.
[0106] An embodiment of the present application provides a posture estimation method, which obtains a human body candidate frame diagram according to a target detection network and an infrared image data set, and may include:
[0107] Expanding the length and width of the human body detection frame according to a preset expansion coefficient to obtain an expanded human body detection frame; wherein the preset expansion coefficient is greater than 1;
[0108] The human body candidate frame map is extracted from the infrared image according to the expanded human body detection frame.
[0109] After obtaining the human body detection frame using the target detection network, the length and width of the human body detection frame are first expanded according to the preset expansion coefficient, that is, the length and width of the human body detection frame are multiplied by the preset expansion coefficient to obtain the expanded human body detection frame. After obtaining the expanded human body detection frame, the human body candidate frame map is extracted from the infrared image according to the expanded human body detection frame.
[0110] Among them, the preset expansion coefficient mentioned above is greater than 1, and can be specifically 1.2. Of course, it can also be adjusted according to the size of the human body in the infrared image, so that the entire human body can be included in the human body candidate frame diagram when it is extracted through expansion, thereby facilitating improving the accuracy of posture estimation.
[0111] In a posture estimation method provided in an embodiment of the present application, preprocessing may further include:
[0112] Adjust the size of the human candidate frame map to a preset size.
[0113] In this application, the preprocessing of the human body detection frame includes not only image enhancement, but also the following steps:
[0114] In the present application, the preprocessing of the extracted candidate frame diagram of the human body to be identified includes not only image enhancement, but also size adjustment of the candidate frame diagram of the human body to be identified to adjust it to a preset size. Thereafter, image enhancement is performed on the candidate frame diagram of the human body adjusted to the preset size, wherein the size of the preset size is determined according to the human skeleton point extraction network. Specifically, in the present application, the size of the preset size is 256*192, so that the human skeleton point extraction network can be downsampled smoothly, thereby facilitating the improvement of the accuracy of the human skeleton point extraction network in extracting human skeleton points, and further facilitating the improvement of the accuracy of posture estimation.
[0115] An embodiment of the present application provides a posture estimation method, which performs image enhancement on a human candidate frame diagram output by a target detection network, and may include:
[0116] Perform at least one of pixel flipping and contrast stretching, histogram contrast stretching, and random image block pixel perturbation on the human body candidate frame image.
[0117] Taking into account that people in infrared images appear at different times or wear different clothes, the result presented is that the body temperature varies greatly, which is reflected in the large pixel differences of pedestrians in the image. For example, in winter, when pedestrians walk from outdoors to indoors, the temperature of the clothing on the human body surface is lower than the indoor background temperature. However, in ordinary scenes such as summer or night, the human body temperature is generally higher than the background temperature, which appears as a highlighted pedestrian in the infrared thermal imaging image. For this reason, when performing image enhancement on the human body candidate frame map, the human body candidate frame map can be subjected to at least one of pixel flipping and contrast stretching, histogram contrast stretching, and random image block pixel perturbation, so as to effectively enhance the generalization ability of the network and improve the overall network accuracy.
[0118] The present application also provides a posture estimation device. Fig.11 , which shows a schematic diagram of the structure of a posture estimation device provided in an embodiment of the present application, which may include:
[0119] An acquisition module 111 is used to acquire an infrared image data set, and use the infrared image data set to train a pre-built object detection network to obtain a human body detection network;
[0120] The training module 112 is used to obtain a human body candidate frame diagram according to the target detection network and the infrared image data set, pre-process the human body candidate frame diagram, and train a pre-built feature extraction network using the pre-processed candidate frame diagram to obtain a human body skeleton point extraction network; the pre-processing includes image enhancement;
[0121] A candidate frame diagram obtaining module 113 is used to obtain a candidate frame diagram of a human body to be identified based on the infrared image to be identified and the human body detection network;
[0122] The feature extraction module 114 is used to pre-process the candidate human frame diagram to be identified, extract features of different latitudes from the pre-processed candidate frame diagram using a human skeleton point extraction network, fuse the features of different latitudes, and output the coordinates of the human skeleton points;
[0123] The mapping module 115 is used to map the coordinates of the human skeleton points to the infrared image to be identified to determine the human posture.
[0124] In an embodiment of the present application, a posture estimation device is provided, wherein a human skeleton point extraction network may include a backbone network, an upsampling network, a downsampling network, a feature plane output network, and a human skeleton point processing network, wherein:
[0125] The backbone network may include a ResNet network, a preset number of downsampling blocks, and a convolutional layer connected to the downsampling blocks, wherein the downsampling blocks are used to downsample a first feature plane output by the ResNet network, and expand a feature dimension of the feature plane obtained by the downsampling during downsampling to obtain a second feature plane, and the convolutional layer connected to the downsampling blocks is used to change a feature dimension of the second feature plane output by the downsampling blocks to a preset dimension to obtain a third feature plane;
[0126] An upsampling network is used to upsample the last third feature plane to generate a current upsampled feature plane, connect the current upsampled feature plane with the third feature plane of the same size and merge them in the feature dimension, perform convolution, output the current merged feature plane, upsample the current merged feature plane to generate a new current upsampled feature plane, and perform the steps of connecting the current upsampled feature plane with the third feature plane of the same size and merging them in the feature dimension until the size of the current merged feature plane is the same as the size of the first third feature plane;
[0127] A downsampling network is used to downsample the last current merged feature plane to obtain a fourth feature plane, and use the last current merged feature plane as a fourth feature plane, and adjust the size of each fourth feature plane to obtain a corresponding fifth feature plane;
[0128] The feature plane output network is used to connect the fifth feature planes and perform convolution to obtain the human skeleton point feature plane.
[0129] The human skeleton point processing network is used to obtain the coordinates of the human skeleton points from the human skeleton point feature plane.
[0130] An embodiment of the present application provides a posture estimation device and a human skeleton point processing network, which are specifically used to expand the dimension of each human skeleton point feature plane and perform filtering, obtain the maximum value point from the filtered human skeleton point feature plane, determine the maximum value point as a human skeleton point, and determine the coordinates of the human skeleton point.
[0131] In an attitude estimation device provided in an embodiment of the present application, the acquisition module 111 may include:
[0132] An acquisition unit, used for inputting the infrared image in the infrared image data set into the BlazeFaceNet network to acquire a preset feature plane;
[0133] The first extraction unit is used to extract a human body detection frame whose aspect ratio is within a preset range from a preset feature plane; wherein the preset range is determined according to the aspect ratio of the human body.
[0134] In an attitude estimation device provided in an embodiment of the present application, the training module 112 may include:
[0135] An expansion unit, used to expand the length and width of the human body detection frame according to a preset expansion coefficient to obtain an expanded human body detection frame; wherein the preset expansion coefficient is greater than 1;
[0136] A second extraction unit is used to extract a human body candidate frame diagram from the infrared image according to the expanded human body detection frame;
[0137] In an attitude estimation device provided in an embodiment of the present application, the training module 112 may further include:
[0138] The adjusting unit is used to adjust the size of the human body candidate frame image to a preset size.
[0139] In an attitude estimation device provided in an embodiment of the present application, the training module 112 may include:
[0140] The processing unit is used to perform at least one of pixel flipping and contrast stretching, histogram contrast stretching, and random image block pixel perturbation on the human body candidate frame image.
[0141] The present application also provides a posture estimation device. Fig.12 , which shows a schematic diagram of the structure of a posture estimation device provided in an embodiment of the present application, which may include:
[0142] A memory 121, used for storing computer programs;
[0143] The processor 122 can implement the following steps when executing the computer program stored in the memory 121:
[0144] Acquire an infrared image data set, use the infrared image data set to train a pre-constructed target detection network to obtain a human body detection network; obtain a human body candidate frame diagram based on the target detection network and the infrared image data set, pre-process the human body candidate frame diagram, and use the pre-processed candidate frame diagram to train a pre-constructed feature extraction network to obtain a human body skeleton point extraction network; the pre-processing includes image enhancement; obtain a human body candidate frame diagram based on the infrared image to be identified and the human body detection network; pre-process the human body candidate frame diagram to be identified, use the human body skeleton point extraction network to extract features of different latitudes on the pre-processed candidate frame diagram to be identified, fuse the features of different latitudes, and output the coordinates of the human body skeleton points; map the coordinates of the human body skeleton points to the infrared image to be identified to determine the human body posture.
[0145] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0146] Acquire an infrared image data set, use the infrared image data set to train a pre-constructed target detection network to obtain a human body detection network; obtain a human body candidate frame diagram based on the target detection network and the infrared image data set, pre-process the human body candidate frame diagram, and use the pre-processed candidate frame diagram to train a pre-constructed feature extraction network to obtain a human body skeleton point extraction network; the pre-processing includes image enhancement; obtain a human body candidate frame diagram based on the infrared image to be identified and the human body detection network; pre-process the human body candidate frame diagram to be identified, use the human body skeleton point extraction network to extract features of different latitudes on the pre-processed candidate frame diagram to be identified, fuse the features of different latitudes, and output the coordinates of the human body skeleton points; map the coordinates of the human body skeleton points to the infrared image to be identified to determine the human body posture.
[0147] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0148] For the description of the relevant parts of a posture estimation device, equipment and computer-readable storage medium provided in the embodiments of the present application, reference can be made to the detailed description of the corresponding parts of a posture estimation method provided in the embodiments of the present application, which will not be repeated here.
[0149] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment that includes a series of elements are inherent to the elements. In the absence of more restrictions, the elements limited by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or equipment that includes the elements. In addition, the above-mentioned technical solution provided in the embodiment of the present application is consistent with the corresponding technical solution in the prior art in principle, and the part is not described in detail, so as not to repeat too much.
[0150] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A posture estimation method, characterized in that: include: Acquire an infrared image data set, and use the infrared image data set to train a pre-built object detection network to obtain a human body detection network; A human body candidate frame diagram is obtained according to the target detection network and the infrared image data set, the human body candidate frame diagram is preprocessed, and a pre-constructed feature extraction network is trained using the candidate frame diagram obtained by the preprocessing to obtain a human body skeleton point extraction network; the preprocessing includes image enhancement; According to the infrared image to be identified and the human body detection network, a candidate frame diagram of the human body to be identified is obtained; The candidate human frame diagram to be identified is preprocessed, and features of different dimensions are extracted from the candidate frame diagram to be identified obtained by the preprocessing using the human skeleton point extraction network, and the features of different dimensions are fused, and the coordinates of the human skeleton points are output; Mapping the coordinates of the human skeleton points to the infrared image to be identified to determine the human posture; The human skeleton point extraction network includes a backbone network, an upsampling network, a downsampling network, a feature plane output network, and a human skeleton point processing network, wherein: The backbone network includes a ResNet network, a preset number of downsampling blocks, and a convolutional layer connected to the downsampling block, wherein the downsampling block is used to downsample a first feature plane output by the ResNet network, and expand a feature dimension of the feature plane obtained by the downsampling during downsampling to obtain a second feature plane, and the convolutional layer connected to the downsampling block is used to change the feature dimension of the second feature plane output by the downsampling block to a preset dimension to obtain a third feature plane; The upsampling network is used to upsample the last third feature plane to generate a current upsampled feature plane, connect the current upsampled feature plane with the third feature plane of the same size and merge them in the feature dimension, perform convolution, output the current merged feature plane, upsample the current merged feature plane to generate a new current upsampled feature plane, and perform the steps of connecting the current upsampled feature plane with the third feature plane of the same size and merging them in the feature dimension until the size of the current merged feature plane is the same as that of the first third feature plane; The downsampling network is used to downsample the last current merged feature plane to obtain a fourth feature plane, and use the last current merged feature plane as a fourth feature plane, and adjust the size of each of the fourth feature planes to obtain a corresponding fifth feature plane; The feature plane output network is used to connect the fifth feature planes and perform convolution to obtain a human skeleton point feature plane; The human skeleton point processing network is used to obtain the coordinates of the human skeleton points from the human skeleton point feature plane; The human skeleton point processing network is specifically used to expand the dimension of each human skeleton point feature plane and perform filtering, obtain the maximum value point from the filtered human skeleton point feature plane, determine the maximum value point as a human skeleton point, and determine the coordinates of the human skeleton point.
2. The posture estimation method according to claim 1, characterized in that: The infrared image dataset is used to train a pre-built target detection network, including: Inputting the infrared image in the infrared image data set into the BlazeFaceNet network to obtain a preset feature plane; wherein the preset feature plane is determined according to the distribution ratio of the human body in the infrared image; A human body detection frame whose aspect ratio is within a preset range is extracted from the preset feature plane; wherein the preset range is determined according to the aspect ratio of the human body.
3. The posture estimation method according to claim 2, characterized in that: Obtaining a human body candidate frame diagram according to the target detection network and the infrared image data set includes: Expanding the length and width of the human body detection frame according to a preset expansion coefficient to obtain an expanded human body detection frame; wherein the preset expansion coefficient is greater than 1; The human body candidate frame diagram is extracted from the infrared image according to the expanded human body detection frame.
4. The posture estimation method according to claim 3, characterized in that: The pre-processing further comprises: The size of the human body candidate frame image is adjusted to a preset size.
5. The posture estimation method according to claim 1, characterized in that: Performing image enhancement on the human body candidate frame map, including: The human body candidate frame image is subjected to at least one of pixel flipping and contrast stretching, histogram contrast stretching, and random image block pixel perturbation.
6. A posture estimation device, characterized in that: include: An acquisition module is used to acquire an infrared image data set, and use the infrared image data set to train a pre-built object detection network to obtain a human body detection network; A training module is used to obtain a human body candidate frame diagram according to the target detection network and the infrared image data set, pre-process the human body candidate frame diagram, and train a pre-constructed feature extraction network using the pre-processed candidate frame diagram to obtain a human body skeleton point extraction network; the pre-processing includes image enhancement; A candidate frame diagram obtaining module is used to obtain a candidate frame diagram of a human body to be identified based on the infrared image to be identified and the human body detection network; A feature extraction module is used to perform the preprocessing on the candidate frame diagram of the human body to be identified, extract features of different dimensions from the candidate frame diagram to be identified obtained by the preprocessing using the human skeleton point extraction network, fuse the features of different dimensions, and output the coordinates of the human skeleton points; A mapping module, used for mapping the coordinates of the human skeleton points to the infrared image to be identified, so as to determine the human posture; The human skeleton point extraction network includes a backbone network, an upsampling network, a downsampling network, a feature plane output network, and a human skeleton point processing network, wherein: The backbone network includes a ResNet network, a preset number of downsampling blocks, and a convolutional layer connected to the downsampling block, wherein the downsampling block is used to downsample a first feature plane output by the ResNet network, and expand a feature dimension of the feature plane obtained by the downsampling during downsampling to obtain a second feature plane, and the convolutional layer connected to the downsampling block is used to change the feature dimension of the second feature plane output by the downsampling block to a preset dimension to obtain a third feature plane; The upsampling network is used to upsample the last third feature plane to generate a current upsampled feature plane, connect the current upsampled feature plane with the third feature plane of the same size and merge them in the feature dimension, perform convolution, output the current merged feature plane, upsample the current merged feature plane to generate a new current upsampled feature plane, and perform the steps of connecting the current upsampled feature plane with the third feature plane of the same size and merging them in the feature dimension until the size of the current merged feature plane is the same as that of the first third feature plane; The downsampling network is used to downsample the last current merged feature plane to obtain a fourth feature plane, and use the last current merged feature plane as a fourth feature plane, and adjust the size of each of the fourth feature planes to obtain a corresponding fifth feature plane; The feature plane output network is used to connect the fifth feature planes and perform convolution to obtain a human skeleton point feature plane; The human skeleton point processing network is used to obtain the coordinates of the human skeleton points from the human skeleton point feature plane; The human skeleton point processing network is specifically used to expand the dimension of each human skeleton point feature plane and perform filtering, obtain the maximum value point from the filtered human skeleton point feature plane, determine the maximum value point as a human skeleton point, and determine the coordinates of the human skeleton point.
7. A posture estimation device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the posture estimation method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the posture estimation method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Real-time human skeleton articulation point detection method
CN108647639A
Three-dimensional human body posture estimation method and device
CN108830150A
