Method, device, equipment and storage medium for determining action of virtual image
By constructing the overall objective function and solving the target key point information, the problem of improving the accuracy of the avatar's action is solved, the cost is reduced, and efficient action accuracy improvement is achieved.
Patent Information
- Application Number
- CN202310728732.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-19
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-06-19
AI Technical Summary
When using existing technology to improve the accuracy of avatar movements, increasing the amount of data is costly and the performance improvement is limited, making it difficult to effectively improve the accuracy of movements.
By processing the target image in the real image video, the initial key point information is obtained, and the overall objective function is constructed based on the initial key point information and the target key point information of the virtual image. Combined with the constraints of the real image, the target key point information is solved to Determine the movement of the avatar, reduce dependence on the driving model, and improve movement accuracy.
It achieves the effect of improving the accuracy of the virtual image's movements, reduces the cost, does not require a large number of training samples, and improves the accuracy of the movements.
Smart Images

Figure CN116894894B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, specifically computer vision, augmented reality, virtual reality, deep learning and other technical fields, and can be applied to scenes such as the metaverse and digital humans, and in particular to a method, device, equipment and storage medium for determining the action of a virtual image. Background Art
[0002] Motion capture refers to motion capture, which usually refers to transcribing the movements of a real actor (also called a human) into the movements of a virtual image (e.g., a virtual human) in a three-dimensional (3D) game or animation. Summary of the invention
[0003] The present disclosure provides a method, apparatus, device and storage medium for determining an action of a virtual image.
[0004] According to one aspect of the present disclosure, a method for determining the action of a virtual image is provided, comprising: processing a target image in a video of a real image to obtain initial key point information of the real image corresponding to the target image; constructing an overall objective function based on the initial key point information and target key point information of the virtual image to be determined; wherein the overall objective function is used to characterize error information between the initial key point information and the target key point information; determining the target key point information based on the overall objective function and target constraints corresponding to the real image; and determining the action of the virtual image based on the target key point information.
[0005] According to another aspect of the present disclosure, a device for determining the action of a virtual image is provided, comprising: an acquisition module, for processing a target image in a video of a real image to obtain initial key point information of the real image corresponding to the target image; a construction module, for constructing a total objective function based on the initial key point information and target key point information of the virtual image to be determined; wherein the total objective function is used to characterize error information between the initial key point information and the target key point information; a solution module, for determining the target key point information based on the total objective function and the target constraint conditions corresponding to the real image; and a determination module, for determining the action of the virtual image based on the target key point information.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method as described in any of the above aspects.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to any one of the above aspects.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in any one of the above aspects.
[0009] According to the technical solution disclosed in the present invention, the movement accuracy of the virtual image can be improved.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0012] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;
[0013] Figure 2 is a schematic diagram of an application scenario provided according to an embodiment of the present disclosure;
[0014] Figure 3 is a schematic diagram of the overall architecture of a method for determining an action of a virtual image provided in an embodiment of the present disclosure;
[0015] Figure 4 is a schematic diagram according to a second embodiment of the present disclosure;
[0016] Figure 5 is a schematic diagram according to a third embodiment of the present disclosure;
[0017] Figure 6 is a schematic diagram according to a fourth embodiment of the present disclosure;
[0018] Figure 7 It is a schematic diagram of an electronic device used to implement the method for determining the action of a virtual character according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0020] Taking the virtual image as an example, in the related technology, the video of the person is usually processed to obtain the 3D position coordinates of the key points of the person, and the 3D position coordinates are input into the driving model, and the output is the action of the virtual person.
[0021] In order to improve the motion accuracy of the virtual human, efforts are usually made to improve the accuracy of the driving model, that is, a large number of training samples are usually used to train the driving model to improve the model accuracy.
[0022] However, this method of increasing the amount of data is costly, and when the amount of data increases to a certain extent, the improvement in model performance is limited.
[0023] In order to improve the motion accuracy of the virtual image, the present disclosure provides the following embodiments.
[0024] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure. This embodiment provides a method for determining an action of a virtual image, the method comprising:
[0025] 101. For a target image in a video of a real image, process the target image to obtain initial key point information of the real image corresponding to the target image.
[0026] 102. Construct an overall objective function based on the initial key point information and the target key point information of the virtual image to be determined; wherein the overall objective function is used to characterize the error information between the initial key point information and the target key point information.
[0027] 103. Based on the overall objective function and the target constraint conditions corresponding to the real image, determine the target key point information.
[0028] 104. Determine an action of the virtual image based on the target key point information.
[0029] Among them, the real image refers to the real image that drives the actions of the virtual image, which is usually a real actor, and can also be called the person inside.
[0030] The target image refers to the image to be processed in the video, and each image in the video can be used as the target image.
[0031] For the purpose of distinction, the key point information of the real image may be referred to as initial key point information, and the key point information of the virtual image may be referred to as target key point information.
[0032] Key points can also be called joint points. Taking the human body as an example, one or more points on the human body can be pre-set as key points.
[0033] The key point information may include the position information of the key point and / or the angle information of the key point. Taking a three-dimensional virtual image as an example, the position information of the key point refers to the 3D position coordinates of the key point. The angle information of the key point may be the angle between the line between the key point and the set reference point and the set reference line, and the angle may be specifically the Euler angle, i.e., the three-dimensional angle information.
[0034] Different from the related art in which the action of the virtual image is determined based on a driving model, in this embodiment, the target key point information of the virtual image can be solved, and then the action of the virtual image can be determined based on the target key point information.
[0035] The overall objective function is constructed based on the initial key point information and the target key point information. The initial key point information is a known quantity, and the target key point information is an unknown quantity (variable), which is the quantity that needs to be solved. The target key point information is solved by minimizing the overall objective function under certain constraints.
[0036] The overall objective function is used to characterize the error information between the initial key point information and the target key point information. For example, it can be constructed based on the absolute value of the difference between the initial key point information and the target key point information.
[0037] Taking the target key point information as the target key point angle information as an example, after determining the target key point angle information, the action of the virtual image can be determined using relevant technologies. For example, the correspondence between the key point angle information and the action can be pre-configured, and the action of the virtual image can be determined based on the correspondence and the target key point angle information.
[0038] In this embodiment, the target key point information is determined based on the overall objective function and the constraints corresponding to the real image, and the action of the virtual image is determined based on the target key point information. Since a driving model is not required, compared with the method of determining the action based on the driving model, the cost can be reduced and the action accuracy can be improved.
[0039] In order to better understand the embodiments of the present disclosure, application scenarios to which the embodiments of the present disclosure can be applied are described.
[0040] Figure 22 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure. The scenario includes: a user terminal 201 and a server 202. The user terminal 201 may include: a personal computer (PC), a mobile phone, a tablet computer, a laptop computer, a smart wearable device, etc. The server 202 may be a cloud server or a local server. The user terminal 201 and the server 202 may communicate using a communication network, and the communication network may include, for example, a wired network and / or a wireless network.
[0041] The user terminal 201 can transmit the video of the real image to the server 202, and the server 202 determines the action of the virtual image based on the video. This process can be called offline motion capture. The information that needs to be displayed in this process, such as the final determined action, can be displayed by the user terminal 201. It can be understood that if the user terminal has the corresponding capability, the action of the virtual image can also be determined based on the video locally in the user terminal.
[0042] Specifically, the target key point information of the virtual person can be determined based on the video of the real image, and this process can be called global optimization; and then the action of the virtual image is determined based on the target key point information.
[0043] like Figure 3 As shown, the overall architecture of determining the action of the virtual image based on the video may include: using a ground detection network 301 to process the video of the real image to determine the ground contact state of the feet of the real image, and using a body perception network 302 to process the video to determine the initial key point information of the real image. Then, global optimization 303 is performed based on the ground contact state of the feet and the initial key point information to obtain the target key point information; and then, based on the predetermined correspondence between the key point information of the virtual image and the action, the action of the virtual image can be determined based on the identified target key point information.
[0044] In combination with the above application scenarios, the present disclosure also provides the following embodiments.
[0045] Figure 4 is a schematic diagram according to a second embodiment of the present disclosure. This embodiment provides a method for determining an action of a virtual image, the method comprising:
[0046] 401. Get the video of the real image.
[0047] 402. For a target image in the video, use a pre-trained body perception network to process the target image to obtain initial key point information corresponding to the target image.
[0048] Among them, the body perception network is a deep neural network that is pre-trained. Its input is an image and its output is the key point information of the real image contained in the image.
[0049] The key point information of the real image can be called initial key point information.
[0050] There are usually multiple target images, and for each target image, the body perception network can be used to process each target image to obtain initial key point information corresponding to the target image.
[0051] Taking a three-dimensional virtual image as an example, the key point information may include: three-dimensional position coordinates and / or three-dimensional angle information of the key point.
[0052] In this embodiment, the initial key point information is obtained through a pre-trained body perception network, and the excellent performance of the body perception network can be used to improve the accuracy of the initial key point information, thereby improving the accuracy of the determined virtual image movement.
[0053] 403. Use a pre-trained foot contact detection network to process the target image to determine the foot contact state of the real image in the target image.
[0054] The foot contact state is used to represent whether the foot of the real image is touching the ground, and can be represented by 1 or 0, 1 represents touching the ground, and 0 represents not touching the ground.
[0055] The foot contact detection network is also a deep neural network that is pre-trained. Its input is an image, and its output is the real image of the foot contact state contained in the image.
[0056] The body perception network and the foot contact detection network can be trained using relevant technologies.
[0057] In this embodiment, the foot contact state is obtained through a pre-trained foot contact detection network, and the excellent performance of the foot contact detection network can be used to improve the accuracy of the foot contact state, thereby improving the accuracy of the determined virtual image movement.
[0058] 404. Construct a total objective function based on the initial key point information and the target key point information of the virtual image to be determined.
[0059] The target key point information refers to the key point information of the virtual image.
[0060] The target key point information is an unknown quantity that needs to be solved.
[0061] The initial key point information can be obtained through the body perception network and is a known quantity.
[0062] There are usually multiple target images, and the corresponding initial key point information can be obtained for each target image, and then the sub-objective function corresponding to each target image is constructed according to the initial key point information corresponding to each target image, and then the overall objective function is constructed based on each sub-objective function.
[0063] That is, there are multiple target images; for each target image in the multiple target images, a sub-objective function corresponding to each target image is constructed based on the initial key point information corresponding to each target image and the target key point information; based on the sub-objective functions corresponding to each target image, the total objective function is constructed.
[0064] When constructing the total objective function based on the sub-objective functions, the total objective function can be obtained by adding up the sub-objective functions.
[0065] In this embodiment, by constructing sub-objective functions corresponding to each target image and then constructing an overall objective function based on the sub-objective functions, the overall objective function can refer to the information of each target image, that is, it can refer to the global information of the video, and then global optimization can be performed to obtain the target key point information, thereby improving the accuracy of the target key point information, and then improving the accuracy of the determined virtual image action.
[0066] For each sub-objective function, the sub-objective function can be constructed based on two parts, one part is constructed based on unknown target key point information and known initial key point information, and the other part is constructed based on known initial key point information.
[0067] That is, for each target image, the following steps are performed: constructing a first function based on the initial key point information corresponding to each target image and the target key point information; constructing a second function based on the initial key point information corresponding to each target image; and constructing the sub-target function based on the first function and the second function.
[0068] Assuming that the first function is represented by F1, the second function is represented by F2, and the sub-objective function is represented by F3, the calculation formula is F3=F1+F2.
[0069] In this embodiment, a first function is constructed through initial key point information and target key point information, a second function is constructed based on the initial key point information, and a sub-objective function is constructed based on the first function and the second function. This can construct optimization goals from different angles, improve the accuracy of the sub-objective function, and thereby improve the accuracy of the action.
[0070] Furthermore, the second function F2 may be constructed based on a plurality of error functions. For example, the error function may include a first error function G1, a second error function G2 and a third error function G3, and then F2=G1+G2+G3.
[0071] For the above three error functions, it can include: the initial key point information includes: the two-dimensional position coordinates of the key points of the real image, the three-dimensional position coordinates and the three-dimensional angle information of the key points of the real image; the second function is constructed based on the initial key point information corresponding to each target image, including: projecting the two-dimensional position coordinates to obtain three-dimensional projection coordinates, and constructing a first error function based on the three-dimensional projection coordinates and the three-dimensional position coordinates; determining the current speed corresponding to the target image based on the three-dimensional angle information, and constructing a second error function based on the current speed and the previous speed corresponding to the previous image of the target image; determining the current acceleration corresponding to the target image based on the three-dimensional angle information, and constructing a third error function based on the current acceleration and the previous acceleration corresponding to the previous image of the target image; constructing the second function based on the first error function, the second error function and the third error function.
[0072] In this embodiment, error functions of different dimensions can be constructed based on the initial key point information, and a second function containing information of multiple dimensions can be constructed based on the error functions of multiple dimensions, and then an overall objective function containing information of multiple dimensions can be constructed to improve the global optimization effect, the accuracy of the target key point information, and the movement accuracy of the virtual object.
[0073] Specifically, the calculation formula of the total objective function can be:
[0074]
[0075] Among them, F is the overall objective function, F k is the sub-objective function corresponding to the kth target image, and N is the total number of target images.
[0076] For F k , the calculation formula can be:
[0077] F k =F1+G1+G2+G3
[0078] in,
[0079]
[0080]
[0081]
[0082] Among them, q k is the angle information of the key points of the real image in the kth target image (initial key point angle information), which can be obtained through the body perception network; is the angle information of the target key point corresponding to the kth target image, which is the unknown quantity to be solved; is the three-dimensional projection coordinate of the key point of the real image in the k-th target image, which can be obtained by three-dimensionally projecting the two-dimensional position coordinates of the key point of the real image in the k-th target image on the target image and the camera parameters; is the three-dimensional position coordinates of the key points of the real image in the k-th target image (initial key point position coordinates), which can be obtained through the body perception network; is the velocity of the key point of the real image in the kth target image (initial key point velocity), is the velocity of the key point of the real image in the k-1th target image; is the acceleration of the key point of the real image in the kth target image (initial key point acceleration), is the acceleration of the key point of the real image in the k-1th target image. The initial key point velocity is obtained by derivation of the initial key point angle information, and the initial key point acceleration is obtained by derivation of the initial key point velocity (or secondary derivation of the initial key point angle information); || is the absolute value operation.
[0083] 405. Construct target constraint conditions corresponding to the real image based on the foot contact state and the initial key point information.
[0084] Among them, the touchdown constraint condition can be constructed based on the foot touchdown state and foot key point speed of the real image; the dynamic constraint condition can be constructed based on the initial key point information of the real image; and the trigger constraint condition and the dynamic constraint condition can be used as the target constraint condition.
[0085] That is, the target constraint conditions include: a ground contact constraint condition C1, and a dynamic constraint condition C2.
[0086] The expressions for C1 and C2 can be:
[0087] Touchdown constraint C1:
[0088] When contact=1
[0089] in, It is the real image of the foot key point speed, which can be used to calculate the foot key point position coordinates p foot After derivation, it is obtained that the position coordinates of the key points of the foot can be obtained through the body perception network; contact = 1 indicates that the foot is touching the ground, and the foot touching the ground can be obtained through the touch detection network.
[0090] Dynamic constraint C2:
[0091]
[0092] Among them, M is the mass matrix; B is the centrifugal force and Coriolis force matrix, G is the gravity matrix, tau is the joint torque, J is the Jacobian matrix, Fc is the external force, tau and Fc are obtained from the dynamic network; q is the initial key point angle information.
[0093] In this embodiment, the target constraint conditions include ground contact constraint conditions and dynamic constraint conditions. By constructing multiple constraint conditions, the accuracy of the target key point information can be improved, thereby improving the accuracy of the determined virtual image action.
[0094] 406. Determine the target key point information based on the target function and the target constraint condition.
[0095] After constructing the overall objective function and the objective constraints, the target key point information can be solved by minimizing the overall objective function based on the objective constraints.
[0096] For example, a nonlinear solver may be used to obtain target key point information.
[0097] 407. Determine an action of the virtual image based on the target key point information.
[0098] For example, the target key point information is the key point angle information of the virtual image. The correspondence between the key point angle information and the action can be pre-configured. Based on the correspondence and the solved key point angle information of the virtual image, the action of the virtual image can be determined.
[0099] Figure 5 is a schematic diagram according to the third embodiment of the present disclosure. This embodiment provides a device for determining the action of a virtual image, such as Figure 5 As shown, the device 500 includes: an acquisition module 501, a construction module 502, a solution module 503 and a determination module 504.
[0100] The acquisition module 501 is used to process the target image in the video of the real image to obtain the initial key point information of the real image corresponding to the target image; the construction module 502 is used to construct a total objective function based on the initial key point information and the target key point information of the virtual image to be determined; wherein the total objective function is used to characterize the error information between the initial key point information and the target key point information; the solution module 503 is used to determine the target key point information based on the total objective function and the target constraint conditions corresponding to the real image; the determination module 504 is used to determine the action of the virtual image based on the target key point information.
[0101] In this embodiment, the target key point information is determined based on the overall objective function and the constraints corresponding to the real image, and the action of the virtual image is determined based on the target key point information. Since a driving model is not required, compared with the method of determining the action based on the driving model, the cost can be reduced and the action accuracy can be improved.
[0102] In some embodiments, there are multiple target images; the construction module 502 is further used to: for each target image among the multiple target images, construct a sub-objective function corresponding to each target image based on the initial key point information corresponding to each target image and the target key point information; and construct the overall objective function based on the sub-objective functions corresponding to each target image.
[0103] In this embodiment, by constructing sub-objective functions corresponding to each target image and then constructing an overall objective function based on the sub-objective functions, the overall objective function can refer to the information of each target image, that is, it can refer to the global information of the video, and then global optimization can be performed to obtain the target key point information, thereby improving the accuracy of the target key point information, and then improving the accuracy of the determined virtual image action.
[0104] In some embodiments, the construction module 502 is further used to: for each target image, construct a first function based on the initial key point information corresponding to each target image and the target key point information; for each target image, construct a second function based on the initial key point information corresponding to each target image; for each target image, construct the sub-target function based on the first function and the second function.
[0105] In this embodiment, a first function is constructed through initial key point information and target key point information, a second function is constructed based on the initial key point information, and a sub-objective function is constructed based on the first function and the second function. This can construct optimization goals from different angles, improve the accuracy of the sub-objective function, and thereby improve the accuracy of the action.
[0106] In some embodiments, the initial key point information includes: two-dimensional position coordinates of the key points of the real image, three-dimensional position coordinates and three-dimensional angle information of the key points of the real image;
[0107] The construction module 502 is further used to: perform projection processing on the two-dimensional position coordinates to obtain three-dimensional projection coordinates, and construct a first error function based on the three-dimensional projection coordinates and the three-dimensional position coordinates; determine the current speed corresponding to the target image based on the three-dimensional angle information, and construct a second error function based on the current speed and the previous speed corresponding to the previous image of the target image; determine the current acceleration corresponding to the target image based on the three-dimensional angle information, and construct a third error function based on the current acceleration and the previous acceleration corresponding to the previous image of the target image; construct the second function based on the first error function, the second error function and the third error function.
[0108] In this embodiment, error functions of different dimensions can be constructed based on the initial key point information, and a second function containing information of multiple dimensions can be constructed based on the error functions of multiple dimensions, and then an overall objective function containing information of multiple dimensions can be constructed to improve the global optimization effect, the accuracy of the target key point information, and the movement accuracy of the virtual object.
[0109] In some embodiments, the acquisition module 501 is further used to: process the target image using a pre-trained body perception network to obtain the initial key point information corresponding to the target image.
[0110] In this embodiment, the initial key point information is obtained through a pre-trained body perception network, and the excellent performance of the body perception network can be used to improve the accuracy of the initial key point information, thereby improving the accuracy of the determined virtual image movement.
[0111] Figure 6 is a schematic diagram according to a fourth embodiment of the present disclosure. This embodiment provides a device for determining an action of a virtual image, such as Figure 6 As shown, the device 600 includes: an acquisition module 601, a construction module 602, a solution module 603 and a determination module 604.
[0112] The specific contents of the acquisition module 601 , the construction module 602 , the solution module 603 and the determination module 604 may refer to the previous embodiment.
[0113] In some embodiments, the device 600 may also include: a constraint module 605, which is used to construct a touchdown constraint condition based on the foot touchdown state and foot key point speed of the real image; construct a dynamic constraint condition based on the initial key point information of the real image; and use the touchdown constraint condition and the dynamic constraint condition as the target constraint condition.
[0114] In this embodiment, the target constraint conditions include ground contact constraint conditions and dynamic constraint conditions. By constructing multiple constraint conditions, the accuracy of the target key point information can be improved, thereby improving the accuracy of the determined virtual image action.
[0115] In some embodiments, the apparatus 600 may further include: a detection module 606, configured to process the target image using a pre-trained touchdown detection network to determine the touchdown status of the foot.
[0116] In this embodiment, the foot contact state is obtained through a pre-trained foot contact detection network, and the excellent performance of the foot contact detection network can be used to improve the accuracy of the foot contact state, thereby improving the accuracy of the determined virtual image movement.
[0117] It can be understood that in the embodiments of the present disclosure, the same or similar contents in different embodiments can be referenced to each other.
[0118] It can be understood that the “first”, “second”, etc. in the embodiments of the present disclosure are only used for distinction and do not indicate the degree of importance, time sequence, etc.
[0119] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0120] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0121] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device 700 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0122] like Figure 7As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0123] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0124] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the action determination method of the virtual image. For example, in some embodiments, the action determination method of the virtual image may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the action determination method of the virtual image described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the action determination method of the virtual image in any other appropriate manner (e.g., by means of firmware).
[0125] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0126] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0127] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0128] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0129] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0130] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.
[0131] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0132] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for determining an action of a virtual image, comprising: For a target image in a video of a real image, processing the target image to obtain initial key point information of the real image corresponding to the target image; Based on the initial key point information and the target key point information of the virtual image to be determined, constructing a total objective function; wherein the total objective function is used to characterize the error information between the initial key point information and the target key point information; Determining the target key point information based on the overall objective function and the target constraint conditions corresponding to the real image; Determining the action of the virtual image based on the target key point information; There are multiple target images; The overall objective function is constructed based on the sub-objective functions corresponding to each of the multiple target images; The sub-objective functions corresponding to the respective target images are constructed based on the first function and the second function of the respective target images, wherein the first function is constructed based on the target key point information and the initial key point information; The initial key point information includes: the two-dimensional position coordinates of the key points of the real image, the three-dimensional position coordinates and the three-dimensional angle information of the key points of the real image; The second function is constructed as follows: Performing projection processing on the two-dimensional position coordinates to obtain three-dimensional projection coordinates, and constructing a first error function according to the three-dimensional projection coordinates and the three-dimensional position coordinates; Determine a current speed corresponding to the target image based on the three-dimensional angle information, and construct a second error function according to the current speed and a previous speed corresponding to a previous image of the target image; Determine a current acceleration corresponding to the target image based on the three-dimensional angle information, and construct a third error function according to the current acceleration and a previous acceleration corresponding to a previous image of the target image; The second function is constructed based on the first error function, the second error function and the third error function.
2. The method according to claim 1, further comprising: Constructing a ground contact constraint condition based on the ground contact state of the foot and the speed of the key points of the foot of the real image; constructing dynamic constraint conditions based on initial key point information of the real image; The ground contact constraint condition and the dynamic constraint condition are used as the target constraint conditions.
3. The method according to claim 2, further comprising: The target image is processed using a pre-trained ground contact detection network to determine the ground contact status of the foot.
4. The method according to any one of claims 1 to 3, wherein: The step of processing the target image in the video of the real image to obtain initial key point information of the real image corresponding to the target image includes: For the target image, a pre-trained body perception network is used to process the target image to obtain the initial key point information corresponding to the target image.
5. A device for determining an action of a virtual image, comprising: An acquisition module, for processing a target image in a video of a real image, to acquire initial key point information of the real image corresponding to the target image; A construction module, used to construct a total objective function according to the initial key point information and the target key point information of the virtual image to be determined; wherein the total objective function is used to characterize the error information between the initial key point information and the target key point information; A solution module, used for determining the target key point information according to the overall objective function and the target constraint conditions corresponding to the real image; A determination module, used to determine the action of the virtual image according to the target key point information; There are multiple target images; The overall objective function is constructed based on the sub-objective functions corresponding to each of the multiple target images; The sub-objective functions corresponding to the respective target images are constructed based on the first function and the second function of the respective target images, wherein the first function is constructed based on the target key point information and the initial key point information; The initial key point information includes: the two-dimensional position coordinates of the key points of the real image, the three-dimensional position coordinates and the three-dimensional angle information of the key points of the real image; The building blocks are further used to: Performing projection processing on the two-dimensional position coordinates to obtain three-dimensional projection coordinates, and constructing a first error function according to the three-dimensional projection coordinates and the three-dimensional position coordinates; Determine a current speed corresponding to the target image based on the three-dimensional angle information, and construct a second error function according to the current speed and a previous speed corresponding to a previous image of the target image; Determine a current acceleration corresponding to the target image based on the three-dimensional angle information, and construct a third error function according to the current acceleration and a previous acceleration corresponding to a previous image of the target image; The second function is constructed based on the first error function, the second error function and the third error function.
6. The apparatus according to claim 5, further comprising: A constraint module, used for constructing a ground contact constraint condition based on the ground contact state of the foot and the speed of the key points of the foot of the real image; constructing dynamic constraint conditions based on initial key point information of the real image; The ground contact constraint condition and the dynamic constraint condition are used as the target constraint conditions.
7. The apparatus according to claim 6, further comprising: The detection module is used to process the target image using a pre-trained touchdown detection network to determine the touchdown status of the foot.
8. The device according to any one of claims 5 to 7, wherein: The acquisition module is further used for: For the target image, a pre-trained body perception network is used to process the target image to obtain the initial key point information corresponding to the target image.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Woodpecker articulation point positioning method based on motion image sequence
CN107038712A
Method and device for generating motion capture data, electronic equipment and storage medium
CN113420719A
Single-view-angle human body posture recognition method and device, electronic equipment and storage medium
CN113822097A
Motion control method and device for virtual object
CN115841534A
Display method and system based on virtual image
CN115857676A
