Arm and upper arm motion capture method and system and storage medium

Through the camera, the image of the upper arm of the arm is collected and processed, the target key points are identified and the motion capture data is calculated, which solves the problem of high cost of motion capture servers in virtual live broadcasts, and accurately captures the upper arm movements of the arm. It is suitable for virtual live broadcasts and reduces costs And enhanced applicability.

CN118968607AInactive Publication Date: 2024-11-15北京愈心科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310265928.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology uses motion capture services to perform 3D motion capture in virtual live broadcasts, which is difficult to meet the increasingly rich virtual live broadcast needs in meta-universe scenarios.

Method used

The image of the upper arm of the arm is collected through the camera, using Mediapipe to identify the target key points, build a three-dimensional world coordinate system, and perform coordinate conversion to calculate the Z-axis and X-axis motion capture data to achieve accurate capture of the upper arm movements, avoiding the motion capture service use.

Benefits of technology

It reduces equipment costs, enhances the applicability of motion capture equipment, and realizes real-time and accurate capture of upper arm movements without using motion capture suits, which is suitable for virtual live broadcasts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968607A_ABST
    Figure CN118968607A_ABST
Patent Text Reader

Abstract

The invention discloses an arm and upper arm motion capture method and system and a storage medium, relates to the technical field of artificial intelligence, and can accurately capture 3D motions of arms and upper arms under the condition that motion capture clothes are not used. The method comprises the following steps: acquiring three-dimensional world coordinates of target key points of an arm and an upper arm; converting the three-dimensional world coordinate of the target key point to obtain a plane coordinate of the target key point; and calculating Z-axis motion capture data based on the plane coordinate of the target key point, and calculating X-axis motion capture data based on the three-dimensional world coordinate. The system applies the method provided by the scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an upper arm motion capture method, system and storage medium. Background Art

[0002] With the development of metaverse technology, virtual live broadcasting has become increasingly popular. The live broadcast industry has developed from the initial 2D virtual live broadcast to the current 3D virtual live broadcast, from the traditional two-dimensional card people to the current three-dimensional virtual people, and its 3D motion driving method has also experienced an evolution from simple flat motion capture based on cameras (2D motion capture) to customized motion capture suits (3D motion capture).

[0003] Virtual live broadcast through 2D motion capture allows people to see simple two-dimensional images. It is low-cost and easy to popularize. In the early stages of the development of the metaverse, it can meet the public's aesthetic needs. However, with the advent of the Web3.0 and metaverse eras, the shortcomings of 2D motion capture have become increasingly apparent. For example, the style tends to be cartoon-like, and the movement of virtual images is mostly based on plane displacement.

[0004] Virtual live broadcast through customized 3D motion capture suits can allow people to see realistic 3D images. It is widely popular and has broad market prospects, and meets the public's growing aesthetic needs. However, compared with the popularity of 2D motion capture, the disadvantages of 3D motion capture virtual live broadcast through motion capture suits are more obvious. It requires customized three-dimensional images and the purchase of professional motion capture suits. The overall cost is high and it is not easy to popularize.

[0005] To this end, we draw on the idea of ​​2D motion capture and use cameras to perform 3D motion capture of upper arm movements, instead of using motion capture suits to drive virtual characters and conduct virtual live broadcasts in 3D scenes to meet the increasingly rich virtual live broadcast needs in the metaverse scene. Summary of the invention

[0006] The purpose of the present invention is to provide an upper arm motion capture method, system and storage medium, which can accurately capture the 3D motion of the upper arm without using a motion capture suit.

[0007] In order to achieve the above object, a first aspect of the present invention provides an upper arm motion capture method, comprising:

[0008] Collect the three-dimensional world coordinates of the key points of the upper arm target;

[0009] Convert the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point;

[0010] The Z-axis motion capture data is calculated based on the plane coordinates of the target key point, and the X-axis motion capture data is calculated based on the three-dimensional world coordinates.

[0011] Preferably, before collecting the three-dimensional world coordinates of the key points of the upper arm target, the method further includes:

[0012] Capturing images of the upper arm through a camera;

[0013] A three-dimensional world coordinate system is constructed based on the image of the upper arm.

[0014] Preferably, the method for collecting the three-dimensional world coordinates of the key points of the upper arm target includes:

[0015] Mediapipe is used to identify target key points of the upper arm in the image, and the three-dimensional world coordinates of the target key points are obtained according to the three-dimensional world coordinate system and the image size.

[0016] Exemplarily, the target key points include hip points, upper arm points, and elbow points.

[0017] Furthermore, the method of converting the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point includes:

[0018] Constructing a coordinate conversion formula, wherein the conversion formula uses the Z-axis coordinate in the three-dimensional world coordinate as the X-axis coordinate in the plane coordinate system, and uses the Y-axis coordinate in the three-dimensional world coordinate as the Y-axis coordinate in the plane coordinate system;

[0019] The conversion of the target key point from the three-dimensional world coordinates to the plane coordinates is completed based on the conversion formula.

[0020] Preferably, the method for calculating Z-axis motion capture data based on the plane coordinates of the target key points includes:

[0021] The plane coordinates corresponding to the calibrated hip point, upper arm point, and elbow point are points P1, P2, and P3;

[0022] Connect points P1, P2 and P3 in sequence to construct a virtual triangle;

[0023] Based on the plane coordinates of points P2 and P3, a vector distance A from point P2 to point P3 is calculated; based on the plane coordinates of points P1 and P3, a vector distance B from point P1 to point P3 is calculated; based on the plane coordinates of points P1 and P2, a vector distance C from point P1 to point P2 is calculated;

[0024] According to A, B, C and the radian calculation formula, calculate the radian D formed by points P1, P2 and P3, and then convert the radian D into the Z-axis rotation angle.

[0025] Preferably, the method for calculating X-axis motion capture data based on the three-dimensional world coordinates comprises:

[0026] The three-dimensional world coordinates corresponding to the calibrated hip point, upper arm point, and elbow point are point p1, point p2, and point p3;

[0027] Connect points p1, p2 and p3 in sequence to construct a virtual triangle;

[0028] Based on the 3D world coordinates of points p2 and p3, a vector distance a from point p2 to point p3 is calculated; based on the 3D world coordinates of points p1 and p3, a vector distance b from point p1 to point p3 is calculated; based on the 3D world coordinates of points p1 and p2, a vector distance c from point p1 to point p2 is calculated;

[0029] Calculate the radian d of points p1, p2 and p3 according to a, b, c and the radian calculation formula, and then convert the radian d into the X-axis rotation angle.

[0030] Preferably, the upper arm motion capture method is used for virtual live broadcast.

[0031] Compared with the prior art, the arm upper arm motion capture method provided by the present invention has the following beneficial effects:

[0032] The present invention provides an upper arm motion capture method, which first collects the motion image of the upper arm, identifies the target key points of the upper arm, and locates the three-dimensional world coordinates of the target key points of the upper arm, then performs coordinate conversion on the three-dimensional world coordinates of the target key points to obtain the plane coordinates of the above target key points, and finally calculates the Z-axis motion capture data of the upper arm based on the plane coordinates of the above target key points, and calculates the X-axis motion capture data of the upper arm based on the above three-dimensional world coordinates, and outputs drive data.

[0033] It can be seen that compared with the prior art solution of realizing upper arm motion capture through customized motion capture suits, the present invention directly uses a method of collecting target key points of the human upper arm through a camera, accurately realizing real-time capture of upper arm motions, effectively reducing equipment costs and enhancing the applicability of the motion capture equipment. Finally, according to the algorithm, driving data is generated that can drive the upper arm to imitate the upper arm motions of the host, so as to achieve the purpose of live broadcasting using virtual characters.

[0034] A second aspect of the present invention provides an upper arm motion capture system, which is applied to the upper arm motion capture method described in the above technical solution, and the system comprises:

[0035] A collection unit, used to collect the three-dimensional world coordinates of the key points of the upper arm target;

[0036] A processing unit, used for converting the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point;

[0037] A calculation unit is used to calculate the Z-axis motion capture data based on the plane coordinates of the target key point, and calculate the X-axis motion capture data based on the three-dimensional world coordinates.

[0038] Preferably, the target key points include hip points, upper arm points, and elbow points.

[0039] Compared with the prior art, the beneficial effects of the upper arm motion capture system provided by the present invention are the same as the beneficial effects of the upper arm motion capture method provided by the above technical solution, which will not be elaborated here.

[0040] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which executes the steps of the above-mentioned upper arm motion capture method when the computer program is executed by a processor.

[0041] Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present invention are the same as the beneficial effects of the upper arm motion capture method provided by the above-mentioned technical solution, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 Schematic diagram of the process of the calf motion capture method in an embodiment of the present invention;

[0044] Figure 2 This is an example diagram of key points of limb joints captured by Mediapipe in an embodiment of the present invention;

[0045] Figure 3 This is an example diagram of three-dimensional coordinate visualization in an embodiment of the present invention;

[0046] Figure 4 This is a simplified diagram of an example of three-dimensional coordinate visualization in an embodiment of the present invention;

[0047] Figure 5 A simplified diagram of a visualization example of a 90-degree rotation of a three-dimensional coordinate in an embodiment of the present invention;

[0048] Figure 6 A schematic diagram of a virtual triangle constructed in an embodiment of the present invention;

[0049] Figure 7 Schematic diagram of an electronic device. DETAILED DESCRIPTION

[0050] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0051] Embodiment 1

[0052] See also Figure 1 This embodiment provides a method for capturing upper arm motion, including:

[0053] Collect the three-dimensional world coordinates of the target key points on the upper arm; transform the three-dimensional world coordinates of the target key points to obtain the plane coordinates of the target key points; calculate the Z-axis motion capture data based on the plane coordinates of the target key points, and calculate the X-axis motion capture data based on the three-dimensional world coordinates.

[0054] The present invention provides an upper arm motion capture method, which first collects the motion image of the upper arm, identifies the target key points of the upper arm, and locates the three-dimensional world coordinates of the target key points of the upper arm, then performs coordinate conversion on the three-dimensional world coordinates of the target key points to obtain the plane coordinates of the above target key points, and finally calculates the Z-axis motion capture data of the upper arm based on the plane coordinates of the above target key points, and calculates the X-axis motion capture data of the upper arm based on the above three-dimensional world coordinates, and outputs drive data.

[0055] It can be seen that compared with the prior art solution of realizing upper arm motion capture through customized motion capture suits, the present invention directly uses a method of collecting target key points of the human upper arm through a camera, accurately realizing real-time capture of upper arm motions, effectively reducing equipment costs and enhancing the applicability of the motion capture equipment. Finally, according to the algorithm, driving data is generated that can drive the upper arm to imitate the upper arm motions of the host, so as to achieve the purpose of live broadcasting using virtual characters.

[0056] For example, in order to accurately generate driving data and take into account the amount of calculation of the system, we preferably select the target key points as the hip point, the upper arm point, and the elbow point.

[0057] Preferably, the above embodiment further comprises, before collecting the three-dimensional world coordinates of the key points of the upper arm target:

[0058] The image of the upper arm is collected by the camera; and a three-dimensional world coordinate system is constructed based on the image of the upper arm.

[0059] Specifically, see Figure 2 and Figure 3When the human body moves in front of the camera, the camera can continuously collect images including the arms and upper arms, and then input each collected image into the Mediapipe Pose API to obtain 33 key points of the limbs, extract the three bone joints of the right hip, right upper arm, and right elbow in the right arm, and the corresponding target key point indexes are 24, 12, and 14; extract the three bone joints of the left hip, left upper arm, and left elbow in the left arm, and the corresponding target key point indexes are 23, 11, and 13. Then, a three-dimensional world coordinate system is constructed with the pelvis as the center. The Z axis represents the depth information, that is, the distance from the camera, and the three-dimensional world coordinates of each target key point are obtained.

[0060] The following uses the right arm as an example to provide a specific explanation of the upper arm motion capture method.

[0061] The method for collecting the three-dimensional world coordinates of the key points of the upper arm target in the above embodiment includes:

[0062] Mediapipe is used to identify the target key points of the upper arm in the image, and the 3D world coordinates of the target key points are obtained according to the 3D world coordinate system and the image size.

[0063] In specific implementation, the size of the camera screen is obtained, the size includes width and height, and the three-dimensional world coordinates are normalized to between 0 and 1. For example, the X coordinate in the three-dimensional world coordinates can be multiplied by the width, and the Y coordinate in the three-dimensional world coordinates can be multiplied by the height, and the three-dimensional coordinates of the target key point can be obtained by combining the Z coordinate in the three-dimensional world coordinates.

[0064] In the above embodiment, the method of converting the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point includes:

[0065] Construct a coordinate conversion formula. The conversion formula is to use the Z-axis coordinate in the three-dimensional world coordinate as the X-axis coordinate in the plane coordinate system, and the Y-axis coordinate in the three-dimensional world coordinate as the Y-axis coordinate in the plane coordinate system; based on the conversion formula, complete the conversion of the target key point from the three-dimensional world coordinate to the plane coordinate.

[0066] For specific implementation, please refer to Figure 4 and Figure 5 , rotate the entire world coordinate system 90 degrees. The meaning of the 90-degree rotation here is to convert the side angle into the front angle, that is, directly calculate the angle of the converted coordinates to get the real rotation angle. We only need to use the Z-axis coordinate in the three-dimensional world coordinates as the X-axis coordinate in the plane coordinate system, and the Y-axis coordinate in the three-dimensional world coordinates as the Y-axis coordinate in the plane coordinate system. The new coordinate system formed after the conversion is the plane coordinate system after restoring a certain plane in three dimensions. The advantage of this is that it realizes a calculation from high dimension to low dimension, reduces the amount of calculation, and improves the recognition accuracy.

[0067] In the above embodiment, the method for calculating the Z-axis motion capture data based on the plane coordinates of the target key point includes:

[0068] The plane coordinates corresponding to the calibrated hip point, upper arm point, and elbow point are points P1, P2, and P3;

[0069] Connect points P1, P2 and P3 in sequence to construct a virtual triangle;

[0070] Based on the plane coordinates of points P2 and P3, a vector distance A from point P2 to point P3 is calculated; based on the plane coordinates of points P1 and P3, a vector distance B from point P1 to point P3 is calculated; based on the plane coordinates of points P1 and P2, a vector distance C from point P1 to point P2 is calculated;

[0071] According to A, B, C and the radian calculation formula, calculate the radian D formed by points P1, P2 and P3, and then convert the radian D into the Z-axis rotation angle.

[0072] In the specific implementation, the three skeletal joints of the right hip, right upper arm and right elbow are taken as examples. The corresponding target key point indexes are 24, 12, and 14. Points P1, P2, and P3 are connected in sequence to construct a virtual triangle ∠P1 P2 P3. The three-dimensional world coordinates corresponding to the points P1, P2, and P3 are:

[0073] P1=[X:-0.0819710493087768,Y:-0.011499647982412,Z:0.0186129380017519]

[0074] P2=[X:-0.0911528617143631,Y:-0.532937407493591,Z:0.0709591135382652]

[0075] P3=[X:-0.1620554029941559,Y:-0.010857992805540,Z:0.0025287352036685]

[0076] Secondly, rotate the entire world coordinate system 90 degrees clockwise to form a new front coordinate, that is, a plane coordinate. We get the coordinates of the three bone joints of the right hip, right upper arm, and right elbow again, and re-mark these three points as P1, P2, and P3 in turn:

[0077] P1=(X1:0.0186129380017519,Y1:-0.011499647982412)≈(0.019,-0.012)

[0078] P2=(X2:0.0709591135382652,Y2:-0.532937407493591)≈(0.071,-0.533)

[0079] P3=(X3:0.0025287352036685,Y3:-0.010857992805540)≈(0.003,-0.109)

[0080] Finally, substitute the three points P1, P2, and P3 into the three-point angle calculation formula. The calculation process is as follows: 1. Calculate the distance from P2 to P3, recorded as A:

[0081]

[0082]

[0083] A=0.3033

[0084] 2. Find the distance from P1 to P3, denoted as B:

[0085]

[0086]

[0087] B=0.2235

[0088] 3. Find the distance from P1 to P2, denoted as C:

[0089]

[0090]

[0091] C=0.5241

[0092] 4. Find the arc of points P1, P2 and P3, denoted as D:

[0093]

[0094]

[0095] D=0.0875

[0096] 5. Radians to angles, denoted as Angle:

[0097] Angle=D*(180 / π)

[0098] Angle=0.0875*(180 / π)

[0099] Angle=5°

[0100] Finally, we calculated that the angle of the arm raised in the Z-axis direction is 5 degrees. As can be seen from the attached figure, it is a standing posture, and the upper arm is raised very little. The 5° we calculated here is also a relatively small value, so we got the ideal motion capture data. This is an ideal motion capture calculation method.

[0101] See also Figure 6 In the above embodiment, the method for calculating X-axis motion capture data based on three-dimensional world coordinates includes:

[0102] The three-dimensional world coordinates corresponding to the calibrated hip point, upper arm point, and elbow point are point p1, point p2, and point p3;

[0103] Connect points p1, p2 and p3 in sequence to construct a virtual triangle;

[0104] Based on the 3D world coordinates of points p2 and p3, a vector distance a from point p2 to point p3 is calculated; based on the 3D world coordinates of points p1 and p3, a vector distance b from point p1 to point p3 is calculated; based on the 3D world coordinates of points p1 and p2, a vector distance c from point p1 to point p2 is calculated;

[0105] Calculate the radian d of points p1, p2 and p3 according to a, b, c and the radian calculation formula, and then convert the radian d into the X-axis rotation angle.

[0106] In the specific implementation, the three skeletal joints of the right hip, right upper arm and right elbow are taken as examples. The corresponding target key point indexes are 24, 12, and 14, and the corresponding marks are p1, p2, and p3. The p1, p2, and p3 points are connected in sequence to construct a virtual triangle ∠p1p2p3, where the three-dimensional world coordinates corresponding to the p1, p2, and p3 points are:

[0107] p1=(X1:0.263352632522583,Y1:0.48777684569358826)≈(0.2634,0.4878)

[0108] p2=(X2:0.2901928424835205,Y2:0.21402671933174133)≈(0.2902,0.2140)

[0109] p3=(X3:0.41366028785705566,Y3:0.41366028785705566)≈(0.4137,0.4137) Substitute the three points p1, p2, and p3 into the three-point angle calculation formula, and the calculation process is as follows:

[0110] 1. Find the distance from p2 to p3, denoted as A:

[0111]

[0112]

[0113] a=0.23472914550438398

[0114] 2. Find the distance from p1 to p3, denoted as b:

[0115]

[0116]

[0117] b=0.16758775431899167

[0118] 3. Find the distance from p1 to p2, denoted as c:

[0119]

[0120]

[0121] c=0.2750627720246314

[0122] 4. Find the arc angles of points p1, p2, and p3, denoted as d:

[0123]

[0124]

[0125] d = 0.6516240671045028

[0126] 5. Radians to angles, denoted as Angle:

[0127] Angle=d*(180 / π)

[0128] Angle=0.6516*(180 / π)

[0129] Angle = 37°

[0130] Finally, the motion capture angle of the upper arm X-axis was 37 degrees.

[0131] Preferably, the upper arm motion capture method in the above embodiment can be used for virtual live broadcast.

[0132] Embodiment 2

[0133] This embodiment provides an upper arm motion capture system, comprising:

[0134] A collection unit, used to collect the three-dimensional world coordinates of the key points of the upper arm target;

[0135] A processing unit, used for converting the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point;

[0136] A calculation unit is used to calculate the Z-axis motion capture data based on the plane coordinates of the target key point, and calculate the X-axis motion capture data based on the three-dimensional world coordinates.

[0137] Preferably, the target key points include hip points, upper arm points, and elbow points.

[0138] Compared with the prior art, the beneficial effects of the upper arm motion capture system provided in this embodiment are the same as the beneficial effects of the upper arm motion capture method provided in the above-mentioned embodiment 1, and will not be elaborated here.

[0139] Embodiment 3

[0140] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned upper arm motion capture method are executed.

[0141] The computer-readable storage medium provided in this embodiment can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, 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 above. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0142] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0143] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: obtains at least two Internet Protocol addresses; sends a node evaluation request including the at least two Internet Protocol addresses to a node evaluation device, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein the obtained Internet Protocol address indicates an edge node in a content distribution network.

[0144] Alternatively, the computer-readable storage medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; selects an Internet Protocol address from the at least two Internet Protocol addresses; and returns the selected Internet Protocol address; wherein the received Internet Protocol address indicates an edge node in a content distribution network.

[0145] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer 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 (e.g., through the Internet using an Internet service provider).

