CN110833691A - Security protection method, system and readable storage medium based on AR game - Google Patents

Security protection method, system and readable storage medium based on AR game Download PDF

Info

Publication number
CN110833691A
CN110833691A CN201911042242.6A CN201911042242A CN110833691A CN 110833691 A CN110833691 A CN 110833691A CN 201911042242 A CN201911042242 A CN 201911042242A CN 110833691 A CN110833691 A CN 110833691A
Authority
CN
China
Prior art keywords
game
terminal equipment
user
current position
security protection
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.)
Withdrawn
Application number
CN201911042242.6A
Other languages
Chinese (zh)
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.)
Foshan Ai Wate Intelligent Technology Co Ltd
Original Assignee
Foshan Ai Wate Intelligent 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 Foshan Ai Wate Intelligent Technology Co Ltd filed Critical Foshan Ai Wate Intelligent Technology Co Ltd
Priority to CN201911042242.6A priority Critical patent/CN110833691A/en
Publication of CN110833691A publication Critical patent/CN110833691A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/216Input arrangements for video game devices characterised by their sensors, purposes or types using geographical information, e.g. location of the game device or player using GPS
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a security protection method, a system and a readable storage medium based on an AR game, wherein the method comprises the following steps: constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game; adopting a GPS positioning technology to carry out real-time positioning to obtain the current position of the terminal equipment; judging whether the current position of the terminal equipment falls into a dangerous area or not; and if the alarm signal falls into the alarm area, sending an alarm signal through the terminal equipment to prompt the attention of the user. The current position of the terminal equipment is monitored in real time through a GPS positioning technology, whether the geographic environment factors of the current position are beneficial to the user to carry out AR game activities or not is judged, and when the geographic environment factors of the current position are not beneficial to the user to carry out the AR game activities, the terminal equipment can timely warn the user, so that potential safety hazards brought to the user by the adverse geographic environment factors are effectively avoided.

Description

