CN111124125B - Police service training method and system based on virtual reality - Google Patents
Police service training method and system based on virtual reality Download PDFInfo
- Publication number
- CN111124125B CN111124125B CN201911358168.9A CN201911358168A CN111124125B CN 111124125 B CN111124125 B CN 111124125B CN 201911358168 A CN201911358168 A CN 201911358168A CN 111124125 B CN111124125 B CN 111124125B
- Authority
- CN
- China
- Prior art keywords
- virtual
- training
- character
- behavior
- data
- 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
Links
- 238000012549 training Methods 0.000 title claims abstract description 262
- 238000000034 method Methods 0.000 title claims abstract description 106
- 230000006399 behavior Effects 0.000 claims abstract description 231
- 230000002159 abnormal effect Effects 0.000 claims abstract description 42
- 206010000117 Abnormal behaviour Diseases 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 14
- 230000009471 action Effects 0.000 claims description 69
- 230000001276 controlling effect Effects 0.000 claims description 7
- 230000003542 behavioural effect Effects 0.000 claims description 5
- 238000007405 data analysis Methods 0.000 claims description 4
- 238000005070 sampling Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 21
- 238000007711 solidification Methods 0.000 abstract description 4
- 230000008023 solidification Effects 0.000 abstract description 4
- 230000005856 abnormality Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 6
- 210000000988 bone and bone Anatomy 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000002035 prolonged effect Effects 0.000 description 4
- 238000003860 storage Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000002829 reductive effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000002147 killing effect Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 231100000136 action limit Toxicity 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
- G06Q50/205—Education administration or guidance
- G06Q50/2057—Career enhancement or continuing education service
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B9/00—Simulators for teaching or training purposes
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Tourism & Hospitality (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a police training method and a system based on virtual reality, which belong to the technical field of virtual reality, and the police training method based on virtual reality comprises the following steps: generating behaviors of virtual characters in the virtual scene; collecting training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene; analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the trained personnel; virtual character behavior adjustment data for adjusting the behavior of the virtual character is generated based on the abnormality data. The police training method and system based on virtual reality can realize adjustment according to abnormal data of training data of each participant, generate virtual characters with targeted behaviors, conduct targeted training, improve training effect and solve the technical problem of poor training effect caused by solidification of the virtual character behaviors in the prior art.
Description
Technical Field
The invention relates to the technical field of virtual reality, in particular to a police training method and system based on virtual reality.
Background
Virtual reality technology is a computer simulation system that can create and experience a virtual world, using a computer to generate a virtual scene, and used with specific hardware devices, enabling a user to be immersed in the virtual scene.
The virtual reality technology is combined with police training, and various actual combat skills of police officers can be trained in simulated actual combat scenes. The existing virtual reality police training system is used for establishing scenes and training contents based on the actual environment and the use specifications of police officers, and has the following problems:
1. the scene and the training content of the existing virtual reality police training system are both templatized, the training fatigue is very easy to generate when the system is used for training for a long time by a participant, and the real training key points cannot be mastered.
2. The virtual character in the virtual scene is triggered to act at fixed time or specific conditions, and a training person can easily grasp the action loopholes of the virtual character after training for several times, so that the training is carried out.
3. Because the virtual character acts are solidified in the training, the training personnel can adapt to the scene quickly after training the same scene for several times, the repeated training value of the scene can be lost quickly, and the development cost of the training system is increased by changing the phase. Meanwhile, the behaviors of virtual figures such as robbers in training are relatively fixed, and the specific training can not be generated aiming at the wrong operation of the training staff, so that the training effect on the training staff is not ideal.
Disclosure of Invention
In order to overcome the defects of the prior art, the technical problem to be solved by the invention is to provide a police training method and system based on virtual reality, so as to realize adjustment according to abnormal data of training data of each participant, generate virtual characters with targeted behaviors, conduct targeted training, improve training effect and solve the technical problem of poor training effect caused by solidification of the virtual character behaviors in the prior art.
In a first aspect, an embodiment of the present invention provides a police training method based on virtual reality, including:
generating behaviors of virtual characters in the virtual scene;
collecting training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene;
analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the training personnel;
and generating virtual character behavior adjustment data for adjusting the behavior of the virtual character according to the abnormal data.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where before the generating a behavior of a virtual character in a virtual scene, the method includes:
a character set including at least one character and a behavior method set including at least one behavior method corresponding to each character are set.
With reference to the first possible implementation manner of the first aspect, the embodiment of the present invention provides a second possible implementation manner of the first aspect, where the generating a behavior of a virtual character in a virtual scene includes:
if the training times of the current training personnel are greater than or equal to a preset threshold value, acquiring at least one character in the character set according to the virtual character behavior adjustment data, and acquiring at least one behavior method in the behavior method set corresponding to the character of at least one character acquired in the character set as the behavior of at least one virtual character in a virtual scene;
if the training times of the current training personnel are smaller than a preset threshold value, randomly acquiring at least one character in the character set, and randomly acquiring at least one behavior method in the behavior method set corresponding to the character of at least one character acquired in the character set as the behavior of at least one virtual character in the virtual scene.
With reference to the first possible implementation manner of the first aspect, the embodiment of the present invention provides a third possible implementation manner of the first aspect, where the behavioral method includes an action behavior and a voice behavior.
With reference to the first aspect, the embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the virtual character behavior adjustment data includes:
character data characterizing characters of the virtual character;
weight data characterizing the probability of virtual character behavior.
In another aspect, an embodiment of the present invention provides a police training system based on virtual reality, including:
the behavior control module is used for generating behaviors of virtual characters in the virtual scene;
the data acquisition module is used for acquiring training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene;
the data analysis module is used for analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the training personnel;
and the behavior adjustment data generation module is used for generating virtual character behavior adjustment data for adjusting the behaviors of the virtual characters according to the abnormal data.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the behavior control module includes:
an animation controller for controlling action behaviors of virtual characters in the virtual scene;
and the voice controller is used for controlling the voice behaviors of the virtual characters in the virtual scene.
With reference to the first possible implementation manner of the second aspect, the embodiment of the present invention provides a second possible implementation manner of the second aspect, where the behavior control module further includes:
the weight system is used for adjusting action behavior weights and voice behavior weights of the virtual characters;
the animation controller controls the action behaviors of the virtual characters in the virtual scene according to the action behavior weights generated by the weight system, and the voice controller controls the voice behaviors of the virtual characters in the virtual scene according to the voice behavior weights generated by the weight system.
With reference to the first possible implementation manner of the second aspect, an embodiment of the present invention provides a third possible implementation manner of the second aspect, where the virtual reality based police training system further includes:
a character behavior module storing a character set including at least one character and a behavior method set including at least one behavior method corresponding to each character, and the animation controller calls at least one character in the character set according to the received character data, and the animation controller calls at least one behavior method in the behavior method set according to the action behavior weight generated by the weight system.
With reference to the second aspect, an embodiment of the present invention provides a fourth possible implementation manner of the second aspect, where the virtual reality based police training system further includes:
and the configuration file is written into the configuration file after the virtual character behavior adjustment data are generated, so that the behavior control module reads the virtual character behavior adjustment data in the configuration file to generate the behavior of the virtual character in the virtual scene.
According to the police training method based on virtual reality, through generating the behaviors of virtual characters in a virtual scene, collecting training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene, analyzing and processing the collected training data to obtain the abnormal data reflecting the abnormal behaviors of the training personnel, generating virtual character behavior adjustment data for adjusting the behaviors of the virtual characters according to the abnormal data, and adjusting the behaviors of the virtual characters according to the virtual character behavior adjustment data, the specific virtual character behaviors can be generated for the abnormal operations of the training personnel, the training personnel can be trained in a specific and guiding manner, the training effect is improved while the training interestingness is improved, and the technical problem that the training effect is poor due to the fact that the virtual character behaviors are solidified in the prior art is effectively solved.
Meanwhile, by setting the character set comprising at least one character and the behavior method set comprising at least one behavior method corresponding to each character, different behavior methods can be called in the behavior method set according to the virtual character behavior adjustment data, so that the original single and solidified training is changed into multi-interaction and multi-change training, the requirement of training is met, the method is fit to reality, multiple purposes of one scene and multiple interaction contents of one virtual character are realized, the scene construction cost and modeling cost are saved, the life cycle of the training scene is greatly prolonged, and the training cost is reduced by times.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a police training method based on virtual reality according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating execution of a police training method based on virtual reality according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a police training system based on virtual reality according to an embodiment of the present invention.
In the figure: 1. a behavior control module; 11. an animation controller; 12. a voice controller; 13. a weight system; 2. a data acquisition module; 3. a data analysis module; 4. a behavior adjustment data generation module; 5. a personality behavior module; 6. a configuration file.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
The police training method and system based on virtual reality, provided by the embodiment of the invention, are based on the virtual reality technology, namely, the training staff trains in virtual scenes by wearing VR equipment such as head-mounted displays (Head Mounted Display) and HMD helmet glasses. The method comprises the steps of establishing a virtual scene, namely establishing a virtual three-dimensional scene based on a real scene, wherein the virtual three-dimensional scene comprises a police training field and a police training field; then establishing a character model, a corresponding training instrument model and an article model; and finally, generating a virtual reality scene by using a computer, running on the corresponding equipment, and training in the scene by wearing the VR equipment. The following references are specific:
(1) Building a training scene: and establishing a virtual scene according to the real scene and the training requirement. And (3) modeling in a one-to-one mode according to a reality standard, adjusting the effects such as specific lighting effect mapping of a scene, and finally leading the effects into a 3D engine to render and bake to achieve a real environment effect.
(2) Modeling the corresponding warning: specific parameters of police equipment are collected, one-to-one modeling is conducted by taking the specific parameters as references, and details such as model materials, mapping and the like are adjusted so as to achieve a real effect.
(3) Modeling a character: modeling is carried out according to the real human body proportion and the human body structure, a character model with bones and bone animation is established, and the weight of bones to skins is adjusted, so that the bone animation is closer to the real effect. And (3) adjusting effects such as model material mapping, and finally guiding the effects into a 3D engine for use.
Example 1
As shown in fig. 1 and fig. 2, the present embodiment provides a police training method based on virtual reality, including:
step S101: generating behaviors of virtual characters in the virtual scene;
step S102: collecting training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene;
step S103: analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the trained personnel;
step S104: virtual character behavior adjustment data for adjusting the behavior of the virtual character is generated based on the abnormality data.
Wherein, before generating the behavior of the virtual character in the virtual scene, the method comprises the steps of:
a character set including at least one character and a behavior method set including at least one behavior method corresponding to each character are set.
The behavior method comprises action behaviors and voice behaviors, wherein the action behaviors are represented by actions of virtual characters, and the voice behaviors are represented by languages of the virtual characters.
The character set and the behavior method set can be set according to the training scenario, the character set is defined as enumeration, the corresponding character can be determined and called according to the enumeration value, the behavior method set is defined as enumeration, and the corresponding behavior method can be determined and called according to the enumeration value.
Each virtual character is provided with a character background and character characters under the training scenario planning, the character characters are limited according to the training scenario, each virtual character is not allowed to select a plurality of character characters, and the character characters which conflict with the character background setting are not allowed to be selected.
Wherein each character corresponds to one or more behavioral methods, the character can be a violent character, an subtle character, an inward character, a hidden danger character, a fragile character, and the like, each character comprises an attack method, a throwing method, an escape method, and the like, for example, when the character of the virtual character is called as the violent character, the behavioral behavior of the virtual character can be represented as an countermeasures, an attack action, and the like when the behavioral method of the virtual character is the attack method, and the voice behavior of the virtual character can be represented as a language outputting an overdriving language, an abuse, a command inaudible language, and the like.
Wherein, each character corresponds to one or more behavior methods, and a random algorithm or a neural network algorithm calculation is performed according to parameters set by the character background of the training scenario to obtain a corresponding behavior method.
Wherein, based on virtual reality's police service training, need design virtual reality police service training content, construct training content according to police service training standard and actual police service conditions. Writing in an expandable virtual character behavior template (namely, comprising character sets and behavior method sets), setting various behavior weights in the virtual character behavior template, and generating initial training content. The method comprises the following steps:
building training content: according to the standard and the demand of police training, a training script is constructed, training equipment is customized according to the training script, such as a customized training pistol, a one-to-one model pistol with position tracking and data transmission devices is customized, the training pistol is provided with a trigger which can be buckled, a cartridge clip is replaced, a switch is safe, and the like, and the real pistol operability interaction is realized.
The interactive contents can be designed according to the training scenario: writing in an expandable virtual character behavior template (namely, a character set and a behavior method set), and setting skeleton action weights of virtual characters, wherein the skeleton action weights are specifically as follows: and constructing an animation controller and a voice controller of the virtual character, binding the bones of the limbs of the virtual character with the animation controller, and adjusting the bone animation of each limb of the virtual character by the animation controller according to the input parameters. And (3) manufacturing a weight system, wherein the weight system can adjust the weights of the action behaviors and the voice behaviors of the virtual characters and can generate new weight data according to character characters. The weight system adjusts the action behavior weight of the virtual character, and performs detail adjustment according to human body construction of human engineering, so that the generated weight information accords with the human body motion law, and the action behavior of the virtual character is ensured not to exceed the achievable action limit of a real human body. The animation controller calls a behavior method from the behavior method set to control and coordinate the behavior of the virtual character according to the action weight generated by the weight system, and the voice controller calls the behavior method from the behavior method set to control and coordinate the voice behavior of the virtual character according to the voice action weight generated by the weight system. The configuration file is reserved, and the input parameters and weights of the animation controller can be modified according to the externally modified configuration file. And setting the animation initialized by the virtual character, the character of the initial virtual character, the action weight of the initial virtual character and the voice action weight of the initial virtual character according to the training script, and generating an initial configuration file and training content.
In step S101, generating a behavior of a virtual character in a virtual scene includes:
judging the training times of the current training personnel, if the training times of the current training personnel are greater than or equal to a preset threshold value, acquiring at least one character in a character set according to the virtual character behavior adjustment data, and acquiring at least one behavior method in a behavior method set corresponding to the character as the behavior of at least one virtual character in a virtual scene; the preset threshold may be one time, two times, or more than two times.
If the training times of the current training personnel are smaller than a preset threshold value, randomly acquiring at least one character in a character set, and acquiring at least one behavior method in a behavior method set corresponding to the character as the behavior of at least one virtual character in the virtual scene.
If the current training personnel is the initial training, the behaviors of the virtual characters in the virtual scene can be generated according to the set animation initialized by the virtual characters, the initial virtual character, the initial virtual character action weight and the initial virtual character voice action weight.
In step S102, collecting training data reflecting behaviors of the training personnel when the training personnel trains in the virtual scene, including:
(1) In the single person training, under the condition that whole body tracking motion capture is not used, when a participant interacts with the virtual character, the participant acquires the information such as the oral warning of the participant, the communication voice, the pointing of the police, the standard use of the police, whether the virtual character is hit or killed and the like.
(2) In single training, under the condition of using whole body tracking action capture, acquiring limb action information of a training person, acquiring action specification of the training person when the training person interacts with the virtual character, and acquiring information such as interactive voice of the training person and the virtual character, holding the posture of the police, pointing the police, using actions by the police, whether to strike or kill the virtual character by the limb and the like.
(3) In the multi-person training, under the condition that whole body tracking motion capture is not used, the station of each trained person is acquired, the multi-person cooperation is standardized, whether a firearm points to teammates, voice interaction is performed with virtual characters, cooperation is standardized when the virtual characters are uniformed, and information such as whether police are used for striking or killing the virtual characters is acquired.
(4) In the multi-person training, under the condition of capturing the whole body tracking action, the relative position information of the trained personnel is acquired, the multi-person cooperates with the formation, gestures used by the multi-person in cooperation, limb actions of the multi-person in cooperation, voices interacted with the virtual figures, the use condition of the firearm, whether the firearm points to teammates, the posture of holding the police, the use action of the police, whether the police is used for striking or killing the virtual figures, and the like are used.
After the data are collected, training data of each training person are generated, and the training data and training times are transmitted to a database for storage.
Wherein, the keywords of the interactive voice are obtained by using the voice recognition or other voice recognition tools of the Windows system. And obtaining the use parameters of VR input devices such as a VR handle, a VR position locator and the like, such as a handle trigger position, a handle orientation, a handle key state and the like, by using the corresponding VR SDK or developer authority.
In order to ensure training effect and training real experience, a training environment can be built in a real environment, if whole body tracking motion capture is needed, a positioning tracker is built, and some devices needed for training are placed on a planned training site according to a training scenario.
In step S103, the collected training data is analyzed and processed to obtain abnormal data reflecting abnormal behaviors of the trained personnel, which specifically includes:
before the training personnel starts training, accessing training data in a database, acquiring the training times of the training personnel, if the training times are greater than a preset threshold value, analyzing and processing the acquired training data to acquire abnormal data reflecting the abnormal behaviors of the training personnel, and continuously executing step S104. The preset threshold value can be calculated by using an AI algorithm, can be set as an adjustable variable, can be modified manually at the outside, or can be defined as a constant.
Analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the trained personnel, wherein the method specifically comprises the following steps: and (3) comparing the training data in the database piece by piece, removing repeated correct operation, carrying out sampling analysis on the abnormal operation (namely error operation) of the training personnel, analyzing the data piece by piece, and comparing the abnormal data of the multiple operation errors of the training personnel.
Optionally, in the analysis processing of the collected training data, the data comparison may be performed by using big data processing analysis to perform a certain AI calculation. And extracting each piece of data by adopting an algorithm, comparing to obtain the keyword or keyword information with the highest repetition rate, analyzing the keyword or keyword, and analyzing whether the data is correct operation data or incorrect operation abnormal data.
In step S104, the virtual character behavior adjustment data includes:
character data characterizing characters of the virtual character;
weight data characterizing the probability of virtual character behavior.
In step S104, virtual character behavior adjustment data for adjusting the behavior of the virtual character is generated from the anomaly data, specifically:
after obtaining the abnormal data reflecting the abnormal behaviors of the parametrics, generating new character data representing the character of the virtual character according to the abnormal data and the initial definition of the training script, inputting the character data and the abnormal data into a weight system, generating new weight data representing the probability of the behavior of the virtual character according to the character data and the abnormal data by the weight system, and writing the character data and the weight data into a configuration file.
When training of a training person starts, a configuration file is read, character data are input into an animation controller and a voice controller, after the animation controller receives the character data, a weighting system is called to access weight data in the configuration file, the weighting system returns action weights and voice action weights, the animation controller calls a action method from a action method set according to the action weights returned by the weighting system to control action behaviors of coordinated virtual characters, the voice controller calls the action method from the action method set according to the voice action weights returned by the weighting system to control the voice actions of coordinated virtual characters, so that new virtual character behaviors are obtained, the training starts is informed, and the training person starts new training.
For example: when the participant interacts with the virtual character, the participant extracts the voice keywords, which relate to the voice keywords such as the virtual character, the guide words which are unfavorable for solving the training event, and the like. The abnormal data obtained by analyzing and processing the training data comprises voice data reflecting the frightened virtual character, guide words for solving the adverse training event and the like, virtual character behavior adjustment data for adjusting the behavior of the virtual character is generated according to the abnormal data and is written into a configuration file, after a training person starts new training and reading the configuration file, character characters of the generated virtual character are biased to the violent character, action behaviors are biased to the action of bias, the voice behaviors are biased to the interaction voice of bias so as to induce the training person to expose more error operations, and weak items of the training person can be reflected in time.
As can be seen from the foregoing, according to the virtual reality-based police training method provided by the embodiment of the present invention, by collecting training data reflecting the behavior of a participant during training in a virtual scene, the training data and the training times in a database may be accessed before the participant starts training, when the current participant is first trained, the behavior of the participant in the virtual scene may be generated according to the set animation initialized by the participant, the initial virtual character, the initial virtual character action weight and the initial virtual character voice action weight, and if the training times of the current participant is greater than or equal to a preset threshold, the collected training data may be analyzed to obtain abnormal data reflecting the abnormal behavior of the participant, virtual character behavior adjustment data for adjusting the behavior of the participant may be generated according to the abnormal data, and the virtual character may be adjusted according to the virtual character behavior adjustment data, so that the participant may be trained in a targeted virtual character behavior may be generated for the abnormal operation of the participant. Through probably producing the virtual character action of completely different under same virtual scene and environment, increased the effect of training when having promoted the interest of training, can prevent to lead to the person of taking care of to train to produce training fatigue because of virtual character action templet, solved the technical problem that virtual character action solidification leads to the training effect poor among the prior art effectively. Meanwhile, by setting the character set comprising at least one character and the behavior method set comprising at least one behavior method corresponding to each character, different behavior methods can be called in the behavior method set according to the virtual character behavior adjustment data, so that the original single and solidified training is changed into multi-interaction and multi-change training, the requirement of training is met, the method is fit to reality, multiple purposes of one scene and multiple interaction contents of one virtual character are realized, the scene construction cost and modeling cost are saved, the life cycle of the training scene is greatly prolonged, and the training cost is reduced by times.
Example 2
As shown in fig. 3, this embodiment provides a police training system based on virtual reality, including:
the behavior control module is used for generating behaviors of virtual characters in the virtual scene;
the data acquisition module is used for acquiring training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene;
the data analysis module is used for analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the training personnel;
the behavior adjustment data generation module is used for generating virtual character behavior adjustment data for adjusting the behaviors of the virtual characters according to the abnormal data, wherein the virtual character behavior adjustment data comprise character data representing characters of the virtual characters and weight data representing the behaviors of the virtual characters.
Wherein, the behavior control module includes:
an animation controller for controlling action behaviors of virtual characters in the virtual scene;
and the voice controller is used for controlling the voice behaviors of the virtual characters in the virtual scene.
Wherein the behavior control module further comprises:
the weight system is used for adjusting action behavior weights and voice behavior weights of the virtual characters;
the animation controller controls the action behaviors of the virtual characters in the virtual scene according to the action behavior weights generated by the weight system, and the voice controller controls the voice behaviors of the virtual characters in the virtual scene according to the voice behavior weights generated by the weight system.
Further, the police training system based on virtual reality further comprises:
the character behavior module is used for storing character sets comprising at least one character and behavior method sets comprising at least one behavior method corresponding to each character, so that the animation controller can call the at least one character in the character sets according to the received character data, and the animation controller can call the at least one behavior method in the behavior method sets according to the action behavior weights generated by the weight system. The character behavior module can also store the animation initialized by the virtual character, the character of the initial virtual character, the action behavior weight of the initial virtual character and the voice behavior weight of the initial virtual character.
Further, the police training system based on virtual reality further comprises:
the configuration file is written into after the virtual character behavior adjustment data is generated, so that the behavior control module can read the virtual character behavior adjustment data in the configuration file to generate the behavior of the virtual character in the virtual scene.
And when the police service training system based on virtual reality defines corresponding actual combat practical training, a training scenario is formulated according to corresponding training requirements. When the training staff uses the police training system based on virtual reality to train, the training data and the training times in the database are accessed before the training of the training staff starts. If the current training personnel is the primary training, generating the behaviors of the virtual characters in the virtual scene according to the animation initialized by the virtual characters, the character of the initial virtual characters, the action weights of the initial virtual characters and the voice behavior weights of the initial virtual characters, which are set in the police training system based on the virtual reality, and starting the primary training by the training personnel. If the training times of the current training personnel are smaller than the preset threshold value, the animation controller randomly generates the action behaviors of the virtual characters, and the voice controller randomly generates the voice behaviors of the virtual characters. In the training process of the training personnel, the data acquisition module acquires training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene, and stores the training data and training times into the database. If the training times of the current training personnel are greater than or equal to a preset threshold value, analyzing and processing the acquired training data to obtain abnormal data reflecting abnormal behaviors of the training personnel, generating new character data representing the character of the virtual character according to the abnormal data and the initial definition of the training scenario by a behavior adjustment data generation module, inputting the character data and the abnormal data into a weight system, generating new weight data representing the behavior probability of the virtual character by a weight system according to the character data and the abnormal data, writing the character data and the weight data into a configuration file, reading the configuration file by a behavior control module, inputting the character data into an animation controller and a voice controller, calling the weight data in the configuration file by the animation controller, returning the action weight and the voice action weight by the weight system, calling the action method by the animation controller according to the action weight returned by the weight system, controlling the action of the coordinated virtual character according to the action weight returned by the action method, and calling the action method by the voice controller according to the voice action weight returned by the weight system, so that the new training of the virtual character is started, namely, starting the new training of the virtual character is started. Therefore, the method can generate targeted virtual character behaviors aiming at abnormal operations of the participant, and can train the participant in a targeted and guiding way. According to the police training system based on virtual reality, which is provided by the embodiment of the invention, completely different virtual character behaviors can be generated in the same virtual scene and environment, so that the training interestingness is improved, the training effect is increased, training fatigue of the participant due to templatization of the virtual character behaviors can be prevented, and the technical problem of poor training effect caused by solidification of the virtual character behaviors in the prior art is effectively solved. Meanwhile, the character behavior module and the weight system are arranged, each character grid corresponds to at least one behavior method, different behavior methods can be called in a behavior method set according to character data and weight data, so that the original single and solidified training is changed into multi-interaction and multi-variation training, the requirement of training is met, the reality is fitted, multiple purposes of one scene and multiple interaction contents of one virtual character are realized, the scene construction cost is saved, the modeling cost is greatly prolonged, the life cycle of the training scene is greatly prolonged, and the training cost is reduced by times.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein. The police training system based on virtual reality provided by the embodiment of the invention has the same implementation principle and the same technical effects as those of the embodiment of the method, and for the sake of brief description, the corresponding contents in the embodiment of the method can be referred to for the parts of the embodiment of the system which are not mentioned.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other manners as well. The system embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-0nlyMemory (ROM), a random access memory (RAM, randomAccessMemory), a magnetic disk, or an optical disk, or other various media capable of storing program codes. It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. The police training method based on virtual reality is characterized by comprising the following steps of:
generating behaviors of virtual characters in the virtual scene;
collecting training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene;
analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the training personnel, wherein the abnormal data specifically comprises the following steps: comparing the training data in the database one by one, removing repeated correct operation, sampling and analyzing the abnormal operation or the error operation of the training personnel, analyzing the data one by one, and comparing to obtain abnormal data of multiple operation errors of the training personnel;
and generating virtual character behavior adjustment data for adjusting the behavior of the virtual character according to the abnormal data to obtain the behavior of the new virtual character.
2. The virtual reality-based police training method of claim 1, comprising, prior to the generating the behavior of the virtual character in the virtual scene:
a character set including at least one character and a behavior method set including at least one behavior method corresponding to each character are set.
3. The virtual reality-based police service training method of claim 2, wherein the generating behavior of the virtual character in the virtual scene comprises:
if the training times of the current training personnel are greater than or equal to a preset threshold value, acquiring at least one character in the character set according to the virtual character behavior adjustment data, and acquiring at least one behavior method in the behavior method set corresponding to the character of at least one character acquired in the character set as the behavior of at least one virtual character in a virtual scene;
if the training times of the current training personnel are smaller than a preset threshold value, randomly acquiring at least one character in the character set, and randomly acquiring at least one behavior method in the behavior method set corresponding to the character of at least one character acquired in the character set as the behavior of at least one virtual character in the virtual scene.
4. The virtual reality-based police training method of claim 2, wherein:
the behavioral approach includes action behavior and voice behavior.
5. The virtual reality-based police service training method of claim 1, wherein the virtual character behavior adjustment data comprises:
character data characterizing characters of the virtual character;
weight data characterizing the probability of virtual character behavior.
6. Police service training system based on virtual reality, characterized by comprising:
the behavior control module is used for generating behaviors of virtual characters in the virtual scene;
the data acquisition module is used for acquiring training data reflecting the behaviors of the training personnel when the training personnel train in the virtual scene;
the data analysis module is used for analyzing and processing the acquired training data to obtain abnormal data reflecting the abnormal behaviors of the training personnel, and specifically comprises the following steps: comparing the training data in the database one by one, removing repeated correct operation, sampling and analyzing the abnormal operation or the error operation of the training personnel, analyzing the data one by one, and comparing to obtain abnormal data of multiple operation errors of the training personnel;
and the behavior adjustment data generation module is used for generating virtual character behavior adjustment data for adjusting the behaviors of the virtual characters according to the abnormal data to obtain the new behaviors of the virtual characters.
7. The virtual reality-based police training system of claim 6, wherein the behavior control module comprises:
an animation controller for controlling action behaviors of virtual characters in the virtual scene;
and the voice controller is used for controlling the voice behaviors of the virtual characters in the virtual scene.
8. The virtual reality-based police training system of claim 7, wherein the behavior control module further comprises:
the weight system is used for adjusting action behavior weights and voice behavior weights of the virtual characters;
the animation controller controls the action behaviors of the virtual characters in the virtual scene according to the action behavior weights generated by the weight system, and the voice controller controls the voice behaviors of the virtual characters in the virtual scene according to the voice behavior weights generated by the weight system.
9. The virtual reality-based police training system of claim 8, further comprising:
a character behavior module storing a character set including at least one character and a behavior method set including at least one behavior method corresponding to each character, and the animation controller calls at least one character in the character set according to the received character data, and the animation controller calls at least one behavior method in the behavior method set according to the action behavior weight generated by the weight system.
10. The virtual reality-based police training system of claim 6, further comprising:
and the configuration file is written into the configuration file after the virtual character behavior adjustment data are generated, so that the behavior control module reads the virtual character behavior adjustment data in the configuration file to generate the behavior of the virtual character in the virtual scene.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911358168.9A CN111124125B (en) | 2019-12-25 | 2019-12-25 | Police service training method and system based on virtual reality |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911358168.9A CN111124125B (en) | 2019-12-25 | 2019-12-25 | Police service training method and system based on virtual reality |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111124125A CN111124125A (en) | 2020-05-08 |
CN111124125B true CN111124125B (en) | 2023-06-20 |
Family
ID=70502288
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911358168.9A Active CN111124125B (en) | 2019-12-25 | 2019-12-25 | Police service training method and system based on virtual reality |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111124125B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2761325C1 (en) * | 2020-09-18 | 2021-12-07 | Публичное Акционерное Общество "Сбербанк России" (Пао Сбербанк) | Interactive simulator for training using virtual reality |
CN113655889B (en) * | 2021-09-01 | 2023-08-08 | 北京字跳网络技术有限公司 | Virtual character control method, device and computer storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020082077A1 (en) * | 2000-12-26 | 2002-06-27 | Johnson Douglas R. | Interactive video game system with characters that evolve physical and cognitive traits |
JP2002366021A (en) * | 2001-06-13 | 2002-12-20 | Kawasaki Heavy Ind Ltd | Virtual field training device |
WO2012026681A2 (en) * | 2010-08-24 | 2012-03-01 | Yun Sang Bum | Virtual reality martial arts system using a network, and method for controlling same |
CN104317196A (en) * | 2014-09-29 | 2015-01-28 | 华南理工大学 | Virtual reality-based upper limb rehabilitation training robot control method |
CN106548675A (en) * | 2016-11-08 | 2017-03-29 | 湖南拓视觉信息技术有限公司 | Virtual military training method and device |
CN108489330A (en) * | 2018-02-08 | 2018-09-04 | 乌鲁木齐涅墨西斯网络科技有限公司 | Police more people's interactive virtual reality qualification course training systems and application method |
CN108961893A (en) * | 2018-05-11 | 2018-12-07 | 浙江引力波网络科技有限公司 | A kind of virtual reality interactive simulation experience system based on VR equipment |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105374251A (en) * | 2015-11-12 | 2016-03-02 | 中国矿业大学(北京) | Mine virtual reality training system based on immersion type input and output equipment |
CN105654806A (en) * | 2016-03-22 | 2016-06-08 | 中国特种设备检测研究院 | Simulation training and checking system and method for pipe leakage accidents |
CN108268128A (en) * | 2017-01-03 | 2018-07-10 | 天津港焦炭码头有限公司 | A kind of safety in production emergency preplan 3DVR virtual reality drilling systems |
CN206891262U (en) * | 2017-05-05 | 2018-01-16 | 张崇 | A kind of fixed duties man-machine interaction virtual training system |
CN207895727U (en) * | 2017-08-25 | 2018-09-21 | 北京卓华信息技术股份有限公司 | Make exercising system |
CN108172059A (en) * | 2018-02-28 | 2018-06-15 | 高振峰 | One kind warns tool weapons training method based on virtual reality mode police |
US11227439B2 (en) * | 2018-03-29 | 2022-01-18 | Eon Reality, Inc. | Systems and methods for multi-user virtual reality remote training |
CN109298779B (en) * | 2018-08-10 | 2021-10-12 | 济南奥维信息科技有限公司济宁分公司 | Virtual training system and method based on virtual agent interaction |
-
2019
- 2019-12-25 CN CN201911358168.9A patent/CN111124125B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020082077A1 (en) * | 2000-12-26 | 2002-06-27 | Johnson Douglas R. | Interactive video game system with characters that evolve physical and cognitive traits |
JP2002366021A (en) * | 2001-06-13 | 2002-12-20 | Kawasaki Heavy Ind Ltd | Virtual field training device |
WO2012026681A2 (en) * | 2010-08-24 | 2012-03-01 | Yun Sang Bum | Virtual reality martial arts system using a network, and method for controlling same |
CN104317196A (en) * | 2014-09-29 | 2015-01-28 | 华南理工大学 | Virtual reality-based upper limb rehabilitation training robot control method |
CN106548675A (en) * | 2016-11-08 | 2017-03-29 | 湖南拓视觉信息技术有限公司 | Virtual military training method and device |
CN108489330A (en) * | 2018-02-08 | 2018-09-04 | 乌鲁木齐涅墨西斯网络科技有限公司 | Police more people's interactive virtual reality qualification course training systems and application method |
CN108961893A (en) * | 2018-05-11 | 2018-12-07 | 浙江引力波网络科技有限公司 | A kind of virtual reality interactive simulation experience system based on VR equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111124125A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105122249B (en) | Decision making using algorithmic or programmatic analysis | |
Yeo et al. | Eyecatch: Simulating visuomotor coordination for object interception | |
CN115769234A (en) | Template-based generation of 3D object mesh from 2D images | |
CN111124125B (en) | Police service training method and system based on virtual reality | |
KR20170027705A (en) | Methods and systems of handling a dialog with a robot | |
CN113362671B (en) | Marine nuclear emergency drilling simulation system and drilling method | |
US10922850B1 (en) | Augmented reality system for persona simulation | |
CN206891262U (en) | A kind of fixed duties man-machine interaction virtual training system | |
CN110428683A (en) | Safety training method and device based on VR | |
WO2018173383A1 (en) | Information processing device, information processing method, and program | |
WO2022241047A1 (en) | Equipment detection using a wearable device | |
CN107396144A (en) | A kind of barrage distribution method and device | |
CN105975072A (en) | Method, device and system for identifying gesture movement | |
RU2761325C1 (en) | Interactive simulator for training using virtual reality | |
Huang et al. | Surprisal does not explain syntactic disambiguation difficulty: evidence from a large-scale benchmark | |
US20230214007A1 (en) | Virtual reality de-escalation tool for delivering electronic impulses to targets | |
WO2017216043A1 (en) | A movement rehabilitation system and method | |
US20130268255A1 (en) | Multiple-entity scenario simulation incorporating human interaction | |
Kataria et al. | Data prediction of optical head tracking using self healing neural model for head mounted display | |
CN117392892B (en) | XR-based simulated grenade training method, system, equipment and storage medium | |
CN111199668A (en) | Public security law enforcement standard teaching system and method based on virtual reality interaction | |
CN116312116A (en) | Exercise method and system for handling physical protection emergency | |
US20220347572A1 (en) | Method and apparatus for facilitating a sequence of events along rails of a battle field via a computer simulation | |
US20220092498A1 (en) | Virtual reality simulation activity scheduling | |
KR101963850B1 (en) | Apparatus and method for relaxation of game addiction |
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 |