Movatterモバイル変換


[0]ホーム

URL:


CN109885165B - Game control method, device and computer readable storage medium - Google Patents

Game control method, device and computer readable storage medium
Download PDF

Info

Publication number
CN109885165B
CN109885165BCN201910135143.6ACN201910135143ACN109885165BCN 109885165 BCN109885165 BCN 109885165BCN 201910135143 ACN201910135143 ACN 201910135143ACN 109885165 BCN109885165 BCN 109885165B
Authority
CN
China
Prior art keywords
preset
electroencephalogram
heart rate
data
game control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910135143.6A
Other languages
Chinese (zh)
Other versions
CN109885165A (en
Inventor
韩璧丞
程翼
杨钊祎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Qiangnao Technology Co ltd
Original Assignee
Zhejiang Qiangnao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Qiangnao Technology Co ltdfiledCriticalZhejiang Qiangnao Technology Co ltd
Priority to CN201910135143.6ApriorityCriticalpatent/CN109885165B/en
Publication of CN109885165ApublicationCriticalpatent/CN109885165A/en
Application grantedgrantedCritical
Publication of CN109885165BpublicationCriticalpatent/CN109885165B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a game control method, which comprises the following steps: acquiring first electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the current time; when the first electroencephalogram data are matched with preset electroencephalogram data, determining whether the first heart rate data collected by the heart rate collecting device at the current moment are within a preset heart rate range corresponding to the preset electroencephalogram data matched with the first electroencephalogram signal; when the first heart rate data is within the preset heart rate range, acquiring game control operation based on preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range; executing the game control operation in the game scene. The invention also discloses a game control device and a computer readable storage medium. The invention can execute corresponding game control operation in a game scene according to the electroencephalogram signal and the heart rate signal of the user, thereby realizing the touch-free operation of the game and improving the user experience.

Description

Game control method, device and computer readable storage medium
Technical Field
The invention relates to the technical field of brain waves, in particular to a game control method, a game control device and a computer readable storage medium.
Background
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a game control method, a game control device and a computer readable storage medium, and aims to solve the technical problem that the touchless operation of a game cannot be realized at present.
In order to achieve the above object, the present invention provides a game control method including the steps of:
when a terminal is in a game scene, acquiring a first electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal in real time and a first heart rate signal currently acquired by a heart rate acquisition device, and storing the acquired first electroencephalogram signal and the acquired first heart rate signal to a preset storage area;
acquiring first electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the current time based on a first electroencephalogram currently stored in the preset storage area;
determining whether the first electroencephalogram data is matched with preset electroencephalogram data;
when the first electroencephalogram data are matched with preset electroencephalogram data, determining whether the first heart rate data collected by the heart rate collecting device at the current moment are within a preset heart rate range corresponding to the preset electroencephalogram data matched with the first electroencephalogram signal;
when the first heart rate data is within the preset heart rate range, acquiring game control operation based on preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range;
executing the game control operation in the game scene.
In an embodiment, the step of determining whether the first electroencephalogram data matches preset electroencephalogram data includes:
sampling the first electroencephalogram data based on a preset time window to obtain a first sampling signal;
calculating a first wavelet entropy in the preset time window according to the first sampling signal;
and determining whether the first electroencephalogram data is matched with preset electroencephalogram data or not based on the first wavelet entropy.
In an embodiment, the step of determining whether the first electroencephalogram data matches preset electroencephalogram data based on the first wavelet entropy includes:
calculating a difference value between the first wavelet entropy and a preset wavelet entropy corresponding to the preset electroencephalogram data;
and determining whether the difference is smaller than a preset difference, wherein when the difference is smaller than the preset difference, the first electroencephalogram data is determined to be matched with preset electroencephalogram data.
In one embodiment, after the step of performing the game control operation in the game scene, the game control method further includes:
when the game control operation is finished, acquiring a first weight value corresponding to the first wavelet entropy and a second weight value corresponding to the preset wavelet entropy;
and calculating a target wavelet entropy based on the first weight value, the first wavelet entropy, the second weight value and the preset wavelet entropy, and setting the target wavelet entropy as the preset wavelet entropy.
In an embodiment, before the step of acquiring, in real time, a first electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to a terminal and a first heart rate signal currently acquired by a heart rate acquisition device when the terminal is in a game scene, the game control method further includes:
when a terminal is in a game scene, acquiring a second electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal in real time and a second heart rate signal currently acquired by a heart rate acquisition device, and storing the acquired second electroencephalogram signal and the acquired second heart rate signal to a preset storage area;
when the control operation corresponding to the game scene executed by the terminal is detected, second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time length before the current moment and second heart rate data acquired by the heart rate acquisition device at the current moment are acquired based on a second electroencephalogram signal and a second heart rate signal stored in the preset storage area;
and determining preset electroencephalogram data based on the second electroencephalogram data, determining a preset heart rate range based on the second heart rate data, and storing the determined preset electroencephalogram data, the preset heart rate range and the control operation in an associated manner.
In an embodiment, when it is detected that the control operation corresponding to the game scene currently exists, the step of acquiring, based on the second electroencephalogram signal and the second heart rate signal stored in the preset storage area, the second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset duration before the current time and the second heart rate data corresponding to the current time includes:
when the control operation corresponding to the game scene is detected to exist at present, updating the operation times of the control operation;
and when the updated operation times are larger than the preset times, acquiring second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the control time corresponding to each control operation based on the second electroencephalogram signal stored in the preset storage area, and acquiring second heart rate data corresponding to the control time corresponding to each control operation.
In one embodiment, the step of determining the preset electroencephalogram data based on the second electroencephalogram data includes:
respectively sampling each electroencephalogram data in the second electroencephalogram data based on a preset time window to obtain a second sampling signal;
calculating a second wavelet entropy of each of the second sampling signals within the preset time window;
and determining a preset wavelet entropy based on each second wavelet entropy, and taking the preset wavelet entropy as the preset electroencephalogram data.
In an embodiment, the step of determining a preset heart rate range based on the second heart rate data comprises:
determining maximum heart rate data and minimum heart rate data in the second heart rate data;
determining the preset heart rate range based on the maximum heart rate data and the minimum heart rate data.
In order to achieve the above object, the present invention provides a game control device including: a memory, a processor and a game control program stored on the memory and executable on the processor, the game control program when executed by the processor implementing the steps of the game control method of any of the above.
In order to achieve the above object, the present invention further provides a computer-readable storage medium having a game control program stored thereon, wherein the game control program, when executed by a processor, implements the steps of the game control method according to any one of the above aspects.
The invention acquires a first brain electrical signal acquired by a brain electrical acquisition device corresponding to a terminal and a first heart rate signal currently acquired by a heart rate acquisition device in real time when the terminal is in a game scene, stores the acquired first brain electrical signal and the first heart rate signal into a preset storage area, acquires first brain electrical data acquired by the brain electrical acquisition device within a preset time length before the current time based on the first brain electrical signal currently stored in the preset storage area, then determines whether the first brain electrical data is matched with the preset brain electrical data, then determines whether the first heart rate data acquired by the heart rate acquisition device at the current time is within a preset heart rate range corresponding to the preset brain electrical data matched with the first brain electrical signal when the first brain electrical data is matched with the preset brain electrical data, and finally determines whether the first heart rate data is within the preset heart rate range when the first heart rate data is within the preset heart rate range, based on the preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range, game control operation is obtained, the game control operation is executed in the game scene, the corresponding game control operation can be executed in the game scene according to the electroencephalogram signals and the heart rate signals of the user, touch-free operation of the game is achieved, and user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a game controller in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a game control method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a game control device in a hardware operating environment according to an embodiment of the present invention.
The game control device of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4) player, a portable computer and the like.
As shown in fig. 1, the game control apparatus may include: aprocessor 1001, such as a CPU, anetwork interface 1004, auser interface 1003, amemory 1005, acommunication bus 1002. Wherein acommunication bus 1002 is used to enable connective communication between these components. Theuser interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and theoptional user interface 1003 may also include a standard wired interface, a wireless interface. Thenetwork interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Thememory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). Thememory 1005 may alternatively be a storage device separate from theprocessor 1001.
Optionally, the game control device may further include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that turns off the display screen and/or backlight when the game control device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the game control device is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the game control device; of course, the game control device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the game control arrangement shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, amemory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a game control program.
In the game control apparatus shown in fig. 1, thenetwork interface 1004 is mainly used for connecting with a background server and performing data communication with the background server; theuser interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and theprocessor 1001 may be used to invoke a game control program stored in thememory 1005.
In this embodiment, the game control apparatus includes: amemory 1005, aprocessor 1001 and a game control program stored in thememory 1005 and operable on theprocessor 1001, wherein when theprocessor 1001 calls the game control program stored in thememory 1005, the following operations are performed:
when a terminal is in a game scene, acquiring a first electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal in real time and a first heart rate signal currently acquired by a heart rate acquisition device, and storing the acquired first electroencephalogram signal and the acquired first heart rate signal to a preset storage area;
acquiring first electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the current time based on a first electroencephalogram currently stored in the preset storage area;
determining whether the first electroencephalogram data is matched with preset electroencephalogram data;
when the first electroencephalogram data are matched with preset electroencephalogram data, determining whether the first heart rate data collected by the heart rate collecting device at the current moment are within a preset heart rate range corresponding to the preset electroencephalogram data matched with the first electroencephalogram signal;
when the first heart rate data is within the preset heart rate range, acquiring game control operation based on preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range;
executing the game control operation in the game scene.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
sampling the first electroencephalogram data based on a preset time window to obtain a first sampling signal;
calculating a first wavelet entropy in the preset time window according to the first sampling signal;
and determining whether the first electroencephalogram data is matched with preset electroencephalogram data or not based on the first wavelet entropy.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
calculating a difference value between the first wavelet entropy and a preset wavelet entropy corresponding to the preset electroencephalogram data;
and determining whether the difference is smaller than a preset difference, wherein when the difference is smaller than the preset difference, the first electroencephalogram data is determined to be matched with preset electroencephalogram data.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
when the game control operation is finished, acquiring a first weight value corresponding to the first wavelet entropy and a second weight value corresponding to the preset wavelet entropy;
and calculating a target wavelet entropy based on the first weight value, the first wavelet entropy, the second weight value and the preset wavelet entropy, and setting the target wavelet entropy as the preset wavelet entropy.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
when a terminal is in a game scene, acquiring a second electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal in real time and a second heart rate signal currently acquired by a heart rate acquisition device, and storing the acquired second electroencephalogram signal and the acquired second heart rate signal to a preset storage area;
when the control operation corresponding to the game scene executed by the terminal is detected, second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time length before the current moment and second heart rate data acquired by the heart rate acquisition device at the current moment are acquired based on a second electroencephalogram signal and a second heart rate signal stored in the preset storage area;
and determining preset electroencephalogram data based on the second electroencephalogram data, determining a preset heart rate range based on the second heart rate data, and storing the determined preset electroencephalogram data, the preset heart rate range and the control operation in an associated manner.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
when the control operation corresponding to the game scene is detected to exist at present, updating the operation times of the control operation;
and when the updated operation times are larger than the preset times, acquiring second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the control time corresponding to each control operation based on the second electroencephalogram signal stored in the preset storage area, and acquiring second heart rate data corresponding to the control time corresponding to each control operation.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
respectively sampling each electroencephalogram data in the second electroencephalogram data based on a preset time window to obtain a second sampling signal;
calculating a second wavelet entropy of each of the second sampling signals within the preset time window;
and determining a preset wavelet entropy based on each second wavelet entropy, and taking the preset wavelet entropy as the preset electroencephalogram data.
Further, theprocessor 1001 may call the game control program stored in thememory 1005, and also perform the following operations:
determining maximum heart rate data and minimum heart rate data in the second heart rate data;
determining the preset heart rate range based on the maximum heart rate data and the minimum heart rate data.
The invention also provides a game control method, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the game control method of the invention.
The method comprises the steps that S100, when a terminal is in a game scene, a first electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal and a first heart rate signal currently acquired by a heart rate acquisition device are acquired in real time, and the acquired first electroencephalogram signal and the acquired first heart rate signal are stored in a preset storage area;
the terminal is a terminal capable of running a game application, and when the terminal is in a game scene, the terminal currently runs a corresponding game application.
In this embodiment, when detecting that the terminal is in a game scene, the sending is collected and executed to the electroencephalogram acquisition device and the heart rate acquisition device, so that the electroencephalogram acquisition device acquires electroencephalogram signals of a user and heart rate signals of the user currently acquired by the heart rate acquisition device, and acquires first electroencephalogram signals acquired by the electroencephalogram acquisition device corresponding to the terminal and first heart rate signals acquired by the heart rate acquisition device currently.
Step S200, acquiring first electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the current time based on a first electroencephalogram currently stored in the preset storage area;
in this embodiment, within a preset time period before the current time, the first electroencephalogram data acquired by the electroencephalogram acquisition device, that is, within the first electroencephalogram signal stored in the preset storage area, the electroencephalogram signal within the preset time period before the current time is acquired, and the acquired electroencephalogram signal is taken as the first electroencephalogram data.
Specifically, when the duration of the first electroencephalogram signal of the user acquired by the electroencephalogram acquisition device in real time is longer than a preset duration, the first electroencephalogram data acquired by the electroencephalogram acquisition device in the preset duration before the current time can be acquired based on the first electroencephalogram signal currently stored in the preset storage area.
Wherein, the preset duration can be reasonably set.
Step S300, determining whether the first electroencephalogram data is matched with preset electroencephalogram data;
in this embodiment, when first electroencephalogram data is acquired, whether the first electroencephalogram data is matched with preset electroencephalogram data is determined, specifically, wavelet transformation processing may be performed on the first electroencephalogram signal to obtain a wavelet entropy corresponding to the first electroencephalogram data, whether the wavelet entropy corresponding to the first electroencephalogram data is matched with a preset wavelet entropy corresponding to the preset electroencephalogram data is determined, and further, whether the first electroencephalogram data is matched with the preset electroencephalogram data is determined.
Step S400, when the first electroencephalogram data are matched with preset electroencephalogram data, determining whether the first heart rate data collected by the heart rate collecting device at the current moment are within a preset heart rate range corresponding to the preset electroencephalogram data matched with the first electroencephalogram signal;
in this embodiment, if the first electroencephalogram data is matched with the preset electroencephalogram data, it is determined whether the first heart rate data collected by the heart rate collecting device at the current moment is within a preset heart rate range corresponding to the preset electroencephalogram data matched with the first electroencephalogram signal.
Different preset electroencephalogram data can be set for executing different operations through electroencephalograms and heart rate signals of users, and each preset electroencephalogram data corresponds to different preset heart rate ranges.
Step S500, when the first heart rate data is within the preset heart rate range, acquiring game control operation based on preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range;
step S600, executing the game control operation in the game scene
In this embodiment, if the first heart rate data is within the preset heart rate range, a game control operation is acquired based on preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range, and the game control operation is executed in the game scene. The method comprises the steps that a plurality of preset electroencephalogram data are acquired, wherein each preset electroencephalogram data respectively corresponds to a game control operation, and when target electroencephalogram data matched with first electroencephalogram data exist in the preset electroencephalogram data, the game control operation corresponding to the target electroencephalogram data is acquired.
The game control method provided by this embodiment includes acquiring, in real time, a first electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to a terminal and a first heart rate signal currently acquired by a heart rate acquisition device when the terminal is in a game scene, storing the acquired first electroencephalogram signal and the acquired first heart rate signal in a preset storage area, acquiring, based on the first electroencephalogram signal currently stored in the preset storage area, first electroencephalogram data acquired by the electroencephalogram acquisition device within a preset duration before a current time, then determining whether the first electroencephalogram data matches preset electroencephalogram data, and then determining, when the first electroencephalogram data matches the preset electroencephalogram data, whether the first heart rate data acquired by the heart rate acquisition device at the current time is within a preset heart rate range corresponding to the preset electroencephalogram data matching the first electroencephalogram signal, and finally, when the first heart rate data is in the preset heart rate range, acquiring game control operation based on the preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range, executing the game control operation in the game scene, and executing the corresponding game control operation in the game scene according to the electroencephalogram signals and the heart rate signals of the user, so that touch-free operation of the game is realized, and user experience is improved.
A second embodiment of the game control method of the present invention is proposed based on the first embodiment, and in this embodiment, step S300 includes:
step S310, sampling the first electroencephalogram data based on a preset time window to obtain a first sampling signal;
step S320, calculating a first wavelet entropy in the preset time window according to the first sampling signal;
step S330, whether the first electroencephalogram data are matched with preset electroencephalogram data is determined based on the first wavelet entropy.
In this embodiment, the first electroencephalogram data is sampled according to a preset time window to obtain a first sampling signal, a first wavelet entropy in the preset time window is calculated based on the first sampling signal by adopting an existing calculation method, whether the first electroencephalogram data is matched with the preset electroencephalogram data or not is determined based on the first wavelet entropy, specifically, the first wavelet entropy and a preset wavelet entropy corresponding to the preset electroencephalogram data can be compared, and whether the first electroencephalogram data is matched with the preset electroencephalogram data or not is determined.
The preset wavelet entropy can be set reasonably, for example, before executing game control operation through electroencephalogram signals, the preset wavelet entropy is obtained by processing electroencephalogram signals during control operation when the user operates a game. The preset time window may be equal to the preset time length, or the preset time window is smaller than the preset time length, or the preset time length is an integral multiple of the preset time window
According to the game control method provided by the embodiment, the first electroencephalogram data are sampled based on the preset time window to obtain the first sampling signal, then the first wavelet entropy in the preset time window is calculated according to the first sampling signal, and then whether the first electroencephalogram data are matched with the preset electroencephalogram data or not is determined based on the first wavelet entropy, so that the current corresponding game control operation can be accurately determined according to the first wavelet entropy, the game control operation can be executed in a game scene according to the electroencephalogram signals and the heart rate signals of the user, the touch-free operation of the game is realized, and the user experience is further improved.
Based on the second embodiment, a third embodiment of the game control method of the present invention is proposed, in this embodiment, step S330 includes:
step S331, calculating a difference value between the first wavelet entropy and a preset wavelet entropy corresponding to the preset electroencephalogram data;
step S332, determining whether the difference is smaller than a preset difference, wherein when the difference is smaller than the preset difference, it is determined that the first electroencephalogram data is matched with preset electroencephalogram data.
In this embodiment, when obtaining the first wavelet entropy, calculating a difference value between the first wavelet entropy and a preset wavelet entropy corresponding to preset electroencephalogram data, where the difference value is an absolute value of a difference between the first wavelet entropy and the preset wavelet entropy, and determining whether the difference value is smaller than a preset difference value; if the difference is smaller than the preset difference, the first electroencephalogram data is judged to be matched with the preset electroencephalogram data, whether the first electroencephalogram data is matched with the preset electroencephalogram data or not can be further determined according to the difference between the first wavelet entropy and the preset wavelet entropy, accuracy of executing game control operation through electroencephalogram signals is improved, and user experience is further improved.
Wherein, it can rationally set up to predetermine the difference.
According to the game control method provided by the embodiment, the difference value between the first wavelet entropy and the preset wavelet entropy corresponding to the preset electroencephalogram data is calculated, and then whether the difference value is smaller than the preset difference value or not is determined, wherein when the difference value is smaller than the preset difference value, the first electroencephalogram data is determined to be matched with the preset electroencephalogram data, whether the first electroencephalogram data is matched with the preset electroencephalogram data or not can be determined according to the difference value between the first wavelet entropy and the preset wavelet entropy, the accuracy of executing game control operation through electroencephalogram signals and heart rate signals is improved, and user experience is further improved.
Based on the third embodiment, a fourth embodiment of the game control method of the present invention is proposed, in this embodiment, after step S600, the game control method further includes:
step S601, when the game control operation is finished, acquiring a first weight value corresponding to the first wavelet entropy and a second weight value corresponding to the preset wavelet entropy;
in this embodiment, if the game control operation is completed, a first weight value corresponding to the first wavelet entropy and a second weight value corresponding to the preset wavelet entropy are obtained, where the first weight value and the second weight value may be reasonably set, for example, both the first weight value and the second weight value may be set to 0.5, or the first weight value and the second weight value may be obtained by calculating according to the execution times of the game control operation corresponding to the preset wavelet entropy.
Step S602, a target wavelet entropy is obtained by calculation based on the first weight value, the first wavelet entropy, the second weight value, and the preset wavelet entropy, and the target wavelet entropy is set as the preset wavelet entropy.
When a first weight value and a second weight value are obtained, a target wavelet entropy is obtained through calculation based on the first weight value, the first wavelet entropy, the second weight value and the preset wavelet entropy, and the target wavelet entropy is set as the preset wavelet entropy, specifically, the target wavelet entropy is the first weight value and the first wavelet entropy plus the second weight value and the preset wavelet entropy. By resetting the preset wavelet entropy according to the first wavelet entropy, the accuracy of the preset wavelet entropy can be improved, and the accuracy of the subsequent execution of the game control operation can be further improved.
In other embodiments, the number of execution times of the game control operation corresponding to the preset wavelet entropy may be obtained, and the first weight value and the second weight value may be calculated based on the number of execution times.
Specifically, the first weight value is 1/(execution times +1), the second weight value is execution times/(execution times +1), and then the first weight value and the second weight value can be reasonably set according to the execution times, so as to recalculate the preset wavelet entropy according to the first weight value and the second weight value, thereby improving the accuracy of the preset wavelet entropy, further improving the accuracy of the subsequent execution of the game control operation, and further improving the user experience.
After the first weight value and the second weight value are calculated through the execution times, the execution times are updated, namely the execution times are added by one to be used as new execution times.
According to the game control method provided by the embodiment, when the game control operation is completed, the first weight value corresponding to the first wavelet entropy and the second weight value corresponding to the preset wavelet entropy are obtained, then the target wavelet entropy is obtained through calculation based on the first weight value, the first wavelet entropy, the second weight value and the preset wavelet entropy, and the target wavelet entropy is set as the preset wavelet entropy, so that the preset wavelet entropy is reset through the first wavelet entropy, the accuracy of the preset wavelet entropy can be improved, the accuracy of the subsequent execution of the game control operation is improved, and the user experience is further improved.
Based on the above embodiment, a fifth embodiment of the game control method of the present invention is proposed, in this embodiment, before step S100, the game control method further includes:
step S700, when a terminal is in a game scene, acquiring a second electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal and a second heart rate signal currently acquired by a heart rate acquisition device in real time, and storing the acquired second electroencephalogram signal and the acquired second heart rate signal to a preset storage area;
in this embodiment, when the user wears the electroencephalogram acquisition device, if the terminal is in a game scene, the second heart rate signal currently acquired by the heart rate acquisition device is acquired, and the acquired second electroencephalogram signal and the acquired second heart rate signal are stored in a preset storage area.
Step S800, acquiring second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time length before the current time and second heart rate data acquired by the heart rate acquisition device at the current time based on a second electroencephalogram signal and a second heart rate signal stored in the preset storage area;
in this embodiment, when it is detected that the terminal executes the control operation corresponding to the game scene at present, that is, when it is detected that the terminal executes the control operation in the game scene, the second electroencephalogram data acquired by the electroencephalogram acquisition device within the preset time before the present time, that is, the electroencephalogram signal within the preset time before the present time is acquired from the second electroencephalogram signal stored in the preset storage area, is acquired, and the acquired electroencephalogram signal is used as the second electroencephalogram data; meanwhile, second heart rate data collected by the heart rate collecting device at the current moment are obtained.
Specifically, after the duration of the second electroencephalogram signal of the user acquired by the electroencephalogram acquisition device is acquired in real time and is longer than the preset duration, if it is detected that the terminal executes the control operation in the game scene, the second electroencephalogram data acquired by the electroencephalogram acquisition device and the second heart rate data acquired by the heart rate acquisition device at the current moment are acquired within the preset duration before the current moment based on the second electroencephalogram signal currently stored in the preset storage area.
And S900, determining preset electroencephalogram data based on the second electroencephalogram data, determining a preset heart rate range based on the second heart rate data, and storing the determined preset electroencephalogram data, the preset heart rate range and the control operation in an associated manner.
In this embodiment, when the second electroencephalogram data is acquired, the preset electroencephalogram data is determined based on the second electroencephalogram data, the preset heart rate range is determined based on the second heart rate data, and the determined preset electroencephalogram data, the preset heart rate range and the control operation are stored in an associated manner.
Specifically, a second wavelet entropy corresponding to the second electroencephalogram data can be calculated, and the second wavelet entropy is set as a preset wavelet entropy corresponding to preset electroencephalogram data. If the second electroencephalogram data comprise electroencephalogram data corresponding to the control operation for multiple times, respectively obtaining an average value of wavelet entropies corresponding to the electroencephalogram data, setting the average value as a preset wavelet entropy, and meanwhile, determining a preset heart rate range according to heart rate data corresponding to the control operation for multiple times, for example, the preset heart rate range is a range between a maximum value and a minimum value in the multiple heart rate data, or the preset heart rate range is (the minimum value-the preset value in the second heart rate data, the maximum value + the preset value in the heart rate data), wherein the preset value can be reasonably set. If the second electroencephalogram data only comprises electroencephalogram data corresponding to the current control operation, the wavelet entropy of the electroencephalogram data corresponding to the current control operation is the preset wavelet entropy, and the preset heart rate range is (electroencephalogram data-preset value corresponding to the current control operation, electroencephalogram data + preset value corresponding to the current control operation).
According to the game control method provided by the embodiment, when a terminal is in a game scene, a second electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal and a second heart rate signal acquired by a heart rate acquisition device at present are acquired in real time, the acquired second electroencephalogram signal and the acquired second heart rate signal are stored in a preset storage area, then when the control operation corresponding to the game scene executed by the terminal at present is detected, second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the present moment and second heart rate data acquired by the heart rate acquisition device at the present moment are acquired based on the second electroencephalogram signal and the second heart rate signal stored in the preset storage area, then preset electroencephalogram data are determined based on the second electroencephalogram data, a preset heart rate range is determined based on the second brain rate data, and the determined preset electroencephalogram data are stored in an associated manner, The method comprises the steps of presetting a heart rate range and control operation, further realizing that electroencephalogram data are preset according to electroencephalogram data setting of a user when the control operation corresponding to the game scene is executed by a terminal, and presetting a psychological range according to current heart rate data setting, further obtaining accurate preset electroencephalogram data and presetting the psychological range, improving accuracy of subsequent execution of the game control operation, and further improving user experience.
A sixth embodiment of the game control method of the present invention is proposed based on the fifth embodiment, and in this embodiment, step S800 includes:
step S810, when detecting that the current terminal executes the control operation corresponding to the game scene, updating the operation times of the control operation;
and S820, when the updated operation times are larger than the preset times, acquiring second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the control time corresponding to each control operation based on the second electroencephalogram signal stored in the preset storage area, and acquiring second heart rate data corresponding to the control time corresponding to each control operation.
In this embodiment, when detecting that the terminal currently executes the control operation corresponding to the game scene, i.e., detects that the terminal performs a control operation in a game scene, updates the number of operations (number of executions) of the control operation, namely, the current operation times is added with one to be used as the updated operation times, if the updated operation times is more than the preset times, acquiring electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before a control time corresponding to each control operation based on the second electroencephalogram signal stored in the preset storage area, namely, the electroencephalogram data collected by the electroencephalogram collection device within the preset time before the control time of executing the control operation each time are respectively obtained, and the acquired electroencephalogram data are used as second electroencephalogram data, and second heart rate data corresponding to the control time corresponding to each control operation are acquired at the same time.
Further, in an embodiment, after step S810, the method further includes: and when the operation times are less than or equal to the preset times, continuously executing the steps of acquiring a second electroencephalogram signal acquired by the electroencephalogram acquisition device corresponding to the terminal and a second heart rate signal currently acquired by the heart rate acquisition device in real time when the terminal is in a game scene, and storing the acquired second electroencephalogram signal and the acquired second heart rate signal into a preset storage area.
In the game control method provided by this embodiment, when it is detected that the control operation corresponding to the game scene currently exists, the operation times of the control operation are updated, then when the updated operation times are greater than the preset times, second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the control time corresponding to each control operation is acquired based on the second electroencephalogram signal stored in the preset storage area, and second heart rate data corresponding to the control time corresponding to each control operation is acquired, so that the second electroencephalogram data and the second heart rate data are accurately acquired according to the control operation corresponding to the game scene executed by the terminal, and thus accurate preset electroencephalogram data can be acquired according to the second electroencephalogram data, a reasonable preset heart rate range is acquired according to the second heart rate data, and the accuracy of the subsequent execution of the game control operation is improved, the user experience is further improved.
Based on the sixth embodiment, a seventh embodiment of the game control method of the present invention is proposed, in this embodiment, step S900 includes:
step S910, sampling each electroencephalogram data in the second electroencephalogram data based on a preset time window to obtain a second sampling signal;
step S920, calculating a second wavelet entropy of each of the second sampling signals within the preset time window;
step S930, determining a preset wavelet entropy based on each second wavelet entropy, and using the preset wavelet entropy as the preset electroencephalogram data.
In this embodiment, the preset electroencephalogram data includes a preset wavelet entropy, when the second electroencephalogram data is acquired, each electroencephalogram data in the second electroencephalogram data is sampled according to a preset time window, a sampling signal corresponding to each electroencephalogram data is obtained and serves as a second sampling signal, the wavelet entropy of each sampling signal in the preset time window is calculated based on the second sampling signal in an existing calculation mode and serves as the second wavelet entropy, the preset wavelet entropy is determined based on each second wavelet entropy, the preset wavelet entropy is used as the preset electroencephalogram data, specifically, the mean value of all wavelet entropies in the second wavelet entropy is used as the preset wavelet entropy, the preset electroencephalogram data and the preset wavelet entropy can be accurately set, accuracy of subsequent execution of the game control operation is improved, and user experience is further improved.
In the game control method provided by the embodiment, each piece of electroencephalogram data in the second electroencephalogram data is sampled based on a preset time window to obtain a second sampling signal, then, a second wavelet entropy of each piece of sampling signal in the second sampling signal in the preset time window is calculated, then, a preset wavelet entropy is determined based on each second wavelet entropy, and the preset wavelet entropy is used as the preset electroencephalogram data, so that the preset electroencephalogram data and the preset wavelet entropy can be accurately set, the accuracy of subsequent execution of the game control operation is improved, and the user experience is further improved.
Based on the sixth embodiment, an eighth embodiment of the game control method of the present invention is proposed, in this embodiment, step S900 includes:
step S940, determining the maximum heart rate data and the minimum heart rate data in the second heart rate data;
step S950, determining the preset heart rate range based on the maximum heart rate data and the minimum heart rate data.
In this embodiment, the heart rate data in the second heart rate data are compared to obtain the maximum heart rate data and the minimum heart rate data in the second heart rate data, and the preset heart rate range is determined according to the maximum heart rate data and the minimum heart rate data, specifically, the preset heart rate range is [ the minimum heart rate data, the maximum heart rate data ], or the preset heart rate range is (the minimum heart rate data — the preset value, the maximum heart rate data + the preset value).
According to the game control method provided by the embodiment, the preset psychological range is reasonably set according to the second psychological data by determining the maximum heart rate data and the minimum heart rate data in the second cardiac rate data and then determining the preset heart rate range based on the maximum heart rate data and the minimum heart rate data, so that the accuracy of the subsequent execution of the game control operation is improved, and the user experience is further improved.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a game control program is stored on the computer-readable storage medium, and when executed by a processor, the game control program implements the following operations:
when a terminal is in a game scene, acquiring a first electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal in real time and a first heart rate signal currently acquired by a heart rate acquisition device, and storing the acquired first electroencephalogram signal and the acquired first heart rate signal to a preset storage area;
acquiring first electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the current time based on a first electroencephalogram currently stored in the preset storage area;
determining whether the first electroencephalogram data is matched with preset electroencephalogram data;
when the first electroencephalogram data are matched with preset electroencephalogram data, determining whether the first heart rate data collected by the heart rate collecting device at the current moment are within a preset heart rate range corresponding to the preset electroencephalogram data matched with the first electroencephalogram signal;
when the first heart rate data is within the preset heart rate range, acquiring game control operation based on preset electroencephalogram data matched with the first electroencephalogram data and the preset heart rate range;
executing the game control operation in the game scene.
Further, the game control program when executed by the processor further performs the following operations:
sampling the first electroencephalogram data based on a preset time window to obtain a first sampling signal;
calculating a first wavelet entropy in the preset time window according to the first sampling signal;
and determining whether the first electroencephalogram data is matched with preset electroencephalogram data or not based on the first wavelet entropy.
Further, the game control program when executed by the processor further performs the following operations:
calculating a difference value between the first wavelet entropy and a preset wavelet entropy corresponding to the preset electroencephalogram data;
and determining whether the difference is smaller than a preset difference, wherein when the difference is smaller than the preset difference, the first electroencephalogram data is determined to be matched with preset electroencephalogram data.
Further, the game control program when executed by the processor further performs the following operations:
when the game control operation is finished, acquiring a first weight value corresponding to the first wavelet entropy and a second weight value corresponding to the preset wavelet entropy;
and calculating a target wavelet entropy based on the first weight value, the first wavelet entropy, the second weight value and the preset wavelet entropy, and setting the target wavelet entropy as the preset wavelet entropy.
Further, the game control program when executed by the processor further performs the following operations:
when a terminal is in a game scene, acquiring a second electroencephalogram signal acquired by an electroencephalogram acquisition device corresponding to the terminal in real time and a second heart rate signal currently acquired by a heart rate acquisition device, and storing the acquired second electroencephalogram signal and the acquired second heart rate signal to a preset storage area;
when the control operation corresponding to the game scene executed by the terminal is detected, second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time length before the current moment and second heart rate data acquired by the heart rate acquisition device at the current moment are acquired based on a second electroencephalogram signal and a second heart rate signal stored in the preset storage area;
and determining preset electroencephalogram data based on the second electroencephalogram data, determining a preset heart rate range based on the second heart rate data, and storing the determined preset electroencephalogram data, the preset heart rate range and the control operation in an associated manner.
Further, the game control program when executed by the processor further performs the following operations:
when the control operation corresponding to the game scene is detected to exist at present, updating the operation times of the control operation;
and when the updated operation times are larger than the preset times, acquiring second electroencephalogram data acquired by the electroencephalogram acquisition device within a preset time before the control time corresponding to each control operation based on the second electroencephalogram signal stored in the preset storage area, and acquiring second heart rate data corresponding to the control time corresponding to each control operation.
Further, the game control program when executed by the processor further performs the following operations:
respectively sampling each electroencephalogram data in the second electroencephalogram data based on a preset time window to obtain a second sampling signal;
calculating a second wavelet entropy of each of the second sampling signals within the preset time window;
and determining a preset wavelet entropy based on each second wavelet entropy, and taking the preset wavelet entropy as the preset electroencephalogram data.
Further, the game control program when executed by the processor further performs the following operations:
determining maximum heart rate data and minimum heart rate data in the second heart rate data;
determining the preset heart rate range based on the maximum heart rate data and the minimum heart rate data.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