Security protection method, system and readable storage medium based on AR game
Technical Field
The invention relates to the technical field of augmented reality, in particular to a safety protection method and system based on an AR game and a readable storage medium.
Background
The augmented reality technology (i.e., AR technology) is a technology that enables a virtual world sleeve to interact in the real world on a screen, and compared to the virtual reality technology, the augmented reality technology can bring about a sensory experience close to the real world.
The AR game applies the augmented reality technology to the game, can construct a more realistic game situation in the game, and brings a very realistic game experience to a player. The AR game increases the virtual scene of the traditional game combined with the real scene, so that the game is no longer limited to the display, but the game interface is overlaid in the real object, thus greatly enhancing the operability and interactivity of the game. The user can operate the game only through simple body actions such as eye gazing or gesture pointing and the like. The AR game requires a player to perform necessary actions to complete the game operation, and the game scene is not fixed to a single screen or scene, so that when the user performs a certain action, the AR game system is required to respond to the action of the user in time, obtain a correct request, and feed back a correct result to the user. Thus, the game experience of the user can be guaranteed. The real-time synchronization of the virtual world and the real world enables the game playability and the interestingness of the game to be greatly enhanced, and therefore users can obtain better game interaction.
The implementation of the AR game often requires a certain device support, and common devices include a mobile phone, a tablet computer, and the like. However, when users use these devices to experience AR games, users usually focus their attention on the virtual scene displayed on the devices, but easily ignore the view of the surrounding real environment, and once the surrounding environment is not good for the users to perform AR game tasks, there is a possibility that certain safety risk may be caused to the users.
Disclosure of Invention
In order to solve at least one technical problem, the invention provides a security protection method, a system and a readable storage medium based on an AR game.
In order to achieve the above object, a first aspect of the present invention provides a security protection method based on an AR game, the method including:
constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game;
adopting a GPS positioning technology to carry out real-time positioning to obtain the current position of the terminal equipment;
judging whether the current position of the terminal equipment falls into a dangerous area or not;
and if the alarm signal falls into the alarm area, sending an alarm signal through the terminal equipment to prompt the attention of the user.
In this scheme, after determining whether the current position of the terminal device falls into a dangerous area, the method further includes:
if not, judging whether a dangerous area exists in a preset distance range around the current position of the terminal equipment;
and if the alarm signal exists, the alarm signal is sent out through the terminal equipment to prompt the attention of the user.
In this scheme, after determining whether a dangerous area exists within a preset distance range around the current position of the terminal device, the method further includes:
if so, judging whether the handheld direction of the terminal equipment points to the dangerous area;
and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
In this scheme, after determining whether a dangerous area exists within a preset distance range around the current position of the terminal device, the method further includes:
if the terminal equipment exists, judging whether the extension line of the historical moving path of the terminal equipment points to the dangerous area;
and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
In this scheme, establish the virtual scene of AR recreation through terminal equipment, specifically include:
adopting terminal equipment to shoot a video stream of a real scene and converting the video stream into a digital image;
recognizing preset markers from the digital image through an image processing technology;
generating a corresponding virtual object according to the characteristic information of the marker;
and synthesizing the virtual object on the digital image according to the position relation between the virtual object and the marker to form a synthesized image.
In the scheme, the dangerous area is any one or more of a motor vehicle lane area, a river area, a lake area, a cliff area and a landslide area.
The second aspect of the present invention further provides a security protection system based on an AR game, including: the security protection method based on the AR game comprises a memory and a processor, wherein the memory comprises a security protection method program based on the AR game, and when the security protection method program based on the AR game is executed by the processor, the following steps are realized:
constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game;
adopting a GPS positioning technology to carry out real-time positioning to obtain the current position of the terminal equipment;
judging whether the current position of the terminal equipment falls into a dangerous area or not;
and if the alarm signal falls into the alarm area, sending an alarm signal through the terminal equipment to prompt the attention of the user.
In this embodiment, when executed by the processor, the AR game-based security protection method further includes:
if the current position of the terminal equipment does not fall into the dangerous area, judging whether the dangerous area exists in a preset distance range around the current position of the terminal equipment or not;
and if the alarm signal exists, the alarm signal is sent out through the terminal equipment to prompt the attention of the user.
In this scheme, establish the virtual scene of AR recreation through terminal equipment, specifically include:
adopting terminal equipment to shoot a video stream of a real scene and converting the video stream into a digital image;
recognizing preset markers from the digital image through an image processing technology;
generating a corresponding virtual object according to the characteristic information of the marker;
and synthesizing the virtual object on the digital image according to the position relation between the virtual object and the marker to form a synthesized image.
The third aspect of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a program of a security protection method based on an AR game, and when the program of the security protection method based on the AR game is executed by a processor, the steps of the security protection method based on the AR game are implemented.
According to the safety protection method, system and readable storage medium based on AR game, the current position of the terminal device is monitored in real time through a GPS positioning technology, whether the geographic environment factors of the current position are beneficial to the user to conduct AR game activities is judged, and when the geographic environment factors of the current position are not beneficial to the user to conduct AR game activities, the user can be timely warned through the terminal device, so that potential safety hazards brought to the user by the adverse geographic environment factors are effectively avoided, and the life and property safety of the user in the AR game experience process is further guaranteed.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a flow chart of a security protection method based on AR game of the present invention;
FIG. 2 is a flow chart of a virtual scene construction method of the AR game of the present invention;
FIG. 3 shows a block diagram of an AR game based security system of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited by the specific embodiments disclosed below.
FIG. 1 is a flow chart of the security protection method based on AR game of the present invention.
As shown in fig. 1, a first aspect of the present invention provides a security protection method based on an AR game, the method including:
s102, constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game;
s104, positioning in real time by adopting a GPS positioning technology to obtain the current position of the terminal equipment;
s106, judging whether the current position of the terminal equipment falls into a dangerous area or not;
and S108, if the alarm signal falls into the alarm signal, the terminal equipment sends out an alarm signal to prompt the user to pay attention.
The terminal device may be a communication device such as a mobile phone, a PC, a PAD, and the like.
The dangerous area can be one or more of a motor vehicle lane area, a river area, a lake area, a cliff area and a landslide area. But is not limited thereto.
According to the embodiment of the present invention, the sending of the warning signal by the terminal device specifically includes:
and displaying a corresponding warning mark on a screen of the terminal equipment, wherein the warning mark is matched with the dangerous area.
Specifically, the warning mark may continuously appear on the screen of the terminal device, or may flash at a certain frequency on the screen of the terminal device. It can be understood that, since the user stares at the screen of the terminal device and views the composite image all the time in the process of immersing in the AR game, the situation of the real environment cannot be perceived, and once the real environment is not favorable for the user to perform the AR game, the user cannot perceive the situation, which may bring potential safety hazards to the user. According to the invention, the warning mark is displayed on the screen of the terminal equipment, so that the user can be reminded of paying attention to the dangerous area in time while the user experience of the AR game is not influenced, and the potential safety hazard is avoided.
It should be noted that the warning signs may include a collision warning sign, a drowning warning sign, a falling warning sign, a natural disaster warning sign, and the like. The type of the warning mark can be matched with the type of the dangerous area, and specifically, when the current position of the terminal equipment is judged to fall into a motor vehicle lane area, a collision warning mark can be displayed on a screen of the terminal equipment; when the current position of the terminal equipment is judged to fall into a river or lake area, a drowning warning sign can be displayed on a screen of the terminal equipment.
According to the embodiment of the present invention, the sending of the warning signal by the terminal device specifically includes:
and displaying a corresponding warning mark on a screen of the terminal equipment, and generating warning sound and/or vibration signals.
It should be noted that in some scenarios, such as an environment with bright outdoor light, displaying a warning mark on the screen of the terminal device may not be easily visible to the user; here, the present invention may also cause the terminal device to generate a warning sound and/or vibration signal and further alert the user to the dangerous area both audibly and tactilely.
According to the embodiment of the present invention, after determining whether the current position of the terminal device falls into a dangerous area, the method further includes:
if not, judging whether a dangerous area exists in a preset distance range around the current position of the terminal equipment;
and if the alarm signal exists, the alarm signal is sent out through the terminal equipment to prompt the attention of the user.
It should be noted that although the current position of the terminal device does not fall into the dangerous area, because the dangerous area exists near the terminal device, based on the activity attribute of the AR game, that is, when the user experiences the AR game, the user needs to continuously move the terminal device to find the target virtual object, and in this process, the user moves to the dangerous area with a certain probability, therefore, the present invention prompts the user to cope with the current or even the future dangerous situation by monitoring whether the current position of the terminal device falls into the dangerous area and whether the dangerous area exists within the preset distance range around the current position in real time, thereby effectively reducing the potential safety hazard brought to the user by the AR game.
It should be noted that, when the current position of the terminal device does not fall into a dangerous area and there is no dangerous area in a preset distance range around the current position, the terminal device is not prompted, so as to avoid affecting the AR game experience of the user.
According to an embodiment of the present invention, after determining whether a dangerous area exists within a preset distance range around the current position of the terminal device, the method further includes:
if so, judging whether the handheld direction of the terminal equipment points to the dangerous area;
and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
The gyroscope built in the terminal device determines a handheld posture of the terminal device through the gyroscope, wherein the handheld posture is a posture of the terminal device held by a user. And the handheld direction of the terminal equipment can be known according to the handheld gesture. Taking a mobile phone as an example, when a user holds the mobile phone, the length direction of the mobile phone is the holding direction. Specifically, when the handheld direction is the east-west direction, it is indicated that the user is facing west at the moment, if it is determined that a dangerous area exists within a preset distance range in the west direction from the current position of the terminal device, it can be presumed that the user is likely to move towards the dangerous area in the west direction according to the current orientation of the user, and at the moment, the terminal device can timely remind the user of entering the dangerous area, so that potential safety hazards brought to the user by the AR game are further reduced.
It should be noted that, when the holding direction of the terminal device is not pointing to the dangerous area, the terminal device is not prompted, so as to avoid affecting the AR game experience of the user.
According to an embodiment of the present invention, after determining whether a dangerous area exists within a preset distance range around the current position of the terminal device, the method further includes:
if the terminal equipment exists, judging whether the extension line of the historical moving path of the terminal equipment points to the dangerous area;
and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
It should be noted that, when it is determined that a dangerous area exists within a preset distance range around the current position of the terminal device, the position of the current terminal device relative to the dangerous area may be further determined, then a future moving direction (i.e., an extension line direction of the historical moving path) is presumed according to the historical moving path of the terminal device, then it is determined whether the moving direction points to the dangerous area, and if so, the terminal device may prompt the user to pay attention to the possibility of entering the dangerous area, so as to further reduce the potential safety hazard brought to the user by the AR game.
It should be noted that, when the extension line of the historical movement path of the terminal device does not point to the dangerous area, the terminal device is not prompted, so as to avoid affecting the experience of the AR game of the user.
As shown in fig. 2, constructing a virtual scene of an AR game through a terminal device specifically includes:
s202, adopting terminal equipment to shoot a video stream of a real scene and converting the video stream into a digital image;
s204, recognizing a preset marker from the digital image through an image processing technology;
s206, generating a corresponding virtual object according to the characteristic information of the marker;
s208, synthesizing the virtual object on the digital image according to the position relation between the virtual object and the marker to form a synthesized image.
In the process of realizing augmented reality, a video stream of a real scene acquired by a terminal device needs to be converted into a digital image, then a preset marker is identified through an image processing technology, and after the marker is identified, the position and the direction of a three-dimensional virtual object needing to be added in an augmented reality environment are determined by an augmented reality program by taking the marker as a reference and combining a positioning technology. And determining basic information of the three-dimensional virtual object to be added, generating the virtual object, and placing the virtual object at the correct position according to the position of the marker by using a program.
The feature information of the marker may include a type of the marker and a coordinate position of the marker. The species of markers may include fire hydrants, street lights, trees, bus stops, and the like. Since there may be many markers with the same shape, in order to distinguish the markers with the same shape, the invention may combine the positioning technology to distinguish different coordinate positions of the markers with the same shape, and since the coordinate position of each marker is unique, the coordinate position of the marker may be used as a reference to add a virtual object in the augmented reality environment.
According to the embodiment of the present invention, generating a corresponding virtual object according to the feature information of the marker specifically includes:
matching a virtual object sample corresponding to the characteristic information of the marker in the database according to the characteristic information of the marker;
and generating a corresponding virtual object according to the matched virtual object sample.
It should be noted that, a plurality of virtual object samples are prestored in the database, and the plurality of virtual object samples can be set according to the AR game requirements. Specifically, a binding relationship is established between the marker and the virtual object sample. According to the requirement of the AR game, different markers can correspond to the same virtual object sample, and can also correspond to different virtual object samples respectively.
It should be noted that, the size of each virtual object sample in the database is the same, but since the terminal devices used by each user are different, when the corresponding virtual object sample is matched, a virtual object with different size can be generated to different terminal devices according to the virtual object sample.
FIG. 3 shows a block diagram of an AR game based security system of the present invention.
As shown in fig. 3, the second aspect of the present invention further proposes an AR game-based security system 3, where the AR game-based security system 3 includes: a memory 31 and a processor 32, wherein the memory 31 includes a program of the AR game based security protection method, and when executed by the processor 32, the program of the AR game based security protection method implements the following steps:
constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game;
adopting a GPS positioning technology to carry out real-time positioning to obtain the current position of the terminal equipment;
judging whether the current position of the terminal equipment falls into a dangerous area or not;
and if the alarm signal falls into the alarm area, sending an alarm signal through the terminal equipment to prompt the attention of the user.
It should be noted that the Processor may be a Central Processing Unit (CPU), other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The terminal device may be a communication device such as a mobile phone, a PC, a PAD, and the like.
The dangerous area can be one or more of a motor vehicle lane area, a river area, a lake area, a cliff area and a landslide area. But is not limited thereto.
According to the embodiment of the present invention, the sending of the warning signal by the terminal device specifically includes:
and displaying a corresponding warning mark on a screen of the terminal equipment, wherein the warning mark is matched with the dangerous area.
Specifically, the warning mark may continuously appear on the screen of the terminal device, or may flash at a certain frequency on the screen of the terminal device. It can be understood that, since the user stares at the screen of the terminal device and views the composite image all the time in the process of immersing in the AR game, the situation of the real environment cannot be perceived, and once the real environment is not favorable for the user to perform the AR game, the user cannot perceive the situation, which may bring potential safety hazards to the user. According to the invention, the warning mark is displayed on the screen of the terminal equipment, so that the user can be reminded of paying attention to the dangerous area in time while the user experience of the AR game is not influenced, and the potential safety hazard is avoided.
It should be noted that the warning signs may include a collision warning sign, a drowning warning sign, a falling warning sign, a natural disaster warning sign, and the like. The type of the warning mark can be matched with the type of the dangerous area, and specifically, when the current position of the terminal equipment is judged to fall into a motor vehicle lane area, a collision warning mark can be displayed on a screen of the terminal equipment; when the current position of the terminal equipment is judged to fall into a river or lake area, a drowning warning sign can be displayed on a screen of the terminal equipment.
According to the embodiment of the present invention, the sending of the warning signal by the terminal device specifically includes:
and displaying a corresponding warning mark on a screen of the terminal equipment, and generating warning sound and/or vibration signals.
It should be noted that in some scenarios, such as an environment with bright outdoor light, displaying a warning mark on the screen of the terminal device may not be easily visible to the user; here, the present invention may also cause the terminal device to generate a warning sound and/or vibration signal and further alert the user to the dangerous area both audibly and tactilely.
According to the embodiment of the invention, when the current position of the terminal equipment is judged not to fall into a dangerous area, whether the dangerous area exists in a preset distance range around the current position of the terminal equipment is continuously judged; and if the alarm signal exists, the alarm signal is sent out through the terminal equipment to prompt the attention of the user.
It should be noted that although the current position of the terminal device does not fall into the dangerous area, because the dangerous area exists near the terminal device, based on the activity attribute of the AR game, that is, when the user experiences the AR game, the user needs to continuously move the terminal device to find the target virtual object, and in this process, the user moves to the dangerous area with a certain probability, therefore, the present invention prompts the user to cope with the current or even the future dangerous situation by monitoring whether the current position of the terminal device falls into the dangerous area and whether the dangerous area exists within the preset distance range around the current position in real time, thereby effectively reducing the potential safety hazard brought to the user by the AR game.
It should be noted that, when the current position of the terminal device does not fall into a dangerous area and there is no dangerous area in a preset distance range around the current position, the terminal device is not prompted, so as to avoid affecting the AR game experience of the user.
According to the embodiment of the invention, when a dangerous area exists in a preset distance range around the current position of the terminal equipment, whether the handheld direction of the terminal equipment points to the dangerous area is continuously judged; and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
The gyroscope built in the terminal device determines a handheld posture of the terminal device through the gyroscope, wherein the handheld posture is a posture of the terminal device held by a user. And the handheld direction of the terminal equipment can be known according to the handheld gesture. Taking a mobile phone as an example, when a user holds the mobile phone, the length direction of the mobile phone is the holding direction. Specifically, when the handheld direction is the east-west direction, it is indicated that the user is facing west at the moment, if it is determined that a dangerous area exists within a preset distance range in the west direction from the current position of the terminal device, it can be presumed that the user is likely to move towards the dangerous area in the west direction according to the current orientation of the user, and at the moment, the terminal device can timely remind the user of entering the dangerous area, so that potential safety hazards brought to the user by the AR game are further reduced.
It should be noted that, when the holding direction of the terminal device is not pointing to the dangerous area, the terminal device is not prompted, so as to avoid affecting the AR game experience of the user.
According to the embodiment of the invention, when a dangerous area exists in a preset distance range around the current position of the terminal equipment, whether an extension line of a historical moving path of the terminal equipment points to the dangerous area is continuously judged; and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
It should be noted that, when it is determined that a dangerous area exists within a preset distance range around the current position of the terminal device, the position of the current terminal device relative to the dangerous area may be further determined, then a future moving direction (i.e., an extension line direction of the historical moving path) is presumed according to the historical moving path of the terminal device, then it is determined whether the moving direction points to the dangerous area, and if so, the terminal device may prompt the user to pay attention to the possibility of entering the dangerous area, so as to further reduce the potential safety hazard brought to the user by the AR game.
It should be noted that, when the extension line of the historical movement path of the terminal device does not point to the dangerous area, the terminal device is not prompted, so as to avoid affecting the experience of the AR game of the user.
According to the embodiment of the invention, the virtual scene of the AR game is constructed through the terminal equipment, and the method specifically comprises the following steps:
adopting terminal equipment to shoot a video stream of a real scene and converting the video stream into a digital image;
recognizing preset markers from the digital image through an image processing technology;
generating a corresponding virtual object according to the characteristic information of the marker;
and synthesizing the virtual object on the digital image according to the position relation between the virtual object and the marker to form a synthesized image.
In the process of realizing augmented reality, a video stream of a real scene acquired by a terminal device needs to be converted into a digital image, then a preset marker is identified through an image processing technology, and after the marker is identified, the position and the direction of a three-dimensional virtual object needing to be added in an augmented reality environment are determined by an augmented reality program by taking the marker as a reference and combining a positioning technology. And determining basic information of the three-dimensional virtual object to be added, generating the virtual object, and placing the virtual object at the correct position according to the position of the marker by using a program.
The feature information of the marker may include a type of the marker and a coordinate position of the marker. The species of markers may include fire hydrants, street lights, trees, bus stops, and the like. Since there may be many markers with the same shape, in order to distinguish the markers with the same shape, the invention may combine the positioning technology to distinguish different coordinate positions of the markers with the same shape, and since the coordinate position of each marker is unique, the coordinate position of the marker may be used as a reference to add a virtual object in the augmented reality environment.
According to the embodiment of the present invention, generating a corresponding virtual object according to the feature information of the marker specifically includes:
matching a virtual object sample corresponding to the characteristic information of the marker in the database according to the characteristic information of the marker;
and generating a corresponding virtual object according to the matched virtual object sample.
It should be noted that, a plurality of virtual object samples are prestored in the database, and the plurality of virtual object samples can be set according to the AR game requirements. Specifically, a binding relationship is established between the marker and the virtual object sample. According to the requirement of the AR game, different markers can correspond to the same virtual object sample, and can also correspond to different virtual object samples respectively.
It should be noted that, the size of each virtual object sample in the database is the same, but since the terminal devices used by each user are different, when the corresponding virtual object sample is matched, a virtual object with different size can be generated to different terminal devices according to the virtual object sample.
The third aspect of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a program of a security protection method based on an AR game, and when the program of the security protection method based on the AR game is executed by a processor, the steps of the security protection method based on the AR game are implemented.
The invention provides a safety protection method, a safety protection system and a readable storage medium based on an AR game, wherein the current position of a terminal device is monitored in real time through a GPS positioning technology, whether the geographic environment factors of the current position are beneficial to a user to carry out AR game activities is judged, and when the geographic environment factors of the current position are not beneficial to the user to carry out the AR game activities, the user can be timely alarmed through the terminal device, so that the potential safety hazard brought to the user by the adverse geographic environment factors is effectively avoided, and the life and property safety of the user in the AR game experience process is further ensured.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A security protection method based on AR game, characterized in that the method comprises:
constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game;
adopting a GPS positioning technology to carry out real-time positioning to obtain the current position of the terminal equipment;
judging whether the current position of the terminal equipment falls into a dangerous area or not;
and if the alarm signal falls into the alarm area, sending an alarm signal through the terminal equipment to prompt the attention of the user.
2. The AR game-based security protection method according to claim 1, wherein after determining whether the current location of the terminal device falls within a dangerous area, the method further comprises:
if not, judging whether a dangerous area exists in a preset distance range around the current position of the terminal equipment;
and if the alarm signal exists, the alarm signal is sent out through the terminal equipment to prompt the attention of the user.
3. The AR game-based security protection method according to claim 2, wherein after determining whether a dangerous area exists within a preset distance range around the current position of the terminal device, the method further comprises:
if so, judging whether the handheld direction of the terminal equipment points to the dangerous area;
and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
4. The AR game-based security protection method according to claim 2, wherein after determining whether a dangerous area exists within a preset distance range around the current position of the terminal device, the method further comprises:
if the terminal equipment exists, judging whether the extension line of the historical moving path of the terminal equipment points to the dangerous area;
and if the pointing direction is reached, sending out a warning signal through the terminal equipment to prompt the attention of a user.
5. The AR game-based security protection method according to claim 1, wherein the constructing of the virtual scene of the AR game by the terminal device specifically includes:
adopting terminal equipment to shoot a video stream of a real scene and converting the video stream into a digital image;
recognizing preset markers from the digital image through an image processing technology;
generating a corresponding virtual object according to the characteristic information of the marker;
and synthesizing the virtual object on the digital image according to the position relation between the virtual object and the marker to form a synthesized image.
6. The method of claim 1, wherein the dangerous area is any one or more of a motor vehicle lane area, a river area, a lake area, a cliff area and a landslide area.
7. An AR game-based security system, comprising: the security protection method based on the AR game comprises a memory and a processor, wherein the memory comprises a security protection method program based on the AR game, and when the security protection method program based on the AR game is executed by the processor, the following steps are realized:
constructing a virtual scene of the AR game through the terminal equipment so that a user can experience the AR game;
adopting a GPS positioning technology to carry out real-time positioning to obtain the current position of the terminal equipment;
judging whether the current position of the terminal equipment falls into a dangerous area or not;
and if the alarm signal falls into the alarm area, sending an alarm signal through the terminal equipment to prompt the attention of the user.
8. The AR game-based security protection system according to claim 7, wherein the AR game-based security protection method program further implements the following steps when executed by the processor:
if the current position of the terminal equipment does not fall into the dangerous area, judging whether the dangerous area exists in a preset distance range around the current position of the terminal equipment or not;
and if the alarm signal exists, the alarm signal is sent out through the terminal equipment to prompt the attention of the user.
9. The AR game-based security protection system according to claim 7, wherein the constructing of the virtual scene of the AR game by the terminal device specifically includes:
adopting terminal equipment to shoot a video stream of a real scene and converting the video stream into a digital image;
recognizing preset markers from the digital image through an image processing technology;
generating a corresponding virtual object according to the characteristic information of the marker;
and synthesizing the virtual object on the digital image according to the position relation between the virtual object and the marker to form a synthesized image.
10. A computer-readable storage medium, wherein the computer-readable storage medium includes a program of a security protection method based on an AR game, and when the program of the security protection method based on the AR game is executed by a processor, the steps of the security protection method based on the AR game according to any one of claims 1 to 6 are implemented.
CN201911042242.6A 2019-10-30 2019-10-30 Security protection method, system and readable storage medium based on AR game Withdrawn CN110833691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911042242.6A CN110833691A (en) 2019-10-30 2019-10-30 Security protection method, system and readable storage medium based on AR game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911042242.6A CN110833691A (en) 2019-10-30 2019-10-30 Security protection method, system and readable storage medium based on AR game