[0146] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0147] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0148] The computer-readable storage medium provided in this embodiment stores computer-readable program instructions for executing the above-mentioned upper arm motion capture method, which can accurately capture the 3D motion of the head without using a motion capture suit.

[0149] Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the upper arm motion capture method of the above-mentioned embodiment 1, and will not be elaborated here.

[0150] Embodiment 4

[0151] An embodiment of the present invention provides an electronic device, which includes: 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 an upper arm motion capture method in the above-mentioned embodiment one.

[0152] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0153] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0154] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0155] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0156] The electronic device provided by the present invention adopts the upper arm motion capture method in the above-mentioned embodiment 1, and can accurately capture the 3D motion of the upper arm without using a motion capture suit.

[0157] Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the upper arm motion capture method provided by the above-mentioned embodiment 1, and other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0158] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0159] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for capturing upper arm motion, characterized in that: include: Collect the three-dimensional world coordinates of the key points of the upper arm target; Convert the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point; The Z-axis motion capture data is calculated based on the plane coordinates of the target key point, and the X-axis motion capture data is calculated based on the three-dimensional world coordinates.

2. The method according to claim 1, characterized in that Before collecting the 3D world coordinates of the key points of the upper arm target, it also includes: Capturing images of the upper arm through a camera; A three-dimensional world coordinate system is constructed based on the image of the upper arm.

3. The method according to claim 1 or 2, characterized in that: The method of collecting the three-dimensional world coordinates of the key points of the upper arm target includes: Mediapipe is used to identify target key points of the upper arm in the image, and the three-dimensional world coordinates of the target key points are obtained according to the three-dimensional world coordinate system and the image size.

4. The method according to claim 1, characterized in that: The target key points include hip points, upper arm points, and elbow points.

5. The method according to claim 4, characterized in that The method of converting the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point includes: Constructing a coordinate conversion formula, wherein the conversion formula uses the Z-axis coordinate in the three-dimensional world coordinate as the X-axis coordinate in the plane coordinate system, and uses the Y-axis coordinate in the three-dimensional world coordinate as the Y-axis coordinate in the plane coordinate system; The conversion of the target key point from the three-dimensional world coordinates to the plane coordinates is completed based on the conversion formula.

6. The method according to claim 4, characterized in that The method for calculating Z-axis motion capture data based on the plane coordinates of the target key point includes: The plane coordinates corresponding to the calibrated hip point, upper arm point, and elbow point are points P1, P2, and P3; Connect points P1, P2 and P3 in sequence to construct a virtual triangle; Based on the plane coordinates of points P2 and P3, a vector distance A from point P2 to point P3 is calculated; based on the plane coordinates of points P1 and P3, a vector distance B from point P1 to point P3 is calculated; based on the plane coordinates of points P1 and P2, a vector distance C from point P1 to point P2 is calculated; According to A, B, C and the radian calculation formula, calculate the radian D formed by points P1, P2 and P3, and then convert the radian D into the Z-axis rotation angle.

7. The method according to claim 4, characterized in that The method for calculating X-axis motion capture data based on the three-dimensional world coordinates includes: The three-dimensional world coordinates corresponding to the calibrated hip point, upper arm point, and elbow point are point p1, point p2, and point p3; Connect points p1, p2 and p3 in sequence to construct a virtual triangle; Based on the 3D world coordinates of points p2 and p3, a vector distance a from point p2 to point p3 is calculated; based on the 3D world coordinates of points p1 and p3, a vector distance b from point p1 to point p3 is calculated; based on the 3D world coordinates of points p1 and p2, a vector distance c from point p1 to point p2 is calculated; Calculate the radian d of points p1, p2 and p3 according to a, b, c and the radian calculation formula, and then convert the radian d into the X-axis rotation angle.

8. An arm motion capture system, characterized in that: include: A collection unit, used to collect the three-dimensional world coordinates of the key points of the upper arm target; A processing unit, used for converting the three-dimensional world coordinates of the target key point to obtain the plane coordinates of the target key point; A calculation unit is used to calculate the Z-axis motion capture data based on the plane coordinates of the target key point, and calculate the X-axis motion capture data based on the three-dimensional world coordinates.

9. The system according to claim 8, characterized in that The target key points include hip points, upper arm points, and elbow points.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Real-time control method and system of three-dimensional model

    CN106251396A

  • Human body action function detection system, detection method and detector

    CN110969114A