CN114297621B - Login method and device based on spatial anchor point and electronic equipment - Google Patents

Login method and device based on spatial anchor point and electronic equipment Download PDF

Info

Publication number
CN114297621B
CN114297621B CN202210218800.5A CN202210218800A CN114297621B CN 114297621 B CN114297621 B CN 114297621B CN 202210218800 A CN202210218800 A CN 202210218800A CN 114297621 B CN114297621 B CN 114297621B
Authority
CN
China
Prior art keywords
target
anchor point
login
spatial
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210218800.5A
Other languages
Chinese (zh)
Other versions
CN114297621A (en
Inventor
孔剑平
胡楠
王琪
李炳博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Weipian Technology Co ltd
Zhejiang Nanometer Technology Co ltd
Original Assignee
Zhejiang Weipian Technology Co ltd
Zhejiang Nanometer Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Weipian Technology Co ltd, Zhejiang Nanometer Technology Co ltd filed Critical Zhejiang Weipian Technology Co ltd
Priority to CN202210218800.5A priority Critical patent/CN114297621B/en
Publication of CN114297621A publication Critical patent/CN114297621A/en
Application granted granted Critical
Publication of CN114297621B publication Critical patent/CN114297621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a login method, a login device and electronic equipment based on a spatial anchor point, wherein the method is applied to first electronic equipment and comprises the following steps: acquiring an environment image of an environment where a user is located; sending the environment image to a server; receiving a target anchor point identification sent by a server; sending a login request carrying a target anchor point identifier to second electronic equipment, so that the second electronic equipment obtains a target geographic position corresponding to a target spatial anchor point from a server based on the target anchor point identifier, and sending login confirmation information to the first electronic equipment under the condition that target data are consistent with preset data; and executing login operation when login confirmation information sent by the second electronic equipment is received. The target data comprise the target geographic position corresponding to the target spatial anchor point, and the preset data comprise the preset login position, so that the target data are further combined with the geographic position of the user in the login process, and the safety of the login process can be further improved.

Description

Login method and device based on spatial anchor point and electronic equipment
Technical Field
The invention relates to the field of computer internet, in particular to a login method and device based on a spatial anchor point and electronic equipment.
Background
With the rapid development of the internet, more and more application programs begin to enter the lives of people, and great convenience is provided for the production and the life of people.
For the convenience of system management and also for the need of protecting personal privacy and sensitive data, people often log in through an account number and a password before entering an application program.
However, there are many risks in such a login manner based on the account and the password, for example, important information is leaked due to remote login, the account and the password are easily stolen, and the information security of the user is seriously affected.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a spatial anchor point based login method, apparatus and electronic device that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a login method based on a spatial anchor, which is applied to a first electronic device, and the method includes:
acquiring an environment image of an environment where a user is located;
sending the environment image to a server, wherein the server stores a plurality of spatial anchor points with different anchor point identifications in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position;
receiving a target anchor point identifier sent by the server, wherein the target anchor point identifier is an anchor point identifier of a target spatial anchor point in the plurality of spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image;
sending a login request carrying the target anchor point identification to second electronic equipment, so that the second electronic equipment acquires a target geographical position corresponding to the target spatial anchor point from the server based on the target anchor point identification, and sends login confirmation information to the first electronic equipment under the condition that target data is consistent with preset data, wherein the target data comprises the target geographical position, and the preset data comprises a preset login position;
and executing login operation under the condition of receiving the login confirmation information sent by the second electronic equipment.
Optionally, the environment image and the anchor point image are both three-dimensional images.
In a second aspect, an embodiment of the present invention provides a login method based on a spatial anchor point, which is applied to a second electronic device, and the method includes:
receiving a login request which is sent by first electronic equipment and carries a target anchor point identifier, wherein the target anchor point identifier is an anchor point identifier of a target spatial anchor point forwarded by the first electronic equipment from a server, the server stores a plurality of spatial anchor points with different anchor point identifiers in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position; the target spatial anchor point is one of the plurality of spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image of the environment where the user is located, wherein the environment image is sent to the server by the first electronic device;
sending the target anchor point identification to the server;
receiving a target geographic position sent by the server, wherein the target geographic position is a geographic position corresponding to the target spatial anchor point;
and sending login confirmation information to the first electronic equipment under the condition that target data are consistent with preset data so as to enable the first electronic equipment to execute login operation, wherein the target data comprise the target geographic position, and the preset data comprise a preset login position.
Optionally, the target data further includes: the second electronic equipment receives login time of the login request, and the preset data further comprises a preset login time period;
the condition that the target data is consistent with the preset data comprises the following steps:
the target geographic location is consistent with the login location, and the login time is within the login time period.
Optionally, the number of the login positions is multiple, and each login position corresponds to different attribute information;
under the condition that the target data is consistent with the preset data, sending login confirmation information to the first electronic device, wherein the login confirmation information comprises:
and under the condition that the target geographic position is consistent with a target login position in the login positions, sending login confirmation information carrying target attribute information to the first electronic equipment, wherein the target attribute information is attribute information corresponding to the target login position.
Optionally, the attribute information includes at least one of a location in the virtual scene, an access right, and a virtual asset.
In a third aspect, an embodiment of the present invention provides a login apparatus based on a spatial anchor point, which is applied to a first electronic device, and the apparatus includes:
the acquisition module is used for acquiring an environment image of an environment where a user is located;
the first sending module is used for sending the environment image to a server, wherein the server stores a plurality of spatial anchor points with different anchor point identifications in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position;
a receiving module, configured to receive a target anchor point identifier sent by the server, where the target anchor point identifier is an anchor point identifier of a target spatial anchor point in the multiple spatial anchor points, and an anchor point image corresponding to the target spatial anchor point is the same as the environment image;
a second sending module, configured to send a login request carrying the target anchor identifier to a second electronic device, so that the second electronic device obtains a target geographic location corresponding to the target spatial anchor from the server based on the target anchor identifier, and sends login confirmation information to the first electronic device when target data is consistent with preset data, where the target data includes the target geographic location, and the preset data includes a preset login location;
and the login module is used for executing login operation under the condition of receiving the login confirmation information sent by the second electronic equipment.
Optionally, the environment image and the anchor point image are both three-dimensional images.
In a fourth aspect, an embodiment of the present invention provides a login apparatus based on a spatial anchor point, which is applied to a second electronic device, and the apparatus includes:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a login request which is sent by first electronic equipment and carries a target anchor point identifier, the target anchor point identifier is an anchor point identifier of a target spatial anchor point forwarded by the first electronic equipment and from a server, the server stores a plurality of spatial anchor points with different anchor point identifiers in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position; the target spatial anchor point is one of the plurality of spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image of the environment where the user is located, wherein the environment image is sent to the server by the first electronic device;
a sending module, configured to send the target anchor identifier to the server;
a second receiving module, configured to receive a target geographic position sent by the server, where the target geographic position is a geographic position corresponding to the target spatial anchor point;
the login confirmation module is used for sending login confirmation information to the first electronic device under the condition that target data are consistent with preset data, so that the first electronic device executes login operation, wherein the target data comprise the target geographic position, and the preset data comprise a preset login position.
Optionally, the target data further includes: the second electronic equipment receives login time of the login request, and the preset data further comprises a preset login time period;
the condition that the target data is consistent with the preset data comprises the following steps:
the target geographic location is consistent with the login location, and the login time is within the login time period.
Optionally, the number of the login positions is multiple, and each login position corresponds to different attribute information;
and the login confirmation module is specifically configured to send login confirmation information carrying target attribute information to the first electronic device when the target geographic location is consistent with a target login location in the plurality of login locations, where the target attribute information is attribute information corresponding to the target login location.
Optionally, the attribute information includes at least one of a location in the virtual scene, an access right, and a virtual asset.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the spatial anchor point-based login method as described above when executing the program.
In a sixth aspect, the present invention provides a readable storage medium, and instructions in the readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the spatial anchor point-based login method as described above.
In the embodiment of the invention, the environment image of the environment where the user is located is acquired in the login process, the environment image is sent to the server, the target anchor point identification of the target space anchor point can be received from the server, and the anchor point image corresponding to the target space anchor point is the same as the environment image, so that the target space anchor point is the space anchor point of the environment where the user is located, and is combined with the environment where the user is located in the login process, and the safety of the login process can be improved; and then after the login request carrying the target anchor point identification is sent to the second electronic equipment, the login operation is executed based on login confirmation information sent by the second electronic equipment under the condition that the target data is consistent with the preset data. The target data comprise the target geographic position corresponding to the target spatial anchor point, and the preset data comprise the preset login position, so that the target data are further combined with the geographic position of the user in the login process, and the safety of the login process can be further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart illustrating steps of a spatial anchor point-based login method applied to a first electronic device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a spatial anchor point-based login method applied to a second electronic device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a login method based on a spatial anchor point according to an embodiment of the present invention;
fig. 4 is a signal flow chart of a login method based on a spatial anchor point according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a structure of a login apparatus based on a spatial anchor point for a first electronic device according to an embodiment of the present invention;
fig. 6 is a block diagram of a login apparatus based on a spatial anchor point for a second electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a login method based on a spatial anchor point, which is applied to a first electronic device, and the method includes:
step 101: an environment image of an environment in which a user is located is acquired.
It should be noted that the first electronic device is a device having an image capturing function, and when a user logs in the first electronic device, the first electronic device starts the image capturing function to capture an environment image of an environment where the user is located. When the first electronic device starts an image acquisition function, the physical environment can be scanned for imaging, so that an environment image is generated. For example, a user sits in front of a desk to open the image acquisition function of the first electronic device, and can scan the desk, a computer and other articles in front of the user to perform imaging, so that an environment image is generated. It should be noted that, when acquiring the environment image of the environment where the user is located, the environment image may be acquired through an electronic device such as a mobile smart terminal or a Head Mounted AR (Augmented Reality) device, for example, a smart phone, an HMD (Head Mounted Display), but is not limited thereto.
Step 102: the environment image is sent to a server.
It should be noted that the server stores a plurality of spatial anchor points with different anchor point identifications in advance, where each spatial anchor point corresponds to a geographic location and an anchor point image, and the anchor point image is an image generated based on an environment at the geographic location. That is to say, the server records a plurality of spatial anchor points set at different geographic locations, and in order to distinguish different spatial anchor points in the server, a unique anchor point identifier is set corresponding to each spatial anchor point.
It is to be understood that spatial anchor points are a visual anchor to the real world. That is to say, the user sets an anchor point at a position in the real world through the mobile intelligent terminal or the head-mounted AR device, and associates a certain virtual content with the anchor point, so that when the user comes to the same place again, the user can log in the anchor point at the original position, and further access to the virtual content associated with the anchor point is realized. Here, the spatial anchor point to which the user needs to log in is determined by the environment image.
Step 103: and receiving the target anchor point identification sent by the server.
It should be noted that the target anchor point identifier is an anchor point identifier of a target spatial anchor point in the plurality of spatial anchor points, and an anchor point image corresponding to the target spatial anchor point is the same as the environment image. Therefore, the target spatial anchor point is a spatial anchor point which the user needs to log in. It should be understood that when a user logs in a certain spatial anchor point through an electronic device, the user should be in a position where the spatial anchor point is located. When the environment image is the same as the anchor point image corresponding to the target spatial anchor point, it indicates that the user is located at the position of the target spatial anchor point, that is, the target spatial anchor point is the spatial anchor point that the user needs to log in. Here, the environmental image is the same as the anchor image corresponding to the target spatial anchor point, and it can be understood that the similarity between the two images is higher than a preset threshold, and the preset threshold may be a higher value, such as ninety percent, but is not limited thereto. Before sending the target anchor point identifier, the server may compare the environment image with each anchor point image of the plurality of spatial anchor points stored in advance, and under the condition that it is determined that the anchor point image of a certain spatial anchor point is the same as the environment image, regard the spatial anchor point corresponding to the anchor point image as the target spatial anchor point, and then send the anchor point identifier corresponding to the target spatial anchor point as the target anchor point identifier to the first electronic device. For example, a spatial anchor point is set on a desk of a user, an anchor point identifier corresponding to the spatial anchor point is a, and an anchor point image corresponding to the spatial anchor point is an image generated based on the desk. When a user sits in front of a desk and scans the current environment through first electronic equipment to generate an environment image containing the desk, the environment image is sent to a server, and under the condition that the server receives the environment image sent by the first electronic equipment, the anchor point image of a space anchor point with an anchor point identification A can be determined to be the same as the environment image through comparison, so that the anchor point identification A is sent to the first electronic equipment as a target anchor point identification. In this step, the first electronic device only needs to receive the target anchor point identifier sent by the server, and certainly, under the condition that the server does not send the target anchor point identifier, that is, the first electronic device does not receive the target anchor point identifier for a long time after sending the environment image, the environment image can be sent to the server again, the login process can also be terminated, and prompt information such as no login or no space anchor point exists is displayed.
Step 104: and sending the login request carrying the target anchor point identification to the second electronic equipment so that the second electronic equipment obtains the target geographic position corresponding to the target spatial anchor point from the server based on the target anchor point identification, and sending login confirmation information to the first electronic equipment under the condition that the target data is consistent with the preset data.
It should be noted that, the first electronic device sends a login request, which indicates that the user wants to log in a certain spatial anchor, and the target anchor identifier in the login request is the anchor identifier of the spatial anchor that the user wants to log in. Here, the second electronic device is configured to check the login request of the first electronic device, and determine whether to allow the first electronic device to log in the requested spatial anchor. Here, the target data includes a target geographical location, and the preset data includes a preset login location. And if the target data is consistent with the preset data, the target geographic position is consistent with the preset login position. Of course, if the target data is inconsistent with the preset data or the second electronic device cannot acquire the target geographic position from the server, the first electronic device may be rejected from logging in the target spatial anchor point.
Step 105: and executing login operation when login confirmation information sent by the second electronic equipment is received.
In the embodiment of the invention, the environment image of the environment where the user is located is acquired in the login process, the environment image is sent to the server, the target anchor point identification of the target space anchor point can be received from the server, and the anchor point image corresponding to the target space anchor point is the same as the environment image, so that the target space anchor point is the space anchor point of the environment where the user is located, and is combined with the environment where the user is located in the login process, and the security of the login process can be improved; and then after the login request carrying the target anchor point identification is sent to the second electronic equipment, the login operation is executed based on login confirmation information sent by the second electronic equipment under the condition that the target data is consistent with the preset data. The target data comprise the target geographic position corresponding to the target spatial anchor point, and the preset data comprise the preset login position, so that the target data are further combined with the geographic position of the user in the login process, and the safety of the login process can be further improved.
Optionally, the environment image and the anchor point image are both three-dimensional images.
It should be noted that the comparison between the environment image and the anchor point image in the server is substantially a comparison between the environment where the user is located and the environment where the spatial anchor point is located. Here, when the environment information is recorded by using an image, the environment image and the anchor point image are both imaged by using an imaging method of a three-dimensional image by using the characteristic that the three-dimensional image can bear more environment information. Of course, both the ambient image and the anchor image may be two-dimensional images. It is understood that the three-dimensional image may be regarded as a form of sparse point cloud, and the points of the sparse point cloud may carry related information of the spatial anchor point, such as, but not limited to, direction values, coordinate information, and the like.
In the embodiment of the invention, the environment image and the anchor point image are presented in the form of the three-dimensional image, so that the spatial anchor point at the position of the user can be more accurately determined.
Referring to fig. 2, an embodiment of the present invention further provides a login method based on a spatial anchor point, which is applied to a second electronic device, and the method includes:
step 201: and receiving a login request which is sent by the first electronic equipment and carries the target anchor point identification.
It should be noted that, the second electronic device receives the login request of the first electronic device, which indicates that the user wants to log in a certain spatial anchor through the first electronic device, and the target anchor identifier in the login request is the anchor identifier of the spatial anchor that the user wants to log in. Here, the target anchor point identifier is an anchor point identifier of a target spatial anchor point forwarded by the first electronic device from the server, that is, the target spatial anchor point is a spatial anchor point that the user wants to log in. The server stores a plurality of spatial anchor points with different anchor point identifications in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, the anchor point image is an image generated based on the environment of the geographic position, the target spatial anchor point is one of the spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image of the environment where the user sent to the server by the first electronic device is located. It can be understood that, for the process of the first electronic device obtaining the target anchor point identifier from the server, reference may be made to the above-mentioned embodiment of the spatial anchor point-based login method applied to the first electronic device, and details are not described here.
Step 202: and sending the target anchor point identification to a server.
It should be understood that the target anchor point identifier is an anchor point identifier of a spatial anchor point that the user wants to log in, and when the user logs in the target spatial anchor point through the first electronic device, the second electronic device verifies the login. Here, the second electronic device transmits the target anchor point identification of the target spatial anchor point to the server to acquire data required for verification.
Step 203: and receiving the target geographical position sent by the server.
It should be noted that the target geographic location is a geographic location corresponding to the target spatial anchor point, and is also a geographic location where the user is currently located. Here, the target geographical location is data required for verification acquired from the server. It is understood that the target geographic location may be a geographic coordinate, but is not limited thereto.
Step 204: and under the condition that the target data is consistent with the preset data, sending login confirmation information to the first electronic equipment so as to enable the first electronic equipment to execute login operation.
It should be noted that the target data includes a target geographical location, and the preset data includes a preset login location. The target data is consistent with the preset data, namely the target geographic position is consistent with the preset login position. The login position is a position where the user is located when the user is allowed to login the target space anchor point through the first electronic device. That is, the user is allowed to log into the target spatial anchor via the first electronic device only when the user is at the login location. Preferably, in a case where the number of the login locations is plural and the number of the target geographic locations is one, the target geographic location is consistent with the login location, that is, the target geographic location is consistent with any login location.
It can be understood that the login request sent by the first electronic device does not directly carry the geographical location of the user, and when the second electronic device determines the geographical location of the user, the second electronic device queries the target geographical location corresponding to the target spatial anchor point through the server, and uses the queried target geographical location as the geographical location of the user, so that the potential safety hazard that the first electronic device directly carries the geographical location in the login request can be avoided.
In the embodiment of the invention, after a login request which is sent by first electronic equipment and carries a target anchor point identifier is received, a target space anchor point which a user needs to log in can be determined through the target anchor point identifier; and then the target anchor point identification is sent to a server so as to obtain a target geographic position for login verification. And finally, under the condition that the target data is consistent with the preset data, sending login confirmation information to the first electronic equipment so that the first electronic equipment executes login operation. The target data comprise the target geographical position corresponding to the target spatial anchor point, and the preset data comprise the preset login position, so that the safety of the login process can be further improved by combining the target data with the geographical position in the login process; meanwhile, the inquired target geographical position is used as the geographical position of the user, and potential safety hazards caused by the fact that the geographical position is directly carried in the login request can be avoided.
Optionally, the target data further comprises: the second electronic equipment receives login time of the login request, and the preset data further comprises preset login time periods;
the condition that the target data is consistent with the preset data comprises the following steps:
the target geographic location is consistent with the login location, and the login time is within the login time period.
It should be noted that the second electronic device receives the login request, and checks the login request to determine whether to allow the first electronic device to log in the requested spatial anchor. And under the condition that the target geographic position is consistent with the login position and the login time is within the login time period, the second electronic equipment allows the first electronic equipment to log in the requested spatial anchor point. Here, the login time period may be pre-stored locally to the second electronic device, i.e. a login time period is stored locally to the second electronic device for each spatial anchor point or anchor point identification.
Of course, the login time period may also be stored in the server in advance, that is, a login time period is stored corresponding to each spatial anchor point. Preferably, the setting of the login time period may be performed by setting the effective time of the spatial anchor point, that is, only the effective time of the spatial anchor point is logged in, the spatial anchor point is given an opportunity to log in successfully, and if the effective time is missed, the spatial anchor point is invalid, and the spatial anchor point cannot be logged in successfully. For example, the login position preset by the user is a study at home, and the effective time of the spatial anchor point corresponding to the login position is set from 8 pm to 10 pm, so that the user can successfully log in the spatial anchor point only when the user is at the study at home and the login time is from 8 pm to 10 pm, and the user cannot successfully log in the spatial anchor point when the geographic position is inconsistent or the login time is not within the effective time.
In the embodiment of the invention, the login time is increased as the login condition, so that the time management can be effectively carried out, and the safety of the login process is further improved.
Optionally, the number of the login positions is multiple, and each login position corresponds to different attribute information;
under the condition that the target data is consistent with the preset data, sending login confirmation information to the first electronic device, wherein the login confirmation information comprises:
and under the condition that the target geographic position is consistent with a target login position in the plurality of login positions, sending login confirmation information carrying target attribute information to the first electronic equipment, wherein the target attribute information is attribute information corresponding to the target login position.
It should be noted that the target login location is the same login location as the target geographic location in the plurality of login locations. Here, different attribute information is set in the second electronic device corresponding to different login positions, so as to display different data contents after the first electronic device successfully logs in. The attribute information is associated with the data content that is displayed after the first electronic device successfully logs in, and is not limited herein.
In the embodiment of the invention, different attribute information is set for different login positions, so that different data contents can be displayed when the first electronic device logs in different login positions, and the diversity of data is improved.
Optionally, the attribute information includes at least one of a location in the virtual scene, an access right, and a virtual asset.
It should be noted that a location in a virtual scene may be understood as a certain scene or a certain location in a constructed virtual world. The first electronic device will successfully log in to the location of the virtual scene based on the location in the virtual scene in the login confirmation information. For example, the location in the virtual scene may be a location in the metasma, and the location of the metasma in the attribute information corresponding to different login locations is different, so that the user logs in to the metasma from different login locations and enters different locations of the metasma. The access right is a right for accessing the data content, and the higher the access right is, the more the data content can be accessed, and conversely, the less the data content can be accessed. For example, a user logging into a certain website from different login locations will have different access rights. Virtual assets include digital assets currently owned by the user or digital assets allocated by the system, for example, when a user logs into the metasma from a different login location, the user's account will have a different amount of virtual assets.
In the embodiment of the invention, at least one of the position, the access authority and the virtual asset in the virtual scene is used as the attribute information, so that different experiences of a user in more scenes can be provided.
The space anchor point-based login method can be applied to login of the meta universe in an extensible mode. The meta universe is based on the internet, can be regarded as an online version of the real world, and is a virtual space based on the real world, for example, the city in which you live in the real world is city a, and after you enter the meta universe, the city a also appears in the meta universe. The login method provided by the invention combines the real world with the login process through the space anchor point technology, thereby meeting the requirement of combining the real world and the virtual space of the metastic login.
As shown in fig. 3, an overall architecture diagram of a login method based on a spatial anchor point provided in an embodiment of the present invention includes: the system comprises a spatial anchor point cloud server, a login authentication module and a spatial anchor point client.
The spatial anchor client is the first electronic device in the above embodiment of the present invention, and is a handheld or head-mounted terminal device, such as a smartphone, which has a camera capable of imaging a physical environment, and on which a client application is running, and a user creates a spatial anchor by using a position and/or an orientation of a feature captured by the camera of the spatial anchor client, and generation of the spatial anchor is performed by a computing device or a computing system. The spatial anchor point client uploads the position information of the spatial anchor point and the spatial representation information of the physical world position (which is equivalent to the anchor point image in the embodiment of the invention) to the spatial anchor point cloud server.
And the spatial anchor point cloud server stores the position information of the spatial anchor point and the spatial representation information of the physical world position. The spatial anchor point cloud server can also search and respond to spatial anchor point query initiated by the spatial anchor point client, namely, the target anchor point identifier is returned under the condition of receiving the environmental image sent by the spatial anchor point client. This process is similar to the process applied to the spatial anchor point-based login method of the first electronic device, and is not described herein again. The spatial anchor point cloud server can also interact spatial anchor point information (position information) with a login authentication module to perform authentication decision.
The login authentication module is used for acquiring a login request carrying a target anchor point identifier and a target geographic position, and performing login authentication and authorization. This process is similar to the process applied to the spatial anchor point-based login method of the second electronic device, and is not described herein again.
It can be understood that, in the process of setting the spatial anchor point, the geographic position of the spatial anchor point is bound with the login permission, so that only a user who logs in at a specific position is granted permission, i.e. the user is allowed to log in. Of course, the login time allowing the user to log in can be determined by the effective time of the spatial anchor point. In addition, users logged in from different spatial anchors may be assigned different permissions, granted different digital assets or transferred to different scenes in the metas.
As shown in fig. 4, a signal flow chart for a user to log in a target spatial anchor point includes:
step 401: and the spatial anchor point client sends an anchor point request to the spatial anchor point cloud server, wherein the anchor point request carries an environment image of the environment where the user is located.
Step 402: and the space anchor point cloud server returns the target anchor point identification of the target space anchor point under the condition that the target space anchor point is inquired. Wherein, the anchor point image of the target space anchor point is the same as the environment image.
Step 403: and the spatial anchor point client sends a login request carrying a target anchor point identifier to a login authentication module.
Step 404: the login authentication module sends information carrying target anchor point identification to the spatial anchor point cloud server to request the position information of the target spatial anchor point, namely the target geographic position.
Step 405: and the spatial anchor point cloud server returns the target geographic position.
Step 406: the login authentication module performs login policy analysis, and if it is determined that the target geographical location matches a preset login location, step 407 is performed.
Step 407: and the login authentication module returns login authentication to the spatial anchor point client so that the spatial anchor point client executes login operation.
In the embodiment of the invention, the safety of the login process can be improved by combining the login process with the geographical position of the user.
Referring to fig. 5, an embodiment of the present invention provides a login apparatus based on a spatial anchor point, which is applied to a first electronic device, and the apparatus includes:
an obtaining module 51, configured to obtain an environment image of an environment where a user is located;
the first sending module 52 is configured to send the environment image to a server, where the server stores a plurality of spatial anchor points with different anchor point identifiers in advance, where each spatial anchor point corresponds to a geographic location and an anchor point image, and the anchor point image is an image generated based on an environment at the geographic location;
a receiving module 53, configured to receive a target anchor identifier sent by the server, where the target anchor identifier is an anchor identifier of a target spatial anchor in the multiple spatial anchors, and an anchor image corresponding to the target spatial anchor is the same as the environment image;
a second sending module 54, configured to send a login request carrying a target anchor identifier to a second electronic device, so that the second electronic device obtains a target geographic location corresponding to a target spatial anchor from a server based on the target anchor identifier, and sends login confirmation information to the first electronic device when target data is consistent with preset data, where the target data includes the target geographic location, and the preset data includes a preset login location;
and a login module 55, configured to execute a login operation when login confirmation information sent by the second electronic device is received.
Optionally, the environment image and the anchor point image are both three-dimensional images.
The spatial anchor point-based login device provided by the embodiment of the invention can realize each process realized by the spatial anchor point-based login method in the method embodiment of fig. 1, and is not described herein again in order to avoid repetition.
In the embodiment of the invention, the environment image of the environment where the user is located is acquired in the login process, the environment image is sent to the server, the target anchor point identification of the target space anchor point can be received from the server, and the anchor point image corresponding to the target space anchor point is the same as the environment image, so that the target space anchor point is the space anchor point of the environment where the user is located, and is combined with the environment where the user is located in the login process, and the safety of the login process can be improved; and then after the login request carrying the target anchor point identification is sent to the second electronic equipment, the login operation is executed based on login confirmation information sent by the second electronic equipment under the condition that the target data is consistent with the preset data. The target data comprise the target geographic position corresponding to the target spatial anchor point, and the preset data comprise the preset login position, so that the target data are further combined with the geographic position of the user in the login process, and the safety of the login process can be further improved.
Referring to fig. 6, an embodiment of the present invention further provides a login apparatus based on a spatial anchor point, which is applied to a second electronic device, and the apparatus includes:
the first receiving module 61 is configured to receive a login request which is sent by a first electronic device and carries a target anchor point identifier, where the target anchor point identifier is an anchor point identifier of a target spatial anchor point forwarded by the first electronic device from a server, the server stores a plurality of spatial anchor points with different anchor point identifiers in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on an environment at the geographic position; the target spatial anchor point is one of the spatial anchor points, and an anchor point image corresponding to the target spatial anchor point is the same as an environment image of the environment where the user is located, wherein the environment image is sent to the server by the first electronic equipment;
a sending module 62, configured to send the target anchor identifier to the server;
a second receiving module 63, configured to receive a target geographic position sent by the server, where the target geographic position is a geographic position corresponding to the target spatial anchor point;
the login confirmation module 64 is configured to send login confirmation information to the first electronic device when the target data is consistent with the preset data, so that the first electronic device executes a login operation, where the target data includes a target geographic location, and the preset data includes a preset login location.
Optionally, the target data further comprises: the second electronic equipment receives login time of the login request, and the preset data further comprises preset login time periods;
the condition that the target data is consistent with the preset data comprises the following steps:
the target geographic location is consistent with the login location, and the login time is within the login time period.
Optionally, the number of the login positions is multiple, and each login position corresponds to different attribute information;
the login confirmation module 64 is specifically configured to send login confirmation information carrying target attribute information to the first electronic device when the target geographic location is consistent with a target login location in the plurality of login locations, where the target attribute information is attribute information corresponding to the target login location.
Optionally, the attribute information includes at least one of a location in the virtual scene, an access right, and a virtual asset.
The spatial anchor point-based login device provided by the embodiment of the invention can realize each process realized by the spatial anchor point-based login method in the method embodiment of fig. 2, and is not described herein again in order to avoid repetition.
In the embodiment of the invention, after a login request which is sent by first electronic equipment and carries a target anchor point identifier is received, a target space anchor point which a user needs to log in can be determined through the target anchor point identifier; and then the target anchor point identification is sent to a server so as to obtain a target geographic position for login verification. And finally, under the condition that the target data is consistent with the preset data, sending login confirmation information to the first electronic equipment so that the first electronic equipment executes login operation. The target data comprise the target geographical position corresponding to the target spatial anchor point, and the preset data comprise the preset login position, so that the safety of the login process can be further improved by combining the target data with the geographical position in the login process; meanwhile, the inquired target geographical position is used as the geographical position of the user, and potential safety hazards caused by the fact that the geographical position is directly carried in the login request can be avoided.
On the other hand, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the login method based on the spatial anchor point provided in the embodiments of the present invention.
In still another aspect, the present invention further provides a readable storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform the login method based on a spatial anchor point provided in the above embodiments of the present invention.
The above-described embodiments of the apparatus are merely illustrative, and 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, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (14)

1. A login method based on a spatial anchor point is applied to a first electronic device, and the method comprises the following steps:
acquiring an environment image of an environment where a user is located;
sending the environment image to a server, wherein the server stores a plurality of spatial anchor points with different anchor point identifications in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position;
receiving a target anchor point identifier sent by the server, wherein the target anchor point identifier is an anchor point identifier of a target spatial anchor point in the plurality of spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image;
sending a login request carrying the target anchor point identification to second electronic equipment, so that the second electronic equipment acquires a target geographical position corresponding to the target spatial anchor point from the server based on the target anchor point identification, and sends login confirmation information to the first electronic equipment under the condition that target data is consistent with preset data, wherein the target data comprises the target geographical position, and the preset data comprises a preset login position;
and executing login operation under the condition of receiving the login confirmation information sent by the second electronic equipment.
2. The method of claim 1, wherein the ambient image and the anchor image are both three-dimensional images.
3. A login method based on a spatial anchor point is applied to a second electronic device, and the method comprises the following steps:
receiving a login request which is sent by first electronic equipment and carries a target anchor point identifier, wherein the target anchor point identifier is an anchor point identifier of a target spatial anchor point forwarded by the first electronic equipment from a server, the server stores a plurality of spatial anchor points with different anchor point identifiers in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position; the target spatial anchor point is one of the plurality of spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image of the environment where the user is located, wherein the environment image is sent to the server by the first electronic device;
sending the target anchor point identification to the server;
receiving a target geographic position sent by the server, wherein the target geographic position is a geographic position corresponding to the target spatial anchor point;
and sending login confirmation information to the first electronic equipment under the condition that target data are consistent with preset data so as to enable the first electronic equipment to execute login operation, wherein the target data comprise the target geographic position, and the preset data comprise a preset login position.
4. The method of claim 3, wherein the target data further comprises: the second electronic equipment receives login time of the login request, and the preset data further comprises a preset login time period;
the condition that the target data is consistent with the preset data comprises the following steps:
the target geographic location is consistent with the login location, and the login time is within the login time period.
5. The method according to claim 3, wherein the number of the login positions is plural, and each login position corresponds to different attribute information;
under the condition that the target data is consistent with the preset data, sending login confirmation information to the first electronic device, wherein the login confirmation information comprises:
and under the condition that the target geographic position is consistent with a target login position in the login positions, sending login confirmation information carrying target attribute information to the first electronic equipment, wherein the target attribute information is attribute information corresponding to the target login position.
6. The method of claim 5, wherein the attribute information comprises at least one of a location in a virtual scene, an access right, and a virtual asset.
7. A login device based on a spatial anchor point is applied to a first electronic device, and the device comprises:
the acquisition module is used for acquiring an environment image of an environment where a user is located;
the first sending module is used for sending the environment image to a server, wherein the server stores a plurality of spatial anchor points with different anchor point identifications in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position;
a receiving module, configured to receive a target anchor point identifier sent by the server, where the target anchor point identifier is an anchor point identifier of a target spatial anchor point in the multiple spatial anchor points, and an anchor point image corresponding to the target spatial anchor point is the same as the environment image;
a second sending module, configured to send a login request carrying the target anchor identifier to a second electronic device, so that the second electronic device obtains a target geographic location corresponding to the target spatial anchor from the server based on the target anchor identifier, and sends login confirmation information to the first electronic device when target data is consistent with preset data, where the target data includes the target geographic location, and the preset data includes a preset login location;
and the login module is used for executing login operation under the condition of receiving the login confirmation information sent by the second electronic equipment.
8. The apparatus of claim 7, wherein the environment image and the anchor point image are both three-dimensional images.
9. A login device based on a spatial anchor point is applied to a second electronic device, and the login device comprises:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a login request which is sent by first electronic equipment and carries a target anchor point identifier, the target anchor point identifier is an anchor point identifier of a target spatial anchor point forwarded by the first electronic equipment and from a server, the server stores a plurality of spatial anchor points with different anchor point identifiers in advance, each spatial anchor point corresponds to a geographic position and an anchor point image, and the anchor point image is an image generated based on the environment at the geographic position; the target spatial anchor point is one of the plurality of spatial anchor points, and the anchor point image corresponding to the target spatial anchor point is the same as the environment image of the environment where the user is located, wherein the environment image is sent to the server by the first electronic device;
a sending module, configured to send the target anchor identifier to the server;
a second receiving module, configured to receive a target geographic position sent by the server, where the target geographic position is a geographic position corresponding to the target spatial anchor point;
the login confirmation module is used for sending login confirmation information to the first electronic device under the condition that target data are consistent with preset data, so that the first electronic device executes login operation, wherein the target data comprise the target geographic position, and the preset data comprise a preset login position.
10. The apparatus of claim 9, wherein the target data further comprises: the second electronic equipment receives login time of the login request, and the preset data further comprises a preset login time period;
the condition that the target data is consistent with the preset data comprises the following steps:
the target geographic location is consistent with the login location, and the login time is within the login time period.
11. The apparatus according to claim 9, wherein the number of the login locations is plural, and each login location corresponds to different attribute information;
and the login confirmation module is specifically configured to send login confirmation information carrying target attribute information to the first electronic device when the target geographic location is consistent with a target login location in the plurality of login locations, where the target attribute information is attribute information corresponding to the target login location.
12. The apparatus of claim 11, wherein the attribute information comprises at least one of a location in a virtual scene, an access right, and a virtual asset.
13. An electronic device, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the spatial anchor point-based login method according to any one of claims 1-2 or the spatial anchor point-based login method according to any one of claims 3-6 when executing the program.
14. A readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the spatial anchor point based login method of any one of claims 1-2 or the spatial anchor point based login method of any one of claims 3-6.
CN202210218800.5A 2022-03-08 2022-03-08 Login method and device based on spatial anchor point and electronic equipment Active CN114297621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210218800.5A CN114297621B (en) 2022-03-08 2022-03-08 Login method and device based on spatial anchor point and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210218800.5A CN114297621B (en) 2022-03-08 2022-03-08 Login method and device based on spatial anchor point and electronic equipment

Publications (2)

Publication Number Publication Date
CN114297621A CN114297621A (en) 2022-04-08
CN114297621B true CN114297621B (en) 2022-08-09

Family

ID=80978449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210218800.5A Active CN114297621B (en) 2022-03-08 2022-03-08 Login method and device based on spatial anchor point and electronic equipment

Country Status (1)

Country Link
CN (1) CN114297621B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107211019A (en) * 2015-02-20 2017-09-26 英特尔公司 For based on automatic detection security context come the method and apparatus of processing data
CN109033779A (en) * 2018-06-29 2018-12-18 努比亚技术有限公司 A kind of unlock authentication method, wearable device and computer readable storage medium
CN109167752A (en) * 2018-07-13 2019-01-08 奇酷互联网络科技(深圳)有限公司 The method, apparatus of mobile terminal and automated log on application platform
CN113963108A (en) * 2021-09-29 2022-01-21 深圳市旭东数字医学影像技术有限公司 Medical image cooperation method and device based on mixed reality and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609659A (en) * 2011-01-21 2012-07-25 鸿富锦精密工业(深圳)有限公司 Password authentication method
US9811653B1 (en) * 2016-10-24 2017-11-07 International Business Machines Corporation Location specific image based authentication
CN109086645B (en) * 2017-06-13 2021-04-20 阿里巴巴集团控股有限公司 Face recognition method and device and false user recognition method and device
CN107370770A (en) * 2017-09-13 2017-11-21 上海中信信息发展股份有限公司 Login method, apparatus and system
CN113452719B (en) * 2018-03-30 2022-12-30 平安科技(深圳)有限公司 Application login method and device, terminal equipment and storage medium
CN110032860B (en) * 2018-12-27 2020-07-28 阿里巴巴集团控股有限公司 Login mode pushing and displaying method, device and equipment
US11263615B2 (en) * 2019-03-01 2022-03-01 Visa International Service Association System, method, and computer program product for authentication by augmented reality for fraud prevention
CN112491923A (en) * 2020-12-11 2021-03-12 新乡学院 Method for logging in computer application needing identity authentication

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107211019A (en) * 2015-02-20 2017-09-26 英特尔公司 For based on automatic detection security context come the method and apparatus of processing data
CN109033779A (en) * 2018-06-29 2018-12-18 努比亚技术有限公司 A kind of unlock authentication method, wearable device and computer readable storage medium
CN109167752A (en) * 2018-07-13 2019-01-08 奇酷互联网络科技(深圳)有限公司 The method, apparatus of mobile terminal and automated log on application platform
CN113963108A (en) * 2021-09-29 2022-01-21 深圳市旭东数字医学影像技术有限公司 Medical image cooperation method and device based on mixed reality and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
如何做基于地理位置信息的用户行为分析;佚名;《https://www.zhihu.com/question/21416681/answer/382282941》;20180503;全文 *

Also Published As

Publication number Publication date
CN114297621A (en) 2022-04-08

Similar Documents

Publication Publication Date Title
US11394708B2 (en) Account information obtaining method, terminal, server and system
CN105610810B (en) Data processing method, client and server
CA2676845C (en) Method and apparatus for network authentication of human interaction and user identity
US11670058B2 (en) Visual display systems and method for manipulating images of a real scene using augmented reality
CN107070945B (en) Identity login method and equipment
CN111601115B (en) Video detection method, related device, equipment and storage medium
TWI616821B (en) Bar code generation method, bar code based authentication method and related terminal
US20150047024A1 (en) Surveillance camera renting service
WO2017140219A1 (en) User position verification method, controlled device access method, controlled device and user terminal
CN108897996B (en) Identification information association method and device, electronic equipment and storage medium
CN107786487B (en) Information authentication processing method, system and related equipment
CN104184709A (en) Verification method, device, server, service data center and system
CN114297621B (en) Login method and device based on spatial anchor point and electronic equipment
KR102029671B1 (en) Personal secure viewing platform for digital contents
CN111698196A (en) Authentication method and micro-service system
CN112948804B (en) Program control method, device and computer readable storage medium
CN112104652B (en) Identity verification method, apparatus, device and medium
CN110177332B (en) Data transmission method and device
CN115630387B (en) Data processing method, device, electronic equipment and readable storage medium
KR102228632B1 (en) Video playing method, business card server and video playing system connected to a business card
CN116938501A (en) Authentication method, device, storage medium, and program product
CN114534260A (en) Mirror account creating method, device, equipment and storage medium
CN114567510A (en) Login authentication method, device, equipment and storage medium
CN114063783A (en) CRM (customer relationship management) method and system for virtual imaging technology
CN113515318A (en) Login method, device and equipment for application program

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