Somatosensory game method, device and computer-readable storage medium based on running posture
By acquiring and analyzing the player's posture data, calculating the running speed and generating corresponding instructions, it solves the problem in the existing technology that the somatosensory game cannot map the running speed in real time, and improves the game experience and operation accuracy.
Patent Information
- Application Number
- CN202211059989.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-08-31
AI Technical Summary
The existing somatosensory game architecture cannot map the player's actual running speed in real time, resulting in fixed game actions and affecting the player's gaming experience.
By obtaining the player posture data detected by the somatosensory device, it is determined that the player has completed the running action that meets the preset standards, the running speed is calculated, and running instructions are generated to control the game object to perform matching running actions to achieve adaptive changes in action speed.
It realizes real-time mapping of the player's running speed in somatosensory games, improves the game experience and operation accuracy, and provides a calculation speed that is closer to the player's actual running speed.
Smart Images

Figure CN115414669B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of somatosensory game technology, and in particular to a somatosensory game method, device and computer-readable storage medium based on running posture. Background Art
[0002] At present, the somatosensory game architecture on the market is usually based on the somatosensory action architecture of IMU (Inertial Measurement Unit). This somatosensory action architecture usually maps the user's action posture in the game, but cannot map the player's action speed. As a result, in some somatosensory games (such as running somatosensory games), when the player is playing the game, the game action can only be performed at a fixed speed, and cannot be adaptively changed according to the player's actual action speed, affecting the player's gaming experience. Summary of the invention
[0003] The embodiment of the present application aims to solve the problem that the somatosensory game cannot map the player's actual running speed in real time by providing a somatosensory game method based on running posture.
[0004] To achieve the above objectives, the present application provides a somatosensory gaming method based on running posture, comprising:
[0005] After the preset running motion sensing game is started, the player's posture data detected by the motion sensing device is obtained;
[0006] Determining, based on the player's posture data, whether the player has completed a running action that meets a preset standard within a data period of a running action;
[0007] If yes, then calculating the player's running speed based on the player's posture data within the data period;
[0008] generating a running instruction according to the running speed;
[0009] The game object is controlled to perform a matching running action according to the running instruction.
[0010] In one embodiment, before determining whether the player has completed a running action that meets a preset standard within a data period of a running action according to the player posture data, the method further includes:
[0011] The data period during which the player completes a running action is determined from the player's posture data according to preset rules.
[0012] In one embodiment, the player posture data includes an angle value;
[0013] The preset rules include:
[0014] Let a < b < c < d, and f a = f b > f c = f d ;
[0015] Meanwhile, Let n1 < m < n2, and
[0016] Then, the data period of a running motion from n1 to n2;
[0017] Wherein, (n1, n2) is a continuous time interval, and f is the angle value at the corresponding time.
[0018] In one embodiment, the angle value includes an x-axis angle value and a y-axis angle value;
[0019] Judging whether the player completes a running motion meeting the preset standard within the data period of a running motion according to the player posture data, including:
[0020] If within the data period, the x-axis angle value and the y-axis angle value simultaneously meet the following conditions, it is determined that the player completes a running motion meeting the preset standard, and the conditions include:
[0021] There is at least one x-axis angle value not less than the preset x-axis peak value, and there is at least one x-axis angle value not greater than the preset x-axis trough value;
[0022] There is at least one y-axis angle value not less than the preset y-axis peak value, and there is at least one y-axis angle value not greater than the preset y-axis trough value.
[0023] In one embodiment, before judging whether the player completes a running motion meeting the preset standard within the data period of a running motion according to the player posture data, the method further includes:
[0024] Filtering the angle value to improve the smoothness of the data.
[0025] In one embodiment, filtering the angle value to improve the smoothness of the data includes:
[0026] Filtering the angle value by using moving average filtering, wherein the output value of the moving window of the moving average filtering is set to be the smallest sum of squares of each sampling value in the window, then the following formula is satisfied:
[0027]
[0028]
[0029] Among them, formula (2) is obtained by finding the limit of formula (1), where N is the filter order of the sliding window, X is the output value of the sliding window, and X is K is the sample value in the sliding window.
[0030] In one embodiment, the method further comprises:
[0031] The preset x-axis peak value, the preset x-axis trough value, the preset y-axis peak value and the preset y-axis trough value are adjusted according to the current game difficulty.
[0032] In one embodiment, the player posture data includes a speed parameter;
[0033] Calculating the player's running speed according to the player's posture data in the data period, including:
[0034] The average value of all speed parameters in the data period is calculated as the running speed.
[0035] To achieve the above-mentioned objectives, an embodiment of the present application also proposes a somatosensory gaming device based on running posture, comprising a memory, a processor, and a somatosensory gaming program based on running posture stored in the memory and executable on the processor, wherein when the processor executes the somatosensory gaming program based on running posture, a somatosensory gaming method based on running posture as described in any one of the above items is implemented.
[0036] To achieve the above objectives, an embodiment of the present application also proposes a computer-readable storage medium, on which a somatosensory game program based on running posture is stored. When the somatosensory game program based on running posture is executed by a processor, a somatosensory game method based on running posture as described in any of the above items is implemented.
[0037] The technical solution of the present application is a somatosensory gaming method based on running posture. After determining that the player has completed a running action that meets the preset standards, the player's running speed is calculated based on the player's posture data within a data cycle, and a running instruction is generated based on the calculated running speed. In this way, the player's running speed can be mapped in the game in real time, thereby improving the player's gaming experience. In addition, the player's running speed calculated through the player's posture data within a data cycle can obtain a calculated speed that is closer to the player's actual running speed, and then the player's running speed can be accurately mapped, thereby improving the player's operating experience. It can be seen that compared to traditional somatosensory running games with an immutable running speed, the somatosensory gaming method of the technical solution of the present application has the advantages of accurate game operation and strong gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0039] Figure 1 This is a module structure diagram of an embodiment of a somatosensory game device based on running posture according to the present invention;
[0040] Figure 2 The figure is a flow chart of an embodiment of a somatosensory gaming method based on running posture according to the present invention.
[0041] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0043] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0044] It should be noted that in the claims, any reference symbols placed between brackets shall not be constructed as limitations to the claims. The presence of "comprising" in the text does not exclude the presence of components or steps not listed in the claims. The quantifier "one" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention can be implemented by means of hardware comprising several different components and by means of appropriately programmed computers. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of "first", "second", and "third" etc. does not indicate any order, and these words may be interpreted as names.
[0045] like Figure 1 As shown, Figure 1 It is a structural diagram of a server 1 (also called a somatosensory gaming device based on running posture) of a hardware operating environment involved in an embodiment of the present invention.
[0046] The server of the embodiment of the present invention is a device with display function, such as "Internet of Things devices", smart air conditioners, smart lights, smart power supplies with networking functions, AR / VR devices with networking functions, smart speakers, self-driving cars, PCs, smart phones, tablet computers, e-book readers, portable computers, etc.
[0047] like Figure 1 As shown, the server 1 includes: a memory 11, a processor 12 and a network interface 13.
[0048] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the server 1, such as a hard disk of the server 1. In other embodiments, the memory 11 may also be an external storage device of the server 1, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc., equipped on the server 1.
[0049] Furthermore, the memory 11 may include an internal storage unit of the server 1 and an external storage device. The memory 11 may be used not only to store application software and various data installed on the server 1, such as the code of the somatosensory game program 10 based on the running posture, but also to temporarily store data that has been output or is to be output.
[0050] In some embodiments, the processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 11, such as executing a somatosensory game program 10 based on running posture.
[0051] The network interface 13 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the server 1 and other electronic devices.
[0052] The network may be the Internet, a cloud network, a wireless fidelity (Wi-Fi) network, a personal area network (PAN), a local area network (LAN), and / or a metropolitan area network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of the following: Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Light Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol, and / or Bluetooth (BlueTooth) communication protocol or a combination thereof.
[0053] Optionally, the server may further include a user interface, which may include a display, an input unit such as a keyboard, and an optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be referred to as a display screen or a display unit, which is used to display information processed in the server 1 and to display a visual user interface.
[0054] Figure 1 Only the server 1 having components 11-13 and the somatosensory game program 10 based on the running posture is shown. It can be understood by those skilled in the art that Figure 1 The structure shown does not constitute a limitation on the server 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0055] In this embodiment, the processor 12 can be used to call the somatosensory game program based on running posture stored in the memory 11, and perform the following operations:
[0056] After the preset running motion sensing game is started, the player's posture data detected by the motion sensing device is obtained;
[0057] Determining, based on the player's posture data, whether the player has completed a running action that meets a preset standard within a data period of a running action;
[0058] If yes, then calculating the player's running speed based on the player's posture data within the data period;
[0059] Generate a running instruction according to the running speed;
[0060] Control the game object to perform a matching running action according to the running instruction.
[0061] In one embodiment, the processor 12 can be used to call the somatosensory game program based on the running posture stored in the memory 11 and perform the following operations:
[0062] Before determining whether the player has completed a running action that meets the preset standard within the data cycle of a running action according to the player posture data, the method further includes:
[0063] Determine the data cycle of the player completing a running action from the player posture data according to the preset rules.
[0064] In one embodiment, the processor 12 can be used to call the somatosensory game program based on the running posture stored in the memory 11 and perform the following operations:
[0065] The player posture data includes angle values;
[0066] The preset rules include:
[0067] Make a < b < c < d, and f a = f b > f c = f d ;
[0068] Meanwhile, Make n1 < m < n2, and
[0069] Then, n1 to n2 is the data cycle of a running action;
[0070] In the formula, (n1, n2) is a continuous time interval, and f is the angle value at the corresponding time.
[0071] In one embodiment, the processor 12 can be used to call the somatosensory game program based on the running posture stored in the memory 11 and perform the following operations:
[0072] The angle values include x-axis angle values and y-axis angle values;
[0073] Determining whether the player has completed a running action that meets the preset standard within the data cycle of a running action according to the player posture data includes:
[0074] If within the data cycle, the x-axis angle value and the y-axis angle value simultaneously satisfy the following conditions, it is determined that the player has completed a running action that meets the preset standard, and the conditions include:
[0075] At least one x-axis angle value is not less than a preset x-axis peak value, and at least one x-axis angle value is not greater than a preset x-axis trough value;
[0076] There is at least one y-axis angle value that is not less than a preset y-axis peak value, and there is at least one y-axis angle value that is not greater than a preset y-axis trough value.
[0077] In one embodiment, the processor 12 may be used to call a somatosensory game program based on running posture stored in the memory 11, and perform the following operations:
[0078] Before determining whether the player has completed a running action that meets a preset standard within a data period of a running action according to the player posture data, the method further includes:
[0079] The angle values are filtered to improve the smoothness of the data.
[0080] In one embodiment, the processor 12 may be used to call a somatosensory game program based on running posture stored in the memory 11, and perform the following operations:
[0081] The angle value is filtered to improve the smoothness of the data, including:
[0082] The angle value is filtered by using a sliding average filter, wherein the output value of the sliding window of the sliding average filter is set to be the minimum sum of the squares of each sample value in the window, and the following formula is satisfied:
[0083]
[0084]
[0085] Among them, formula (2) is obtained by finding the limit of formula (1), where N is the filter order of the sliding window, X is the output value of the sliding window, and X is K is the sample value in the sliding window.
[0086] In one embodiment, the processor 12 may be used to call a somatosensory game program based on running posture stored in the memory 11, and perform the following operations:
[0087] The method further comprises:
[0088] The preset x-axis peak value, the preset x-axis trough value, the preset y-axis peak value and the preset y-axis trough value are adjusted according to the current game difficulty.
[0089] In one embodiment, the processor 12 may be used to call a somatosensory game program based on running posture stored in the memory 11, and perform the following operations:
[0090] The player posture data includes a speed parameter;
[0091] Calculating the player's running speed according to the player's posture data in the data period, including:
[0092] The average value of all speed parameters in the data period is calculated as the running speed.
[0093] Based on the hardware architecture of the running posture-based somatosensory gaming device, an embodiment of the running posture-based somatosensory gaming method of the present invention is proposed. The running posture-based somatosensory gaming method of the present invention aims to solve the problem that the somatosensory game cannot map the player's actual running speed in real time.
[0094] Reference Figure 2 , Figure 2 This is an embodiment of a somatosensory gaming method based on running posture of the present invention, and the somatosensory gaming method based on running posture comprises the following steps:
[0095] S10. After the preset running-type motion sensing game is started, the player's posture data detected by the motion sensing device is obtained.
[0096] Among them, running somatosensory games refer to games that require players to run in reality. Among them, running somatosensory games can be races, relay races, long-distance runs, interval runs, etc. Of course, running somatosensory games are not limited to the above categories, but can also include other games. Examples are not given here one by one. Any game that requires players to run in reality to implement game instructions can be considered as the running somatosensory game mentioned in the technical solution of this application.
[0097] Furthermore, the preset running somatosensory game is run on a terminal, which may be a desktop computer, a laptop computer, a game console, a portable game console, a smart phone, a tablet computer, a smart watch, a smart TV, etc.
[0098] Among them, the somatosensory device refers to a device that can detect the player's posture data. Usually, the somatosensory device is configured to include a six-axis IMU sensor, which includes a three-axis accelerometer and a three-axis gyroscope. The six-axis IMU sensor detects the player's posture data by detecting the changes in the player's three-axis acceleration and three-axis angular velocity. Specifically, the somatosensory device is configured to be wearable, and its form includes but is not limited to the following: bracelets, gloves, watches, headscarves, hats, vests, fitness rings, and game controllers.
[0099] Specifically, when transmitting the player's posture data to the terminal, the embedded algorithm of the somatosensory detection device will convert the detected three-axis acceleration data and three-axis angular velocity data into speed parameters, angle values, spatial coordinates, etc. that the terminal can directly call, and then send them to the terminal.
[0100] Furthermore, before the game, the somatosensory device needs to establish a communication connection with the terminal, wherein a wired connection or a wireless connection can be established between the somatosensory device and the terminal. Exemplarily, when the somatosensory device establishes a wired connection with the terminal, it can be based on at least one of the USB2.0 protocol, USB3.0 protocol, Thunderbolt 3 protocol, and Thunderbolt 4 protocol; and when the somatosensory device establishes a wireless connection with the terminal, it can be based on at least one of the Bluetooth protocol, WiFi protocol, infrared protocol, 2.4G communication protocol, and NFC protocol.
[0101] S20. Determine, based on the player's posture data, whether the player has completed a running action that meets a preset standard within a data period of the running action.
[0102] Among them, when the somatosensory detection device detects that the player has completed a complete forward and backward arm swinging action, we believe that the player has completed a complete running action. Specifically, because when playing somatosensory games, players will perform periodic actions, such as arm swinging actions, leg swinging actions, and cross-turning actions, correspondingly, the somatosensory posture data obtained when the player is running is also periodic. Therefore, the terminal can determine the time period for the player to complete a running action based on the periodicity of the player's posture data. Since this time period is accompanied by a large amount of player posture data, we define the time period for the player to complete a running action as a data period.
[0103] Furthermore, after determining a data period of a player's running action, the terminal can judge whether the player has completed a running action that meets a preset standard based on the player's posture data within the data period. The preset standard is used to require the player's running intensity to reach a certain intensity. Only when the player's running intensity in reality is sufficient, the terminal will generate a corresponding running instruction and map it in the game.
[0104] S30: If yes, the player's running speed is calculated based on the player's posture data within the data period.
[0105] Among them, the somatosensory detection device sends the player's posture data to the terminal at a fixed frequency, usually set to 50hz, that is, the somatosensory detection device will send 50 data packets to the terminal within 1 second, and each data packet includes the player's posture data detected by the somatosensory detection device at the corresponding moment. The player's posture data includes but is not limited to the three-axis (x-axis, y-axis and z-axis) angle value, speed parameter, and spatial coordinates.
[0106] Specifically, after determining the data period of a player completing a running action, we can further determine the posture data of the player completing a running action according to the start and end time of the data period. Since the player posture data includes speed parameters, we can calculate the running speed of the player completing a running action according to these speed parameters.
[0107] It can be understood that by calculating the running speed of the player completing the current running action based on all speed parameters within a data cycle, the obtained player running speed is closer to the player's actual running speed, thereby improving the accuracy of the calculation of the player's running speed.
[0108] S40: Generate a running instruction according to the running speed.
[0109] Specifically, when it is determined that the player has completed a running action that meets the preset standard and after calculating the player's running speed, the terminal can generate a corresponding running instruction based on the mapping relationship between the preset running speed and the running action. Among them, based on the mapping relationship between the preset running speed and the running action, the running action in the game can be matched with the player's real action, and then the game action can be adaptively changed according to the real running speed, thereby improving the player's gaming experience.
[0110] S50: Control the game object to execute a matching running action according to the running instruction.
[0111] Among them, the game object refers to the object controlled by the player when playing the game, which can be the player's game character or an object in the game.
[0112] Specifically, after the player's running speed is determined, a running action of the corresponding running speed can be generated in the game, so that the player's running speed can be displayed in real time in the somatosensory game.
[0113] It can be understood that the technical solution of the present application is a somatosensory gaming method based on running posture. After determining that the player has completed a running action that meets the preset standards, the player's running speed is calculated based on the player's posture data within a data cycle, and a running instruction is generated based on the calculated running speed. In this way, the player's running speed can be mapped in real time in the game to improve the player's gaming experience. In addition, the player's running speed calculated through the player's posture data within a data cycle can obtain a calculated speed that is closer to the player's actual running speed, and then the player's running speed can be accurately mapped to improve the player's operating experience. It can be seen that compared to traditional somatosensory running games with immutable game running speeds, the somatosensory gaming method of the technical solution of the present application has the advantages of accurate game operation and strong gaming experience.
[0114] In some embodiments, before determining whether the player has completed a running motion that meets the preset criteria within the data period of a running motion according to the player posture data, the somatosensory game method of the present application further includes:
[0115] Determine the data period of a running motion completed by the player from the player posture data according to a preset rule.
[0116] Specifically, since the running motion has a certain periodicity, we can obtain the periodic law of the running motion through test data to obtain the required preset rule. After determining the preset rule, we can embed the preset rule in the game. In this way, when the game is running, the terminal can directly call the preset rule to determine the data period of a running motion completed by the player.
[0117] Specifically, the player posture data includes angle values, which specifically include the x-axis angle value, the y-axis angle value, and the z-axis angle value. Among them, the x-axis, y-axis, and z-axis together constitute a geodetic coordinate system. In this geodetic coordinate system, the x-axis represents the front-back direction, the y-axis represents the up-down direction, and the z-axis represents the left-right direction.
[0118] In some embodiments, the preset rule includes:
[0119] Make a < b < c < d, and f a = f b > f c = f d ;
[0120] Meanwhile, Make n1 < m < n2, and
[0121] Then, n1 to n2 is the data period of a running motion;
[0122] In the formula, (n1, n2) is a continuous time interval, and f is the angle value at the corresponding time.
[0123] Specifically, f is the angle value of any one of the x-axis, y-axis, and z-axis. According to the above preset rule, the angle value of any one axis can be selected to confirm the data period of a running motion completed by the player.
[0124] Specifically, according to the experimental data, when the player is performing a running motion, the curve of the change of the angle value in the player posture data with time is similar to a sine curve. Therefore, we formulate a preset rule according to the sine curve.
[0125] According to the sine curve, if there exist a, b, c, d belonging to the interval from n1 to n2, and the angle values f corresponding to a, b, c, d a 、fb , f c , f d There is the following relationship: f a = f b > f c = f d , which indicates that n1 to n2 are respectively located in the front and back two 1 / 2 periods of the sine curve, that is, according to the above conditions, it can be determined that the current data interval is greater than or equal to the interval of one period of the sine curve.
[0126] Furthermore, if there exists m belonging to the interval from n1 to n2 such that n1 < m < n2, and then it shows that within the interval from n1 to n2, at least three angular values have passed through the zero point (i.e., the starting point or initial point of the sine curve).
[0127] Therefore, according to the above conditions, it can be considered that the interval from n1 to n2 coincides with the interval of one period of the sine curve, and n1 and n2 are respectively the two endpoints of the interval. Then, the interval from n1 to n2 can be regarded as the data period of a complete running action of the user.
[0128] It can be understood that through the above method, we can accurately divide the data period of a player's complete running action from continuous data based on the periodicity of the posture data of the running action.
[0129] In some embodiments, determining whether a player completes a running action meeting a preset standard within the data period of a running action according to the player's posture data includes:
[0130] If within the data period, the x-axis angular value and the y-axis angular value simultaneously meet the following conditions, then it is determined that the player completes a running action meeting the preset standard, and the conditions include:
[0131] There is at least one x-axis angular value not less than the preset x-axis peak value, and there is at least one x-axis angular value not greater than the preset x-axis trough value;
[0132] There is at least one y-axis angular value not less than the preset y-axis peak value, and there is at least one y-axis angular value not greater than the preset y-axis trough value.
[0133] Among them, the angular values of the player's posture data include the x-axis angular value, the y-axis angular value, and the z-axis angular value. When the player is running, the periodicity and intensity of the changes in the x-axis angular value and the y-axis angular value are more obvious than those of the z-axis angular value. Therefore, in practical applications, we select the x-axis angular value and the y-axis angular value to determine whether the player's running action is standard.
[0134] Specifically, for the x-axis angle value, after determining that the player has completed a standard running action, the terminal traverses all x-axis angle values within the data period. While traversing, the terminal will compare the x-axis angle value being traversed with the preset x-axis peak value and the preset x-axis trough value, and determine whether the current x-axis angle value is greater than or equal to the preset x-axis peak value, and whether the current x-axis angle value is less than or equal to the preset x-axis trough value. Among them, if the current x-axis angle value is a positive value, the terminal will determine whether the current x-axis angle value is greater than or equal to the preset x-axis peak value; if the current x-axis angle value is a negative value, the terminal will determine whether the current x-axis angle value is less than or equal to the preset x-axis trough value.
[0135] Similarly, for the y-axis angle value, the terminal will also traverse all y-axis angle values in the data period, and then compare the y-axis angle value being traversed with the preset y-axis peak value and the preset y-axis trough value while traversing.
[0136] When the x-axis angle value and the y-axis angle value satisfy both of the above conditions, it can be determined that the player has completed the running action that meets the preset standard. It is worth noting that the preset x-axis peak value and the preset x-axis trough value can be understood as the terminal's judgment standard for the player's running intensity and the degree of completion of the running action. The larger the absolute value of the preset x-axis peak value and the preset x-axis trough value, the higher the requirement for the running intensity and the degree of completion of the running action. Conversely, the smaller the absolute value of the preset x-axis peak value and the preset x-axis trough value, the lower the requirement for the running intensity and the degree of completion of the running action.
[0137] It can be understood that by using both the x-axis angle value and the y-axis angle value to judge whether the player has completed a running action that meets the preset standards, the accuracy of the judgment of the player's running action can be improved, thereby improving the operating accuracy of the somatosensory game and the matching degree with the real action, thereby enhancing the player's gaming experience.
[0138] In some embodiments, before determining whether the player has completed a running action that meets a preset standard within a data period of a running action according to the player posture data, the method further includes:
[0139] The angle values are filtered to improve the smoothness of the data.
[0140] Specifically, improving the smoothness of data means that the curve graph of the filtered angle value is smoother than the curve graph of the original angle value. Its essence is to filter out obviously abnormal data in the angle value through filtering, thereby improving the smoothness of the waveform.
[0141] Exemplarily, the angle value may be filtered using a sliding average method, a variance method, or a normalization method.
[0142] It can be understood that by filtering the angle value, the credibility of the angle value detected by the somatosensory device can be improved. In this way, after Kalman filtering, the matching degree between the angle value and the player's real action data can be improved.
[0143] In some embodiments, filtering the angle value to improve the smoothness of the data includes:
[0144] The angle value is filtered by using a sliding average filter, wherein the output value of the sliding window of the sliding average filter is set to be the minimum sum of the squares of each sample value in the window, and the following formula is satisfied:
[0145]
[0146]
[0147] Among them, formula (2) is obtained by finding the limit of formula (1), where N is the filter order of the sliding window, X is the output value of the sliding window, and X is K is the sample value in the sliding window.
[0148] Specifically, sliding average filtering means setting a sliding window to slide on the data along the time direction, outputting a value as the filtered value each time, and sliding only one sampling value each time. Among them, the filtering order of the sliding window can also be understood as the length of the window, that is, the number of sampling values that the window can cover, and the sampling value refers to the original data of the player's posture.
[0149] Usually, the output value of the sliding window is the average value of each sample value in the window, while in the technical solution of the present application, it is required that the output value of the sliding window and the sum of the squares of each sample value in the window be minimized. In this way, compared with the method of outputting the average value, it can be closer to the true value, that is, the filtering effect of noise in the data is better.
[0150] It can be understood that the angle value can be filtered efficiently and accurately by the above method. Of course, the design of the present application is not limited to this. In other embodiments, the angle value can also be filtered by a conventional sliding average method.
[0151] In some embodiments, the method of the present application further comprises:
[0152] The preset x-axis peak value, the preset x-axis trough value, the preset y-axis peak value and the preset y-axis trough value are adjusted according to the current game difficulty.
[0153] Among them, the current game difficulty can be reflected by game levels, game tasks, and difficulty levels. Players can choose the game intensity that matches their physical fitness according to their actual situation on the game interface of the terminal.
[0154] Specifically, we can pre-set x-axis peak values, x-axis trough values, y-axis peak values, and y-axis trough values that match different game difficulties in the game. In this way, we can adjust the intensity of running actions to suit different game difficulties, which will help players with different physical fitness to play the game and improve the player's running experience.
[0155] In some embodiments, calculating the player's running speed according to the player's posture data in the data period includes:
[0156] The average value of all speed parameters in the data period is calculated as the running speed.
[0157] Specifically, after determining the player's action cycle, the terminal can obtain the start and end time of the player's running action, and then calculate the average value based on the speed parameters of all moments within the start and end time, and use the average value as the running speed of the player when completing the running action, thereby improving the matching of the game action and the actual running speed. Of course, in other embodiments, the median of all speed parameters can also be taken as the player's running speed.
[0158] In addition, the embodiment of the present invention also proposes a computer-readable storage medium, which can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a somatosensory game program 10 based on running posture. The specific implementation of the computer-readable storage medium of the present invention is roughly the same as the specific implementation of the somatosensory game method based on running posture and the server 1, which will not be repeated here.
[0159] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0160] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0161] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0162] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0163] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0164] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A somatosensory game method based on running posture, characterized in that: include: After the preset running motion sensing game is started, the player's posture data detected by the motion sensing device is obtained; Determining, based on the player's posture data, whether the player has completed a running action that meets a preset standard within a data period of a running action; If yes, then calculating the player's running speed based on the player's posture data within the data period; generating a running instruction according to the running speed; Controlling the game object to perform a matching running action according to the running instruction; Before determining whether the player has completed a running action that meets a preset standard within a data period of a running action according to the player posture data, the method further includes: Determine a data period for a player to complete a running action from the player's posture data according to a preset rule, wherein the player's posture data includes an angle value; The preset rules include: Let a < b < c < d, and f a = f b > f c = f d ; Meanwhile, make n1 < m < n2, and Then, n1 to n2 is a data cycle of a running action; Where (n1, n2) is the continuous time interval, and f is the angle value at the corresponding time.
2. The somatosensory gaming method based on running posture as claimed in claim 1, characterized in that: The angle value includes an x-axis angle value and a y-axis angle value; Determining whether the player completes a running action that meets a preset standard within a data period of a running action according to the player posture data includes: If, within the data period, the x-axis angle value and the y-axis angle value simultaneously satisfy the following conditions, it is determined that the player has completed a running action that meets the preset standard, wherein the conditions include: At least one x-axis angle value is not less than a preset x-axis peak value, and at least one x-axis angle value is not greater than a preset x-axis trough value; There is at least one y-axis angle value that is not less than a preset y-axis peak value, and there is at least one y-axis angle value that is not greater than a preset y-axis trough value.
3. The somatosensory gaming method based on running posture as claimed in claim 2, characterized in that: Before determining whether the player has completed a running action that meets a preset standard within a data period of a running action according to the player posture data, the method further includes: The angle values are filtered to improve the smoothness of the data.
4. The somatosensory game method based on running posture as claimed in claim 3, characterized in that: The angle value is filtered to improve the smoothness of the data, including: The angle value is filtered by using a sliding average filter, wherein the output value of the sliding window of the sliding average filter is set to be the minimum sum of the squares of each sample value in the window, and the following formula is satisfied: Among them, formula (2) is obtained by finding the limit of formula (1), where N is the filter order of the sliding window, X is the output value of the sliding window, and X is K is the sample value in the sliding window.
5. The somatosensory gaming method based on running posture as claimed in claim 2, characterized in that: The method further comprises: The preset x-axis peak value, the preset x-axis trough value, the preset y-axis peak value and the preset y-axis trough value are adjusted according to the current game difficulty.
6. The somatosensory gaming method based on running posture according to claim 1 or 2, characterized in that: The player posture data includes a speed parameter; Calculating the player's running speed according to the player's posture data within the data period, including: The average value of all speed parameters in the data period is calculated as the running speed.
7. A somatosensory gaming device based on running posture, characterized in that: It includes a memory, a processor, and a running posture-based somatosensory game program stored in the memory and executable on the processor. When the processor executes the running posture-based somatosensory game program, the running posture-based somatosensory game method as described in any one of claims 1 to 6 is implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a somatosensory game program based on running posture, and when the somatosensory game program based on running posture is executed by a processor, the somatosensory game method based on running posture as described in any one of claims 1-6 is implemented.
Citation Information
Patent Citations
Step counting method and step counting apparatus
CN107747950A
Motion state recognition method and device, intelligent terminal and storage medium
CN110263870A
Running posture detection method based on six-axis sensor
CN110694252A
Motion sensing game method based on swimming postures
CN114949839A
Game apparatus and game program
US20070243931A1
