CN109885165A - 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
CN109885165A
CN109885165A CN201910135143.6A CN201910135143A CN109885165A CN 109885165 A CN109885165 A CN 109885165A CN 201910135143 A CN201910135143 A CN 201910135143A CN 109885165 A CN109885165 A CN 109885165A
Authority
CN
China
Prior art keywords
default
heart rate
data
eeg 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.)
Granted
Application number
CN201910135143.6A
Other languages
Chinese (zh)
Other versions
CN109885165B (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 Ltd filed Critical Zhejiang Qiangnao Technology Co Ltd
Priority to CN201910135143.6A priority Critical patent/CN109885165B/en
Publication of CN109885165A publication Critical patent/CN109885165A/en
Application granted granted Critical
Publication of CN109885165B publication Critical patent/CN109885165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of game control methods, comprising: in the preset duration before acquisition current time, the first eeg data of the brain wave acquisition device acquisition;When first eeg data is matched with default eeg data, the first heart rate data of the acquisition of heart rate acquisition device described in current time is determined, if in default heart rate range corresponding with the matched default eeg data of first EEG signals;When first heart rate data is in the default heart rate range, it is based on and the matched default eeg data of first eeg data and the default heart rate range, acquisition game control operation;The game control operation is executed in the scene of game.The invention also discloses a kind of game control device and computer readable storage mediums.The present invention can execute corresponding game control operation according to the EEG signals and heart rate signal of user in scene of game, so realize game without touch control operation, improve user experience.

Description

Game control method, device and computer readable storage medium
Technical field
The present invention relates to brain wave technical field more particularly to a kind of game control method, device and computer-readable deposit Storage media.
Background technique
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of game control method, device and computer readable storage medium, purports Solve at present cannot achieve game without touch control operation the technical issues of.
To achieve the above object, the present invention provides a kind of game control method, and the game control method includes following step It is rapid:
When terminal is in scene of game, the first brain electricity of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The first heart rate signal that signal and heart rate acquisition device currently acquire, and the first EEG signals that will acquire and first Heart rate signal is stored to default storage region;
Based on the first currently stored EEG signals of the default storage region, the preset duration before current time is obtained It is interior, the first eeg data of the brain wave acquisition device acquisition;
Determine whether first eeg data matches with default eeg data;
When first eeg data is matched with default eeg data, determine that heart rate acquisition device described in current time is adopted First heart rate data of collection, if in default heart rate model corresponding with the matched default eeg data of first EEG signals In enclosing;
When first heart rate data is in the default heart rate range, it is based on matching with first eeg data Default eeg data and the default heart rate range, obtain game control operation;
The game control operation is executed in the scene of game.
In one embodiment, the step of whether determination first eeg data matches with default eeg data packet It includes:
First eeg data is sampled based on preset time window, to obtain the first sampled signal;
The first Wavelet Entropy in the preset time window is calculated according to first sampled signal;
Determine whether first eeg data matches with default eeg data based on first Wavelet Entropy.
In one embodiment, described that first eeg data and default eeg data are determined based on first Wavelet Entropy The step of whether matching include:
Calculate the difference between first Wavelet Entropy default Wavelet Entropy corresponding with the default eeg data;
Determine whether the difference is less than preset difference value, wherein when the difference is less than preset difference value, determine described the One eeg data is matched with default eeg data.
In one embodiment, described after described the step of executing the game control operation in the scene of game Game control method further include:
When the game controls operation and executes completion, corresponding first weighted value of first Wavelet Entropy is obtained, and Corresponding second weighted value of the default Wavelet Entropy;
It is calculated based on first weighted value, first Wavelet Entropy, the second weighted value and the default Wavelet Entropy The default Wavelet Entropy is set as to target wavelet entropy, and by the target wavelet entropy.
In one embodiment, described when terminal is in scene of game, the corresponding brain wave acquisition of the terminal is obtained in real time It is described before the step of the first heart rate signal that the first EEG signals and heart rate acquisition device of device acquisition currently acquire Game control method further include:
When terminal is in scene of game, the second brain electricity of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The second heart rate signal that signal and heart rate acquisition device currently acquire, and the second EEG signals that will acquire and second Heart rate signal is stored to default storage region;
When detecting that the corresponding control of the presently described terminal execution scene of game operates, it is based on the default storage Region storage the second EEG signals and the second heart rate signal, obtain current time before preset duration in the brain electricity adopt Second eeg data of acquisition means acquisition and the second heart rate data of current time heart rate acquisition device acquisition;
Default eeg data is determined based on second eeg data, and default heart rate is determined based on second heart rate data Range, and default eeg data, default heart rate range and the control operation that associated storage determines.
In one embodiment, described when detecting control operation corresponding there is currently the scene of game, it is based on institute The second EEG signals and the second heart rate signal of the storage of default storage region are stated, are obtained in the preset duration before current time The step of second eeg data of brain wave acquisition device acquisition and current time corresponding second heart rate data includes:
When detecting control operation corresponding there is currently the scene of game, the operation time of the control operation is updated Number;
When number of operations in the updated is greater than preset times, the second brain telecommunications based on the default storage region storage Number, obtain the second brain of the brain wave acquisition device acquisition in the preset duration before each secondary control operates the corresponding control moment Electric data, and obtain corresponding second heart rate data of each secondary control operation corresponding control moment.
In one embodiment, described the step of determining default eeg data based on second eeg data, includes:
Each eeg data in second eeg data is sampled respectively based on preset time window, to obtain Two sampled signals;
Calculate the second Wavelet Entropy of each sampled signal in the preset time window in second sampled signal;
Default Wavelet Entropy is determined based on each second Wavelet Entropy, and using the default Wavelet Entropy as the default brain Electric data.
In one embodiment, determine that the step of presetting heart rate range includes: based on second heart rate data
Determine the maximum heart rate data and minimum heart rate data in second heart rate data;
The default heart rate range is determined based on the maximum heart rate data and minimum heart rate data.
In addition, to achieve the above object, the present invention also provides a kind of game control devices, which is characterized in that the game Control device includes: memory, processor and is stored in the game control that can be run on the memory and on the processor Processing procedure sequence realizes described in any item game control methods among the above when the game control program is executed by the processor Step.
In addition, to achieve the above object, the present invention also provides a kind of computer readable storage mediums, which is characterized in that institute It states and is stored with game control program on computer readable storage medium, realized when the game control program is executed by processor The step of game control method described in any one of stating.
The present invention is acquired by when terminal is in scene of game, obtaining the corresponding brain wave acquisition device of the terminal in real time The first EEG signals and the first heart rate signal for currently acquiring of heart rate acquisition device, and the first brain telecommunications that will acquire Number and the first heart rate signal store to default storage region, then first brain currently stored based on the default storage region Electric signal obtains in the preset duration before current time, the first eeg data of brain wave acquisition device acquisition, then really Whether fixed first eeg data matches with default eeg data, then in first eeg data and default eeg data When matching, the first heart rate data of the acquisition of heart rate acquisition device described in current time is determined, if in electric with first brain In the corresponding default heart rate range of the default eeg data of Signal Matching, finally it is in described default in first heart rate data When in heart rate range, based on the matched default eeg data of first eeg data and the default heart rate range, obtain Game control operation is taken, and executes the game control operation in the scene of game, it can be according to the EEG signals of user And heart rate signal executes corresponding game control operation in scene of game, and then realize game without touch control operation, improve User experience.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of game control device in hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of game control method first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the structure of game control device in hardware running environment that the embodiment of the present invention is related to Schematic diagram.
Game control device of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, e-book reading Device, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio Level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression Standard audio level 4) the packaged type terminal device having a display function such as player, portable computer.
As shown in Figure 1, game control device may include: processor 1001, such as CPU, network interface 1004, user Interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection between these components Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include having for standard Line interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable storage Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing The storage device of device 1001.
Optionally, game control device can also include camera, RF (Radio Frequency, radio frequency) circuit, sensing Device, voicefrequency circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Tool Body, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display screen, proximity sensor can when game control device is moved in one's ear, close display screen and/or Backlight.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size, can detect that size and the direction of gravity when static, the application that can be used to identify game control device posture is (such as horizontal Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, it swims Play control device can also configure the other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, herein not It repeats again.
Game is controlled it will be understood by those skilled in the art that game control device structure shown in Fig. 1 is not constituted The restriction of device may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and game control program.
In game control device shown in Fig. 1, network interface 1004 is mainly used for connecting background server, takes with backstage Business device carries out data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client; And processor 1001 can be used for calling the game control program stored in memory 1005.
In the present embodiment, game control device includes: memory 1005, processor 1001 and is stored in the memory On 1005 and the game control program that can be run on the processor 1001, wherein processor 1001 calls memory 1005 When the game control program of middle storage, and execute following operation:
When terminal is in scene of game, the first brain electricity of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The first heart rate signal that signal and heart rate acquisition device currently acquire, and the first EEG signals that will acquire and first Heart rate signal is stored to default storage region;
Based on the first currently stored EEG signals of the default storage region, the preset duration before current time is obtained It is interior, the first eeg data of the brain wave acquisition device acquisition;
Determine whether first eeg data matches with default eeg data;
When first eeg data is matched with default eeg data, determine that heart rate acquisition device described in current time is adopted First heart rate data of collection, if in default heart rate model corresponding with the matched default eeg data of first EEG signals In enclosing;
When first heart rate data is in the default heart rate range, it is based on matching with first eeg data Default eeg data and the default heart rate range, obtain game control operation;
The game control operation is executed in the scene of game.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
First eeg data is sampled based on preset time window, to obtain the first sampled signal;
The first Wavelet Entropy in the preset time window is calculated according to first sampled signal;
Determine whether first eeg data matches with default eeg data based on first Wavelet Entropy.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
Calculate the difference between first Wavelet Entropy default Wavelet Entropy corresponding with the default eeg data;
Determine whether the difference is less than preset difference value, wherein when the difference is less than preset difference value, determine described the One eeg data is matched with default eeg data.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
When the game controls operation and executes completion, corresponding first weighted value of first Wavelet Entropy is obtained, and Corresponding second weighted value of the default Wavelet Entropy;
It is calculated based on first weighted value, first Wavelet Entropy, the second weighted value and the default Wavelet Entropy The default Wavelet Entropy is set as to target wavelet entropy, and by the target wavelet entropy.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
When terminal is in scene of game, the second brain electricity of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The second heart rate signal that signal and heart rate acquisition device currently acquire, and the second EEG signals that will acquire and second Heart rate signal is stored to default storage region;
When detecting that the corresponding control of the presently described terminal execution scene of game operates, it is based on the default storage Region storage the second EEG signals and the second heart rate signal, obtain current time before preset duration in the brain electricity adopt Second eeg data of acquisition means acquisition and the second heart rate data of current time heart rate acquisition device acquisition;
Default eeg data is determined based on second eeg data, and default heart rate is determined based on second heart rate data Range, and default eeg data, default heart rate range and the control operation that associated storage determines.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
When detecting control operation corresponding there is currently the scene of game, the operation time of the control operation is updated Number;
When number of operations in the updated is greater than preset times, the second brain telecommunications based on the default storage region storage Number, obtain the second brain of the brain wave acquisition device acquisition in the preset duration before each secondary control operates the corresponding control moment Electric data, and obtain corresponding second heart rate data of each secondary control operation corresponding control moment.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
Each eeg data in second eeg data is sampled respectively based on preset time window, to obtain Two sampled signals;
Calculate the second Wavelet Entropy of each sampled signal in the preset time window in second sampled signal;
Default Wavelet Entropy is determined based on each second Wavelet Entropy, and using the default Wavelet Entropy as the default brain Electric data.
Further, processor 1001 can call the game control program stored in memory 1005, also execute following Operation:
Determine the maximum heart rate data and minimum heart rate data in second heart rate data;
The default heart rate range is determined based on the maximum heart rate data and minimum heart rate data.
The present invention also provides a kind of game control methods, are game control method first of the present invention implementation referring to Fig. 2, Fig. 2 The flow diagram of example.
Step S100 obtains the corresponding brain wave acquisition device acquisition of the terminal when terminal is in scene of game in real time The first EEG signals and the first heart rate signal for currently acquiring of heart rate acquisition device, and the first brain telecommunications that will acquire Number and the first heart rate signal store to default storage region;
Wherein, which is to be capable of the terminal of running game application, and when this is in scene of game, the terminal is currently Run corresponding game application.
In the present embodiment, it can send acquisition when detecting that terminal is in scene of game and execute to brain wave acquisition device And heart rate acquisition device, so that EEG signals, the heart rate acquisition device of brain wave acquisition device acquisition user currently acquire user Heart rate signal, and obtain the first EEG signals of the terminal corresponding brain wave acquisition device acquisition in real time and heart rate is adopted The first heart rate signal that acquisition means currently acquire.
Step S200, based on the first currently stored EEG signals of the default storage region, before acquisition current time Preset duration in, the first eeg data of brain wave acquisition device acquisition;
In the present embodiment, based on the first EEG signals stored in the default storage region, obtain current time it In preceding preset duration, the first eeg data of brain wave acquisition device acquisition, i.e., the stored in default storage region In one EEG signals, the EEG signals in the preset duration before current time, and the EEG signals conduct that will acquire are obtained First eeg data.
Specifically, can be greater than in the duration of the first EEG signals for the user for obtaining the acquisition of brain wave acquisition device in real time It is default before obtaining current time based on the first currently stored EEG signals of the default storage region when preset duration In duration, the first eeg data of the brain wave acquisition device acquisition.
Wherein, which can be rationally arranged.
Step S300, determines whether first eeg data matches with default eeg data;
In the present embodiment, when getting the first eeg data, first eeg data and default brain electricity number are determined According to whether matching, specifically, wavelet transform process can be carried out to first EEG signals, it is corresponding to obtain first eeg data Wavelet Entropy, determines whether the corresponding Wavelet Entropy of the first eeg data default Wavelet Entropy corresponding with default eeg data matches, And then determine whether the first eeg data matches with default eeg data.
Step S400 determines heart rate described in current time when first eeg data is matched with default eeg data First heart rate data of acquisition device acquisition, if in corresponding with the matched default eeg data of first EEG signals In default heart rate range;
In the present embodiment, if the first eeg data is matched with default eeg data, it is determined that heart rate described in current time First heart rate data of acquisition device acquisition, if in corresponding with the matched default eeg data of first EEG signals In default heart rate range.
Wherein, settable different pre- in order to which the EEG signals and heart rate signal by user execute different operations If eeg data, each default eeg data corresponds to different default heart rate ranges.
Step S500 is based on and first brain when first heart rate data is in the default heart rate range The default eeg data of electric Data Matching and the default heart rate range obtain game control operation;
Step S600 executes the game control operation in the scene of game
In the present embodiment, it if the first heart rate data is in the default heart rate range, is based on and first brain The default eeg data of electric Data Matching and the default heart rate range obtain game control operation, and in the scene of game It is middle to execute the game control operation.Wherein, each default eeg data respectively corresponds game control operation, multiple default When there is target eeg data matched with the first eeg data in eeg data, trip corresponding to the target eeg data is obtained Play control operation.
The game control method that the present embodiment proposes, by obtaining the terminal in real time when terminal is in scene of game The first heart rate signal that the first EEG signals and heart rate acquisition device of corresponding brain wave acquisition device acquisition currently acquire, And the first EEG signals that will acquire and the first heart rate signal are stored to default storage region, are then deposited based on described preset The first currently stored EEG signals of storage area domain, obtain current time before preset duration in, the brain wave acquisition device is adopted First eeg data of collection, then determines whether first eeg data matches with default eeg data, then described the When one eeg data is matched with default eeg data, the first heart rate number of the acquisition of heart rate acquisition device described in current time is determined According to, if in default heart rate range corresponding with the matched default eeg data of first EEG signals, finally in institute When stating the first heart rate data and being in the default heart rate range, it is based on and the matched default brain electricity number of first eeg data Accordingly and the default heart rate range, acquisition game control operate, and the game control behaviour is executed in the scene of game Make, corresponding game control operation, Jin Ershi can be executed in scene of game according to the EEG signals and heart rate signal of user Showed game without touch control operation, improve user experience.
Based on first embodiment, the second embodiment of game control method of the present invention, in the present embodiment, step are proposed S300 includes:
Step S310 samples first eeg data based on preset time window, to obtain the first sampled signal;
Step S320 calculates the first Wavelet Entropy in the preset time window according to first sampled signal;
Step S330, based on first Wavelet Entropy determine first eeg data and default eeg data whether Match.
In the present embodiment, first eeg data is sampled according to preset time window, to obtain the first sampling Signal calculates the first Wavelet Entropy in preset time window using existing calculation based on the first sampled signal, based on described First Wavelet Entropy determines whether first eeg data matches with default eeg data, specifically, can be by first Wavelet Entropy Default Wavelet Entropy corresponding with default eeg data compares operation, and then determines the first eeg data and default eeg data Whether match.
Wherein, which can be rationally arranged, for example, carrying out game control behaviour by EEG signals executing Before work, EEG signals when being operated by control of the user when operating game are handled to obtain the default Wavelet Entropy. Preset time window can be equal to the preset duration or preset time window is less than preset duration, or, preset duration is default The integral multiple of time window
The game control method that the present embodiment proposes, by being adopted based on preset time window to first eeg data Sample calculates the first small echo in the preset time window then according to first sampled signal to obtain the first sampled signal Entropy then determines whether first eeg data matches with default eeg data based on first Wavelet Entropy, being capable of basis First Wavelet Entropy accurately determines the current corresponding game control operation, and then realizes the EEG signals and heart rate according to user Signal executes game control operation in scene of game, realize game without touch control operation, further improve user Experience.
Based on second embodiment, the 3rd embodiment of game control method of the present invention, in the present embodiment, step are proposed S330 includes:
Step S331 calculates the difference between first Wavelet Entropy default Wavelet Entropy corresponding with the default eeg data Value;
Step S332, determines whether the difference is less than preset difference value, wherein when the difference is less than preset difference value, Determine that first eeg data is matched with default eeg data.
In the present embodiment, when obtaining the first Wavelet Entropy, it is corresponding with default eeg data to calculate first Wavelet Entropy The difference of default Wavelet Entropy, wherein the difference is the absolute value of the difference of the first Wavelet Entropy and default Wavelet Entropy, and determines the difference Whether preset difference value is less than;If difference is less than preset difference value, determine that the first eeg data is matched with default eeg data, in turn It can determine that the first eeg data is with default eeg data according to the difference between the first Wavelet Entropy and the default Wavelet Entropy No matching improves the accuracy for executing game control operation by EEG signals, further improves user experience.
Wherein, preset difference value can be rationally arranged.
The game control method that the present embodiment proposes, by calculating first Wavelet Entropy and the default eeg data pair The difference between default Wavelet Entropy answered, then determines whether the difference is less than preset difference value, wherein is less than in the difference When preset difference value, determine that first eeg data is matched with default eeg data, can according to the first Wavelet Entropy with it is described pre- If the difference between Wavelet Entropy determines whether the first eeg data matches with default eeg data, improve through EEG signals and Heart rate signal executes the accuracy of game control operation, further improves user experience.
Based on 3rd embodiment, the fourth embodiment of game control method of the present invention is proposed, in the present embodiment, in step After S600, the game control method further include:
Step S601 obtains corresponding first power of first Wavelet Entropy when the game controls operation and executes completion Weight values and corresponding second weighted value of the default Wavelet Entropy;
In the present embodiment, if game control operation executes completion, corresponding first power of first Wavelet Entropy is obtained Weight values and corresponding second weighted value of the default Wavelet Entropy, wherein the first weighted value and the second weighted value can carry out Rationally setting, for example, the first weighted value and the second weighted value may be configured as 0.5, alternatively, the first weighted value and the second power Weight values can be calculated according to the execution number of the corresponding game control operation of default Wavelet Entropy.
Step S602 is based on first weighted value, first Wavelet Entropy, the second weighted value and the default small echo Target wavelet entropy is calculated in entropy, and sets the default Wavelet Entropy for the target wavelet entropy.
When getting the first weighted value and the second weighted value, based on first weighted value, first Wavelet Entropy, Target wavelet entropy is calculated in second weighted value and the default Wavelet Entropy, and sets described pre- for the target wavelet entropy If Wavelet Entropy, specifically, target wavelet entropy=first the first Wavelet Entropy of weighted value * the+the second weighted value * presets Wavelet Entropy.Pass through Default Wavelet Entropy is reset according to the first Wavelet Entropy, can be improved the accuracy of default Wavelet Entropy, and then improve subsequent execution The accuracy of game control operation.
In other embodiments, the execution number of the corresponding game control operation of the default Wavelet Entropy, and base can be obtained First weighted value and second weighted value are calculated in executing number.
Specifically, the first weighted value=1/ (executing number+1), the second weighted value=execution number/(executing number+1), And then the first weighted value and the second weighted value rationally can be set according to number is executed, according to the first weighted value and second Weighted value recalculates default Wavelet Entropy, improves the accuracy of default Wavelet Entropy, and then improves subsequent execution game control behaviour The accuracy of work, further improves user experience.
Wherein, it after by executing number calculating first weighted value and second weighted value, updates this and holds Row number, i.e., as new execution number after the execution number being added one.
The game control method that the present embodiment proposes, by the game control operation execute complete when, described in acquisition Corresponding first weighted value of first Wavelet Entropy and corresponding second weighted value of the default Wavelet Entropy, then based on described the One weighted value, first Wavelet Entropy, the second weighted value and the default Wavelet Entropy are calculated target wavelet entropy, and by institute It states target wavelet entropy and is set as the default Wavelet Entropy, realize and default Wavelet Entropy is reseted by the first Wavelet Entropy, can be improved The accuracy of default Wavelet Entropy, and then the accuracy of subsequent execution game control operation is improved, further improve user's body It tests.
Based on the above embodiment, the 5th embodiment of game control method of the present invention, in the present embodiment, step are proposed Before S100, the game control method further include:
Step S700 obtains the corresponding brain wave acquisition device acquisition of the terminal when terminal is in scene of game in real time The second EEG signals and the second heart rate signal for currently acquiring of heart rate acquisition device, and the second brain telecommunications that will acquire Number and the second heart rate signal store to default storage region;
In the present embodiment, when user wears the brain wave acquisition device, if terminal is in scene of game, and heart rate The second heart rate signal that acquisition device currently acquires, and the second EEG signals that will acquire and the second heart rate signal store to Default storage region.
Step S800 is obtained based on the second EEG signals and the second heart rate signal of the default storage region storage The second eeg data and current time heart rate of the brain wave acquisition device acquisition are adopted in preset duration before current time Second heart rate data of acquisition means acquisition;
In the present embodiment, when detecting that the corresponding control of the presently described terminal execution scene of game operates, i.e., The terminal is detected in scene of game when executive control operation, based on the second brain telecommunications stored in the default storage region Number, in the preset duration before acquisition current time, the second eeg data of the brain wave acquisition device acquisition is deposited default In the second EEG signals stored in storage area domain, the EEG signals in the preset duration before current time are obtained, and will acquire The EEG signals arrived are as the second eeg data;Meanwhile obtaining the second heart rate data of current time heart rate acquisition device acquisition.
Specifically, can be greater than in the duration of the second EEG signals for the user for obtaining the acquisition of brain wave acquisition device in real time After preset duration, if detecting terminal executive control operation in scene of game, worked as based on the default storage region Second EEG signals of preceding storage obtain in the preset duration before current time, the second of brain wave acquisition device acquisition Eeg data and the second heart rate data of current time heart rate acquisition device acquisition.
Step S900 determines default eeg data based on second eeg data, true based on second heart rate data Surely heart rate range, and default eeg data, default heart rate range and the control operation that associated storage determines are preset.
In the present embodiment, when getting the second eeg data, default eeg data is determined based on the second eeg data, And default heart rate range, and default eeg data, the default heart rate that associated storage determines are determined based on second heart rate data Range and control operation.
Specifically, corresponding second Wavelet Entropy of second eeg data can be calculated, and set pre- for second Wavelet Entropy If the corresponding default Wavelet Entropy of eeg data.If the second eeg data includes that the multiple control operates corresponding eeg data, The mean value of the corresponding Wavelet Entropy of multiple eeg datas is respectively obtained, and sets default Wavelet Entropy for the mean value, meanwhile, according to more Secondary control operates corresponding heart rate data and determines default heart rate range, for example, the default heart rate range is in multiple heart rate datas Maxima and minima between range or default heart rate range be (minimum value-preset value in the second heart rate data, Maximum value+preset value in heart rate data), wherein the preset value can be rationally arranged.If the second eeg data only includes working as Preceding control operates corresponding eeg data, and it is default small echo that control, which operates the Wavelet Entropy of corresponding eeg data, in this prior Entropy, and default heart rate range is that (the current control operates corresponding eeg data-preset value, and the current control operation is corresponding Eeg data+preset value).
The game control method that the present embodiment proposes, by obtaining the terminal in real time when terminal is in scene of game The second heart rate signal that the second EEG signals and heart rate acquisition device of corresponding brain wave acquisition device acquisition currently acquire, And the second EEG signals that will acquire and the second heart rate signal are stored to default storage region, are then detecting current institute When stating terminal and executing the corresponding control operation of the scene of game, the second EEG signals for being stored based on the default storage region And second heart rate signal, the second brain electricity number of the brain wave acquisition device acquisition in the preset duration before obtaining current time According to and current time heart rate acquisition device acquisition the second heart rate data, then based on second eeg data determine in advance If eeg data, is determined based on second heart rate data and preset heart rate range, and the default eeg data of associated storage determination, When presetting heart rate range and control operation, and then realizing that executing the corresponding control of the scene of game according to terminal operates The eeg data of user is arranged default eeg data and according to the current default psychological range of heart rate data setting, and then can It obtains accurately presetting eeg data and default psychological range, improves the accuracy of subsequent execution game control operation, into One step improves user experience.
Based on the 5th embodiment, the sixth embodiment of game control method of the present invention, in the present embodiment, step are proposed S800 includes:
Step S810 updates institute when detecting that the corresponding control of the presently described terminal execution scene of game operates State the number of operations of control operation;
Step S820, when number of operations in the updated is greater than preset times, based on the default storage region storage Second EEG signals obtain the brain wave acquisition device in the preset duration before each secondary control operates the corresponding control moment and adopt Second eeg data of collection, and obtain corresponding second heart rate data of each secondary control operation corresponding control moment.
In the present embodiment, when detecting that the corresponding control of the presently described terminal execution scene of game operates, i.e., Detect that the terminal when executive control operation, updates the number of operations (executing number) of the control operation in scene of game, Will current number of operations add one after as updated number of operations, if updated number of operations is greater than preset times, The second EEG signals then based on the default storage region storage, obtain respectively each secondary control operate the corresponding control moment it In preceding preset duration, the eeg data of the brain wave acquisition device acquisition obtains respectively and executes control operation each time The control moment before preset duration in the acquisition of brain wave acquisition device eeg data, and each eeg data that will acquire As the second eeg data, while obtaining corresponding second heart rate data of each secondary control operation corresponding control moment.
Further, in one embodiment, after step S810, further includes: be less than or equal in the number of operations pre- If when number, continuing to execute when terminal is in scene of game, the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The second EEG signals and the second heart rate signal for currently acquiring of heart rate acquisition device, and the second brain telecommunications that will acquire Number and the second heart rate signal the step of storing to default storage region.
The game control method that the present embodiment proposes, by detecting that there is currently the corresponding controls of the scene of game When operation, the number of operations of the control operation is updated, when then number of operations in the updated is greater than preset times, is based on institute The second EEG signals for stating default storage region storage obtain each secondary control and operate the corresponding preset duration controlled before the moment Second eeg data of interior brain wave acquisition device acquisition, and obtain each secondary control and operate the corresponding control moment corresponding the Two heart rate datas, and then realize and the scene of game corresponding control operation the second eeg data of accurate acquisition is executed according to terminal And second heart rate data, and then accurately default eeg data can be obtained according to the second eeg data and according to second heart Rate data obtain reasonably presetting heart rate range, improve the accuracy of subsequent execution game control operation, further improve User experience.
Based on sixth embodiment, the 7th embodiment of game control method of the present invention, in the present embodiment, step are proposed S900 includes:
Step S910 respectively adopts each eeg data in second eeg data based on preset time window Sample, to obtain the second sampled signal;
Step S920, calculate each sampled signal in the preset time window in second sampled signal second are small Wave entropy;
Step S930 determines default Wavelet Entropy based on each second Wavelet Entropy, and using the default Wavelet Entropy as The default eeg data.
In the present embodiment, presetting eeg data includes default Wavelet Entropy, when getting the second eeg data, according to pre- If time window respectively samples each eeg data in second eeg data, it is corresponding to obtain each eeg data Sampled signal and as the second sampled signal, is calculated in preset time window based on the second sampled signal using existing calculation Each sampled signal Wavelet Entropy, and as the second Wavelet Entropy, default Wavelet Entropy is determined based on each second Wavelet Entropy, and will The default Wavelet Entropy is as the default eeg data, specifically, using the mean value of Wavelet Entropies all in the second Wavelet Entropy as Default Wavelet Entropy, and then default eeg data and default Wavelet Entropy can be accurately set, improve subsequent execution game control behaviour The accuracy of work, further improves user experience.
The game control method that the present embodiment proposes, by being based on preset time window respectively in second eeg data Each eeg data sampled, to obtain the second sampled signal, then calculate each described in the preset time window Second Wavelet Entropy of the sampled signal in two sampled signals then determines default Wavelet Entropy based on each second Wavelet Entropy, And using the default Wavelet Entropy as the default eeg data, and then default eeg data and default small echo can be accurately set Entropy improves the accuracy of subsequent execution game control operation, further improves user experience.
Based on sixth embodiment, the 8th embodiment of game control method of the present invention, in the present embodiment, step are proposed S900 includes:
Step S940 determines maximum heart rate data and minimum heart rate data in second heart rate data;
Step S950 determines the default heart rate range based on the maximum heart rate data and minimum heart rate data.
In the present embodiment, each heart rate data in the second heart rate data is compared, obtains the second heart rate data In maximum heart rate data and minimum heart rate data, and determine that this is default according to maximum heart rate data and minimum heart rate data Heart rate range, specifically, which is [minimum heart rate data, maximum heart rate data], alternatively, the default heart rate model It encloses for (minimum heart rate data-preset value, maximum heart rate data+preset value).
The present embodiment propose game control method, by the maximum heart rate data in determination second heart rate data with And minimum heart rate data, then the default heart rate range is determined based on the maximum heart rate data and minimum heart rate data, It realizes and default psychological range is rationally set according to the second physiological data, improve the accurate of subsequent execution game control operation Property, further improve user experience.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with game control program, following operation is realized when the game control program is executed by processor:
When terminal is in scene of game, the first brain electricity of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The first heart rate signal that signal and heart rate acquisition device currently acquire, and the first EEG signals that will acquire and first Heart rate signal is stored to default storage region;
Based on the first currently stored EEG signals of the default storage region, the preset duration before current time is obtained It is interior, the first eeg data of the brain wave acquisition device acquisition;
Determine whether first eeg data matches with default eeg data;
When first eeg data is matched with default eeg data, determine that heart rate acquisition device described in current time is adopted First heart rate data of collection, if in default heart rate model corresponding with the matched default eeg data of first EEG signals In enclosing;
When first heart rate data is in the default heart rate range, it is based on matching with first eeg data Default eeg data and the default heart rate range, obtain game control operation;
The game control operation is executed in the scene of game.
Further, following operation is also realized when the game control program is executed by processor:
First eeg data is sampled based on preset time window, to obtain the first sampled signal;
The first Wavelet Entropy in the preset time window is calculated according to first sampled signal;
Determine whether first eeg data matches with default eeg data based on first Wavelet Entropy.
Further, following operation is also realized when the game control program is executed by processor:
Calculate the difference between first Wavelet Entropy default Wavelet Entropy corresponding with the default eeg data;
Determine whether the difference is less than preset difference value, wherein when the difference is less than preset difference value, determine described the One eeg data is matched with default eeg data.
Further, following operation is also realized when the game control program is executed by processor:
When the game controls operation and executes completion, corresponding first weighted value of first Wavelet Entropy is obtained, and Corresponding second weighted value of the default Wavelet Entropy;
It is calculated based on first weighted value, first Wavelet Entropy, the second weighted value and the default Wavelet Entropy The default Wavelet Entropy is set as to target wavelet entropy, and by the target wavelet entropy.
Further, following operation is also realized when the game control program is executed by processor:
When terminal is in scene of game, the second brain electricity of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time The second heart rate signal that signal and heart rate acquisition device currently acquire, and the second EEG signals that will acquire and second Heart rate signal is stored to default storage region;
When detecting that the corresponding control of the presently described terminal execution scene of game operates, it is based on the default storage Region storage the second EEG signals and the second heart rate signal, obtain current time before preset duration in the brain electricity adopt Second eeg data of acquisition means acquisition and the second heart rate data of current time heart rate acquisition device acquisition;
Default eeg data is determined based on second eeg data, and default heart rate is determined based on second heart rate data Range, and default eeg data, default heart rate range and the control operation that associated storage determines.
Further, following operation is also realized when the game control program is executed by processor:
When detecting control operation corresponding there is currently the scene of game, the operation time of the control operation is updated Number;
When number of operations in the updated is greater than preset times, the second brain telecommunications based on the default storage region storage Number, obtain the second brain of the brain wave acquisition device acquisition in the preset duration before each secondary control operates the corresponding control moment Electric data, and obtain corresponding second heart rate data of each secondary control operation corresponding control moment.
Further, following operation is also realized when the game control program is executed by processor:
Each eeg data in second eeg data is sampled respectively based on preset time window, to obtain Two sampled signals;
Calculate the second Wavelet Entropy of each sampled signal in the preset time window in second sampled signal;
Default Wavelet Entropy is determined based on each second Wavelet Entropy, and using the default Wavelet Entropy as the default brain Electric data.
Further, following operation is also realized when the game control program is executed by processor:
Determine the maximum heart rate data and minimum heart rate data in second heart rate data;
The default heart rate range is determined based on the maximum heart rate data and minimum heart rate data.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of game control method, which is characterized in that the game control method the following steps are included:
When terminal is in scene of game, the first brain telecommunications of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time Number and the first heart rate signal for currently acquiring of heart rate acquisition device, and the first EEG signals and first heart that will acquire Rate signal is stored to default storage region;
Based on the first currently stored EEG signals of the default storage region, in the preset duration before acquisition current time, First eeg data of the brain wave acquisition device acquisition;
Determine whether first eeg data matches with default eeg data;
When first eeg data is matched with default eeg data, the acquisition of heart rate acquisition device described in current time is determined First heart rate data, if in default heart rate range corresponding with the matched default eeg data of first EEG signals It is interior;
When first heart rate data is in the default heart rate range, based on matched pre- with first eeg data If eeg data and the default heart rate range, game control operation is obtained;
The game control operation is executed in the scene of game.
2. game control method as described in claim 1, which is characterized in that determination first eeg data and default The step of whether eeg data matches include:
First eeg data is sampled based on preset time window, to obtain the first sampled signal;
The first Wavelet Entropy in the preset time window is calculated according to first sampled signal;
Determine whether first eeg data matches with default eeg data based on first Wavelet Entropy.
3. game control method as claimed in claim 2, which is characterized in that described based on described in first Wavelet Entropy determination The step of whether the first eeg data matches with default eeg data include:
Calculate the difference between first Wavelet Entropy default Wavelet Entropy corresponding with the default eeg data;
Determine whether the difference is less than preset difference value, wherein when the difference is less than preset difference value, determine first brain Electric data are matched with default eeg data.
4. game control method as claimed in claim 3, which is characterized in that described to execute the trip in the scene of game After the step of play control operation, the game control method further include:
The game control operation execute complete when, obtain corresponding first weighted value of first Wavelet Entropy and described Default corresponding second weighted value of Wavelet Entropy;
Mesh is calculated based on first weighted value, first Wavelet Entropy, the second weighted value and the default Wavelet Entropy Wavelet Entropy is marked, and sets the default Wavelet Entropy for the target wavelet entropy.
5. game control method according to any one of claims 1 to 4, which is characterized in that described to be in game in terminal When scene, the first EEG signals and heart rate acquisition device of the corresponding brain wave acquisition device acquisition of the terminal are obtained in real time Before the step of the first heart rate signal currently acquired, the game control method further include:
When terminal is in scene of game, the second brain telecommunications of the corresponding brain wave acquisition device acquisition of the terminal is obtained in real time Number and the second heart rate signal for currently acquiring of heart rate acquisition device, and the second EEG signals and second heart that will acquire Rate signal is stored to default storage region;
When detecting that the corresponding control of the presently described terminal execution scene of game operates, it is based on the default storage region The second EEG signals and the second heart rate signal of storage obtain brain wave acquisition dress in the preset duration before current time Set the second eeg data of acquisition and the second heart rate data of current time heart rate acquisition device acquisition;
Default eeg data is determined based on second eeg data, and default heart rate model is determined based on second heart rate data It encloses, and default eeg data, default heart rate range and the control operation that associated storage determines.
6. game control method as claimed in claim 5, which is characterized in that described to detect that there is currently the sports grounds When the corresponding control of scape operates, based on the second EEG signals and the second heart rate signal of the default storage region storage, obtain Take the second eeg data of the brain wave acquisition device acquisition and current time in the preset duration before current time corresponding The second heart rate data the step of include:
When detecting control operation corresponding there is currently the scene of game, the number of operations of the control operation is updated;
When number of operations in the updated is greater than preset times, based on the second EEG signals of the default storage region storage, Obtain the second brain electricity of the brain wave acquisition device acquisition in the preset duration before each secondary control operates the corresponding control moment Data, and obtain corresponding second heart rate data of each secondary control operation corresponding control moment.
7. game control method as claimed in claim 6, which is characterized in that described to be determined in advance based on second eeg data If the step of eeg data, includes:
Each eeg data in second eeg data is sampled respectively based on preset time window, is adopted with obtaining second Sample signal;
Calculate the second Wavelet Entropy of each sampled signal in the preset time window in second sampled signal;
Default Wavelet Entropy is determined based on each second Wavelet Entropy, and using the default Wavelet Entropy as the default brain electricity number According to.
8. game control method as claimed in claim 6, which is characterized in that determine the default heart based on second heart rate data The step of rate range includes:
Determine the maximum heart rate data and minimum heart rate data in second heart rate data;
The default heart rate range is determined based on the maximum heart rate data and minimum heart rate data.
9. a kind of game control device, which is characterized in that the game control device includes: memory, processor and is stored in On the memory and the game control program that can run on the processor, the game control program is by the processor It realizes when execution such as the step of game control method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with game control on the computer readable storage medium Processing procedure sequence realizes that game described in any item of the claim 1 to 8 such as controls when the game control program is executed by processor The step of method.
CN201910135143.6A 2019-02-20 2019-02-20 Game control method, device and computer readable storage medium Active CN109885165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910135143.6A CN109885165B (en) 2019-02-20 2019-02-20 Game control method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910135143.6A CN109885165B (en) 2019-02-20 2019-02-20 Game control method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109885165A true CN109885165A (en) 2019-06-14
CN109885165B CN109885165B (en) 2022-02-15