CN201910135143.6A2019-02-202019-02-20Game control method, device and computer readable storage mediumActiveCN109885165B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910135143.6ACN109885165B (en)2019-02-202019-02-20Game control method, device and computer readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910135143.6ACN109885165B (en)2019-02-202019-02-20Game control method, device and computer readable storage medium

Publications (2)

Publication NumberPublication Date
CN109885165A CN109885165A (en)2019-06-14
CN109885165Btrue CN109885165B (en)2022-02-15

Family

ID=66929033

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910135143.6AActiveCN109885165B (en)2019-02-202019-02-20Game control method, device and computer readable storage medium

Country Status (1)

CountryLink
CN (1)CN109885165B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101430600A (en)*2008-11-052009-05-13江西蓝天学院Game auxiliary control method based on imagination electroencephalogram
CN106730812A (en)*2016-11-302017-05-31吉林大学A kind of game regulator control system estimated based on multi-physiological-parameter mood amount and regulation and control method
CN108345383A (en)*2018-02-072018-07-31深圳市宏智力科技有限公司Human brain preference degree detection method and device based on brain wave

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070002131A1 (en)*2005-02-152007-01-04Ritchey Kurtis JDynamic interactive region-of-interest panoramic/three-dimensional immersive communication system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101430600A (en)*2008-11-052009-05-13江西蓝天学院Game auxiliary control method based on imagination electroencephalogram
CN106730812A (en)*2016-11-302017-05-31吉林大学A kind of game regulator control system estimated based on multi-physiological-parameter mood amount and regulation and control method
CN108345383A (en)*2018-02-072018-07-31深圳市宏智力科技有限公司Human brain preference degree detection method and device based on brain wave

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. Luís ; A.S. Santos ; C. Dias ; R. Almeida ; A.P. Rocha.Heart rate variability during plateau waves of intracranial pressure: A pilot descriptive study.《IEEE》.2015,*
基于生理信号的身体控制游戏玩家疲劳状态模型研究;阮升升;《中国优秀硕士学位论文全文数据库 医药卫生科技辑》;20110715;全文*

