Boxing somatosensory game method, device and computer-readable storage medium
By generating the punch determination conditions of the non-wearing hand in the somatosensory game and controlling the game object to perform the punching action of the non-wearing hand, the problem of poor operability of the boxing somatosensory game in the prior art is solved and the game experience is improved.
Patent Information
- Application Number
- CN202211067554.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-01
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-01
AI Technical Summary
In the boxing somatosensory game, the existing motion sensing game architecture can only input movement posture data of one hand, resulting in the movement of the other hand being unable to be controlled by the player, resulting in poor game operability and poor experience.
By confirming the hand wearing the somatosensory device when the boxing somatosensory game is first run, the somatosensory data of the player completing the preset punching action is obtained, the conditions for punching determination of the non-wearing hand are generated, and based on these conditions, the game object is controlled to perform the swing of the non-wearing hand. Boxing action.
It improves the consistency between the game object movements and the player's actual movements in the boxing somatosensory game and the game operability, and enhances the player's gaming experience.
Smart Images

Figure CN115337627B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of somatosensory games, and in particular to a boxing somatosensory game method, device and computer-readable storage medium. Background Art
[0002] At present, the somatosensory game architecture on the market is usually a somatosensory action architecture based on IMU (Inertial Measurement Unit). This somatosensory action architecture usually maps the user's action posture in the game, and usually uses a somatosensory watch or bracelet as the input end of the player's posture data. Since the average player usually only has one somatosensory watch or bracelet, when playing games such as boxing somatosensory games that require two-handed operation, only the motion posture data of one hand can be input to the terminal, which results in the other hand in the boxing somatosensory game being unable to be controlled by the player. Usually, the other hand is controlled by the terminal to randomly swing a punch, which makes the action of the game object inconsistent with the actual action of the player, resulting in poor game operability and affecting the player's gaming experience. Summary of the invention
[0003] The embodiment of the present application aims to solve the technical problem of poor game operability of boxing somatosensory games by providing a boxing somatosensory game method.
[0004] To achieve the above objectives, the present application provides a boxing somatosensory game method, including:
[0005] When the preset boxing motion sensing game is run for the first time, confirm the hand on which the motion sensing device is worn;
[0006] Acquire first somatosensory data of a player completing a preset punching action, wherein the preset punching action includes a left-hand punching action and a right-hand punching action;
[0007] generating a punch determination condition of the non-wearing hand according to the first somatosensory data;
[0008] When the preset boxing somatosensory game is running, if the second somatosensory data detected by the somatosensory device meets the punching determination condition of the non-wearing hand, a punching instruction of the non-wearing hand is generated;
[0009] Based on the punch instruction of the non-wearing hand, the game object is controlled to punch with the non-wearing hand.
[0010] In one embodiment, the punch determination condition of the non-wearing hand includes a determination data interval and a determination duration;
[0011] The second somatosensory data satisfies the punch determination condition of the non-wearing hand, including:
[0012] When the preset boxing game is running, if any second somatosensory data that meets the determination time length is always within the determination data interval, it is determined that the player has performed a punching action with the non-wearing hand.
[0013] In one embodiment, the determination data interval is a y-axis displacement interval.
[0014] In one embodiment, generating a punch determination condition of the non-wearing hand according to the first somatosensory data includes:
[0015] Acquire from the first somatosensory data the data interval of each punching action of the non-wearing hand completed by the player as the punching action data interval;
[0016] Calculating the average value of the maximum values of all the punching action data intervals as the upper limit value of the determination data interval;
[0017] The average value of the minimum values of all the punching action data intervals is calculated as the lower limit value of the determination data interval.
[0018] In one embodiment, before obtaining the upper limit and the lower limit of the punching action data interval, generating a punching determination condition of the non-wearing hand according to the first somatosensory data further includes:
[0019] Delete the maximum and minimum values in each punch data interval.
[0020] In one embodiment, generating a punch determination condition of the non-wearing hand according to the first somatosensory data further includes:
[0021] The average duration of all punching action data intervals is calculated as the determination duration.
[0022] In one embodiment, the preset punching action includes at least two left-hand punching actions and at least two right-hand punching actions, and the player is required to alternately complete the left-hand punching action and the right-hand punching action;
[0023] The data interval of each punching action of the non-wearing hand of the player is obtained from the first somatosensory data as the punching action data interval, including:
[0024] According to a preset y-axis displacement threshold, the punching completion moment of each time the player completes the punching action of the wearing hand is filtered out from the first somatosensory data;
[0025] The data interval between adjacent punch completion moments is taken as the punch action data interval.
[0026] In one embodiment, the data between adjacent punching completion moments is taken as the punching action data interval of the non-wearing hand, including:
[0027] Taking the body sense data of the first preset time after the previous punching completion moment as the starting point of the punching action data interval;
[0028] The somatosensory data of the second preset time before the subsequent punching completion moment is taken as the end point of the punching action data interval.
[0029] To achieve the above objectives, an embodiment of the present application also proposes a boxing somatosensory game device, comprising a memory, a processor, and a boxing somatosensory game program stored in the memory and executable on the processor, wherein when the processor executes the boxing somatosensory game program, the boxing somatosensory game method as described in any one of the above items is implemented.
[0030] To achieve the above objectives, an embodiment of the present application further proposes a computer-readable storage medium, on which a boxing somatosensory game program is stored. When the boxing somatosensory game program is executed by a processor, the boxing somatosensory game method as described in any one of the above items is implemented.
[0031] It can be understood that the boxing somatosensory game method of the technical solution of the present application, by collecting the first somatosensory data when the player completes the preset punching action, generates the punching determination condition of the non-wearing hand. Through the punching determination condition of the non-wearing hand, the player can control the game object to punch the non-wearing hand when playing the boxing somatosensory game, thereby increasing the consistency of the game object action and the player's real action in the boxing somatosensory game and the operability of the game, thereby improving the player's game experience. It can be seen that compared with traditional boxing somatosensory games, the boxing somatosensory game method of the technical solution of the present application has the advantages of enhancing the game operability and improving the player's game experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] 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.
[0033] Figure 1 This is a module structure diagram of an embodiment of a boxing somatosensory game device of the present invention;
[0034] Figure 2 It is a flowchart of an embodiment of a boxing motion sensing game method of the present invention;
[0035] Figure 3 A schematic diagram of a flow chart of another embodiment of a boxing motion sensing game method of the present invention;
[0036] Figure 4This is a flow chart of another embodiment of the boxing motion sensing game method of the present invention.
[0037] 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
[0038] 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.
[0039] 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.
[0040] 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.
[0041] like Figure 1 As shown, Figure 1 It is a structural diagram of a server 1 (also called a boxing somatosensory game device) in a hardware operating environment involved in an embodiment of the present invention.
[0042] 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.
[0043] like Figure 1 As shown, the server 1 includes: a memory 11, a processor 12 and a network interface 13.
[0044] 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.
[0045] Furthermore, the memory 11 may include an internal storage unit of the server 1 as well as 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 boxing motion sensing game program 10, but also to temporarily store data that has been output or is to be output.
[0046] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 11, such as executing the boxing motion sensing game program 10.
[0047] 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.
[0048] 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, IEEE 802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol, and / or Bluetooth (Blue Tooth) communication protocol or a combination thereof.
[0049] 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.
[0050] Figure 1 Only the server 1 having components 11-13 and the boxing motion sensing game program 10 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.
[0051] In this embodiment, the processor 12 can be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0052] When the preset boxing motion sensing game is run for the first time, confirm the hand on which the motion sensing device is worn;
[0053] Acquire first somatosensory data of a player completing a preset punching action, wherein the preset punching action includes a left-hand punching action and a right-hand punching action;
[0054] generating a punch determination condition of the non-wearing hand according to the first somatosensory data;
[0055] When the preset boxing somatosensory game is running, if the second somatosensory data detected by the somatosensory device meets the punching determination condition of the non-wearing hand, a punching instruction of the non-wearing hand is generated;
[0056] Based on the punch instruction of the non-wearing hand, the game object is controlled to punch with the non-wearing hand.
[0057] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0058] The punch determination conditions of the non-wearing hand include a determination data interval and a determination duration;
[0059] The second somatosensory data satisfies the punch determination condition of the non-wearing hand, including:
[0060] When the preset boxing game is running, if any second somatosensory data that meets the determination time length is always within the determination data interval, it is determined that the player has performed a punching action with the non-wearing hand.
[0061] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0062] The determination data interval is a y-axis displacement interval.
[0063] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0064] Generating a punch determination condition of the non-wearing hand according to the first somatosensory data includes:
[0065] Acquire from the first somatosensory data the data interval of each punching action of the non-wearing hand completed by the player as the punching action data interval;
[0066] Calculating the average value of the maximum values of all the punching action data intervals as the upper limit value of the determination data interval;
[0067] The average value of the minimum values of all the punching action data intervals is calculated as the lower limit value of the determination data interval.
[0068] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0069] Before obtaining the upper limit and the lower limit of the punching action data interval, generating a punching determination condition of the non-wearing hand according to the first somatosensory data, further comprising:
[0070] Delete the maximum and minimum values in each punch data interval.
[0071] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0072] Generating a punch determination condition of the non-wearing hand according to the first somatosensory data also includes:
[0073] The average duration of all punching action data intervals is calculated as the determination duration.
[0074] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0075] The preset punching action includes at least two left-hand punching actions and at least two right-hand punching actions, and the player is required to alternately complete the left-hand punching action and the right-hand punching action;
[0076] The data interval of each punching action of the non-wearing hand of the player is obtained from the first somatosensory data as the punching action data interval, including:
[0077] According to a preset y-axis displacement threshold, the punching completion moment of each time the player completes the punching action of the wearing hand is filtered out from the first somatosensory data;
[0078] The data interval between adjacent punch completion moments is taken as the punch action data interval.
[0079] In one embodiment, the processor 12 may be used to call the boxing motion sensing game program stored in the memory 11 and perform the following operations:
[0080] The data between adjacent punch completion moments are taken as the punch action data interval of the non-wearing hand, including:
[0081] Taking the body sense data of the first preset time after the previous punching completion moment as the starting point of the punching action data interval;
[0082] The somatosensory data of the second preset time before the subsequent punching completion moment is taken as the end point of the punching action data interval.
[0083] Based on the hardware architecture of the boxing somatosensory game device, an embodiment of the boxing somatosensory game method of the present invention is proposed. The boxing somatosensory game method of the present invention aims to solve the technical problem of poor game operability of the boxing somatosensory game.
[0084] Reference Figure 2 , Figure 2 This is an embodiment of the boxing somatosensory game method of the present invention, and the boxing somatosensory game method comprises the following steps:
[0085] S10. When the preset boxing motion sensing game is run for the first time, confirm the hand on which the motion sensing device is worn.
[0086] Among them, the boxing somatosensory game refers to a somatosensory game based on boxing. It is worth noting that the boxing somatosensory game defined in this application is not limited to traditional boxing games, and other games that require boxing movements can be considered as the boxing somatosensory game of the technical solution of this application.
[0087] Furthermore, the preset boxing motion sensing 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.
[0088] Among them, the somatosensory device refers to a device that can detect the player's somatosensory 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 somatosensory 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, game controllers, smart phones, etc.
[0089] 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.
[0090] Furthermore, when it is detected that the boxing game is being run for the first time, a specific option can be displayed on the game interface of the terminal to allow the player to select the hand on which the current somatosensory device is worn. Taking a smartwatch as a somatosensory device as an example, the player can determine the wearing hand and the non-wearing hand based on the wearing position of the smartwatch. Among them, for somatosensory devices that cannot be worn directly, such as smart phones and smart controllers, the hand holding the somatosensory device is the wearing hand, and the non-holding hand is the non-wearing hand.
[0091] S20, obtaining first somatosensory data of a player completing a preset punching action, wherein the preset punching action includes a left-hand punching action and a right-hand punching action.
[0092] Specifically, corresponding prompt information can be displayed on the game interface of the terminal to instruct the player to complete the preset punching action. When the player completes the preset punching action, the somatosensory device will continue to collect the player's somatosensory data, which is the first somatosensory data. Among them, instructing the player to complete the left-hand punching action and the right-hand punching action respectively, on the one hand, can collect more detailed somatosensory data to obtain more accurate punching judgment conditions. On the other hand, it can adapt to people with different dominant hands without giving different punching action instructions according to different dominant hands of players.
[0093] In some embodiments, the preset punching action includes at least two left-hand punching actions and at least two right-hand punching actions, and the player is required to alternately complete the left-hand punching action and the right-hand punching action.
[0094] Specifically, instruction information for the left-hand punching action and the right-hand punching action can be alternately displayed on the game interface of the terminal, so that the player can complete the left-hand and right-hand alternate punching actions as required.
[0095] S30: generating a punch determination condition for the non-wearing hand according to the first somatosensory data.
[0096] Specifically, the somatosensory data of the non-wearing hand can be filtered out from the first somatosensory data, and then the punching action determination condition of the non-wearing hand can be generated based on the somatosensory data of the non-wearing hand.
[0097] Alternatively, the punch determination condition for the non-wearing hand may be generated based on the somatosensory data of the wearing hand and the somatosensory data of the non-wearing hand at the same time.
[0098] S40: When the preset boxing somatosensory game is running, if the second somatosensory data detected by the somatosensory device meets the punching determination condition of the non-wearing hand, a punching instruction of the non-wearing hand is generated.
[0099] Specifically, after the judgment condition of the non-wearing hand is generated, the boxing somatosensory game can run normally. When the boxing somatosensory game is running, the punching judgment condition and the somatosensory data collected during the game (i.e., the second somatosensory data) can be used to determine whether the player is punching with the non-wearing hand. If it is determined that the player has punched with the non-wearing hand, the terminal generates a punching instruction for the non-wearing hand.
[0100] S50: Control the game object to punch with the non-wearing hand based on the punch instruction of the non-wearing hand.
[0101] 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.
[0102] Specifically, after the non-wearing hand punching instruction is generated, the game object can be controlled to perform the non-wearing hand punching action. For example, if the non-wearing hand is the right hand, the game object is controlled to perform the right hand punching action. In this way, the game object can be controlled to perform the non-wearing hand punching action according to the player's action, so that the game object's punching action is consistent with the player's real action, thereby increasing the operability of the game and improving the player's gaming experience.
[0103] It can be understood that the boxing somatosensory game method of the technical solution of the present application, by collecting the first somatosensory data when the player completes the preset punching action, generates the punching determination condition of the non-wearing hand. Through the punching determination condition of the non-wearing hand, the player can control the game object to punch the non-wearing hand when playing the boxing somatosensory game, thereby increasing the consistency of the game object action and the player's real action in the boxing somatosensory game and the operability of the game, thereby improving the player's game experience. It can be seen that compared with traditional boxing somatosensory games, the boxing somatosensory game method of the technical solution of the present application has the advantages of enhancing the game operability and improving the player's game experience.
[0104] In some embodiments, the punch determination conditions of the non-wearing hand include a determination data interval and a determination duration.
[0105] Specifically, the target somatosensory data can be processed based on the preset data processing rules to obtain the required determination data interval and determination time. The determination data interval refers to a somatosensory data interval, which specifies an upper limit value of the somatosensory data and a lower limit value of the somatosensory data, so as to require that at least part of the somatosensory data of the player when punching with the non-wearing hand is within the interval. The determination data interval is not limited to displacement data, acceleration data, velocity data, and attitude angle data.
[0106] By setting a data interval rather than a data threshold to determine whether the player is punching with the non-wearing hand, the terminal can distinguish between the worn hand and the non-wearing hand while ensuring the accuracy of the non-wearing hand punching action.
[0107] In addition, the determination time is to require that the somatosensory data in the determination data interval must be continuous when determining whether the non-wearing hand is punching, and the continuous time must be greater than or equal to the determination time. Since the amplitude of the somatosensory data detected by the somatosensory device when the player punches with the non-wearing hand is weak, and is closer to the somatosensory data when no punch is made, the determination time is set to require that there must be continuous somatosensory data in the determination data interval, which can reduce misjudgment and thus improve the accuracy of the judgment of the player's non-wearing hand punching action.
[0108] It can be understood that by determining the data interval and the duration at the same time to determine whether the player is punching with the non-wearing hand, the accuracy of determining the non-wearing hand punching action can be greatly improved.
[0109] Based on the above embodiment, the second somatosensory data satisfies the punch determination condition of the non-wearing hand, including:
[0110] When the preset boxing game is running, if any second somatosensory data that meets the determination time length is always within the determination data interval, it is determined that the player has performed a punching action with the non-wearing hand.
[0111] Specifically, when any of the second somatosensory data is higher than the lower limit of the judgment data interval, or lower than the upper limit of the judgment data interval, if the somatosensory data for the subsequent continuous judgment period are all within the judgment data interval, it is determined that the player has performed a punching action with the non-wearing hand.
[0112] It can be understood that by determining the data interval and the duration at the same time to determine whether the player is punching with the non-wearing hand, the accuracy of determining the non-wearing hand punching action can be greatly improved.
[0113] In some embodiments, the determination data interval is a y-axis displacement interval. It can be understood that when the player performs a boxing action, the data that changes most obviously in the somatosensory data is the y-axis displacement value. Therefore, selecting the y-axis displacement interval as the determination data interval can reduce the amount of calculation of the terminal while ensuring the accuracy of the determination of the player's non-wearing hand punching action, thereby improving the speed of determining the player's non-wearing hand punching action.
[0114] like Figure 3 As shown, in some embodiments, generating a punch determination condition of the non-wearing hand according to the first somatosensory data includes:
[0115] S110, obtaining from the first somatosensory data a data interval each time the player completes a punching action with the non-wearing hand as a punching action data interval.
[0116] Specifically, the duration of the prompt information of the non-wearing hand punching action given by the terminal game interface can be used to filter out the data interval when the player performs the non-wearing hand punching action from the first somatosensory data as the punching action data interval. In this way, the data in the punching action data interval are basically the somatosensory data generated when the player performs the non-wearing hand punching action.
[0117] S120, calculating the average value of the maximum values of all the punching action data intervals as the upper limit value of the determination data interval;
[0118] S130, calculating the average value of the minimum values of all the punching action data intervals as the lower limit value of the determination data interval.
[0119] Specifically, we designed multiple left-hand and right-hand punching actions in the preset body punching action, so that the terminal can obtain multiple punching action data intervals of the non-wearing hand. In this way, when obtaining the judgment data interval, the terminal can first obtain the maximum value in each punching action data interval, and then calculate the average value of these maximum values as the upper limit value of the judgment data interval; similarly, the terminal can first obtain the minimum value in each punching action data interval, and then calculate the average value of these minimum values as the lower limit value of the judgment data interval.
[0120] It can be understood that, through the above-mentioned settings, data errors can be reduced, the data accuracy of the determined data interval can be improved, and the accuracy of determining the player's non-wearing hand punching action can be improved.
[0121] In some embodiments, before obtaining the upper limit and the lower limit of the punching action data interval, generating a punching determination condition of the non-wearing hand according to the first somatosensory data further includes:
[0122] Delete the maximum and minimum values in each punch action data interval.
[0123] Specifically, deleting the maximum and minimum values of the punching action data interval can reduce data errors caused by gyroscope drift and other reasons, so as to further improve the data accuracy of the punching data interval, and thus improve the accuracy of the determination of the player's non-wearing hand punching action. It is worth noting that if there are more than two maximum or minimum values in the punching action data interval, one of the maximum or minimum values can be deleted.
[0124] In some embodiments, generating a punch determination condition of the non-wearing hand according to the first somatosensory data further includes:
[0125] The average duration of all punching action data intervals is calculated as the determination duration.
[0126] Specifically, the somatosensory data in the punching action data interval is a set of continuous somatosensory data, and since each somatosensory data has a corresponding time value (i.e., time information), the terminal can calculate the duration of each punching action data interval based on the difference between the minimum time value and the maximum time value of the data in the punching action data interval, and then calculate the average duration of all punching action data intervals based on the duration of each punching action data interval as the judgment duration.
[0127] Through the above scheme, the average time it takes for a player to complete a punching action with the non-wearing hand can be calculated. Using the average time as the judgment time can reduce errors and improve the judgment accuracy of the player's punching action with the non-wearing hand.
[0128] like Figure 4As shown, in some embodiments, the data interval of each punching action of the non-wearing hand of the player is obtained from the first somatosensory data as the punching action data interval, including:
[0129] S210, filtering out the punching completion moment of each time the player completes the punching action of the wearing hand from the first somatosensory data according to a preset y-axis displacement threshold.
[0130] Specifically, the terminal can filter the first somatosensory data according to the time progress. When the y-axis displacement value in the first somatosensory data is greater than or equal to the preset y-axis displacement threshold, the moment can be recorded as the moment when the fist swinging action of the wearing hand is completed (i.e., the fist swinging completion moment). Among them, adjacent fist swinging completion moments must satisfy an interval duration greater than or equal to the third preset duration. In other words, after recording a fist swinging completion moment, it must be the moment corresponding to the y-axis displacement value greater than or equal to the preset y-axis displacement threshold screened out after the third preset duration. It can be recorded as the next fist swinging completion moment. The purpose of this setting is to avoid the moment when the y-axis displacement value in the fist closing stage is greater than or equal to the preset y-axis displacement threshold, so as to reduce data errors.
[0131] S220, taking the data interval between adjacent punching completion moments as the punching action data interval.
[0132] Specifically, since the left-hand punching action and the right-hand punching action are performed alternately, the data between the punching completion times of adjacent wearing-hand punching actions can be identified as the somatosensory data generated when the player performs the non-wearing-hand punching action, and then used as the punching action data interval.
[0133] Through the above design, when performing the preset punching action, even if the player punches left and right continuously, the terminal can still distinguish the data interval of the player's non-wearing hand punching action, without the player having to manually report it to the terminal every time he completes a punching action, thereby helping to improve the player's gaming experience. Of course, the design of the present application is not limited to this. In other embodiments, the player can also manually report the current punching behavior to the terminal every time he completes a punching action, and then the terminal can determine the data interval of the non-wearing hand's punching action based on the player's reported action.
[0134] It is worth noting that, in some embodiments, the duration of each non-wearing hand punching action indication information on the terminal game interface can also be used to obtain the duration required for the player to complete each non-wearing hand punching action.
[0135] In some embodiments, the data between adjacent punching completion moments is taken as the punching action data interval of the non-wearing hand, including:
[0136] S310, taking the somatosensory data of the first preset time after the previous punching completion moment as the starting point of the punching action data interval;
[0137] S320, taking the somatosensory data of the second preset time before the completion moment of the subsequent punching as the end point of the punching action data interval.
[0138] Among them, the earlier punch completion time refers to the earlier moment of the two adjacent punch completion times, and correspondingly, the later punch completion time refers to the later moment of the two adjacent punch completion times.
[0139] The somatosensory data of the first preset time after the previous punch completion moment is taken as the starting point of the punch action data interval, that is, the somatosensory data with a time value equal to the sum of the previous punch completion moment and the first preset time is taken as the starting point of the punch action data interval; correspondingly, the somatosensory data of the second preset time before the subsequent punch completion moment is taken as the end point of the punch action data interval, that is, the somatosensory data with a time value equal to the difference between the subsequent punch completion moment and the second preset time is taken as the end point of the punch action data interval.
[0140] Exemplarily, if two adjacent punch completion times are T1 and T2, respectively, the first preset time length is t1, and the second preset time length is t2, then the punch action data interval = [T1+t1, T2-t2].
[0141] It can be understood that setting the first preset time length and the second preset time length can eliminate the data of the fist-closing in the previous wearing hand fist-swinging action and the data of the front part of the fist-swinging in the subsequent wearing hand fist-swinging action from the data between adjacent fist-swinging completion moments, thereby making the fist-swinging action data interval obtained by the terminal closer to the actual non-wearing hand fist-swinging action, which in turn helps to improve the data accuracy of the fist-swinging action data interval, so as to improve the accuracy of judging the player's non-wearing hand fist-swinging action.
[0142] In addition, the embodiment of the present invention further proposes a computer-readable storage medium, which may 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 boxing somatosensory game program 10. The specific implementation of the computer-readable storage medium of the present invention is roughly the same as the specific implementation of the above-mentioned boxing somatosensory game method and the server 1, which will not be repeated here.
[0143] 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.
[0144] 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.
[0145] 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.
[0146] 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.
[0147] 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.
[0148] 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 boxing somatosensory game method, characterized in that: include: When the preset boxing motion sensing game is run for the first time, confirm the hand on which the motion sensing device is worn; Acquire first somatosensory data of a player completing a preset punching action, wherein the preset punching action includes a left-hand punching action and a right-hand punching action; generating a punch determination condition of the non-wearing hand according to the first somatosensory data; When the preset boxing somatosensory game is running, if the second somatosensory data detected by the somatosensory device meets the punching determination condition of the non-wearing hand, a punching instruction of the non-wearing hand is generated; Based on the punch instruction of the non-wearing hand, the game object is controlled to punch with the non-wearing hand.
2. The boxing somatosensory game method according to claim 1, characterized in that: The punch determination conditions of the non-wearing hand include a determination data interval and a determination duration; The second somatosensory data satisfies the punch determination condition of the non-wearing hand, including: When the preset boxing game is running, if any second somatosensory data that meets the determination time length is always within the determination data interval, it is determined that the player has performed a punching action with the non-wearing hand.
3. The boxing somatosensory game method according to claim 2, characterized in that: The determination data interval is a y-axis displacement interval.
4. The boxing somatosensory game method according to claim 2, characterized in that: Generating a punch determination condition of the non-wearing hand according to the first somatosensory data includes: Acquire from the first somatosensory data the data interval of each punching action of the non-wearing hand completed by the player as the punching action data interval; Calculating the average value of the maximum values of all the punching action data intervals as the upper limit value of the determination data interval; The average value of the minimum values of all the punching action data intervals is calculated as the lower limit value of the determination data interval.
5. The boxing somatosensory game method according to claim 4, characterized in that: Before obtaining the upper limit and the lower limit of the punching action data interval, generating a punching determination condition of the non-wearing hand according to the first somatosensory data, further comprising: Delete the maximum and minimum values in each punch data interval.
6. The boxing somatosensory game method according to claim 2, characterized in that: Generating a punch determination condition of the non-wearing hand according to the first somatosensory data also includes: The average duration of all punching action data intervals is calculated as the determination duration.
7. The boxing somatosensory game method according to claim 6, characterized in that: The preset punching action includes at least two left-hand punching actions and at least two right-hand punching actions, and the player is required to alternately complete the left-hand punching action and the right-hand punching action; The data interval of each punching action of the non-wearing hand of the player is obtained from the first somatosensory data as the punching action data interval, including: According to a preset y-axis displacement threshold, the punching completion moment of each time the player completes the punching action of the wearing hand is filtered out from the first somatosensory data; The data interval between adjacent punch completion moments is taken as the punch action data interval.
8. The boxing somatosensory game method according to claim 7, characterized in that: The data between adjacent punch completion moments are taken as the punch action data interval of the non-wearing hand, including: Taking the body sense data of the first preset time after the previous punching completion moment as the starting point of the punching action data interval; The somatosensory data of the second preset time before the subsequent punching completion moment is taken as the end point of the punching action data interval.
9. A boxing somatosensory game device, characterized in that: The invention comprises a memory, a processor and a boxing somatosensory game program stored in the memory and executable on the processor, wherein the processor implements the boxing somatosensory game method as claimed in any one of claims 1 to 8 when executing the boxing somatosensory game program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a boxing somatosensory game program, and when the boxing somatosensory game program is executed by a processor, the boxing somatosensory game method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Double-bracelet sensor fusion-based intelligent remote sensing control system and method thereof
CN106468951A
Boxing fitness game interaction method
CN111298413A
Interaction method and device for boxing game
CN113893514A
Grapple game device
JP1995024143A
Boxing fitness device and detection method thereof
US20190381382A1