Publications (1)

Publication Number Publication Date
CN110833691A true CN110833691A (en) 2020-02-25

Family

ID=69576049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911042242.6A Withdrawn CN110833691A (en) 2019-10-30 2019-10-30 Security protection method, system and readable storage medium based on AR game

Country Status (1)

Country Link
CN (1) CN110833691A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111569420A (en) * 2020-05-08 2020-08-25 江圣宇 Real environment track early warning method and system, VR playing equipment and storage medium
CN114327049A (en) * 2021-12-07 2022-04-12 北京五八信息技术有限公司 Prompting method and device based on AR application, electronic equipment and readable medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111569420A (en) * 2020-05-08 2020-08-25 江圣宇 Real environment track early warning method and system, VR playing equipment and storage medium
CN114327049A (en) * 2021-12-07 2022-04-12 北京五八信息技术有限公司 Prompting method and device based on AR application, electronic equipment and readable medium
CN114327049B (en) * 2021-12-07 2023-07-25 北京五八信息技术有限公司 AR application-based prompting method and device, electronic equipment and readable medium

Similar Documents

Publication Publication Date Title
JP5934368B2 (en) Portable device, virtual reality system and method
US20200363639A1 (en) Systems and methods for collision avoidance in virtual environments
CN110833691A (en) Security protection method, system and readable storage medium based on AR game
US10692293B2 (en) Loading indicator in augmented reality environment
CN111651051B (en) Virtual sand table display method and device
JP2018005005A (en) Information processing device, information processing method, and program
CN114373047A (en) Method, device and storage medium for monitoring physical world based on digital twin
CN113160427A (en) Virtual scene creating method, device, equipment and storage medium
CN110772783A (en) Security protection method, system and readable storage medium based on AR game
US20170154466A1 (en) Interactively augmented reality enable system
US20200211297A1 (en) System, method, and terminal device for controlling virtual image by selecting user interface element
CN113198178A (en) Virtual object position prompting method, device, terminal and storage medium
CN111124128B (en) Position prompting method and related product
CN109939442B (en) Application role position abnormity identification method and device, electronic equipment and storage medium
CN110796740A (en) Security protection method, system and readable storage medium based on AR game
CN115268655A (en) Interaction method and system based on augmented reality, vehicle and storage medium
KR101879102B1 (en) Method for implementing augmented reality system
CN113157097B (en) Sound playing method and device, electronic equipment and storage medium
CN106200786B (en) Information processing method and wearable electronic equipment
CN113011369A (en) Position area monitoring method and device, computer equipment and storage medium
CN108922115B (en) Information processing method and electronic equipment
CN116741012B (en) Lightning simulation generating and processing method and device, electronic equipment and storage medium
CN115633117B (en) Service notification method and device and electronic equipment
CN113421417B (en) Alarm prompting method and device, electronic equipment and storage medium
CN111857341B (en) Display control method and device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200225