Family

ID=66929033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910135143.6A Active CN109885165B (en) 2019-02-20 2019-02-20 Game control method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109885165B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070002131A1 (en) * 2005-02-15 2007-01-04 Ritchey Kurtis J Dynamic interactive region-of-interest panoramic/three-dimensional immersive communication system and method
CN101430600A (en) * 2008-11-05 2009-05-13 江西蓝天学院 Game auxiliary control method based on imagination electroencephalogram
CN106730812A (en) * 2016-11-30 2017-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-07 2018-07-31 深圳市宏智力科技有限公司 Human brain preference degree detection method and device based on brain wave

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070002131A1 (en) * 2005-02-15 2007-01-04 Ritchey Kurtis J Dynamic interactive region-of-interest panoramic/three-dimensional immersive communication system and method
CN101430600A (en) * 2008-11-05 2009-05-13 江西蓝天学院 Game auxiliary control method based on imagination electroencephalogram
CN106730812A (en) * 2016-11-30 2017-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-07 2018-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》 *
阮升升: "基于生理信号的身体控制游戏玩家疲劳状态模型研究", 《中国优秀硕士学位论文全文数据库 医药卫生科技辑》 *

Also Published As

Publication number Publication date
CN109885165B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN107845366B (en) Backlight adjusting method and device
CN109361865B (en) Shooting method and terminal
AU2018299524B2 (en) Iris-based living-body detection method, mobile terminal and storage medium
EP3637290B1 (en) Unlocking control method and related product
WO2018228168A1 (en) Image processing method and related product
CN108551519B (en) Information processing method, device, storage medium and system
CN107644219B (en) Face registration method and related product
CN109964478A (en) A kind of image pickup method and electronic device
CN108848313B (en) Multi-person photographing method, terminal and storage medium
EP3623973A1 (en) Unlocking control method and related product
CN107888765B (en) Method for switching scene mode and mobile terminal
CN108388403B (en) Method and terminal for processing message
CN107613550B (en) Unlocking control method and related product
CN109567797A (en) Epilepsy method for early warning, device and computer readable storage medium
CN108388340B (en) Electronic equipment control method and related product
CN108512615B (en) Signal intensity display method and mobile terminal
CN109462745A (en) A kind of white balancing treatment method and mobile terminal
CN107864299B (en) Picture display method and related product
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN108650041B (en) Signal quality display method and mobile terminal
CN109771940A (en) Game control method, device and computer readable storage medium
CN110168599B (en) Data processing method and terminal
CN111026955A (en) Application program recommendation method and electronic equipment
CN109885165A (en) Game control method, device and computer readable storage medium
CN112822406B (en) Image acquisition method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant