Method for generating training sample for pose recognition and related device

By obtaining the target mapping relationship between the two recognition devices, a dynamic pose image set based on the real environment is generated as a training sample, which solves the problem of low pose recognition accuracy caused by manual annotation and rendering of images, and improves the recognition performance of the model. and application effects.

CN118628554APending Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Due to the subjective arbitrariness of manual annotation and the difference between the image rendered by the game engine and the real environment during the training phase, the existing pose recognition model has low recognition accuracy and is difficult to apply in actual scenarios.

Method used

By obtaining the target mapping relationship between two fixedly connected recognition devices, a dynamic pose image set based on the real environment is generated as a training sample to avoid the subjectivity of manual annotation and over-fitting of rendered images.

Benefits of technology

It improves the recognition accuracy of the model, enhances the ability to restore real poses, simplifies operations and reduces costs, and is suitable for quickly generating a large number of training samples.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628554A
    Figure CN118628554A
Patent Text Reader

Abstract

The invention relates to the field of computer vision, and provides a method for generating a training sample for pose recognition and a related device. The method comprises the following steps: mapping each second identification image obtained by one identification device by acquiring a target mapping relationship between two fixedly connected identification devices to obtain a corresponding mapping image set, and taking the mapping image set and a pose image set actually collected by the device in an application scene as a training sample set. Compared with a manually labeled training sample set, the labeling accuracy of the obtained training sample set is improved, and the model performance can be improved; compared with a rendered image rendered by a game engine, the pose image in the training sample is derived from the real collection data of the application scene, and the actual pose condition of the target object is better restored, so that when the training sample set training model generated by the method is used for recognizing the real pose image, the real pose image can be recognized more accurately. And the model performance is superior to that obtained by using rendered image training.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In recent years, with the development of information technology and the popularization of intelligent technology, technologies such as artificial intelligence are also developing rapidly. Among them, posture recognition technology has been widely used in related fields of computer vision. For example, using a posture recognition model based on deep learning, human posture recognition is performed on the image to be recognized captured by the camera, and the posture recognition results of each detected object in the image to be recognized are obtained.

[0003] During the training phase, training samples obtained through manual annotation or game engine rendering are often used to identify the pose recognition model.

[0004] However, manually labeled training samples are obtained by subjectively labeling the labeled objects, which is quite subjective and blind. The key points labeled by each person for the same image may also be different. Therefore, the model trained with manually labeled training samples also has certain biases when performing pose recognition, which is not objective enough and reduces the recognition accuracy of the model.

[0005] Secondly, since the rendered images obtained by the game engine have obvious differences from the real images collected in the real environment in many aspects such as skin texture, lighting changes and background environment, the model trained using the rendered images suffers from overfitting. When recognizing real images, the model performs poorly and is difficult to apply in actual scenarios.

[0006] In view of this, it is necessary to provide a new method for generating training samples for posture recognition to overcome the above defects. Summary of the invention

[0007] The embodiments of the present application provide a method for generating training samples for posture recognition and related devices to solve the problem of how to generate high-quality posture training samples.

[0008] In a first aspect, an embodiment of the present application provides a method for generating a training sample x for posture recognition, comprising:

[0009] Respectively obtain two fixedly connected recognition devices, and each obtains a set of recognition images by performing posture recognition on the same target object, wherein the set of recognition images includes: a first recognition image generated by a specified posture recognition, and a second recognition image generated by a dynamic posture recognition, wherein the dynamic posture is any posture of the target object;

[0010] Performing multiple image readings on the two obtained recognition image sets respectively; during each reading, obtaining a first recognition image set with synchronized target shooting time and from different recognition devices, and obtaining a second recognition image set with synchronized target shooting time and from different recognition devices, and obtaining a target mapping relationship between the two recognition devices based on the first recognition image set and the second recognition image set;

[0011] Based on the obtained mapping relationships of each target, each second recognition image obtained by a selected recognition device is mapped to obtain a mapping image set, and the mapping image set is combined with a pose image set collected by another recognition device as a training sample set for pose recognition, wherein the pose image is obtained by photographing the dynamic pose of the target object by the other recognition device.

[0012] In a second aspect, an embodiment of the present application further provides a device for generating training samples for posture recognition, comprising:

[0013] An image receiving unit is used to respectively obtain a set of recognition images obtained by two fixedly connected recognition devices, each of which performs posture recognition on the same target object, wherein the set of recognition images includes: a first recognition image generated for a specified posture recognition, and a second recognition image generated for a dynamic posture recognition, wherein the dynamic posture is an arbitrary posture of the target object;

[0014] An image mapping unit is used to perform multiple image readings on the two obtained recognition image sets respectively; during each reading, a first recognition image set with synchronized target shooting time and from different recognition devices is obtained, and a second recognition image set with synchronized target shooting time and from different recognition devices is obtained, and based on the first recognition image set and the second recognition image set, a target mapping relationship between the two recognition devices is obtained;

[0015] A sample generation unit is used to map each second recognition image obtained by a selected recognition device based on the obtained mapping relationships of each target, obtain a mapping image set, and combine the mapping image set with a pose image set collected by another recognition device as a training sample set for pose recognition, wherein the pose image is obtained by photographing the dynamic pose of the target object by the other recognition device.

[0016] Optionally, after time synchronization is performed on the two recognition image sets, the training sample generation device further includes an image screening unit, and the image screening unit is used to:

[0017] The two frames of first recognition images with synchronized target shooting time and from different recognition devices are screened respectively, and the two frames of first recognition images with different recognition postures are deleted.

[0018] Optionally, the image screening unit is used to:

[0019] The two frames of first recognition images in the two recognition image sets are synchronized in shooting time and are from different recognition devices, and are taken as a first recognition image group;

[0020] For each first recognition image group obtained, the following operations are performed respectively: posture matching is performed on two frames of first recognition images included in one first recognition image group, and if the matching fails, the two frames of first recognition images are deleted from the two recognition image sets.

[0021] In a third aspect, an embodiment of the present application further provides a computer device, comprising a processor and a memory, wherein the memory stores a program code, and when the program code is executed by the processor, the processor executes any one of the steps of the above-mentioned method for generating training samples for posture recognition.

[0022] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute any step of the above-mentioned method for generating training samples for posture recognition.

[0023] In a fifth aspect, an embodiment of the present application further provides a computer program product, comprising computer instructions, which are executed by a processor to perform any of the steps of the above-mentioned method for generating training samples for posture recognition.

[0024] The beneficial effects of this application are as follows:

[0025] The embodiment of the present application provides a method, device, equipment and storage medium for generating training samples for posture recognition, the method comprising: by acquiring the target mapping relationship between two fixedly connected recognition devices, mapping each second recognition image obtained by one of the recognition devices, obtaining a corresponding mapping image set, and using the mapping image set and the posture image set actually collected by the device in the application scene as a training sample set. Compared with the manually annotated training sample set, the training sample set obtained by the present application avoids the problems caused by manual annotation, and the annotation accuracy is improved, which is conducive to improving the performance of the model; compared with the rendered image rendered by the game engine, the posture image in the training sample of the present application is derived from the real acquisition data of the application scene, and the actual posture of the target object is restored more. Therefore, the posture recognition model is trained using the training sample set generated by the present application. When the model recognizes the real posture image, the model performs better than the model trained using the rendered image. In addition, the training sample generation method proposed in the embodiment of the present application is simple to operate, low in cost, and is also suitable for generating a large number of training samples for posture recognition in a short time.

[0026] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 This is an optional schematic diagram of an application scenario in an embodiment of the present application;

[0029] Figure 2A A schematic diagram of a process for generating training samples provided in an embodiment of the present application;

[0030] Figure 2B A schematic diagram of fixedly connecting two identification devices provided in an embodiment of the present application;

[0031] Figure 2C A schematic diagram of a specified hand gesture provided in an embodiment of the present application;

[0032] Figure 2D A schematic diagram of a process for obtaining a time difference of a frame of pose image provided in an embodiment of the present application;

[0033] Figure 2E A logical schematic diagram of the time difference of obtaining a frame of pose image provided in an embodiment of the present application;

[0034] Figure 2F A logical schematic diagram of performing one image reading on two recognition image sets provided in an embodiment of the present application;

[0035] Figure 2G A logical schematic diagram of another image reading provided in an embodiment of the present application;

[0036] Figure 2H A schematic diagram of a process for obtaining a target mapping relationship provided in an embodiment of the present application;

[0037] Figure 3A A schematic diagram of a process for generating a training sample set for gesture recognition provided in an embodiment of the present application;

[0038] Figure 3B A logical schematic diagram of generating a training sample set for gesture recognition provided in an embodiment of the present application;

[0039] Figure 3CA schematic diagram of aligning recognition images output by different gesture recognition algorithms provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of the structure of a training sample generation device provided in an embodiment of the present application;

[0041] Figure 5 A schematic diagram of the hardware composition structure of a computer device to which an embodiment of the present application is applied. DETAILED DESCRIPTION

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

[0043] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.

[0044] 1. Artificial Intelligence (AI):

[0045] Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0046] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies; artificial intelligence software technologies mainly include computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0047] With the research and advancement of artificial intelligence technology, artificial intelligence has been studied and applied in many fields, such as common smart homes, smart customer service, virtual assistants, smart speakers, smart marketing, unmanned driving, autonomous driving, robots, smart medical care, etc. I believe that with the development of technology, artificial intelligence will be applied in more fields and play an increasingly important role.

[0048] 2. Machine Learning:

[0049] Machine learning is a multi-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory, etc. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance.

[0050] Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence, including deep learning, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0051] 3. Computer vision refers to the simulation of biological vision using cameras, computers and other related equipment. Its main task is to process the collected pictures or videos to obtain three-dimensional information of the corresponding scene, and further perform graphic processing to make the computer processing into an image that is more suitable for human eye observation or transmission to instrument detection.

[0052] 4. Virtual Reality (VR), also known as virtual technology and virtual environment, is a three-dimensional virtual world created by computer simulation, which provides users with visual and other sensory simulations, allowing users to feel as if they are in the real world and observe things in the three-dimensional space instantly and without restrictions. With the development of science and technology, VR technology has also made great progress and has gradually become a new field of science and technology.

[0053] 5. A rigid body is an object whose shape and size remain unchanged during motion and after being acted upon by a force, and the relative positions of the internal points remain unchanged. Since any object will deform under the action of a force, a rigid body is only an ideal model, and an absolute rigid body does not actually exist. However, if the degree of deformation is extremely small relative to the geometric size of the object itself, the deformation can be ignored when studying the motion of the object.

[0054] 6. Simultaneous Localization And Mapping (SLAM) algorithm: It refers to the process of calculating the position of a moving object and building an environmental map based on the information from the sensor when the moving object's position is uncertain, and using the map for autonomous positioning and navigation. It is mainly used to solve the problem of how a robot can determine its own position and movement trajectory by observing the environment when moving in an unknown environment, and at the same time build a map of the surrounding environment.

[0055] The following is a brief introduction to the design concept of the embodiment of the present application:

[0056] In recent years, with the development of information technology and the popularization of intelligent technology, technologies such as artificial intelligence are also developing rapidly. Among them, posture recognition technology has been widely used in related fields of computer vision. For example, using a posture recognition model based on deep learning, human posture recognition is performed on the image to be recognized captured by the camera, and the posture recognition results of each detected object in the image to be recognized are obtained.

[0057] During the training phase, training samples obtained through manual annotation or game engine rendering are often used to identify the pose recognition model.