Also Published As

Publication numberPublication date
CN109885165A (en)2019-06-14

Similar Documents

PublicationPublication DateTitle
CN111107667B (en)Bluetooth headset pairing method and device and readable storage medium
CN109246360B (en)Prompting method and mobile terminal
CN107403147B (en) Iris liveness detection method and related products
US11055547B2 (en)Unlocking control method and related products
CN108279948B (en) A kind of application program startup method and mobile terminal
CN109567797A (en)Epilepsy method for early warning, device and computer readable storage medium
CN107957841B (en)Rolling screen capture method and device
US20190373318A1 (en)Method and device for adjusting an intelligent system, and a computer readable storage medium
CN108540649B (en)Content display method and mobile terminal
CN111050414B (en)Prompt display method and device and computer readable storage medium
CN111966373A (en)APN resetting method, terminal equipment and storage medium
CN109771940B (en)Game control method, device and computer readable storage medium
CN111064888A (en)Prompting method and electronic equipment
CN109885165B (en)Game control method, device and computer readable storage medium
US11602295B2 (en)Electronic device and method for providing personalized biometric information based on biometric signal using same
CN113507278A (en)Wireless signal processing method, device and computer readable storage medium
CN111338728A (en)Screen capturing method and device and computer readable storage medium
CN108491074B (en)Electronic device, exercise assisting method and related product
CN110990102B (en)Information code acquisition method and device, cooking utensil and storage medium
CN110958488A (en) Video resource downloading method and electronic device
CN115204061B (en)Method, device and equipment for automatically determining stamping modeling scale and storage medium
CN113593602A (en)Audio processing method and device, electronic equipment and storage medium
CN107454253B (en) Method and mobile terminal for starting global positioning system GPS
CN112332996A (en)Terminal network distribution method, device, equipment and computer readable storage medium
CN110931047A (en)Voice data acquisition method and device, acquisition terminal and readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp