Method and system for tracking foot position of person in video sequence

By combining the target detection network, semantic segmentation model and Kalman filter algorithm, the accuracy and stability of human foot tracking in complex environments are solved, and real-time tracking in complex environments is achieved.

CN118711094APending Publication Date: 2024-09-27SICHUAN JIANSHAN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology is difficult to track the position of a person's feet in real time in complex environments, especially when the feet are blocked or move too fast, the tracking is inaccurate, and the complex background leads to large interference from external factors.

Method used

A method based on the target detection network and semantic segmentation model combined with the Kalman filter algorithm is used to determine the foot center of mass position through the target mask, and the Kalman filter algorithm is used for prediction and correction to ensure the accuracy and stability of tracking.

Benefits of technology

It realizes real-time tracking of the foot position of people in complex environments, avoids tracking loss and instability caused by occlusion and rapid movement, reduces interference from external factors, and improves tracking accuracy and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711094A
    Figure CN118711094A
Patent Text Reader

Abstract

The invention provides a method and a system for tracking the foot position of a person in a video sequence. The method comprises the following steps: acquiring a current image; sequentially inputting the current image into a target detection network trained based on a character foot data set and a semantic segmentation model trained based on a foot segmentation data set to obtain a target mask of the current image; and based on the target mask of the current image, determining the foot mass center position of the current image as the character foot position of the current image. Therefore, the feet of the person can be tracked in real time, and the problems that in the current tracking process, after the feet are shielded, the position jumps, or tracking is inaccurate due to too fast movement of the person, and the tracking process is greatly interfered by external factors due to the complex image background are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing, and more particularly to a method and system for tracking the position of a person's feet in a video sequence. Background Art

[0002] Human foot tracking technology is of great significance in many application fields, such as security monitoring, virtual reality, human-computer interaction, etc. In the past few decades, various methods have been proposed to achieve human foot tracking, including traditional computer vision technology.

[0003] Traditional computer vision technologies usually include feature extraction-based methods and motion model-based methods. Among them, feature extraction-based methods usually use edge detection, optical flow and other technologies to extract features in the image and track the position of the person's feet based on these features. Motion model-based methods track based on the motion features of the object, such as speed, acceleration, etc.

[0004] In addition, some human foot tracking methods based on posture estimation, deep learning trackers and other technologies have been proposed.

[0005] However, these technologies require the image background to be simple and the characters to move in small amplitude, and rely on matting technology to extract the characters from the green screen box for subsequent work. This greatly limits the application scope of foot tracking technology and lacks the technology to solve the movement of characters in complex environments and track them in real time. Summary of the invention

[0006] The present disclosure provides a method and system for tracking the position of a person's feet in a video sequence, as well as an electronic device and a computer-readable storage medium, so as to at least solve the above-mentioned problems in the related art, or may not solve any of the above-mentioned problems.

[0007] According to a first aspect of the present disclosure, a method for tracking the position of a person's feet is provided, and the method may include: acquiring a current image; inputting the current image into a target detection network trained based on a person's foot data set and a semantic segmentation model trained based on a foot segmentation data set in sequence to obtain a target mask of the current image; and based on the target mask of the current image, determining the first foot center of mass position of the current image as the person's foot position in the current image.

[0008] Optionally, the method may also include: when the current image is an image after the first frame image in the acquired multiple frames of images, predicting the second foot center of mass position of the current image based on a Kalman filter algorithm, and using the predicted second foot center of mass position of the current image as the foot position of the person in the current image.

[0009] Optionally, when the current image is an image after the first frame image, predicting the second foot center of mass position of the current image based on the Kalman filter algorithm may include: predicting the second foot center of mass position of the current image based on the foot center of mass position of the previous frame image of the current image based on the Kalman filter algorithm; and correcting the predicted second foot center of mass position of the current image based on the determined first foot center of mass position of the current image, so as to use the corrected second foot center of mass position of the current image as the foot position of the person in the current image. When the previous frame image of the current image is the first frame image among the acquired multiple frames of images, the foot center of mass position of the previous frame image of the current image is the first foot center of mass position; when the previous frame image of the current image is not the first frame image among the acquired multiple frames of images, the foot center of mass position of the previous frame image of the current image is the second foot center of mass position.

[0010] Optionally, correcting the predicted second foot center-of-mass position of the current image based on the determined first foot center-of-mass position of the current image may include: determining the prediction error of the current image based on the prediction error of the previous frame image of the current image; determining the Kalman gain of the current image based on the prediction error of the current image; and correcting the predicted second foot center-of-mass position of the current image based on the Kalman gain of the current image and the determined first foot center-of-mass position of the current image.

[0011] Optionally, the method may further include: determining a correction error of the current image according to a prediction error of the current image and a Kalman gain of the current image, so as to update the prediction error of the current image to the correction error of the current image.

[0012] According to a second aspect of the present disclosure, a system for tracking the position of a person's feet is provided, and the system may include: an image acquisition module, configured to acquire a current image; a network model module, configured to sequentially input the current image into a target detection network trained based on a person's foot data set and a semantic segmentation model trained based on a foot segmentation data set to obtain a target mask of the current image; and a position determination module, configured to determine the first foot centroid position of the current image as the person's foot position in the current image based on the target mask of the current image.

[0013] According to a third aspect of the present disclosure, an electronic device is provided, which may include: at least one processor; and at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by at least one of the processors, prompt at least one of the processors to execute the method for tracking the position of a person's feet.

[0014] According to a fourth aspect of the present disclosure, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the method for tracking the position of a person's feet.

[0015] According to an embodiment of the present disclosure, the target mask of the current image is obtained by sequentially inputting the current image into a target detection network trained based on a human foot data set and a semantic segmentation model trained based on a foot segmentation data set, and based on the target mask of the current image, the first foot centroid position of the current image is determined as the human foot position of the current image. The human foot can be tracked in real time, and the problems of inaccurate tracking caused by position jumps after the feet are blocked or the human moves too fast in the current tracking process and the problem of large interference from external factors in the tracking process due to complex image background are solved.

[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart illustrating a method of tracking a person's foot position according to an example embodiment of the present disclosure;

[0018] Figure 2 is an example flow chart showing training of an object detection network based on a human foot dataset according to an example embodiment of the present disclosure;

[0019] Figure 3 is a schematic block diagram showing a system for tracking the position of a person's feet according to an example embodiment of the present disclosure; and

[0020] Figure 4 is a schematic block diagram illustrating an electronic device according to an example embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0023] It should be noted that “at least one of the several items” appearing in the present disclosure refers to three types of parallel situations: “any one of the several items”, “a combination of any multiple of the several items”, and “all of the several items”. For example, “including at least one of A and B” includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is “executing at least one of step one and step two”, which means the following three parallel situations: (1) executing step one; (2) executing step two; (3) executing step one and step two. “A and / or B” and “A and / or B” appearing in the present disclosure refer to the following three parallel situations: only A; only B; both A and B.

[0024] The present invention discloses a technology for real-time tracking of a person's feet in video image sequence frames based on target detection and semantic segmentation technology in combination with a Kalman filter algorithm. The technology can solve the problems of tracking loss caused by position jumps after the person's feet are blocked in the image sequence, unstable tracking when moving too fast, and severe external interference during tracking the target.

[0025] Figure 1 is a flowchart illustrating a method of tracking a position of a person's feet according to an example embodiment of the present disclosure.

[0026] At step 110 , a current image may be acquired.

[0027] In step 120, the current image may be sequentially input into an object detection network trained based on a human foot dataset and a semantic segmentation model trained based on a foot segmentation dataset to obtain an object mask of the current image.

[0028] Figure 2 is an example flow chart showing training of an object detection network based on a human foot dataset according to an example embodiment of the present disclosure.

[0029] In step 210, data collection can be performed. First, a human foot dataset needs to be collected, which should contain a sufficient number and diversity of pictures to ensure the robustness and generalization performance of the network. Data can be obtained by self-photographing, downloading from the Internet, crowdsourcing, etc. There is no human foot dataset in the current public dataset, and it cannot be trained directly, so a self-made human foot dataset can be made. For example, a self-made human foot dataset includes 24 pictures of different colors, sizes, and angles, a total of 1440 pictures, of which 1300 pictures are used as training data sets and 140 pictures are used as verification data sets.

[0030] At step 220, data pre-processing may be performed.

[0031] Before network training, data needs to be preprocessed. For example, for object detection tasks, the data can be labeled, that is, a bounding box is labeled for each person in the image, and the category label of the bounding box is given, such as "person". For multi-category situations, different category labels can be set for people of different colors, sizes, and angles.

[0032] In addition, data can be augmented to increase the diversity and quantity of data. Data augmentation techniques include mirror flipping, rotation, scaling, translation, random cropping, color jittering, etc. Through these augmentation operations, more data can be obtained while improving the robustness of the network.

[0033] At step 230, network design may be performed.

[0034] For target detection tasks, common network structures can be used, such as Faster R-CNN, YOLO, SSD, etc. Among them, Faster R-CNN is a target detection network based on Region Proposal Network (RPN), which can achieve higher detection accuracy and faster detection speed.

[0035] In network design, you can set network hyperparameters, such as learning rate, optimizer, batch size, etc., as well as network structure parameters, such as convolution kernel size, number of convolution layers, number of fully connected layers, etc. The settings of these parameters can be adjusted according to factors such as the size of the data set, sample distribution, and task difficulty.

[0036] In step 240, network training may be performed. Network training may include three steps: forward propagation, back propagation, and parameter update. During forward propagation, the network performs operations such as feature extraction, target classification, and position regression on the input image to generate bounding box and category probability prediction. During back propagation, the network calculates the gradient based on the error between the predicted result and the true label, and updates the network parameters according to the optimizer algorithm. The network training process can be performed on hardware platforms such as CPU and GPU to speed up the calculation.

[0037] In step 250, network evaluation can be performed. After network training is completed, the network needs to be evaluated to verify its detection accuracy and generalization performance on the validation set. Standard indicators such as mean average precision (mAP), accuracy, recall, etc. can be used to evaluate and compare the detection results of the network. If the detection accuracy of the network is not ideal, it can be optimized by adjusting the network structure, modifying the data augmentation strategy, replacing the optimizer, etc.

[0038] As an example, a target detection network based on YOLOV5 can be used. The target detection network uses YOLOV5 to detect the target person, and a set of person detection frame data can be obtained. This set of data is used as the input of semantic segmentation, which reduces the complexity of input data in semantic segmentation, improves the speed of semantic segmentation, and effectively improves the segmentation accuracy.

[0039] The YOLOV5 target detection algorithm uses mosaic data enhancement at the input end. Masaic data enhancement can splice 4 pictures into one picture by random scaling, random cropping, and random arrangement. This enriches the data set while improving the network training speed and reducing the memory requirements of the model. At the same time, adaptive anchor box calculation and adaptive image scaling are embedded. The adaptive anchor box adaptively calculates the best anchor box according to the name of the data set during each training. Adaptive image scaling solves the problem that the input picture has different aspect ratios and there is a lot of information redundancy in the black border filling, which affects the algorithm reasoning speed. The processed picture at the input end is passed to the benchmark network. The Foucs (downsampling layer) structure in the benchmark network crops the input picture through the slice (Slice-Concat-LeakyRelu) operation to obtain deep features. In the Neck network, the network feature fusion capability can be enhanced by adding a CSP (cross-stage local network) structure. The detection head uses GIoU_Loss as the loss function of Bounding_Boxd. GIoU_Loss adds a measurement method for the intersection scale, which solves the problem of non-overlapping bounding boxes and alleviates the situation where the predicted box and the GT (true value) box do not intersect or cannot distinguish the relative position relationship between the predicted box and the GT box. Finally, an accurate target detection box is output.

[0040] Object detection technology can detect people in images, while semantic segmentation technology can further segment out the feet to obtain more accurate information about the position of the feet.

[0041] In the present disclosure, a foot segmentation dataset can be used to train a real-time semantic segmentation model. First, a set of foot segmentation datasets needs to be collected. This dataset may include foot images and their corresponding segmentation annotations. The segmentation annotation is an image of the same size as the original image, with each pixel annotated with a different color to indicate which semantic category the pixel belongs to.

[0042] When using the foot segmentation dataset for training, you need to select a suitable semantic segmentation model. Commonly used models include PP_LiteSeg, UNet, DeepLabV3, FCN models, etc. You can choose a suitable model based on the actual task requirements and hardware resource limitations. In addition, for the foot segmentation dataset, some common data enhancement methods can be used, such as random rotation, flipping, scaling, cropping, etc. At the same time, you need to pay attention to retaining the main features of the foot in order to improve the accuracy of the model.

[0043] After the dataset is prepared and the model is selected, the training dataset in the foot split dataset can be used for model training. During the training process, common loss functions such as cross entropy loss function, Dice loss function, etc. can be used. In addition, hyperparameters such as learning rate and batch size need to be set during the training process. During the training process, the model needs to be evaluated using a validation dataset so that problems with the model can be discovered in a timely manner and adjusted and optimized. Evaluation indicators include mIoU (mean intersection over union), accuracy, recall, etc., which can be used to evaluate the performance of the model.

[0044] After the model is trained and evaluated, it can be optimized based on its performance. For example, you can try to use a deeper network structure, use a pre-trained model for fine-tuning, add data enhancement strategies, etc. In addition, you can also use some advanced techniques such as transfer learning, adaptive learning rate, etc. to further improve the performance of the model.

[0045] As an example only, a real-time semantic segmentation model based on PP_LiteSeg can be used for semantic segmentation. Here, a foot segmentation dataset can be made. The original image used in the foot segmentation dataset can be the same as the above-mentioned human foot dataset. The number of training and verification is also the same as that for target detection, and they correspond one to one. In the segmentation process, the target object is set to black and the background is set to white to obtain a binary image of RGB three channels. The single-channel data is extracted by using the property of the binary image that is either 0 or 1, and the single-channel target segmentation data can be obtained. The purpose is to reduce the impact of external factors on the accurate tracking of the target object, make the tracking data simpler, and reduce the complexity of tracking calculations. The semantic segmentation network PP_LiteSeg is a lightweight semantic segmentation network that can perform four downsampling in the encoding part. Each layer (stage) introduces the STDC module (short-term dense connection module). The decoding part combines the idea of ​​U-Net upsampling to gradually reduce the number of channels and increase the size of the feature space. A flexible lightweight decoder FLD is proposed to balance the encoding and decoding calculation complexity, so that the network calculation efficiency is improved. In order to better integrate context information, a simple pyramid pooling module (SPPM) is proposed. In the decoder FLD, a unified attention fusion module (UAFM) that integrates multi-layer features is also proposed to improve segmentation accuracy.

[0046] In the UAFM module, the upper-level high-level feature F high Upsample to get high-level features F up :

[0047] F up =Upsample(F high ) (1)

[0048] At the same time, the downsampling stage and F up Low-level features F with the same channel size low As input, the weight α is calculated using the Attention module:

[0049] α=Attention(F up ,F low ) (2)

[0050] Finally, the up-sampled features and down-sampled features are fused to obtain a new feature map:

[0051] F out =F up α+F low ·(1-α) (3)

[0052] FLD consists of two UAFMs and a segmentation head. After two UAFM fusions, 1 / 8 downsampled features are obtained. Conv (convolution)-BN (batch sample normalization)-Relu (activation function) operations are performed in the segmentation head to reduce the channels of the 1 / 8 downsampled features to the number of classes. The upsampling operation is used to expand the feature size to the size of the input image, and the argmax (channel extraction) operation is used to predict the label of each pixel. Each pixel is then post-processed to indicate whether it is the background or the target person, and finally the target mask is output.

[0053] After obtaining the target mask of the current image using the target detection network trained based on the human foot data set and the semantic segmentation model trained based on the foot segmentation data set, in step 130, the first foot center of mass position of the current image can be determined as the human foot position of the current image based on the target mask of the current image.

[0054] In the present disclosure, the target person is detected in the current image and a foot mask is obtained after semantic segmentation. f Considering the uncertainty of the movement of the left and right feet, the connection between the feet, the accuracy and robustness of the foot tracking algorithm, the foot mask is divided into two parts: the left foot mask fL And the right foot mask fR , and calculate the corresponding foot center of mass The centroid is calculated by taking the mask as the calculation area, that is, simplifying it by setting μ(x, y) = 1.

[0055]

[0056]

[0057] in, and Indicates the coordinates of the left or right foot.

[0058] When the current image is an image after the first frame of the acquired multiple frames, the second foot center of mass position of the current image can be predicted based on the Kalman filter algorithm, so that the predicted second foot center of mass position of the current image is used as the foot position of the person in the current image. f1 The centroid As the initial value of the Kalman filter algorithm, it predicts the center of mass of the left and right foot masks of the next frame. Location.

[0059] According to an exemplary embodiment of the present disclosure, based on a Kalman filter algorithm, the second foot center of mass position of the left / right foot of the current image may be predicted according to the foot center of mass position of the previous frame image of the current image:

[0060]

[0061] in, It can represent the center of mass position of the foot in the previous frame image. may represent the predicted position of the second foot center of mass of the current image, and a may be a preset parameter and may be adjusted.

[0062] When the previous frame image of the current image is the first frame image among the multiple frames acquired, the foot center of mass position of the previous frame image of the current image is the first foot center of mass position; when the previous frame image of the current image is not the first frame image among the multiple frames acquired, the foot center of mass position of the previous frame image of the current image is the second foot center of mass position.

[0063] Furthermore, the predicted second foot center of mass position of the current image can be corrected according to the determined first foot center of mass position of the current image, so as to obtain the optimal estimated center of mass of the left / right foot by using the corrected second foot center of mass position of the current image. This method can accurately locate the position of the person's foot.

[0064] According to an exemplary embodiment of the present disclosure, the prediction error of the previous frame image of the current image may be used to predict the image of the previous frame image. Determine the prediction error of the current image

[0065]

[0066] When the current image is the second frame image in the multiple frames of images, the prediction error of the previous frame image of the current image may be 1. The Kalman gain K[t] of the current image may be determined according to the prediction error of the current image as the weight of the correction part:

[0067]

[0068] The predicted second foot center of mass position of the current image may be corrected according to the Kalman gain of the current image and the determined first foot center of mass position Z[t] of the current image:

[0069]

[0070] in, σ 2 It can be a pre-set parameter and can be adjusted.

[0071] In addition, the correction error of the current image can be determined according to the prediction error of the current image and the Kalman gain of the current image. To update the prediction error of the current image to the correction error of the current image:

[0072]

[0073] That is to say, the second foot mass center position of the left foot and the right foot can be predicted and corrected respectively. The corrected error of the current image can be used to determine the prediction error of the next frame, so as to perform iteration.

[0074] Figure 3 is a schematic block diagram illustrating a system 300 for tracking the position of a person's feet according to an example embodiment of the present disclosure.

[0075] The system 300 may include an image acquisition module 310, a network model module 320, and a position determination module 330. The system 300 may be installed in various electronic devices to track the position of a person's feet, or various modules in the system 300 may implement corresponding functions in a separate manner, or the system 300 may be distributed online or in the cloud for use by users.

[0076] The image acquisition module 310 may acquire a current image.

[0077] The network model module 320 may sequentially input the current image into a target detection network trained based on a human foot data set and a semantic segmentation model trained based on a foot segmentation data set to obtain a target mask of the current image.

[0078] The position determination module 330 may determine the first foot centroid position of the current image as the foot position of the person in the current image based on the target mask of the current image.

[0079] According to an example embodiment of the present disclosure, when the current image is an image subsequent to the first frame of the acquired multiple frames of images, the position determination module 330 may also predict the second foot center of mass position of the current image based on the Kalman filter algorithm, so as to use the predicted second foot center of mass position of the current image as the foot position of the person in the current image.

[0080] According to an example embodiment of the present disclosure, when the current image is an image subsequent to the first frame of the acquired multiple frames of images, the position determination module 330 may predict the second foot center of mass position of the current image based on the foot center of mass position of the frame of image before the current image based on the Kalman filter algorithm, and correct the predicted second foot center of mass position of the current image based on the determined first foot center of mass position of the current image, so as to use the corrected second foot center of mass position of the current image as the foot position of the person in the current image.

[0081] According to an example embodiment of the present disclosure, the position determination module 330 may determine a prediction error of the current image based on a prediction error of a previous frame image of the current image; determine a Kalman gain of the current image according to the prediction error of the current image; and correct a predicted second foot center of mass position of the current image according to the Kalman gain of the current image and the determined first foot center of mass position of the current image.

[0082] According to an example embodiment of the present disclosure, the position determination module 330 may determine the correction error of the current image based on the prediction error of the current image and the Kalman gain of the current image to update the prediction error of the current image to the correction error of the current image.

[0083] Various modules according to example embodiments of the present disclosure may be integrated into a single module that performs its functions, or at least one of the various modules may be divided into a plurality of smaller modules.

[0084] Figure 4 is a schematic block diagram illustrating an electronic device 400 according to an example embodiment of the present disclosure.

[0085] According to an exemplary embodiment of the present disclosure, an electronic device 400 may also be provided, and the electronic device 400 may include a processor 410 and a memory 420 storing computer executable instructions. When the computer executable instructions are executed by the processor 410, the processor 410 is prompted to perform the above-mentioned method for tracking the position of a person's foot according to an exemplary embodiment of the present disclosure.

[0086] According to an embodiment of the present disclosure, the target mask of the current image is obtained by sequentially inputting the current image into a target detection network trained based on a human foot data set and a semantic segmentation model trained based on a foot segmentation data set, and based on the target mask of the current image, the first foot centroid position of the current image is determined as the human foot position of the current image. The human foot can be tracked in real time, and the problems of inaccurate tracking caused by position jumps after the feet are blocked or the human moves too fast in the current tracking process and the problem of large interference from external factors in the tracking process due to complex image background are solved.

[0087] The foot tracking technology can be applied to extended reality (XR) technology, which greatly enhances the realism of the characters in the virtual scene. Foot tracking technology can accurately capture the position of the characters after they move in the scene, accurately locate them without adding any external sensors, and achieve depth tracking, so that the characters in the virtual scene can move freely and unrestricted within the shooting range. Foot tracking technology can also be applied to character behavior analysis and predict the next movement direction of the characters. The technology can also be extended to locate the exact coordinates of the target character in three-dimensional space, which may play a certain role in promoting the fields of autonomous driving technology, intelligent video surveillance, human-computer interaction, and robot visual navigation.

[0088] According to an embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to perform a method according to an exemplary embodiment of the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0089] According to an embodiment of the present disclosure, a computer program product may also be provided. Instructions in the computer program product may be executed by at least one processor in an electronic device to perform the method according to the exemplary embodiment of the present disclosure.

[0090] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0091] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims.

Claims

1. A method for tracking the position of a person's feet, comprising: Get the current image; Inputting the current image into a target detection network trained based on a human foot data set and a semantic segmentation model trained based on a foot segmentation data set in sequence to obtain a target mask of the current image; and Based on the target mask of the current image, a first foot centroid position of the current image is determined as the foot position of the person in the current image.

2. The method of claim 1, further comprising: When the current image is an image after the first frame of the acquired multiple frames of images, the second foot center of mass position of the current image is predicted based on the Kalman filter algorithm, so that the predicted second foot center of mass position of the current image is used as the foot position of the person in the current image.

3. The method of claim 2, wherein: When the current image is an image subsequent to the first frame of image, predicting the second foot center of mass position of the current image based on a Kalman filter algorithm includes: Based on the Kalman filter algorithm, predicting the second foot center of mass position of the current image according to the foot center of mass position of the previous frame image of the current image; and According to the determined first foot center of mass position of the current image, the predicted second foot center of mass position of the current image is corrected, so as to use the corrected second foot center of mass position of the current image as the foot position of the person in the current image, When the previous frame image of the current image is the first frame image of the acquired multiple frames of images, the foot center of mass position of the previous frame image of the current image is the first foot center of mass position, When the previous frame image of the current image is not the first frame image among the acquired multiple frames of images, the foot center of mass position of the previous frame image of the current image is the second foot center of mass position.

4. The method of claim 3, wherein: According to the determined first foot center of mass position of the current image, correcting the predicted second foot center of mass position of the current image comprises: Determining a prediction error of the current image based on a prediction error of a previous frame image of the current image; Determining a Kalman gain of the current image according to a prediction error of the current image; and The predicted second foot center-of-mass position of the current image is corrected according to the Kalman gain of the current image and the determined first foot center-of-mass position of the current image.

5. The method of claim 4, further comprising: A correction error of the current image is determined according to the prediction error of the current image and the Kalman gain of the current image, so as to update the prediction error of the current image to the correction error of the current image.

6. A system for tracking the position of a person's feet, including: An image acquisition module is configured to acquire a current image; A network model module is configured to sequentially input the current image into an object detection network trained based on a human foot data set and a semantic segmentation model trained based on a foot segmentation data set to obtain an object mask of the current image; as well as The position determination module is configured to determine the first foot centroid position of the current image as the foot position of the person in the current image based on the target mask of the current image.

7. Electronic equipment, including: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by at least one of the processors, the at least one processor is prompted to perform the method as claimed in any one of claims 1 to 5.

8. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor is prompted to perform the method as claimed in any one of claims 1 to 5.

Citation Information

Cited By

  • Finished artificial board surface defect detection method based on improved YOLO11 model

    CN122492639A