[0058] However, manually labeled training samples are obtained by subjectively labeling the labeled objects, which is quite subjective and blind. The key points labeled by each person for the same image may also be different. Therefore, the model trained with manually labeled training samples also has certain biases when performing pose recognition, which is not objective enough and reduces the recognition accuracy of the model.

[0059] Secondly, since the rendered images obtained by the game engine have obvious differences from the real images collected in the real environment in many aspects such as skin texture, lighting changes and background environment, the model trained using the rendered images suffers from overfitting. When recognizing real images, the model performs poorly and is difficult to apply in actual scenarios.

[0060] In view of this, an embodiment of the present application proposes a method for generating training samples for posture recognition to overcome the above-mentioned defects.

[0061] The method includes: respectively obtaining two fixedly connected recognition devices, each performing posture recognition on the same target object to obtain a recognition image set, and respectively performing multiple image readings on the two obtained recognition image sets; during each reading, obtaining a first recognition image set with synchronized target shooting time and coming from different recognition devices, and obtaining a second recognition image set with synchronized target shooting time and coming from different recognition devices, and obtaining a target mapping relationship between the two recognition devices based on the obtained first recognition image set and the second recognition image set, and then mapping each second recognition image obtained by one of the recognition devices to the spatial coordinate system of the other recognition device based on the obtained target mapping relationships to obtain a corresponding mapping image set, and combining the mapping image set with a posture image set collected by the other recognition device as a training sample set for posture recognition.

[0062] The present application obtains the target mapping relationship between two fixedly connected recognition devices, maps each second recognition image obtained by one of the recognition devices to the spatial coordinate system of the other recognition device, obtains the corresponding mapping image set, and uses the mapping image set and the pose image set actually collected by the device in the application scenario as the training sample set. Compared with the manually annotated training sample set, the training sample set obtained by the present application avoids the problems caused by manual annotation, and the annotation accuracy is improved, which is conducive to improving the performance of the model; compared with the rendered images rendered by the game engine, the pose images in the training samples of the present application are derived from the real collected data of the application scenario, and the actual pose of the target object is restored more. Therefore, the pose recognition model is trained using the training sample set generated by the present application. When the model recognizes the real pose image, the model performs better than the model trained using the rendered image. In addition, the training sample generation method proposed in the embodiment of the present application is simple to operate, low in cost, and is also suitable for generating a large number of training samples for pose recognition in a short time.

[0063] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0064] The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, game entertainment (such as VR interactive games, somatosensory games, etc.), smart transportation, assisted driving, etc.

[0065] Figure 1 One application scenario is shown, including two terminal devices 110 and a server 130, and each terminal device 110 establishes a communication connection with the server 130 through a wired network or a wireless network.

[0066] The terminal device 110 in the embodiment of the present application is a device with image acquisition and image processing capabilities, including but not limited to: a smart phone, a tablet computer, a laptop computer, and a desktop computer.

[0067] The server 130 of the embodiment of the present application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. This application does not make any restrictions here.

[0068] The two terminal devices 110 are fixedly connected together, and the following operations are performed for each terminal device 110: the terminal device 110 calls the image acquisition unit to continuously acquire the pose images of the target object for multiple times, and then calls the pose recognition unit to perform pose recognition on each pose image, and outputs a corresponding recognition image set. Among them, each frame of the recognition image is marked with the coordinate position frame of multiple image key points recognized by the corresponding device.

[0069] It should be noted that in the specific implementation of this application, object data related to posture acquisition is involved. When the above embodiments of this application are applied to specific products or technologies, it is necessary to obtain the object's permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0070] The training sample generator deployed on the server 130 obtains the recognition image sets obtained by performing posture recognition on the same target object from two fixedly connected terminal devices 110 respectively through the wired network or wireless network established between the server 130 and each terminal device 110. Then, based on the time difference carried by each frame of the recognition image in the two recognition image sets, the two frames of recognition images obtained by the two recognition devices based on the same posture recognition of the same target object are synchronized in time.

[0071] Afterwards, the training sample generator performs multiple image readings on the two obtained recognition image sets, wherein each time a first recognition image set with target shooting time synchronization and coming from different terminal devices 110 is obtained, as well as a second recognition image set with target shooting time synchronization and coming from different terminal devices 110 is obtained, and based on the first recognition image set and the second recognition image set, a target mapping relationship between the two terminal devices 110 is obtained.

[0072] Finally, the training sample generator converts the recognition image set output by one of the terminal devices 110 to the spatial coordinate system of another terminal device 110 through the constructed target mapping relationships to obtain the corresponding mapping image set, and combines the mapping image set with the pose image set collected by the terminal device 110 as the training sample set for pose recognition.

[0073] Next, see Figure 2A The process of generating a training sample set by the training sample generator is as follows:

[0074] S201: respectively obtain two fixedly connected recognition devices, and each obtain a set of recognition images by performing posture recognition on the same target object, wherein the set of recognition images includes: a first recognition image generated for specified posture recognition, and a second recognition image generated for dynamic posture recognition, where the dynamic posture is any posture of the target object.

[0075] In order to ensure that there is no relative displacement or rotation between the two recognition devices during the image acquisition and image processing stages, which may easily cause data errors, the two recognition devices need to be stacked together and fixedly connected. Figure 2B However, it should be noted that when the two recognition devices are fixedly connected, the image acquisition unit on the recognition device should not be blocked, otherwise, the image acquisition work performed by the recognition device will be affected.

[0076] In order to facilitate the recognition device to perform posture recognition, this application specifies a set of specified postures, including but not limited to: the target object is facing the image acquisition unit of the recognition device, which is used to calibrate the x and y coordinates of the spatial coordinate system; the back of the target object is facing the image acquisition unit, which is used to calibrate the -x and -y coordinates in the spatial coordinate system; the target object is facing upward, which is used to calibrate the y and z coordinates of the spatial coordinate system; the target object is facing downward, which is used to calibrate the -y and -z coordinates of the spatial coordinate system.

[0077] Taking the collection of user hand gestures as an example, specify the hand gestures such as Figure 2C As shown, it includes: the palm facing the camera of the recognition device, the back of the hand facing the camera of the recognition device, the palm facing up, and the palm facing down.

[0078] In order to distinguish between the specified posture and the dynamic posture, the present application performs two rounds of image acquisition. In the first round, the two recognition devices simultaneously perform image acquisition for the specified posture of the same target object to obtain the corresponding posture image. In the second round, the two recognition devices simultaneously perform image acquisition for any posture of the same target object to obtain the corresponding posture image.

[0079] The current time synchronization solution is proposed for business scenarios with low real-time requirements. The implementation process of the solution is as follows: when the server receives the request message sent by the recognition device, it sends a response message containing the current system time of the server to the recognition device, so that the recognition device updates the original shooting time of the pose image to the current system time of the server.

[0080] However, this solution ignores the delay time of data transmission back and forth between the identification device and the server, and has low synchronization accuracy, which can only be accurate to seconds at most. It is impossible to achieve millisecond-level synchronization or higher-precision time synchronization.

[0081] If this solution is applied to VR interactive games, problems such as screen freezes and inability to respond to user commands in a timely manner will occur; if it is applied to autonomous driving scenarios, the virtual driving route calculated by the model will not match the actual driving route of the vehicle, which will cause serious problems such as route navigation errors and road traffic accidents. Therefore, the current time synchronization solution is not suitable for scenarios with high real-time requirements.

[0082] In addition, if a corresponding posture image is saved each time a request response is received from the server, the posture image collected by the recognition device will be out of sync with the actual posture of the target object, resulting in serious problems such as high latency and screen freeze.

[0083] Therefore, the present application proposes a new time synchronization solution to solve the above-mentioned problems. During the entire image acquisition process, the two recognition devices respectively call a time synchronization thread independent of the data acquisition thread, and send a query request to the server at a frequency greater than or equal to the data acquisition frequency to obtain the communication time difference between the device and the server, and use the communication time difference as the time difference of a frame of pose image, and write it into the data frame of the pose image, so that each frame of pose image can obtain a time difference with the acquisition time that is less than the acquisition interval, thereby achieving millisecond-level synchronization, or higher-precision time synchronization, which is more suitable for application scenarios with high real-time requirements such as VR scenarios and augmented reality scenarios.

[0084] Calling the independently running time synchronization thread to obtain the time difference does not interfere with the data acquisition thread running in parallel. While improving the processing efficiency, more importantly, there is no need to continue to collect the next frame of pose images after obtaining the time difference of the current frame of pose images. This ensures the synchronization between data acquisition and the actual scene, and avoids problems such as high latency and screen freezes.

[0085] Since the two recognition devices perform the same operations, for the sake of convenience, one recognition device is used as an example for illustration. Figure 2D to Figure 2E As shown, the process of the device obtaining the time difference of a frame of posture image is:

[0086] S2011: The identification device calls the clock synchronization thread and sends a query request containing its own current device time to the server at a frequency greater than or equal to the data collection frequency;

[0087] S2012: After receiving the query request, the server returns a request response to the identification device, where the request response includes: the current device time of the identification device and the current system time of the server;

[0088] S2013: The data acquisition thread of the identification device determines the time difference of a frame of pose image acquired at the current device time based on the request response and the packet receiving time of the request response, and caches the obtained time difference and the original shooting time of the pose image into the corresponding data frame.

[0089] The two recognition devices respectively perform the above operations S2011-2013 to obtain a time difference that is aligned with each other and the error is less than the query interval. The specific implementation method is shown in Formula 1, where t1 is the current device time of the recognition device, t2 is the current system time of the server, and t a is the packet receiving time, t diff is the time difference of the pose images.

[0090] t diff =t2-(t1+t a ) / 2 Formula 1;

[0091] The two recognition devices perform posture recognition on the posture image sets collected by each of them to obtain corresponding recognition image sets. When sending the recognition image sets, the two recognition devices also send the original shooting time and time difference of the corresponding posture images to the training sample generator.

[0092] After obtaining the recognition image sets sent by the two recognition devices, the training sample generator adjusts the original shooting time of the corresponding recognition images based on the time difference carried by each recognition image in the two recognition image sets, so that the two recognition image frames obtained based on the same posture recognition of the same target object in the two recognition image sets are synchronized in time. The time difference carried by a recognition image frame represents: the communication time difference between the corresponding recognition device and the server when the corresponding posture image of the recognition image is collected.

[0093] The specific time synchronization process is as follows: respectively obtain the original shooting time and time difference carried by each recognition image in the two recognition image sets, where the original shooting time represents: the time when the corresponding posture image of a frame of recognition image is collected; then superimpose each original shooting time and the associated time difference to obtain the target shooting time of each recognition image.

[0094] The specific implementation method is shown in Formula 2, where t is the original shooting time of the pose image, and t diff is the time difference of the pose images, t sync is the target capture time of the recognition image.

[0095] t sync =t+t diff Formula 2;

[0096] Since the two recognition devices are fixedly connected together, in theory, the two recognition devices will simultaneously capture the same posture of the same target object. However, due to factors such as poor communication signals and data transmission delays, two frames of posture images captured by different recognition devices at the same time may contain different postures. Therefore, the recognition images obtained by the two recognition devices will also be different. Based on the two unaligned recognition images, the calculated target mapping relationship is inaccurate, which will further affect the recognition accuracy of each key point in the mapped image.

[0097] Therefore, after the two recognition image sets are synchronized in time, two frames of first recognition images that are synchronized in target shooting time and are from different recognition devices are screened respectively, and the two frames of first recognition images with different recognition postures are deleted.

[0098] The specific screening process is: the two frames of first recognition images with synchronized target shooting time and from different recognition devices in the two recognition image sets are taken as a first recognition image group; for each first recognition image group obtained, the following operations are performed respectively: posture matching is performed on the two frames of first recognition images contained in a first recognition image group; if the matching fails, the two frames of first recognition images are deleted from the two recognition image sets.

[0099] In addition, since the two recognition devices will collect and recognize the specified posture of the target object multiple times and obtain multiple frames of first recognition images respectively, in order to reduce the computational pressure of the training sample generator, after the two recognition image sets are time synchronized, the first recognition images of all specified postures in the two recognition image sets can be selected, and each specified posture includes at least: two frames of first recognition images with synchronized target shooting time and from different recognition devices.

[0100] S202: Perform multiple image readings on the two obtained recognition image sets respectively; during each reading, obtain a first recognition image set that is synchronized with the target shooting time and comes from different recognition devices, and obtain a second recognition image set that is synchronized with the target shooting time and comes from different recognition devices, and based on the obtained first recognition image set and the second recognition image set, obtain a target mapping relationship between the two recognition devices.

[0101] In a VR scenario, when each recognition device performs posture recognition on its collected posture images, it will be interfered by the SLAM algorithm running on the device, resulting in image key point offset in the recognition images output by each recognition device.

[0102] The two recognition devices perform posture recognition on the posture images collected at the same time respectively, and the offset data between the two frames of recognition images obtained are also different. However, the specific offset data belongs to the internal data of the recognition device and the specific data information cannot be obtained. Therefore, the two recognition image sets cannot be synchronized.

[0103] Moreover, the current posture synchronization scheme stipulates that after the calibration and synchronization of the recognition images output by multiple recognition devices, no relative displacement can occur between the multiple fixedly connected recognition devices, and the posture output of each recognition device cannot be interfered with by other modules, otherwise, the calibration result will be invalid. However, the recognition image output by the current recognition device has been interfered with by the SLAM algorithm running on this device. Therefore, the currently used posture synchronization scheme will fail in the VR scene. In order to solve this problem, the present application combines the first recognition image with the second recognition image to solve the target mapping relationship between the two recognition devices.

[0104] The two obtained recognition image sets are respectively subjected to multiple image readings, wherein each time a first recognition image set whose target shooting time is synchronized and comes from different recognition devices is obtained, and a second recognition image set whose target shooting time is synchronized and comes from different recognition devices is obtained, and then based on the obtained first recognition image set and second recognition image set, a target mapping relationship between the two recognition devices is obtained.

[0105] Figure 2F One of the reading methods is shown, and the specific process is: using a sliding window 1, a first recognition image set with synchronized target shooting time and from different recognition devices is read from two recognition image sets, and the set includes: two frames of first recognition images from different recognition devices;

[0106] At the same time, a sliding window 2 is used to read a second recognition image set from the two recognition image sets, which is synchronized in target shooting time and comes from different recognition devices. The set includes two frames of second recognition images from different recognition devices.

[0107] Figure 2GAnother reading method is shown, and the specific process is: all first recognition images in the two recognition image sets that are synchronized in target shooting time and come from different recognition devices are combined into a first recognition image set; at the same time, a second recognition image set that is synchronized in target shooting time and comes from different recognition devices is read from the two recognition image sets using a sliding window 3, and the set includes: n frames of second recognition images from different recognition devices.

[0108] It should be noted that, since the present application separately collects posture images containing specified postures and posture images containing dynamic postures, the original shooting time between the posture images containing specified postures and the posture images containing dynamic postures is different. Furthermore, the target shooting time of the first recognition image obtained by the specified posture recognition and the target shooting time of the second recognition image obtained by the dynamic posture recognition are also different. Optionally, such as Figure 2H As shown, the specific process of obtaining the target mapping relationship is:

[0109] S2021: Determine a first mapping relationship between two recognition devices based on a key point coordinate set of each first recognition image in a first recognition image set, and determine a second mapping relationship between the two recognition devices based on a key point coordinate set of each second recognition image in a second recognition image set.

[0110] Since the methods of determining the two mapping relationships are the same, for ease of description, the first recognition image set is taken as an example for explanation.

[0111] From a first recognition image set, obtain the key point coordinate sets of each of the two frames of first recognition images, and then obtain the coordinate distance of the corresponding image key point between the two frames of first recognition images based on the key point coordinates representing the same image key point in the two key point coordinate sets, and then determine the first mapping relationship between the two recognition devices based on the obtained coordinate distances.

[0112] The first mapping relationship and the second mapping relationship at least include: a rotation matrix and a displacement matrix of the same image key point between two recognition devices.

[0113] S2022: Obtain a target mapping relationship between two identification devices based on the obtained first mapping relationship and the second mapping relationship.

[0114] Because in VR scenes, when two fixedly connected recognition devices are performing posture recognition, they will be interfered by the SLAM algorithm of this device, resulting in unusable calibration results, and thus it is impossible to accurately and reasonably construct the target mapping relationship between the two recognition devices. In order to solve this problem, this application combines a first recognition image set with a second recognition image set each time it reads, and solves a relatively stable target mapping relationship.

[0115] When a second recognition image set only contains two frames of second recognition images from different recognition devices, the target mapping relationship is applied to these two frames of second recognition images; when a second recognition image set only contains at least four frames of second recognition images from different recognition devices, the target mapping relationship is applied to the latest frame of the second recognition image in this set.

[0116] S203: Based on the obtained mapping relationships of each target, each second recognition image obtained by a selected recognition device is mapped to obtain a mapping image set, and the mapping image set is combined with a pose image set collected by another recognition device as a training sample set for pose recognition. The pose image is obtained by capturing the dynamic pose of the target object by another recognition device.

[0117] The training sample generator maps each second recognition image obtained by a selected recognition device based on the obtained target mapping relationship to obtain a mapping image set. When mapping one of the second recognition images, the specific implementation method is as shown in Formula 3, using the rotation matrix R and displacement matrix T of the second recognition image to map a second recognition image P output by a recognition device. H1 , mapped to the spatial coordinate system of another recognition device, and the corresponding mapping image P is obtained calibrated .

[0118] P calibrated =P H1 ×R+T Formula 3;

[0119] In addition to generating training samples, the training sample generation method provided in the embodiment of the present application can also utilize the target mapping relationship between the two recognition devices to map the recognition image set output by the device to be evaluated to the spatial coordinate system of the reference evaluation device, and then quantitatively evaluate the recognition effect of the device to be evaluated based on the comparison result between the mapped image set and the recognition image set output by the reference evaluation device.

[0120] The method provided in the embodiment of the present application can be applied to multiple scenarios. Taking the VR scenario as an example, the method is applied to a set of hand gesture images output by two VR head-mounted devices to obtain a training sample set for gesture recognition.

[0121] The recognition accuracy of VR head-mounted device A is higher than that of VR head-mounted device B, but VR head-mounted device A does not support obtaining the original camera image collected by this device. Therefore, in order to use the high-precision recognition image set output by VR head-mounted device A to generate a training sample set for gesture recognition, the training sample generation method provided in the embodiment of the present application can be applied. Based on the target mapping relationship between the two VR head-mounted devices, the recognition image set of VR head-mounted device A is mapped to the spatial coordinate system of VR head-mounted device B to obtain a mapping image set, and the mapping image set and the hand posture image set collected by VR head-mounted device B are used as a training sample set for gesture recognition. The specific sample generation process is as follows: Figure 3A-3B As shown:

[0122] S301: two fixedly connected VR head-mounted devices collect and recognize a user's designated hand gesture, and output respective first recognition image sets;

[0123] S302: two fixedly connected VR head-mounted devices collect and recognize any hand gesture of the user, and output respective second recognition image sets;

[0124] S303: The training sample generator obtains the recognition image sets sent by the two VR head-mounted devices respectively, where the sets include: a first recognition image and a second recognition image;

[0125] S304: The training sample generator adjusts the original shooting time of the corresponding recognition images based on the time difference carried by each recognition image in the two recognition image sets, so as to synchronize the time between two frames of recognition images obtained for the same posture recognition of the same target object in the two recognition image sets;

[0126] S305: The training sample generator reads the two obtained recognition image sets multiple times, wherein each time the image is read, all the first recognition images in the two recognition image sets that are synchronized in target shooting time and come from different recognition devices are combined into a first recognition image set; at the same time, a second recognition image set that is synchronized in target shooting time and comes from different recognition devices is read from the two recognition image sets using a sliding window 3, wherein the set includes: n frames of second recognition images from different recognition devices, and based on the obtained first recognition image set and the second recognition image set, a target mapping relationship between the second recognition image of the latest frame in the second recognition image set is determined;

[0127] S306: Based on the obtained target mapping relationships, each second recognition image obtained by the VR head-mounted device A is mapped to the spatial coordinate system of the VR head-mounted device B to obtain a mapping image set, and the mapping image set is combined with the hand posture image set collected by the VR head-mounted device B as a training sample set for gesture recognition.

[0128] However, different gesture recognition algorithms use different hand templates, such as Figure 3C As shown in the figure, it is impossible to perfectly align the recognition images output by different gesture recognition algorithms. Therefore, when the gesture recognition results are actually used, the key points at the end of the finger and the key points at the root of the finger are mainly used for image alignment, and there is no mandatory requirement for the key points of the wrist and other joints.

[0129] Based on the obtained target mapping relationships, the key points of the finger roots and the finger tips in each second recognition image output by the VR head-mounted device A are mapped to the spatial coordinate system of the VR head-mounted device B to obtain the corresponding mapping image set, and the mapping image set is combined with the hand posture image set collected by the VR head-mounted device B as a training sample set for gesture recognition.

[0130] In this way, even if the hand posture image collected by VR head-mounted device A cannot be obtained, the target mapping relationship constructed between the two frame devices can be used to map the high-precision recognition image output by device A to the spatial coordinate system of VR head-mounted device B, thereby obtaining training samples with high standard accuracy. Compared with the manual annotation sample generation method, the training sample generation method proposed in the embodiment of the present application has high processing efficiency but low labor cost, and can generate a large number of training samples in a short time. Moreover, the method of generating training samples based on the recognition results output by the existing model in this scenario is applicable to more scenarios and has strong scalability.

[0131] Based on the same inventive concept as the above method embodiment, the present application embodiment also provides a device for generating training samples for posture recognition. Figure 4 As shown, the training sample generating device 400 may include:

[0132] The image receiving unit 401 is used to respectively obtain a set of recognition images obtained by two fixedly connected recognition devices, each of which performs posture recognition on the same target object, wherein the set of recognition images includes: a first recognition image generated for a specified posture recognition, and a second recognition image generated for a dynamic posture recognition, where the dynamic posture is any posture of the target object;

[0133] The image mapping unit 402 is used to perform multiple image readings on the two obtained recognition image sets respectively; during each reading, a first recognition image set with synchronized target shooting time and from different recognition devices is obtained, and a second recognition image set with synchronized target shooting time and from different recognition devices is obtained, and based on the first recognition image set and the second recognition image set, a target mapping relationship between the two recognition devices is obtained;

[0134] The sample generation unit 403 is used to map each second recognition image obtained by a selected recognition device based on the obtained mapping relationship of each target, obtain a mapping image set, and combine the mapping image set with a pose image set collected by another recognition device as a training sample set for pose recognition, where the pose image is obtained by capturing the dynamic pose of the target object by another recognition device.

[0135] Optionally, the image mapping unit 402 is used for:

[0136] Determining a first mapping relationship between two recognition devices based on a key point coordinate set of each first recognition image in a first recognition image set;

[0137] and, determining a second mapping relationship between the two recognition devices based on a set of key point coordinates of each second recognition image in a second recognition image set;

[0138] Based on the obtained first mapping relationships and second mapping relationships, a target mapping relationship between two identification devices is obtained.

[0139] Optionally, the image mapping unit 402 is used for:

[0140] From a first recognition image set, obtaining respective key point coordinate sets of two frames of first recognition images;

[0141] Based on the key point coordinates representing the same image key point in the two key point coordinate sets, respectively, a coordinate distance between the corresponding image key points in the two frames of the first recognition image is obtained;

[0142] Based on the obtained coordinate distances, a first mapping relationship between the two identification devices is determined.

[0143] Optionally, after obtaining the two recognition image sets and before respectively performing multiple image readings on the two recognition image sets, the training sample generation device 400 further includes a time synchronization unit 404. The time synchronization unit 404 performs time synchronization on the two recognition image sets by performing the following operations:

[0144] Based on the time difference carried by each recognition image in the two recognition image sets, the original shooting time of the corresponding recognition images is adjusted respectively, so that the time of two frames of recognition images obtained based on the same posture recognition of the same target object in the two recognition image sets is synchronized;

[0145] Among them, the time difference carried by a frame of recognition image represents: the communication time difference between the corresponding recognition device and the server when the corresponding posture image of a frame of recognition image is collected.

[0146] Optionally, the time synchronization unit 404 is used for:

[0147] The original shooting time and time difference carried by each recognition image in the two recognition image sets are obtained respectively, wherein the original shooting time represents: the time when the corresponding recognition device acquires the corresponding posture image of a frame of recognition image;

[0148] Each original shooting time is superimposed with the associated time difference to obtain the target shooting time of each recognition image.

[0149] Optionally, after time synchronization of the two recognition image sets, the training sample generation device 400 further includes an image screening unit 405, and the image screening unit 405 is used to:

[0150] The two frames of first recognition images with synchronized target shooting time and from different recognition devices are screened respectively, and the two frames of first recognition images with different recognition postures are deleted.

[0151] Optionally, the image screening unit 405 is used to:

[0152] The two first recognition images in the two recognition image sets are synchronized in shooting time and are from different recognition devices, and are taken as a first recognition image group;

[0153] For each first recognition image group obtained, the following operations are performed respectively: posture matching is performed on two frames of first recognition images included in one first recognition image group, and if the matching fails, the two frames of first recognition images are deleted from the two recognition image sets.

[0154] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.

[0155] After introducing the method and apparatus for generating training samples for posture recognition according to an exemplary embodiment of the present application, next, a computer device according to another exemplary embodiment of the present application is introduced.

[0156] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0157] Based on the same inventive concept as the above method embodiment, the present application embodiment also provides a computer device. In one embodiment, the computer device may be a server, such as Figure 1 In this embodiment, the structure of the computer device 500 is as follows: Figure 5 As shown, it may include at least a memory 501 , a communication module 503 , and at least one processor 502 .

[0158] The memory 501 is used to store computer programs executed by the processor 502. The memory 501 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0159] The memory 501 may be a volatile memory, such as a random-access memory (RAM); the memory 501 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 501 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 501 may be a combination of the above memories.

[0160] The processor 502 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 502 is used to implement the above-mentioned method for generating training samples for posture recognition when calling the computer program stored in the memory 501 .

[0161] The communication module 503 is used to communicate with terminal devices and other servers.

[0162] The specific connection medium between the memory 501, the communication module 503 and the processor 502 is not limited in the embodiment of the present application. Figure 5 In the embodiment, the memory 501 and the processor 502 are connected via a bus 504. The bus 504 is connected to the processor 502 via a bus 504. Figure 5 The connections between the other components are described with bold lines, which are only for illustrative purposes and are not intended to be limiting. The bus 504 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Figure 5 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or one type of bus.

[0163] The memory 501 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the method for generating training samples for posture recognition in the embodiment of the present application. The processor 502 is used to execute the above-mentioned method for generating training samples for posture recognition, such as Figure 2A shown.

[0164] In some possible implementations, various aspects of the method for generating training samples for posture recognition provided by the present application may also be implemented in the form of a program product, which includes a computer program. When the program product is run on a computer device, the computer program is used to enable the computer device to execute the steps of the method for generating training samples for posture recognition according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 2A Follow the steps shown in .

[0165] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0166] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include a computer program, and can be run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which can be used by or in combination with a command execution system, apparatus, or device.

[0167] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0168] The computer program embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

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

[0170] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0171] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0172] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain a computer-usable computer program.

[0173] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program commands. These computer program commands can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program commands may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the commands stored in the computer readable memory produce an article of manufacture comprising a command device, the command device implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program commands can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the commands executed on the computer or other programmable device provide the instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0177] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for generating training samples for pose recognition, It is characterized in that include: Respectively obtain two fixedly connected recognition devices, and each obtains a set of recognition images by performing posture recognition on the same target object, wherein the set of recognition images includes: a first recognition image generated by a specified posture recognition, and a second recognition image generated by a dynamic posture recognition, wherein the dynamic posture is any posture of the target object; Performing multiple image readings on the two obtained recognition image sets respectively; during each reading, obtaining a first recognition image set with synchronized target shooting time and from different recognition devices, and obtaining a second recognition image set with synchronized target shooting time and from different recognition devices, and obtaining a target mapping relationship between the two recognition devices based on the first recognition image set and the second recognition image set; Based on the obtained mapping relationships of each target, each second recognition image obtained by a selected recognition device is mapped to obtain a mapping image set, and the mapping image set is combined with a pose image set collected by another recognition device as a training sample set for pose recognition, wherein the pose image is obtained by photographing the dynamic pose of the target object by the other recognition device.

2. The method according to claim 1, It is characterized in that The step of obtaining a target mapping relationship between the two recognition devices based on a first recognition image set and a second recognition image set includes: Determining a first mapping relationship between the two recognition devices based on a key point coordinate set of each first recognition image in the first recognition image set; and, determining a second mapping relationship between the two recognition devices based on a key point coordinate set of each second recognition image in the one second recognition image set; Based on the obtained first mapping relationships and second mapping relationships, a target mapping relationship between the two identification devices is obtained.

3. The method according to claim 2, It is characterized in that The determining the first mapping relationship between the two recognition devices based on the key point coordinate sets of each first recognition image in the first recognition image set includes: From the first recognition image set, obtaining respective key point coordinate sets of two frames of first recognition images; Based on the key point coordinates representing the same image key point in the two key point coordinate sets, respectively, a coordinate distance of the corresponding image key point between the two frames of the first recognition image is obtained; Based on the obtained coordinate distances, a first mapping relationship between the two identification devices is determined.

4. The method according to any one of claims 1 to 3, It is characterized in that After obtaining the two recognition image sets, and before respectively performing multiple image readings on the two recognition image sets, the two recognition image sets are time synchronized by performing the following operations: Based on the time difference carried by each recognition image in the two recognition image sets, respectively adjust the original shooting time of the corresponding recognition image, so that the time of two frames of recognition images obtained based on the same posture recognition of the same target object in the two recognition image sets is synchronized; The time difference carried by a frame of recognition image represents: the communication time difference between the corresponding recognition device and the server when the corresponding posture image of the frame of recognition image is collected.

5. The method according to claim 4, It is characterized in that The adjusting the original shooting time of the corresponding recognition images based on the time difference carried by each recognition image in the two recognition image sets respectively includes: Respectively obtain the original shooting time and time difference carried by each recognition image in the two recognition image sets, wherein the original shooting time represents: the time when the corresponding recognition device acquires the corresponding posture image of the one frame of recognition image; Each original shooting time is superimposed with the associated time difference to obtain the target shooting time of each recognition image.

6. The method according to any one of claims 1 to 3, It is characterized in that After time synchronization of the two recognition image sets, the method further includes: The two frames of first recognition images with synchronized target shooting time and from different recognition devices are screened respectively, and the two frames of first recognition images with different recognition postures are deleted.

7. The method according to claim 6, It is characterized in that The method of respectively screening two frames of first recognition images that are synchronized in target shooting time and are from different recognition devices, and deleting two frames of first recognition images with different recognition postures, comprises: The two frames of first recognition images in the two recognition image sets are synchronized in shooting time and are from different recognition devices, and are taken as a first recognition image group; For each first recognition image group obtained, the following operations are performed respectively: posture matching is performed on two frames of first recognition images included in one first recognition image group, and if the matching fails, the two frames of first recognition images are deleted from the two recognition image sets.

8. A device for generating training samples for posture recognition, It is characterized in that include: An image receiving unit is used to respectively obtain a set of recognition images obtained by two fixedly connected recognition devices, each of which performs posture recognition on the same target object, wherein the set of recognition images includes: a first recognition image generated for a specified posture recognition, and a second recognition image generated for a dynamic posture recognition, wherein the dynamic posture is an arbitrary posture of the target object; An image mapping unit is used to perform multiple image readings on the two obtained recognition image sets respectively; during each reading, a first recognition image set with synchronized target shooting time and from different recognition devices is obtained, and a second recognition image set with synchronized target shooting time and from different recognition devices is obtained, and based on the first recognition image set and the second recognition image set, a target mapping relationship between the two recognition devices is obtained; A sample generation unit is used to map each second recognition image obtained by a selected recognition device based on the obtained mapping relationships of each target, obtain a mapping image set, and combine the mapping image set with a pose image set collected by another recognition device as a training sample set for pose recognition, wherein the pose image is obtained by photographing the dynamic pose of the target object by the other recognition device.

9. The device as claimed in claim 8, It is characterized in that The image mapping unit is used for: Determining a first mapping relationship between the two recognition devices based on a key point coordinate set of each first recognition image in the first recognition image set; and, determining a second mapping relationship between the two recognition devices based on a key point coordinate set of each second recognition image in the one second recognition image set; Based on the obtained first mapping relationships and second mapping relationships, a target mapping relationship between the two identification devices is obtained.

10. The device according to claim 9, It is characterized in that The image mapping unit is used for: From the first recognition image set, obtaining key point coordinate sets of the two frames of first recognition images respectively; Based on the key point coordinates representing the same image key point in the two key point coordinate sets, respectively, a coordinate distance of the corresponding image key point between the two frames of the first recognition image is obtained; Based on the obtained coordinate distances, a first mapping relationship between the two identification devices is determined.

11. The device according to any one of claims 8 to 10, It is characterized in that After obtaining the two recognition image sets, and before respectively performing multiple image readings on the two recognition image sets, the training sample generation device further includes a time synchronization unit, and the time synchronization unit performs time synchronization on the two recognition image sets by performing the following operations: Based on the time difference carried by each recognition image in the two recognition image sets, respectively adjust the original shooting time of the corresponding recognition image, so that the time of two frames of recognition images obtained based on the same posture recognition of the same target object in the two recognition image sets is synchronized; The time difference carried by a frame of recognition image represents: the communication time difference between the corresponding recognition device and the server when the corresponding posture image of the frame of recognition image is collected.

12. The device according to claim 11, It is characterized in that The time synchronization unit is used for: Respectively obtain the original shooting time and time difference carried by each recognition image in the two recognition image sets, wherein the original shooting time represents: the time when the corresponding recognition device acquires the corresponding posture image of the one frame of recognition image; Each original shooting time is superimposed with the associated time difference to obtain the target shooting time of each recognition image.

13. A computer device, It is characterized in that It comprises a processor and a memory, wherein the memory stores program codes, and when the program codes are executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.

14. A computer-readable storage medium, It is characterized in that It includes program codes. When the program codes are run on a computer device, the program codes are used to enable the computer device to execute the steps of the method according to any one of claims 1 to 7.

15. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.