Finger motion capturing method and system and storage medium
The camera collects the three-dimensional world coordinates of the finger, uses Mediapipe to identify key points, constructs auxiliary coordinate points, and calculates Z-axis motion capture data. This solves the problem of high cost of finger motion capture in virtual live broadcasts and achieves high-quality virtual live broadcast effects.
Patent Information
- Application Number
- CN202310265926.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology cannot meet the demand for high-quality 3D images in the metaverse era through 2D motion capture in virtual live broadcasts, and the cost of customized 3D motion capture suits is high and difficult to popularize.
The camera collects the three-dimensional world coordinates of the finger, uses Mediapipe to identify key points, constructs auxiliary coordinate points, and calculates Z-axis motion capture data to achieve precise capture of finger movements and avoid the need for a motion capture suit.
It achieves precise capture of finger movements without using a motion capture suit, reduces equipment costs, enhances the applicability of motion capture equipment, and supports high-quality virtual live broadcasts.
Smart Images

Figure CN118570867A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a finger 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 finger movements, instead of using motion capture suits to drive virtual characters, conduct virtual live broadcasts in 3D scenes, and meet the increasingly rich virtual live broadcast needs in the metaverse scene. Summary of the invention
[0006] The object of the present invention is to provide a finger motion capture method, system and storage medium, which can accurately capture the 3D motion of fingers without using a motion capture suit.
[0007] In order to achieve the above object, a first aspect of the present invention provides a finger motion capture method, comprising:
[0008] Collect the 3D world coordinates of each finger's key points;
[0009] Selecting target key points from the key points as key points for motion capture data to be calculated;
[0010] Combining the target key point and two key points adjacent to the target key point in upper and lower directions into a key point group;
[0011] Constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key points;
[0012] Calculate the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate point;
[0013] Traverse all the target key points of the fingers and calculate the Z-axis motion capture data of each finger in turn.
[0014] Preferably, before collecting the three-dimensional world coordinates of the finger key points, the method further includes:
[0015] Capture the image of each finger through the camera;
[0016] A three-dimensional world coordinate system is constructed based on the image of the finger.
[0017] Preferably, the method of collecting the three-dimensional world coordinates of the key points of the finger includes:
[0018] Mediapipe is used to identify key points of fingers in the image, and the three-dimensional world coordinates of the key points are obtained according to the three-dimensional world coordinate system and the image size.
[0019] Exemplarily, the key points of each finger include an end bone node, a middle bone node and a terminal bone node.
[0020] Preferably, the method for constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key point includes:
[0021] Based on the positive direction of the Y axis of the three-dimensional world coordinates of the target key point, an extension line of a specified distance is made to construct an auxiliary coordinate point;
[0022] Obtain the three-dimensional world coordinates of the auxiliary coordinate point.
[0023] Preferably, the method for calculating the X-axis motion capture data according to the three-dimensional world coordinates of the target key point and the auxiliary coordinate point includes:
[0024] The three-dimensional world coordinates of the corresponding calibration palm joint points and finger joint points are points P1 and P2, and the three-dimensional world coordinates of the calibration auxiliary coordinate point are points P3;
[0025] Connect points P1, P2 and P3 in sequence to construct a virtual triangle;
[0026] 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;
[0027] The method for calculating the Z-axis motion capture data of the target key point according to the three-dimensional world coordinates of the key point group and the auxiliary coordinate point includes:
[0028] Mark the 3D world coordinates of the lower key point adjacent to the target key point as point P1, mark the 3D world coordinates of the upper key point adjacent to the target key point as point P3, and mark the 3D world coordinates of the target key point as point P2;
[0029] Connect points P1, P2 and P3 in sequence to construct a virtual triangle;
[0030] 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;
[0031] 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 Z-axis rotation angle.
[0032] Further, the method of calculating the radian D formed by the points P1, P2 and P3 according to A, B, C and the radian calculation formula, and then converting the radian D into the Z-axis rotation angle includes:
[0033] Using formula Calculate the Z-axis radian;
[0034] The Z-axis rotation angle is calculated using the formula S=180°-Angle, where Angle=D*(180 / π).
[0035] Preferably, the finger motion capture method is used for virtual live broadcast.
[0036] Compared with the prior art, the finger motion capture method provided by the present invention has the following beneficial effects:
[0037] A finger motion capture method provided by the present invention first collects finger motion images, identifies finger joint key points, and locates the three-dimensional world coordinates of the finger key points, then selects target key points to be calculated for motion capture data in turn, and combines the target key point and two key points adjacent to the target key point in the upper and lower directions into a key point group, then constructs auxiliary coordinate points based on the three-dimensional world coordinates of the target key point, and finally calculates the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate points, until all target key points of the finger are traversed, and the Z-axis motion capture data of each finger is calculated in turn.
[0038] It can be seen that compared with the prior art solution of realizing finger motion capture through customized motion capture clothing, the method of the present invention directly collects the target key points of human fingers through the camera, accurately realizes the real-time capture of finger movements, effectively reduces the equipment cost and enhances the applicability of the motion capture equipment. Finally, according to the algorithm, driving data is generated that can drive the fingers to imitate the finger movements of the anchor, so as to achieve the purpose of live broadcasting with virtual characters.
[0039] A second aspect of the present invention provides a finger motion capture system, which is applied to the finger motion capture method described in the above technical solution, and the system comprises:
[0040] A collection unit, used to collect the three-dimensional world coordinates of each finger key point;
[0041] A selection unit, used for selecting a target key point from the key points as a key point for motion capture data to be calculated;
[0042] A processing unit, used for combining the target key point and two key points adjacent to the target key point in a vertical direction into a key point group;
[0043] An auxiliary unit, used for constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key points;
[0044] A first calculation unit, configured to calculate the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate point;
[0045] The second calculation unit is used to traverse all target key points of the fingers and calculate the Z-axis motion capture data of each finger in turn.
[0046] Compared with the prior art, the beneficial effects of the finger motion capture system provided by the present invention are the same as the beneficial effects of the finger motion capture method provided by the above technical solution, which will not be elaborated here.
[0047] A third aspect of the present invention 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 finger motion capture method are executed.
[0048] 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 finger motion capture method provided by the above technical solution, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] 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:
[0050] Figure 1 Schematic diagram of the process of capturing finger motions in an embodiment of the present invention;
[0051] Figure 2 This is an example diagram of key points of finger joints captured by Mediapipe in an embodiment of the present invention;
[0052] Figure 3 Schematic diagram of an electronic device. DETAILED DESCRIPTION
[0053] 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.
[0054] Embodiment 1
[0055] See also Figure 1 , this embodiment provides a finger motion capture method, including:
[0056] Collect the 3D world coordinates of each finger's key point; select the target key point from the key points as the key point for the motion capture data to be calculated; combine the target key point and the two key points above and below the target key point into a key point group; construct auxiliary coordinate points based on the 3D world coordinates of the target key point; calculate the Z-axis motion capture data of the target key point based on the 3D world coordinates of the key point group and the auxiliary coordinate points; traverse all the target key points of the finger, and calculate the Z-axis motion capture data of each finger in turn.
[0057] It can be seen that compared with the prior art solution of realizing finger motion capture through customized motion capture clothing, the method of this embodiment directly collects the target key points of human fingers through the camera, accurately realizes the real-time capture of finger movements, effectively reduces the equipment cost and enhances the applicability of the motion capture equipment. Finally, according to the algorithm, driving data is generated to drive the fingers to imitate the host's finger movements, so as to achieve the purpose of live broadcasting with virtual characters.
[0058] Exemplarily, in order to accurately generate driving data and take into account the amount of computation of the system, the key points of each finger preferably include an end bone node, a middle bone node and a terminal bone node.
[0059] Preferably, the above embodiment further includes, before collecting the three-dimensional world coordinates of the finger target key point:
[0060] The image of each finger is collected by the camera; a three-dimensional world coordinate system is constructed based on the finger image.
[0061] Methods for collecting the three-dimensional world coordinates of finger key points include:
[0062] Mediapipe is used to identify key points of fingers in the image, and the three-dimensional world coordinates of the key points are obtained according to the three-dimensional world coordinate system and the image size.
[0063] The method for constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key point includes:
[0064] Based on the positive direction of the Y axis of the three-dimensional world coordinates of the target key point, an extension line of a specified distance is made to construct an auxiliary coordinate point;
[0065] Obtain the three-dimensional world coordinates of the auxiliary coordinate point.
[0066] See also Figure 2 Specifically, when a person moves in front of the camera, the camera can continuously capture images of all fingers, and then input each captured image into the MediapipeHandAPI to obtain 21 key points of the fingers. In our actual movements, the movement direction of the fingers is relatively single, such as opening the hand, making a fist, etc. The movement direction of each joint of the finger is the same, that is, the Z-axis direction. Therefore, for the motion capture of the fingers, we need to find the transformation amplitude of the Z-axis of each joint key point, and map this transformation amplitude to a motion range suitable for each joint of the virtual human. Below, we take the motion capture of the index finger as an example to explain:
[0067] Finger motion capture first uses the MediapipeHandAPI method to perform hand recognition, which can identify 21 three-dimensional plane coordinates and 21 three-dimensional world coordinates. Because the three-dimensional plane coordinates are easily affected by the position and angle when capturing depth information, we use 21 three-dimensional world coordinates for finger motion capture, and 21 three-dimensional plane coordinates are used for visualization, so we first locate the 21 joint key points of the human hand. Taking the index finger as an example, its activity is carried out through the Z-axis activity of the three joint key points 5, 6, and 7 in the figure. The rest of the fingers are also the same, such as the activity of the thumb, which is carried out through the Z-axis activity of the three joint key points 1, 2, and 3; the activity of the middle finger is carried out through the Z-axis activity of the three joint key points 9, 10, and 11; the activity of the ring finger is carried out through the Z-axis activity of the three joint key points 13, 14, and 15; the activity of the little finger is carried out through the key axis activity of the three joint key points 17, 18, and 19.
[0068] Calculate the Z-axis motion capture of the key point of joint No. 5 at the end of the index finger: We take the key point of joint No. 0 as the starting point, the key point of joint No. 5 as the midpoint, and the key point of joint No. 6 as the end point. We first calculate the degree of the angle ∠056. This degree can be understood as the angle formed by the root bone of our index finger and the palm, not the degree of downward movement (Z-axis direction) of our root bone. Therefore, we need to preset a plane and make an extension line of the key point of joint No. 0 in the Y-axis direction, so that ∠050' forms a 180° plane, and use the degree obtained by ∠050'-∠056 as the motion capture data of the key point of joint No. 5 at the end of the index finger.
[0069] Calculate the Z-axis motion capture of the key point of joint No. 6 in the middle of the index finger: We take the key point of joint No. 5 as the starting point, the key point of joint No. 6 as the midpoint, and the key point of joint No. 7 as the end point. We first calculate the degree of their angle ∠567. This degree can be understood as the angle formed by the interrupted bone of our index finger and the end bone of the index finger, not the degree of downward movement (Z-axis direction) of our middle bone. Therefore, we need to preset a plane and make an extension line of the key point of joint No. 5 in the Y-axis direction, so that ∠565' forms a 180° plane, and use the degree obtained by ∠565'-∠567 as the motion capture data of the joint No. 6 in the middle of the index finger.
[0070] Calculate the Z-axis motion capture of the key point of joint 7 of the terminal bone of the index finger: We take the key point of joint 6 as the starting point, the key point of joint 7 as the midpoint, and the key point of joint 8 as the end point. We first calculate the degree of their angle ∠678. This degree can be understood as the angle formed by the terminal bone of our index finger and the middle bone of the index finger. It is not the degree of downward movement (Z-axis direction) of the terminal bone of our index finger. Therefore, we need to preset a plane and make an extension line of the key point of joint 6 in the Y-axis direction, so that ∠676' forms a 180° plane, and use the degree obtained by ∠676'-∠678 as the motion capture data of the key point of joint 7 of the terminal of the index finger.
[0071] Taking the index finger as an example, the motion capture of the bone end, interruption, and terminal of a finger is described above. For other finger joints, we only need to change the index corresponding to the finger joint that needs to be calculated. From the overall idea of finger motion capture, we only use the above calculation idea, which is accurate and efficient for finger motion capture.
[0072] See also Figure 2 In the above embodiment, the method for calculating the Z-axis motion capture data of the target key point according to the three-dimensional world coordinates of the key point group and the auxiliary coordinate point includes:
[0073] Mark the 3D world coordinates of the lower key point adjacent to the target key point as point P1, mark the 3D world coordinates of the upper key point adjacent to the target key point as point P3, and mark the 3D world coordinates of the target key point as point P2;
[0074] Connect points P1, P2 and P3 in sequence to construct a virtual triangle;
[0075] 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;
[0076] 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 Z-axis rotation angle.
[0077] Methods for calculating the arc D formed by points P1, P2 and P3 according to A, B, C and the arc calculation formula, and then converting the arc D into the Z-axis rotation angle include:
[0078] Using formula Calculate the Z-axis radian;
[0079] The Z-axis rotation angle is calculated using the formula S=180°-Angle, where Angle=D*(180 / π).
[0080] Here we take the index finger root bone (end bone node) motion capture as an example. First, we take out the 3D world coordinates of the next bone of the index finger root bone (coordinate index is 5) (coordinate index is 0), recorded as P1; then we take out the 3D world coordinates of the index finger bone, recorded as P2; finally, we take out the 3D world coordinates of the previous bone of the index finger bone (coordinate index is 6), recorded as P3. We can get:
[0081] P1=(X:-0.03143127262592316,Y:0.001103088608942,Z:0.048711035400629044)
[0082] P2=(X:-0.00171474984381347,Y:-0.00039366696728,Z:-0.013525505550205708)
[0083] P3=(X:-0.00106367934495210,Y:-0.01463292259723,Z:-0.019539671018719673)
[0084] Taking the x-axis and y-axis coordinates of the front side as the new coordinates for motion capture calculation, the following is the representation:
[0085] P1≈(-0.0314,0.0011)
[0086] P2≈(-0.0017,-0.0004)
[0087] P3≈(-0.0011,-0.0146)
[0088] Substitute the three points P1, P2, and P3 into the three-point angle calculation formula, and the calculation process is as follows:
[0089] 1. Find the distance from P2 to P3, denoted as A:
[0090]
[0091]
[0092] A=0.0143
[0093] 2. Find the distance from P1 to P3, denoted as B:
[0094]
[0095] B=0.0342
[0096] 3. Find the distance from P1 to P2, denoted as C:
[0097]
[0098]
[0099] C=0.0298
[0100] 4. Find the arc of points P1, P2, and P3, denoted as D:
[0101]
[0102]
[0103] D=1.67
[0104] 5. Radians to angles, denoted as Angle:
[0105] Angle=D*(180 / π)
[0106] Angle=1.67*(180 / π)
[0107] Angle = 95°
[0108] Draw an extension line of the base of the index finger and calculate the actual bending angle, recorded as S:
[0109] S=180°-Angle=180°-95°=85°
[0110] Finally, we calculated that the bending angle of the index finger root bone on the z-axis is 85 degrees. According to the original input image above, we can see that the bending angle of our index finger is a right angle close to 90 degrees, and the calculated angle is 85 degrees, so the calculation result is accurate and reliable.
[0111] Embodiment 2
[0112] This embodiment provides a finger motion capture system, including:
[0113] A collection unit, used to collect the three-dimensional world coordinates of each finger key point;
[0114] A selection unit, used for selecting a target key point from the key points as a key point for motion capture data to be calculated;
[0115] A processing unit, used for combining the target key point and two key points adjacent to the target key point in a vertical direction into a key point group;
[0116] An auxiliary unit, used for constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key points;
[0117] A first calculation unit, configured to calculate the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate point;
[0118] The second calculation unit is used to traverse all target key points of the fingers and calculate the Z-axis motion capture data of each finger in turn.
[0119] Preferably, the key points of each finger include an end bone node, a middle bone node and a terminal bone node.
[0120] Compared with the prior art, the beneficial effects of the finger motion capture system provided in this embodiment are the same as the beneficial effects of the finger motion capture method provided in the above-mentioned embodiment 1, and are not elaborated here.
[0121] Embodiment 3
[0122] 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 finger motion capture method are executed.
[0123] 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.
[0124] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0125] 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.
[0126] 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.
[0127] 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).
[0128] 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.
[0129] 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 constitute a limitation on the unit itself in some cases.
[0130] The computer-readable storage medium provided in this embodiment stores computer-readable program instructions for executing the above-mentioned finger motion capture method, which can accurately capture the 3D motion of the head without using a motion capture suit.
[0131] Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present invention are the same as the beneficial effects of the finger motion capture method of the above-mentioned embodiment 1, and are not elaborated here.
[0132] Embodiment 4
[0133] 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 a finger motion capture method in the above-mentioned embodiment one.
[0134] Reference below Figure 3 , 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 3 The 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.
[0135] like Figure 3 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.
[0136] 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.
[0137] 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.
[0138] The electronic device provided by the present invention adopts a finger motion capture method in the above-mentioned embodiment 1, and can accurately capture the 3D motion of the finger without using a motion capture suit.
[0139] 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 finger 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.
[0140] 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.
[0141] 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 who is familiar with the technical field 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 finger motion capture method, characterized in that: include: Collect the 3D world coordinates of each finger's key points; Selecting target key points from the key points as key points for motion capture data to be calculated; Combining the target key point and two key points adjacent to the target key point in upper and lower directions into a key point group; Constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key points; Calculate the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate point; Traverse all the target key points of the fingers and calculate the Z-axis motion capture data of each finger in turn.
2. The method according to claim 1, characterized in that Before collecting the 3D world coordinates of the finger key points, it also includes: Capture the image of each finger through the camera; A three-dimensional world coordinate system is constructed based on the image of the finger.
3. The method according to claim 1 or 2, characterized in that: Methods for collecting the three-dimensional world coordinates of finger key points include: Mediapipe is used to identify key points of fingers in the image, and the three-dimensional world coordinates of the 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 key points of each finger include the end bone node, the middle bone node and the terminal bone node.
5. The method according to claim 4, characterized in that The method for constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key point includes: Based on the positive direction of the Y axis of the three-dimensional world coordinates of the target key point, an extension line of a specified distance is made to construct an auxiliary coordinate point; Obtain the three-dimensional world coordinates of the auxiliary coordinate point.
6. The method according to claim 4 or 5, characterized in that: The method for calculating the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate point comprises: Mark the 3D world coordinates of the lower key point adjacent to the target key point as point P1, mark the 3D world coordinates of the upper key point adjacent to the target key point as point P3, and mark the 3D world coordinates of the target key point as point P2; 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 Z-axis rotation angle.
7. The method according to claim 6, characterized in that Methods for calculating the arc D formed by points P1, P2 and P3 according to A, B, C and the arc calculation formula, and then converting the arc D into the Z-axis rotation angle include: Using formula Calculate the Z-axis radian; The Z-axis rotation angle is calculated using the formula S=180°-Angle, where Angle=D*(180 / π).
8. The method according to claim 1, characterized in that The finger motion capture method is used for virtual live broadcast.
9. A finger motion capture system, characterized in that: include: A collection unit, used to collect the three-dimensional world coordinates of each finger key point; A selection unit, used for selecting a target key point from the key points as a key point for motion capture data to be calculated; A processing unit, used for combining the target key point and two key points adjacent to the target key point in a vertical direction into a key point group; An auxiliary unit, used for constructing auxiliary coordinate points based on the three-dimensional world coordinates of the target key points; A first calculation unit, configured to calculate the Z-axis motion capture data of the target key point according to the key point group and the three-dimensional world coordinates of the auxiliary coordinate point; The second calculation unit is used to traverse all target key points of the fingers and calculate the Z-axis motion capture data of each finger in turn.
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 8 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
