WO2022110754A1 - 资源加载方法及装置、电子设备和存储介质及程序 - Google Patents
资源加载方法及装置、电子设备和存储介质及程序 Download PDFInfo
- Publication number
- WO2022110754A1 WO2022110754A1 PCT/CN2021/098335 CN2021098335W WO2022110754A1 WO 2022110754 A1 WO2022110754 A1 WO 2022110754A1 CN 2021098335 W CN2021098335 W CN 2021098335W WO 2022110754 A1 WO2022110754 A1 WO 2022110754A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resource
- electronic device
- loaded
- information
- location information
- Prior art date
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 59
- 238000000034 method Methods 0.000 claims abstract description 57
- 230000003190 augmentative effect Effects 0.000 claims abstract description 24
- 238000010276 construction Methods 0.000 claims description 86
- 238000004590 computer program Methods 0.000 claims description 21
- 230000004044 response Effects 0.000 claims description 14
- 230000007613 environmental effect Effects 0.000 claims 1
- 238000009434 installation Methods 0.000 abstract description 26
- 238000012545 processing Methods 0.000 description 22
- 238000010586 diagram Methods 0.000 description 21
- 238000005516 engineering process Methods 0.000 description 14
- 230000033001 locomotion Effects 0.000 description 11
- 230000008569 process Effects 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 10
- 230000000007 visual effect Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/52—Network services specially adapted for the location of the user terminal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Definitions
- the present disclosure relates to the field of computer technologies, and in particular, to a resource loading method and apparatus, an electronic device, a storage medium, and a program.
- AR Augmented Reality
- Augmented Reality technology is a technology that ingeniously integrates virtual information with the real world. It widely uses multimedia, three-dimensional modeling, real-time tracking and registration, intelligent interaction and sensing. The computer-generated text, images, three-dimensional models, music, videos and other virtual information are simulated and applied to the real world, and the two kinds of information complement each other, thereby realizing the "enhancement" of the real world.
- AR technology is widely used in various fields, such as: AR navigation, AR games, etc.
- the present disclosure proposes a resource loading technical solution for loading AR resources.
- a resource loading method is provided, applied to a first electronic device, including:
- positioning information is used to enable the second electronic device to determine the position information of the first electronic device according to the positioning information, and determine the position information according to the position information of the first electronic device Augmented reality AR resources to be loaded;
- the receiving the AR resource to be loaded sent by the second electronic device, and correspondingly displaying the AR resource to be loaded includes: receiving the AR resource sent by the second electronic device.
- the identification information of the AR resource to be loaded; the identification information of the target AR resource is determined from the identification information of the AR resource to be loaded; the identification information of the target AR resource is carried in the AR resource acquisition request, and sent to the AR resource acquisition request.
- the second electronic device sends an AR resource acquisition request, where the AR resource acquisition request is used to enable the second electronic device to acquire the target AR resource corresponding to the identification information of the target AR resource in response to the AR resource acquisition request; receive and The target AR resource sent by the second electronic device is displayed.
- the receiving the AR resource to be loaded sent by the second electronic device, and correspondingly displaying the AR resource to be loaded includes: receiving the AR resource sent by the second electronic device.
- the AR resource to be loaded; the target AR resource is determined from the AR resource to be loaded; the target AR resource is displayed.
- the sending the positioning information to the second electronic device includes: within a time period, the distance moved by the first electronic device is greater than a distance threshold; During the time period, the real-time location information of the first electronic device is located outside the positioning area; when the previous time period ends, a new time period starts; wherein, the positioning area is based on the location of the first electronic device in the The location information corresponding to the initial time of the time period is the center area.
- the identification information of the AR resource to be loaded includes an AR resource identification and AR resource version information
- the identification information of the target AR resource is determined from the identification information of the AR resource to be loaded, Including: for the identification information of any AR resource to be loaded, in the case that the AR resource corresponding to the AR resource identifier is not cached locally, or the locally cached AR resource version information of the AR resource corresponding to the AR resource identifier, In the case of inconsistency with the AR resource version information, it is determined that the identification information of the AR resource to be loaded is the identification information of the target AR resource.
- the positioning information includes an environment image where the first electronic device is located, and the environment image is used to enable the second electronic device to determine the first electronic device according to the environment image Location information of the device.
- a resource loading method is provided, applied to a second electronic device, including:
- the sending the AR resource to be loaded to the first electronic device includes: sending identification information of the AR resource to be loaded to the first electronic device, wherein the AR resource to be loaded is sent to the first electronic device.
- the identification information of the AR resource to be loaded is used to enable the first electronic device to determine the identification information of the target AR resource from the identification information of the AR resource to be loaded;
- the AR resource acquisition request In response to the AR resource acquisition request, acquire the target AR resource corresponding to the identification information of the target AR resource, and send the target AR resource to the first electronic device, wherein the target AR resource is displayed on the in the first electronic device.
- the determining the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device includes: determining the range to be loaded according to the location information of the first electronic device; For any AR resource, if the location information corresponding to the AR resource is located within the to-be-loaded range, the AR resource is determined to be the to-be-loaded AR resource.
- the determining the range to be loaded according to the location information of the first electronic device includes: determining range construction data; and according to the location information of the first electronic device and the range construction data, Determine the to-be-loaded range.
- the positioning information further includes the network signal quality of the first electronic device and/or the moving speed of the first electronic device
- the determining the range construction data includes: according to the network signal quality, and determine the range construction data corresponding to the network signal quality; and/or, according to the movement speed, determine the range construction data corresponding to the movement speed.
- the determining the to-be-loaded range according to the location information of the first electronic device and the range construction data includes: according to the location information of the first electronic device and the range construction data range construction data, determine the initial range to be loaded; determine the number of AR resources whose location information is within the initial range to be loaded; adjust the range construction data according to the number of AR resources to obtain the adjusted range construction data; The adjusted range construction data and the location information of the first electronic device determine the to-be-loaded range.
- the determining the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device includes: determining the location information of each AR resource and the location information of the first electronic device. The distance between the location information; after sorting the AR resources according to the distance from small to large, the first preset number of AR resources are determined as the AR resources to be loaded.
- the positioning information includes an image of an environment where the first electronic device is located
- the determining the position information of the first electronic device according to the positioning information includes: according to the first electronic device The image of the environment where the device is located visually locates the first electronic device to obtain location information of the first electronic device.
- a resource loading apparatus which is applied to a first electronic device, and the apparatus includes:
- a sending module configured to send positioning information to a second electronic device, where the positioning information is used to enable the second electronic device to determine the position information of the first electronic device according to the positioning information, and to determine the position information of the first electronic device according to the positioning information
- the location information of the device determines the augmented reality AR resources to be loaded
- a receiving module configured to receive the AR resource to be loaded sent by the second electronic device, and to display the AR resource to be loaded accordingly.
- the receiving module is further configured to: receive the identification information of the AR resource to be loaded sent by the second electronic device; determine from the identification information of the AR resource to be loaded Identification information of the target AR resource;
- the resource acquisition request acquires the target AR resource corresponding to the identification information of the target AR resource; and receives and displays the target AR resource sent by the second electronic device.
- the receiving module is further configured to: receive the AR resource to be loaded sent by the second electronic device; determine the target AR resource from the AR resource to be loaded; display the AR resource to be loaded; Target AR resource.
- the sending module is further configured to send positioning information to the second electronic device in response to any one of the following conditions: within a time period, the distance moved by the first electronic device is greater than the distance threshold; within the time period, the real-time location information of the first electronic device is located outside the positioning area; when the previous time period ends, a new time period starts; wherein, the positioning area is based on the first electronic device The location information corresponding to the device at the initial moment of the time period is the center of the area.
- the identification information of the AR resource to be loaded includes the AR resource identification and the AR resource version information
- the receiving module is further configured to: for any identification information of the AR resource to be loaded, the identification information of the AR resource to be loaded is not stored locally. If the AR resource corresponding to the AR resource identifier is cached, or if the locally cached AR resource version information of the AR resource corresponding to the AR resource identifier is inconsistent with the AR resource version information, determine the pending AR resource.
- the identification information of the loaded AR resource is the identification information of the target AR resource.
- the positioning information includes an environment image where the first electronic device is located, and the environment image is used to enable the second electronic device to determine the first electronic device according to the environment image Location information of the device.
- a resource loading apparatus which is applied to a second electronic device, and the apparatus includes:
- a receiving module configured to receive the positioning information sent by the first electronic device
- a first determining module configured to determine the location information of the first electronic device according to the location information
- a second determining module configured to determine the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device
- a sending module configured to send the AR resource to be loaded to the first electronic device, wherein the AR resource to be loaded is displayed in the first electronic device.
- the sending module is further configured to:
- the second determining module is further configured to: determine the to-be-loaded range according to the location information of the first electronic device; for any AR resource, the location information corresponding to the AR resource In the case of being within the to-be-loaded range, the AR resource is determined to be the to-be-loaded AR resource.
- the second determining module is further configured to: determine range construction data; and determine the to-be-loaded range according to the location information of the first electronic device and the range construction data.
- the positioning information further includes the network signal quality of the first electronic device and/or the moving speed of the first electronic device
- the second determining module is further configured to: According to the network signal quality, range construction data corresponding to the network signal quality is determined; and/or, based on the movement speed, range construction data corresponding to the movement speed is determined.
- the second determining module is further configured to: determine an initial range to be loaded according to the location information of the first electronic device and the range construction data; determine that the location information is located in the initial range the number of AR resources in the range to be loaded; adjust the range construction data according to the number of AR resources to obtain the adjusted range construction data; according to the adjusted range construction data and the position of the first electronic device information to determine the to-be-loaded range.
- the second determining module is further configured to: determine the distance between the location information of each AR resource and the location information of the first electronic device; After sorting to the largest, the first preset number of AR resources are determined as the AR resources to be loaded.
- the positioning information includes an image of the environment where the first electronic device is located
- the first determining module is further configured to: determine the first electronic device according to the image of the environment where the first electronic device is located.
- An electronic device performs visual positioning to obtain location information of the first electronic device.
- an electronic device comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to call the instructions stored in the memory to Perform the above method.
- a computer-readable storage medium having computer program instructions stored thereon, the computer program instructions implementing the above method when executed by a processor.
- An embodiment of the present disclosure provides a computer program, including computer-readable code, when the computer-readable code is executed in an electronic device, the processor in the electronic device executes the above method.
- the first electronic device may send positioning information to the second electronic device, where the positioning information is used to enable the second electronic device to determine the position information of the first electronic device according to the positioning information, and determine the augmented reality AR resource to be loaded according to the location information of the first electronic device, and then the first electronic device can receive the AR resource to be loaded sent by the second electronic device, and perform the AR resource to be loaded. Display accordingly.
- the resource loading method and device, electronic device, storage medium and program provided by the embodiments of the present disclosure the corresponding AR resource to be loaded can be determined and loaded according to the location information of the first electronic device, which alleviates the need to package and download an AR application when downloading an AR application.
- the problem that the installation package of the AR application is too large caused by all the AR resources makes the installation package of the AR application lightweight, and improves the download and installation efficiency of the AR application without affecting the user's use.
- FIG. 1 shows a schematic diagram of a resource loading method according to an embodiment of the present disclosure
- FIG. 2 shows a flowchart of a resource loading method according to an embodiment of the present disclosure
- FIG. 3 shows a flowchart of a resource loading method according to an embodiment of the present disclosure
- FIG. 4 shows a schematic diagram of a resource loading method according to an embodiment of the present disclosure
- FIG. 5 shows a schematic diagram of a resource loading method according to an embodiment of the present disclosure
- FIG. 6 shows a block diagram of a resource loading apparatus according to an embodiment of the present disclosure
- FIG. 7 shows a block diagram of a resource loading apparatus according to an embodiment of the present disclosure
- FIG. 8 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure
- FIG. 9 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
- the AR application Users need to download the AR application to the terminal device before applying the AR application. If the AR resources involved in the AR application are packaged and downloaded at the same time when downloading the AR application, the installation package of the AR application will be too large. , If all AR resources are loaded from the cloud server after downloading and installing the AR application, the network transmission will take too long.
- the embodiments of the present disclosure provide a resource loading method, which can determine the position information of a terminal device through VPS (Visual Positioning Service, visual positioning system) visual positioning, and then perform AR resource loading according to the position information of the terminal device. load.
- the AR application installation package does not include AR resources or includes some AR resources.
- the AR program can be used step by step according to the location information of the terminal device.
- Load AR resources For example, the terminal device loads (AR resource 1, AR resource 2, and AR resource 3) at position 1, and loads (AR resource 4, AR resource 5, and AR resource 6) at position 2.
- the installation package of the AR application can be made lightweight, thereby improving the download and installation efficiency of the AR application.
- the resource loading method may be executed by a terminal device (hereinafter referred to as a first electronic device), and the terminal device may be a user equipment (User Equipment, UE), Mobile device, user terminal, terminal, cellular phone, cordless phone, Personal Digital Assistant (PDA), handheld device, computing device, vehicle-mounted device, wearable device, etc., the method can be stored in the memory by calling the processor implemented by means of computer readable instructions.
- a terminal device hereinafter referred to as a first electronic device
- UE user equipment
- PDA Personal Digital Assistant
- the resource loading method may include:
- step S21 the positioning information is sent to the second electronic device, where the positioning information is used to enable the second electronic device to determine the position information of the first electronic device according to the positioning information, and according to the positioning information of the first electronic device
- the location information determines the augmented reality AR resource to be loaded
- step S22 the AR resource to be loaded sent by the second electronic device is received, and the AR resource to be loaded is displayed accordingly.
- the above-mentioned second electronic device may include, for example, a cloud server or the like.
- the first electronic device may send positioning information to the second electronic device, where the positioning information may include the position information of the first electronic device (the first electronic device performs a positioning operation to obtain the position information), and the second electronic device may obtain the position information from the positioning information Location information of the first electronic device.
- the positioning information may include an environment image where the first electronic device is located, and the environment image is used to enable the second electronic device to determine the location of the first electronic device according to the environment image. location information.
- the space can be reconstructed in advance by using a spatial reconstruction technology, for example, by using an SFM (Structure from Motion, motion recovery structure) spatial reconstruction technology, the spatial reconstruction is performed to obtain a three-dimensional model of the space.
- the first electronic device may collect an image of the environment where it is located, and send positioning information including the environment image to the second electronic device. After the second electronic device receives the positioning information, it can visually locate the first electronic device according to the environment image and the three-dimensional model to obtain the position information of the first electronic device.
- SFM Structure from Motion, motion recovery structure
- the second electronic device After the second electronic device obtains the location information of the first electronic device, it can determine the AR resources to be loaded from all AR resources according to the location information of the first electronic device (in the case that the installation package of the AR application includes some AR resources) , the AR resource to be loaded may be determined from the remaining AR resources that are not packaged into the installation package), and the AR resource to be loaded may be sent to the first electronic device.
- the second electronic device may determine that the AR resource whose location information and the location information of the first electronic device satisfy the loading condition is the AR resource to be loaded. For example, when the distance between the location information of the AR resource and the location information of the first electronic device is within the distance threshold, it may be determined that the AR resource satisfies the loading condition, and the AR resource is determined as the AR resource to be loaded.
- a range to be loaded can be determined according to the position information of the first electronic device (for example, an area is determined with the position information of the first electronic device as the center, and the area is the range to be loaded), and the position information of the AR resource is located in the to-be-loaded range. When it is within the range, it can be determined that the AR resource is the AR resource to be loaded.
- the first electronic device may display the AR resource to be loaded accordingly. For example: display the AR resources to be loaded that have not been loaded locally on the first electronic device, or display the corresponding loading prompt information for the AR resources to be loaded that have been loaded locally but have been updated. It asks the user whether to update the AR resource to be loaded, and can display correspondingly in response to the user's confirmation operation for the loading prompt information. For example: in response to the confirmation operation for loading, load and display the AR resource to be loaded, and delete the local cached version, or in response to the confirmation operation for not loading, do not load the AR resource to be loaded, and display the local AR resource to be loaded. cached version.
- the first electronic device can send positioning information to the second electronic device, where the positioning information is used to enable the second electronic device to determine the position information of the first electronic device according to the positioning information, and
- the location information of an electronic device determines the AR resource to be loaded, and then the first electronic device can receive the AR resource to be loaded sent by the second electronic device, and display the AR resource to be loaded accordingly.
- the corresponding AR resource to be loaded can be determined and loaded according to the location information of the first electronic device, which alleviates the AR application caused by packaging and downloading all AR resources when downloading the AR application.
- the problem that the installation package is too large makes the installation package of the AR application lightweight, which improves the download and installation efficiency of the AR application without affecting the user's use.
- the receiving the AR resource to be loaded sent by the second electronic device, and correspondingly displaying the AR resource to be loaded may include:
- the second electronic device may determine the AR resources to be loaded from all AR resources according to the location information of the first electronic device, and obtain identification information of the AR resources to be loaded, where the identification information of the AR resources to be loaded may be used to identify the AR resources to be loaded.
- AR resource to be loaded may include the ID and name of the AR resource to be loaded, and may also include version information of the AR resource to be loaded, and the like.
- the first electronic device may determine the identification information of the target AR resource from the identification information of the AR resource to be loaded according to the identification information of the locally cached AR resource and the identification information of the AR resource to be loaded.
- the identification information of the AR resource to be loaded includes AR resource identification and AR resource version information, and the identification information of the target AR resource is determined from the identification information of the AR resource to be loaded, including :
- the identification information of any AR resource to be loaded if the AR resource corresponding to the AR resource identifier is not cached locally, or the locally cached AR resource version information of the AR resource corresponding to the AR resource identifier is the same as the AR resource version information of the AR resource. In the case that the AR resource version information is inconsistent, it is determined that the identification information of the AR resource to be loaded is the identification information of the target AR resource.
- the identification information of any AR resource to be loaded when the AR resource identification included in the identification information of the AR resource to be loaded does not exist in the AR resource identification corresponding to the locally cached AR resource, it is determined that the AR resource is not cached locally.
- the identification information of the AR resource to be loaded may be determined as the identification information of the target AR resource.
- the AR resource identifier included in the identifier information of the AR resource to be loaded exists in the AR resource identifier corresponding to the locally cached AR resource, but the AR resource version information corresponding to the AR resource identifier stored locally is the same as the AR resource identifier to be loaded.
- the AR resource version information included in the identification information is inconsistent, it can be determined that the version of the AR resource to be loaded has been updated, so the identification information of the AR resource to be loaded can be determined as the identification information of the target AR resource.
- the first electronic device may send an AR resource acquisition request to the second electronic device according to the identification information of the target AR resource.
- the second electronic device may acquire the corresponding target AR resource according to the identification information of the target AR resource, and send the target AR resource to the first electronic device.
- the first electronic device may receive the target AR resource sent by the second electronic device, and display the target AR resource on the display interface of the first electronic device.
- the cached historical version may be deleted, and the target AR resource sent by the second electronic device may be cached.
- the AR resource is AR billboard 1
- the locally cached version is version 1.0
- the version sent by the second electronic device is version 2.0
- the locally cached version 1.0 of AR billboard 1 can be deleted, and the cached version sent by the second electronic device is version 2.0.
- the AR resource can be loaded step by step according to the location information of the first electronic device, which can make the installation package of the AR application lightweight, and can improve the loading accuracy and efficiency in the process of loading the AR resource.
- the receiving the AR resource to be loaded sent by the second electronic device, and correspondingly displaying the AR resource to be loaded may include:
- the second electronic device may send the AR resource to be loaded to the first electronic device, and after receiving the AR resource to be loaded, the first electronic device may determine the target AR resource from the AR resource to be loaded, and load the AR resource for display Resource, wherein, for the method of determining the target AR resource, reference may be made to the foregoing embodiments, and details are not described herein again in this embodiment of the present disclosure.
- the sending the positioning information to the second electronic device may include:
- the positioning information is sent to the second electronic device; wherein, the positioning area is the area corresponding to the first electronic device at the initial moment of the time period.
- the location information is the center of the area.
- the first electronic device may send positioning information to the second electronic device every time period T, and the time period T may be preset or determined according to the moving speed of the first electronic device, for example: when When the moving speed of the first electronic device is relatively fast, a relatively small time period T can be set accordingly, and when the moving speed of the first electronic device is relatively slow, a relatively large time period T can be set accordingly.
- a positioning area can be preset with the position information corresponding to the first electronic device at the initial moment of the time period as the center, and when the real-time position of the first electronic device is outside the positioning area, the second electronic device can be sent to the second electronic device. The positioning information is sent to reduce the interaction process with the second electronic device and improve resource utilization.
- FIG. 3 shows a flowchart of a resource loading method according to an embodiment of the present disclosure.
- the resource loading method can be applied to a cloud server (hereinafter referred to as a second electronic device) for execution.
- a cloud server hereinafter referred to as a second electronic device
- the resource loading method provided by an embodiment of the present disclosure Can include:
- step S31 receiving the positioning information sent by the first electronic device
- step S32 the location information of the first electronic device is determined according to the location information
- step S33 determining the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device
- step S34 the AR resource to be loaded is sent to the first electronic device, wherein the AR resource to be loaded is displayed in the first electronic device.
- the first electronic device may perform a positioning operation, and after obtaining the position information of the first electronic device, send the positioning information to the second electronic device, where the positioning information may include the position information of the first electronic device.
- the second electronic device may acquire the position information of the first electronic device from the positioning information.
- the positioning information includes an image of an environment where the first electronic device is located
- the determining the position information of the first electronic device according to the positioning information may include:
- the first electronic device may send positioning information including an image of the environment where the first electronic device is located to the second electronic device (for a specific process, refer to the foregoing embodiment, which is not repeated in this embodiment of the present disclosure).
- the second electronic device After the second electronic device receives the positioning request, it visually locates the first electronic device according to the environment image and the three-dimensional model obtained by reconstructing the space in advance, and obtains the position information of the first electronic device.
- the specific process is not limited, and any visual positioning method can be used.
- the second electronic device may determine the AR resource to be loaded from the AR resources according to the location information of the first electronic device and the location information of each AR resource. In some embodiments, the second electronic device may determine that the AR resource whose location information and the location information of the first electronic device satisfy the loading condition is the AR resource to be loaded.
- the AR resource when the distance between the location information of the AR resource and the location information of the first electronic device is within the distance threshold, it may be determined that the AR resource satisfies the loading condition, and the AR resource may be determined as the AR resource to be loaded, or, according to the first
- the location information of the electronic device determines a to-be-loaded range (for example, an area is determined with the location information of the first electronic device as the center, and the area is the to-be-loaded range).
- a to-be-loaded range for example, an area is determined with the location information of the first electronic device as the center, and the area is the to-be-loaded range.
- the second electronic device After the second electronic device determines the AR resources to be loaded, it can obtain the AR resources to be loaded and send the AR resources to be loaded to the first electronic device, so that the first electronic device can load and display the AR resources to be loaded according to the cache situation of the AR resources . For example, when the first electronic device does not cache the AR resource to be loaded or the cached AR resource version information of the AR resource to be loaded is inconsistent with the AR resource version information of the AR resource to be loaded, the AR resource to be loaded is loaded and displayed.
- the second electronic device can receive the positioning information sent by the first electronic device, and determine the position information of the first electronic device according to the positioning information.
- the second electronic device may determine the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device, and send the AR resource to be loaded to the first electronic device, so that the first electronic device
- the device displays the AR resource to be loaded accordingly.
- the AR resources can be loaded gradually according to the location information of the first electronic device, which alleviates the problem that the installation package of the AR application is too large due to downloading all the AR resources when downloading the AR application. The problem makes the installation package of the AR application lightweight, and improves the download and installation efficiency of the AR application without affecting the user's use.
- the sending the AR resource to be loaded to the first electronic device may include:
- the AR resource acquisition request In response to the AR resource acquisition request, acquire the target AR resource corresponding to the identification information of the target AR resource, and send the target AR resource to the first electronic device, wherein the target AR resource is displayed on the first electronic device.
- the second electronic device may acquire identification information of the AR resource to be loaded, and send the identification information of the AR resource to be loaded to the first electronic device.
- the first electronic device may determine the identification information of the target AR resource from the identification information of the AR resource to be loaded according to the situation of the locally cached AR resource (for the specific process, refer to the foregoing embodiment, which is not repeated in this embodiment of the present disclosure).
- the first electronic device may send an AR resource acquisition request including the identification information of the target AR resource to the second electronic device.
- the second electronic device can acquire the corresponding target AR resource according to the identification information of the target AR resource, and send the target AR resource to the first electronic device for caching and display.
- the AR resource can be loaded step by step according to the location information of the first electronic device, which can make the installation package of the AR application lightweight, and can improve the loading accuracy and efficiency in the process of loading the AR resource.
- the determining the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device may include:
- the AR resource is determined to be the to-be-loaded AR resource.
- a range to be loaded may be determined by using the position information of the first electronic device as a reference point. For example: take the position information of the first electronic device as the center point, determine a circular, rectangular or polygonal area, this area is the to-be-loaded area, the size of this area can be preset or dynamically determined, this disclosure implements The example does not specifically limit this.
- the second electronic device may determine the AR resource whose location information is within the to-be-loaded range as the to-be-loaded AR resource. For example, referring to FIG. 4 , the position information P0 of the first electronic device can be used as the center point to determine a circular area as the range to be loaded, and then the AR resource 1, AR resource 2 and AR resource located in the to-be-loaded range 3 can be determined as the target AR resource.
- the determining the range to be loaded according to the location information of the first electronic device may include:
- the to-be-loaded range is determined according to the location information of the first electronic device and the range construction data.
- the above range construction data may be parameters for defining the area of the range to be loaded.
- the above range construction data when the range to be loaded is a circular area, the above range construction data may be the radius of the circular area; when the range to be loaded is a rectangle, the above range construction data may include the length and width of the rectangular area.
- the size of the range construction data can be preset, or can also be determined according to the loading requirements. For example, when the loading speed is required to be fast, the range construction data can be set smaller.
- the range to be loaded can be determined.
- the position P0 of the first electronic device can be used as the center of the circle, and the range construction data is used as the radius to construct a circular area to obtain the range to be loaded.
- the position P0 of the first electronic device may be taken as the center, and a rectangular area may be constructed with the range construction data as the length and width to obtain the range to be loaded.
- the above-mentioned range to be loaded is a circular area or a rectangular area, which is an example of the range to be loaded in the embodiment of the present disclosure.
- the range to be loaded may have any shape, and the embodiment of the present disclosure does not define the range to be loaded.
- the shape presented does not make any restrictions.
- the positioning request may further include the network signal quality of the first electronic device and/or the moving speed of the first electronic device, and the determining the range construction data may include:
- range construction data corresponding to the moving speed is determined.
- the first electronic device when the first electronic device sends the positioning information, it may detect the network signal quality of the first electronic device and/or determine the moving speed of the first electronic device (which may include data such as speed, acceleration, etc.), and send the first electronic device to the network.
- the network signal quality of the device and/or the moving speed of the first electronic device are sent to the second electronic device through the positioning information.
- the network signal quality can be divided into multiple levels, for example: divided into high quality, good, poor and other levels (the network signal quality level and level are not limited in the embodiments of the present disclosure) , where, when the network signal quality is high quality, the corresponding range construction data is the first range construction data, when the network signal quality is good, the corresponding range construction data is the second range construction data, and when the network signal quality is poor, the corresponding range construction data
- the range construction data is the third range construction data, the first range construction data is larger than the second range construction data, and the second range construction data is larger than the third range construction data.
- the second electronic device can determine the range construction data corresponding to the network signal quality according to the network signal quality of the first electronic device, so as to be able to set larger range construction data when the network signal quality is good, thereby expanding the to-be-loaded range , so that the first electronic device loads more AR resources, sets a smaller range construction data when the network signal quality is poor, and further narrows the to-be-loaded range to load less AR resources.
- the first electronic device can adaptively load the AR resource according to the quality of the network signal, which can bring better user experience.
- the moving speed can also be divided into multiple speed ranges, for example: 0 to 1m/s is divided into a first speed range, 1m/s to 2m/s is divided into a second speed range (excluding 1m/s), the speed greater than 2m/s is divided into the third speed range, wherein the first speed range corresponds to the fourth range construction data, the second speed range corresponds to the fifth range construction data, and the third speed range corresponds to the sixth range.
- the range construction data, the fourth range construction data is smaller than the fifth range construction data, and the fifth range construction data is smaller than the sixth range construction data.
- the second electronic device may determine the range construction data corresponding to the movement speed according to the movement speed of the first electronic device. For example, when the movement speed of the first electronic device is within the first speed range, the range construction data may be determined as the fourth range Build data.
- the range construction data can be dynamically determined according to the moving speed of the first electronic device, so as to set a larger range construction data when the moving speed of the first electronic device is fast, thereby expanding the to-be-loaded range, so that the first electronic device moves faster.
- the electronic device loads more AR resources; when the moving speed of the first electronic device is slow, a smaller range construction data is set, thereby narrowing the to-be-loaded range, so that the first electronic device loads less AR resources.
- the loading process of the AR resources can be adapted to the moving process of the first electronic device, and the AR resources at the location of the first electronic device have not been loaded by the first electronic device due to the fast moving speed of the first electronic device. problems, which can lead to a better user experience.
- the determining the range to be loaded according to the location information of the first electronic device and the range construction data may include:
- the to-be-loaded range is determined according to the adjusted range construction data and the position information of the first electronic device.
- the second electronic device can determine an initial range to be loaded according to the range construction data and the position information of the first electronic device, for example, the position information of the first electronic device can be used as the center of the circle , with the range construction data as the radius, construct a circular initial range to be loaded.
- the data can be constructed by narrowing down the range according to the preset adjustment strategy , or, when the number of AR resources located in the initial to-be-loaded range is small (for example, when it is less than the second threshold), the range construction data can be increased according to the preset adjustment strategy, and the range construction data and data can be constructed according to the adjusted range.
- the location information of the first electronic device is used to determine the to-be-loaded range (for the specific process, reference may be made to the foregoing embodiment, which is not repeated here in this embodiment of the present disclosure).
- the second electronic device can dynamically adjust the range to be loaded, and then adjust the number of AR resources loaded by the first electronic device, which can ensure the loading speed, alleviate the problem of users waiting due to loading AR resources, and improve user experience.
- the determining the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device may include:
- the first preset number of AR resources are determined as the AR resources to be loaded.
- the distance between the location information of each AR resource and the location information of the first electronic device can be determined respectively, and the AR resources can be sorted according to the distance from small to large, and the first preset number of AR resources in the sequence can be sorted.
- the resource is determined as the AR resource to be loaded (or, the AR resources can be sorted from large to small according to the distance, and the last preset number of AR resources in the sequence can be determined as the AR resource to be loaded), and the preset number can be the preset number of AR resources. set value. For example, if the preset number is set to 5, the top 5 AR resources in the sequence can be determined as the AR resources to be loaded. In this way, the loading speed of AR resources can be guaranteed and the user experience can be improved.
- the first electronic device may collect an image of the current environment, and send positioning information to the second electronic device according to the environment image.
- the second electronic device can perform visual positioning according to an image of the environment where the first electronic device is located, so as to obtain the position information of the first electronic device.
- the second electronic device may determine the range construction data, and use the position information of the first electronic device as a center point to construct the range to be loaded.
- the first electronic device After receiving the identification information of the AR resource to be loaded, the first electronic device compares it with the locally cached AR resource, and the AR resource identified by the identification information of the AR resource to be loaded is not cached locally, or the locally cached AR resource identified by the identification information of the AR resource to be loaded is not cached locally.
- the version information is inconsistent with the AR resource version information of the AR resource to be loaded, it may be determined that the identification information of the AR resource to be loaded is the identification information of the target AR resource, and a resource acquisition request is sent to the second electronic device according to the identification information of the target AR resource .
- the second electronic device acquires the target AR resource according to the resource acquisition request, and sends the target AR resource to the first electronic device.
- the first electronic device receives the cache and displays the target AR resource, and after the time period T or when the distance moved by the first electronic device exceeds the distance threshold, the above process is repeated.
- the resource loading method provided by the embodiment of the present disclosure can load the corresponding target AR resource according to the location information of the first electronic device, which alleviates the excessively large installation package of the AR application caused by packaging and downloading all the AR resources when downloading the AR application.
- the problem In some embodiments, after the AR game application or AR navigation application is started, the user does not need to wait for all AR resources to be updated to complete the AR game or AR navigation.
- the location information of the electronic device loads AR resources, which improves the user experience.
- the present disclosure also provides resource loading apparatuses, electronic devices, computer-readable storage media, and programs, all of which can be used to implement any resource loading method provided by the present disclosure.
- resource loading apparatuses electronic devices, computer-readable storage media, and programs, all of which can be used to implement any resource loading method provided by the present disclosure.
- FIG. 6 shows a block diagram of a resource loading apparatus according to an embodiment of the present disclosure.
- the apparatus is applied to a first electronic device.
- the apparatus includes: a sending module 61, which can be configured to send to a second electronic device Positioning information, where the positioning information is used to enable the second electronic device to determine the position information of the first electronic device according to the positioning information, and to determine the augmented reality AR resource to be loaded according to the position information of the first electronic device ;
- the receiving module 62 may be configured to receive the AR resource to be loaded sent by the second electronic device, and to display the AR resource to be loaded accordingly.
- the first electronic device can send positioning information to the second electronic device, so that the second electronic device determines the position information of the first electronic device according to the positioning information, and determines the position information of the first electronic device according to the position of the first electronic device.
- the information determines the AR resource to be loaded, and then the first electronic device may receive the AR resource to be loaded sent by the second electronic device, and display the AR resource to be loaded accordingly.
- the resource loading apparatus provided by the embodiment of the present disclosure, the corresponding AR resource to be loaded can be determined and loaded according to the location information of the first electronic device, which alleviates the AR application caused by packaging and downloading all AR resources when downloading the AR application.
- the problem that the installation package is too large makes the installation package of the AR application lightweight, which improves the download and installation efficiency of the AR application without affecting the user's use.
- the receiving module may be further configured to: receive the identification information of the AR resource to be loaded sent by the second electronic device; from the identification information of the AR resource to be loaded, Determine the identification information of the target AR resource; carry the identification information of the target AR resource in the AR resource acquisition request, and send the AR resource acquisition request to the second electronic device, and the AR resource acquisition request is used to make the AR resource acquisition request
- the second electronic device acquires the target AR resource corresponding to the identification information of the target AR resource according to the AR resource acquisition request; and receives and displays the target AR resource sent by the second electronic device.
- the receiving module may be further configured to: receive the AR resource to be loaded sent by the second electronic device; determine the target AR resource from the AR resource to be loaded; display the AR resource to be loaded; Describe the target AR resource.
- the sending module may also be configured to send positioning information to the second electronic device in response to any of the following conditions: within a time period, the distance moved by the first electronic device is greater than distance threshold; within the time period, the real-time location information of the first electronic device is located outside the positioning area; when the previous time period ends, a new time period starts; wherein, the positioning area is based on the first time period
- the position information corresponding to the electronic device at the initial moment of the time period is the center area.
- the identification information of the AR resource to be loaded includes AR resource identification and AR resource version information
- the receiving module may also be used to: for any identification information of the AR resource to be loaded, in the local If the AR resource corresponding to the AR resource identifier is not cached, or if the locally cached AR resource version information of the AR resource corresponding to the AR resource identifier is inconsistent with the AR resource version information, determine the AR resource.
- the identification information of the AR resource to be loaded is the identification information of the target AR resource.
- the positioning information may include an environment image where the first electronic device is located, and the environment image is used to enable the second electronic device to determine the first electronic device according to the environment image. Location information of electronic devices.
- Fig. 7 shows a block diagram of a resource loading apparatus according to an embodiment of the present disclosure.
- the apparatus is applied to a second electronic device.
- the apparatus includes: a receiving module 71, which can be configured to receive data sent by the first electronic device
- the first determining module 72 can be used to determine the location information of the first electronic device according to the positioning information
- the second determining module 73 can be used to determine the location information of the first electronic device from the enhanced
- the AR resource to be loaded is determined from the actual AR resource
- the sending module 74 may be configured to send the AR resource to be loaded to the first electronic device, wherein the AR resource to be loaded is displayed in the first electronic device.
- the second electronic device can receive the positioning information sent by the first electronic device, and determine the position information of the first electronic device according to the positioning information.
- the second electronic device may determine the AR resource to be loaded from the augmented reality AR resource according to the location information of the first electronic device, and send the AR resource to be loaded to the first electronic device, so that the first electronic device
- the device displays the AR resource to be loaded accordingly.
- AR resources can be loaded gradually according to the location information of the first electronic device, which alleviates the problem of excessively large installation packages of AR applications caused by downloading all AR resources when downloading AR applications. The problem makes the installation package of the AR application lightweight, and improves the download and installation efficiency of the AR application without affecting the user's use.
- the sending module may be further configured to: send the identification information of the AR resource to be loaded to the first electronic device, where the identification information of the AR resource to be loaded is used for Make the first electronic device determine the identification information of the target AR resource from the identification information of the AR resource to be loaded; receive an AR resource acquisition request sent by the first electronic device, where the AR resource acquisition request carries the identification information of the target AR resource; in response to the AR resource acquisition request, acquire the target AR resource corresponding to the identification information of the target AR resource, and send the target AR resource to the first electronic device, wherein the The target AR resource is displayed in the first electronic device.
- the second determining module may be further configured to: determine the to-be-loaded range according to the location information of the first electronic device; for any AR resource, at the location corresponding to the AR resource When the information is within the to-be-loaded range, it is determined that the AR resource is the to-be-loaded AR resource.
- the second determining module may be further configured to: determine range construction data; and determine the to-be-loaded range according to the location information of the first electronic device and the range construction data.
- the positioning information further includes the network signal quality of the first electronic device and/or the moving speed of the first electronic device
- the second determining module may also be used for : determining range construction data corresponding to the network signal quality according to the network signal quality; and/or determining range construction data corresponding to the movement speed according to the movement speed.
- the second determining module may be further configured to: determine the initial range to be loaded according to the location information of the first electronic device and the range construction data; determine that the location information is located in the The number of AR resources in the range to be loaded initially; the range construction data is adjusted according to the number of AR resources to obtain the adjusted range construction data; the range construction data is adjusted according to the adjusted range construction data and the first electronic device. location information, to determine the to-be-loaded range.
- the second determining module may be further configured to: determine the distance between the location information of each AR resource and the location information of the first electronic device; After sorting from small to large, the first preset number of AR resources are determined as AR resources to be loaded.
- the positioning information includes an image of the environment where the first electronic device is located
- the first determining module may be further configured to: determine the The first electronic device performs visual positioning to obtain location information of the first electronic device.
- the functions or modules included in the apparatuses provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments.
- Embodiments of the present disclosure further provide a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the foregoing method is implemented.
- the computer-readable storage medium may be a non-volatile computer-readable storage medium.
- An embodiment of the present disclosure further provides an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.
- Embodiments of the present disclosure also provide a computer program product, including computer-readable codes.
- a processor in the device executes a method for implementing the resource loading method provided by any of the above embodiments. instruction.
- Embodiments of the present disclosure further provide another computer program product for storing computer-readable instructions, which, when executed, cause a computer to perform operations of the resource loading method provided by any of the foregoing embodiments.
- the electronic device may be provided as a terminal, server or other form of device.
- FIG. 8 shows a block diagram of an electronic device 800 according to an embodiment of the present disclosure.
- electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc. terminal.
- an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814 , and the communication component 816 .
- the processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
- the processing component 802 can include one or more processors 820 to execute instructions to perform all or some of the steps of the methods described above.
- processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
- processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
- Memory 804 is configured to store various types of data to support operation at electronic device 800 . Examples of such data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 804 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM erasable Programmable Read Only Memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Magnetic or Optical Disk Magnetic Disk
- Power supply assembly 806 provides power to various components of electronic device 800 .
- Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
- Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
- the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
- the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
- the multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
- Audio component 810 is configured to output and/or input audio signals.
- audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when electronic device 800 is in operating modes, such as calling mode, recording mode, and voice recognition mode.
- the received audio signal may be further stored in memory 804 or transmitted via communication component 816 .
- audio component 810 also includes a speaker for outputting audio signals.
- the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
- Sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of electronic device 800 .
- the sensor assembly 814 can detect the on/off state of the electronic device 800, the relative positioning of the components, such as the display and the keypad of the electronic device 800, the sensor assembly 814 can also detect the electronic device 800 or one of the electronic device 800 Changes in the position of components, presence or absence of user contact with the electronic device 800 , orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
- Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
- Sensor assembly 814 may also include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or charge coupled device (CCD) image sensor, for use in imaging applications.
- CMOS complementary metal oxide semiconductor
- CCD charge coupled device
- the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
- the electronic device 800 may access a wireless network based on a communication standard, such as wireless network (WiFi), second generation mobile communication technology (2G) or third generation mobile communication technology (3G), or a combination thereof.
- the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication.
- the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmed gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field programmable A programmed gate array
- controller microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
- a non-volatile computer-readable storage medium such as a memory 804 comprising computer program instructions executable by the processor 820 of the electronic device 800 to perform the above method is also provided.
- FIG. 9 shows a block diagram of an electronic device 1900 according to an embodiment of the present disclosure.
- the electronic device 1900 may be provided as a server.
- electronic device 1900 includes processing component 1922, which further includes one or more processors, and a memory resource represented by memory 1932 for storing instructions executable by processing component 1922, such as applications.
- An application program stored in memory 1932 may include one or more modules, each corresponding to a set of instructions.
- the processing component 1922 is configured to execute instructions to perform the above-described methods.
- the electronic device 1900 may also include a power supply assembly 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input output (I/O) interface 1958 .
- the electronic device 1900 can operate based on an operating system stored in the memory 1932, such as a Microsoft server operating system (Windows Server TM ), a graphical user interface based operating system (Mac OS X TM ) introduced by Apple, a multi-user multi-process computer operating system (Unix TM ), Free and Open Source Unix-like Operating System (Linux TM ), Open Source Unix-like Operating System (FreeBSD TM ) or the like.
- Microsoft server operating system Windows Server TM
- Mac OS X TM graphical user interface based operating system
- Uniix TM multi-user multi-process computer operating system
- Free and Open Source Unix-like Operating System Linux TM
- FreeBSD TM Open Source Unix-like Operating System
- a non-volatile computer-readable storage medium such as memory 1932 comprising computer program instructions executable by processing component 1922 of electronic device 1900 to perform the above-described method.
- the present disclosure may be a system, method and/or computer program product.
- the computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the embodiments of the present disclosure.
- a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
- the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
- Non-exhaustive list of computer readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM) or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically coded devices, such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
- RAM random access memory
- ROM read only memory
- EPROM erasable programmable read only memory
- flash memory static random access memory
- SRAM static random access memory
- CD-ROM compact disk read only memory
- DVD digital versatile disk
- memory sticks floppy disks
- mechanically coded devices such as printers with instructions stored thereon Hole cards or raised structures in grooves, and any suitable combination of the above.
- Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (eg, light pulses through fiber optic cables), or through electrical wires transmitted electrical signals.
- the computer readable program instructions described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network, and/or a wireless network.
- the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
- a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
- Computer program instructions for carrying out operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages.
- Source or object code written in any combination, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the "C" language or similar programming languages.
- the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement.
- the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect).
- LAN local area network
- WAN wide area network
- custom electronic circuits such as programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs)
- FPGAs field programmable gate arrays
- PDAs programmable logic arrays
- Computer readable program instructions are executed to implement various aspects of the embodiments of the present disclosure.
- These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
- These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
- Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
- each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
- the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
- the computer program product can be specifically implemented by hardware, software or a combination thereof.
- the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.
- a software development kit Software Development Kit, SDK
- the present disclosure provides a resource loading method and apparatus, an electronic device, a storage medium and a program, wherein positioning information is sent to a second electronic device, where the positioning information is used to enable the second electronic device to determine according to the positioning information the location information of the first electronic device, and determine the augmented reality AR resource to be loaded according to the location information of the first electronic device; receive the AR resource to be loaded sent by the second electronic device, and Load AR resources for corresponding display.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (19)
- 一种资源加载方法,其中,应用于第一电子设备,包括:向第二电子设备发送定位信息,所述定位信息用于使所述第二电子设备根据所述定位信息确定所述第一电子设备的位置信息,并根据所述第一电子设备的位置信息确定待加载增强现实AR资源;接收所述第二电子设备发送的所述待加载AR资源,并对所述待加载AR资源进行相应展示。
- 根据权利要求1所述的方法,其中,所述接收所述第二电子设备发送的所述待加载AR资源,并对所述待加载AR资源进行相应展示,包括:接收所述第二电子设备发送的所述待加载AR资源的标识信息;从所述待加载AR资源的标识信息中,确定目标AR资源的标识信息;将所述目标AR资源的标识信息携带于AR资源获取请求,并向所述第二电子设备发送所述AR资源获取请求,所述AR资源获取请求用于使所述第二电子设备响应于所述AR资源获取请求获取所述目标AR资源的标识信息对应的目标AR资源;接收并展示所述第二电子设备发送的所述目标AR资源。
- 根据权利要求1所述的方法,其中,所述接收所述第二电子设备发送的所述待加载AR资源,并对所述待加载AR资源进行相应展示,包括:接收所述第二电子设备发送的所述待加载AR资源;从所述待加载AR资源中确定目标AR资源;展示所述目标AR资源。
- 根据权利要求1至3中任一项所述的方法,其中,响应于以下任一种情况,所述向第二电子设备发送定位信息,包括:在时间周期内,所述第一电子设备移动的距离大于距离阈值;在所述时间周期内,所述第一电子设备的实时位置信息位于定位区域外;在上一时间周期结束,开始新一时间周期;其中,所述定位区域为以所述第一电子设备在所述时间周期初始时刻对应的位置信息为中心的区域。
- 根据权利要求2所述的方法,其中,所述待加载AR资源的标识信息包括AR资源标识及AR资源版本信息,所述从所述待加载AR资源的标识信息中,确定目标AR资源的标识信息,包括:针对任一待加载AR资源的标识信息,在本地未缓存所述AR资源标识对应的AR资源的情况下,或者在本地缓存的所述AR资源标识对应的AR资源的AR资源版本信息,与所述AR资源版本信息不一致的情况下,确定所述待加载AR资源的标识信息为所述目标AR资源的标识信息。
- 根据权利要求1至5中任一项所述的方法,其中,所述定位信息中包括所述第一电子设备所在的环境图像,所述环境图像用于使所述第二电子设备根据所述环境图像确定所述第一电子设备的位置信息。
- 一种资源加载方法,其中,应用于第二电子设备,包括:接收第一电子设备发送的定位信息;根据所述定位信息确定所述第一电子设备的位置信息;根据所述第一电子设备的位置信息,从增强现实AR资源中确定待加载AR资源;向所述第一电子设备发送所述待加载AR资源,其中,所述待加载AR资源展示于所 述第一电子设备中。
- 根据权利要求7所述的方法,其中,所述向所述第一电子设备发送所述待加载AR资源,包括:向所述第一电子设备发送所述待加载AR资源的标识信息,其中,所述待加载AR资源的标识信息用于使所述第一电子设备从所述待加载AR资源的标识信息中确定目标AR资源的标识信息;接收所述第一电子设备发送的AR资源获取请求,所述AR资源获取请求中携带所述目标AR资源的标识信息;响应于所述AR资源获取请求,获取所述目标AR资源的标识信息对应的目标AR资源,并向所述第一电子设备发送所述目标AR资源,其中,所述目标AR资源展示于所述第一电子设备中。
- 根据权利要求7或8所述的方法,其中,所述根据所述第一电子设备的位置信息,从增强现实AR资源中确定待加载AR资源,包括:根据所述第一电子设备的位置信息确定待加载范围;针对任一AR资源,在所述AR资源对应的位置信息位于所述待加载范围内的情况下,确定所述AR资源为待加载AR资源。
- 根据权利要求9所述的方法,其中,所述根据所述第一电子设备的位置信息确定待加载范围,包括:确定范围构建数据;根据所述第一电子设备的位置信息及所述范围构建数据,确定所述待加载范围。
- 根据权利要求10所述的方法,其中,所述定位信息中还包括所述第一电子设备的网络信号质量和/或所述第一电子设备的移动速度,所述确定范围构建数据,包括:根据所述网络信号质量,确定与所述网络信号质量相对应的范围构建数据;和/或,根据所述移动速度,确定与所述移动速度相对应的范围构建数据。
- 根据权利要求10或11所述的方法,其中,所述根据所述第一电子设备的位置信息及所述范围构建数据,确定所述待加载范围,包括:根据所述第一电子设备的位置信息及所述范围构建数据,确定初始待加载范围;确定位置信息位于所述初始待加载范围内的AR资源的数量;根据所述AR资源的数量调整所述范围构建数据,得到调整后的范围构建数据;根据所述调整后的范围构建数据及所述第一电子设备的位置信息,确定所述待加载范围。
- 根据权利要求7所述的方法,其中,所述根据所述第一电子设备的位置信息,从增强现实AR资源中确定待加载AR资源,包括:确定各AR资源的位置信息与所述第一电子设备的位置信息之间的距离;将各AR资源按照距离由小到大进行排序后,将前预置数量个AR资源确定为所述待加载AR资源。
- 根据权利要求7所述的方法,其中,所述定位信息中包括所述第一电子设备所在的环境图像,所述根据所述定位信息确定所述第一电子设备的位置信息,包括:根据第一电子设备所在的环境图像对所述第一电子设备进行视觉定位,得到所述第一电子设备的位置信息。
- 一种资源加载装置,其中,应用于第一电子设备,所述装置包括:发送模块,用于向第二电子设备发送定位信息,所述定位信息用于使所述第二电子设备根据所述定位信息确定所述第一电子设备的位置信息,并根据所述第一电子设备的位置信息确定待加载增强现实AR资源;接收模块,用于接收所述第二电子设备发送的所述待加载AR资源,并对所述待加载 AR资源进行相应展示。
- 一种资源加载装置,其中,应用于第二电子设备,所述装置包括:接收模块,用于接收第一电子设备发送的定位信息;第一确定模块,用于根据所述定位信息确定所述第一电子设备的位置信息;第二确定模块,用于根据所述第一电子设备的位置信息从增强现实AR资源中确定待加载AR资源;发送模块,用于向所述第一电子设备发送所述待加载AR资源,其中,所述待加载AR资源展示于所述第一电子设备中。
- 一种电子设备,其中,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至6中任意一项所述的方法;或者,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求7至14中任意一项所述的方法。
- 一种计算机可读存储介质,其上存储有计算机程序指令,其中,所述计算机程序指令被处理器执行时实现权利要求1至6中任意一项所述的方法;或者,所述计算机程序指令被处理器执行时实现权利要求7至14中任意一项所述的方法。
- 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在电子设备中运行时,所述电子设备中的处理器执行用于实现权利要求1至6中任意一项所述的方法;或者,所述电子设备中的处理器执行用于实现权利要求7至14中任意一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2021567017A JP7450641B2 (ja) | 2020-11-27 | 2021-06-04 | リソースローディング方法、装置、電子機器、記憶媒体及びプログラム |
KR1020217043247A KR20220007171A (ko) | 2020-11-27 | 2021-06-04 | 리소스 로딩 방법 및 장치, 전자 기기와 저장 매체 및 프로그램 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011357349.2 | 2020-11-27 | ||
CN202011357349.2A CN112437090B (zh) | 2020-11-27 | 2020-11-27 | 资源加载方法及装置、电子设备和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022110754A1 true WO2022110754A1 (zh) | 2022-06-02 |
Family
ID=74698515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/098335 WO2022110754A1 (zh) | 2020-11-27 | 2021-06-04 | 资源加载方法及装置、电子设备和存储介质及程序 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112437090B (zh) |
WO (1) | WO2022110754A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112437090B (zh) * | 2020-11-27 | 2022-11-04 | 深圳市商汤科技有限公司 | 资源加载方法及装置、电子设备和存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991947A (zh) * | 2015-07-13 | 2015-10-21 | 小米科技有限责任公司 | 地图显示方法及装置 |
CN107678715A (zh) * | 2016-08-02 | 2018-02-09 | 北京康得新创科技股份有限公司 | 虚拟信息的共享方法,装置和系统 |
CN109831518A (zh) * | 2019-03-06 | 2019-05-31 | 珠海金山网络游戏科技有限公司 | 一种地图数据下载方法及装置、计算设备和存储介质 |
US20200259931A1 (en) * | 2017-12-29 | 2020-08-13 | Tencent Technology (Shenzhen) Company Limited | Multimedia information sharing method, related apparatus, and system |
CN112437090A (zh) * | 2020-11-27 | 2021-03-02 | 深圳市商汤科技有限公司 | 资源加载方法及装置、电子设备和存储介质 |
CN112539757A (zh) * | 2020-12-08 | 2021-03-23 | 北京嘀嘀无限科技发展有限公司 | 目标地图确定方法、系统、装置、设备和可读存储介质 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107123013B (zh) * | 2017-03-01 | 2020-09-01 | 阿里巴巴集团控股有限公司 | 基于增强现实的线下交互方法及装置 |
CN107085526A (zh) * | 2017-04-12 | 2017-08-22 | 深圳市创想天空科技股份有限公司 | Ar应用的资源加载方法及装置 |
CN111913566B (zh) * | 2019-05-10 | 2024-07-02 | 阿里巴巴集团控股有限公司 | 数据处理方法、装置、电子设备及计算机存储介质 |
CN111638796A (zh) * | 2020-06-05 | 2020-09-08 | 浙江商汤科技开发有限公司 | 虚拟对象的展示方法、装置、计算机设备及存储介质 |
CN111815779A (zh) * | 2020-06-29 | 2020-10-23 | 浙江商汤科技开发有限公司 | 对象展示方法及装置、定位方法及装置以及电子设备 |
-
2020
- 2020-11-27 CN CN202011357349.2A patent/CN112437090B/zh active Active
-
2021
- 2021-06-04 WO PCT/CN2021/098335 patent/WO2022110754A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991947A (zh) * | 2015-07-13 | 2015-10-21 | 小米科技有限责任公司 | 地图显示方法及装置 |
CN107678715A (zh) * | 2016-08-02 | 2018-02-09 | 北京康得新创科技股份有限公司 | 虚拟信息的共享方法,装置和系统 |
US20200259931A1 (en) * | 2017-12-29 | 2020-08-13 | Tencent Technology (Shenzhen) Company Limited | Multimedia information sharing method, related apparatus, and system |
CN109831518A (zh) * | 2019-03-06 | 2019-05-31 | 珠海金山网络游戏科技有限公司 | 一种地图数据下载方法及装置、计算设备和存储介质 |
CN112437090A (zh) * | 2020-11-27 | 2021-03-02 | 深圳市商汤科技有限公司 | 资源加载方法及装置、电子设备和存储介质 |
CN112539757A (zh) * | 2020-12-08 | 2021-03-23 | 北京嘀嘀无限科技发展有限公司 | 目标地图确定方法、系统、装置、设备和可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN112437090A (zh) | 2021-03-02 |
CN112437090B (zh) | 2022-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10891031B2 (en) | Method and device for displaying task management interface | |
CN110134532A (zh) | 一种信息交互方法及装置、电子设备和存储介质 | |
US20200007944A1 (en) | Method and apparatus for displaying interactive attributes during multimedia playback | |
US11741583B2 (en) | Face image processing method and apparatus, electronic device, and storage medium | |
WO2017113666A1 (zh) | 应用界面切换方法及装置 | |
WO2022188305A1 (zh) | 信息展示方法及装置、电子设备、存储介质及计算机程序 | |
US20180307819A1 (en) | Terminal control method and terminal, storage medium | |
CN109783183B (zh) | 请求处理方法、装置、电子设备及存储介质 | |
WO2022134390A1 (zh) | 标注方法及装置、电子设备和存储介质 | |
EP3147802A1 (en) | Method and apparatus for processing information | |
CN105763552B (zh) | 远程控制中的传输方法、装置及系统 | |
CN112925788A (zh) | 一种数据集管理方法及系统、装置、电子设备和存储介质 | |
CN113342697A (zh) | 闪存转换层仿真测试系统及方法 | |
WO2022110754A1 (zh) | 资源加载方法及装置、电子设备和存储介质及程序 | |
CN113031781A (zh) | 增强现实资源显示方法及装置、电子设备和存储介质 | |
CN117244249A (zh) | 多媒体数据生成方法、装置、可读介质及电子设备 | |
CN112035691A (zh) | 切片图像的细胞标注数据的展示方法及装置、设备和介质 | |
WO2023056925A1 (zh) | 文档内容更新方法、装置和电子设备 | |
CN110196716B (zh) | 图形显示方法、装置、电子设备及存储介质 | |
CN111275607A (zh) | 界面显示方法、装置、计算机设备及存储介质 | |
CN107864332B (zh) | 图像显示方法、装置、终端及计算机可读存储介质 | |
US20200019305A1 (en) | Method for altering display ratio of application, and electronic device that realises same | |
WO2022134416A1 (zh) | 视频数据处理方法及装置、电子设备和存储介质 | |
US11295505B2 (en) | Animation generation using a target animation model and animation state parameters | |
CN114860358A (zh) | 一种对象处理方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
ENP | Entry into the national phase |
Ref document number: 2021567017 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20217043247 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.09.2023). |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21896263 Country of ref document: EP Kind code of ref document: A1 |