CN113055309A - Resource loading method, device, equipment and medium - Google Patents

Resource loading method, device, equipment and medium Download PDF

Info

Publication number
CN113055309A
CN113055309A CN201911382319.4A CN201911382319A CN113055309A CN 113055309 A CN113055309 A CN 113055309A CN 201911382319 A CN201911382319 A CN 201911382319A CN 113055309 A CN113055309 A CN 113055309A
Authority
CN
China
Prior art keywords
network resources
browser
loading
resource
present
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911382319.4A
Other languages
Chinese (zh)
Inventor
唐睿
靳曜熙
张庭锐
方宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Chengdu ICT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Chengdu ICT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Chengdu ICT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911382319.4A priority Critical patent/CN113055309A/en
Publication of CN113055309A publication Critical patent/CN113055309A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a resource loading method, a resource loading device and a resource loading medium. The method comprises the following steps: sending a resource acquisition request to a server, wherein the resource acquisition request is used for acquiring a plurality of network resources based on the browser augmented reality; receiving a plurality of network resources sent by a server; a plurality of network resources are loaded into a browser. The resource loading method, device, equipment and medium provided by the embodiment of the invention can improve the loading speed of network resources, improve the response speed of augmented reality based on a browser and improve the experience effect of a user.

Description

Resource loading method, device, equipment and medium
Technical Field
The invention relates to the technical field of augmented reality, in particular to a resource loading method, device, equipment and medium.
Background
Augmented Reality (AR) is an integration of real world information and virtual world information content, and implements analog simulation processing on the basis of computer and other scientific technologies on the basis of entity information which is difficult to experience in the real world space range, virtual information content is effectively applied in the real world in an overlapping manner, and the virtual information content can be sensed by human senses in the process, so that the sensory experience beyond Reality is realized. After the real environment and the virtual object are overlapped, the real environment and the virtual object can exist in the same picture and space at the same time.
Currently, in the augmented reality based on a browser, the loading speed of network resources is slow, which results in slow AR response speed and affects the experience effect of a user.
Disclosure of Invention
Embodiments of the present invention provide a resource loading method, apparatus, device, and medium, which can improve a loading speed of a network resource, improve a response speed of an augmented reality based on a browser, and improve an experience effect of a user.
In a first aspect, an embodiment of the present invention provides a resource loading method, including:
sending a resource acquisition request to a server, wherein the resource acquisition request is used for acquiring a plurality of network resources based on the browser augmented reality;
receiving a plurality of network resources sent by a server;
a plurality of network resources are loaded into a browser.
In a possible implementation manner of the embodiment of the present invention, before loading a plurality of network resources into a browser, if the plurality of network resources are compressed, the resource loading method provided in the embodiment of the present invention further includes:
and decompressing the plurality of network resources.
In a possible implementation manner of the embodiment of the present invention, before loading a plurality of network resources into a browser, the resource loading method provided in the embodiment of the present invention further includes:
a plurality of network resources are converted into browser processable resources.
In a possible implementation manner of the embodiment of the present invention, before loading a plurality of network resources into a browser, the resource loading method provided in the embodiment of the present invention further includes:
integrity of the plurality of network resources is verified.
In a possible implementation manner of the embodiment of the present invention, loading a plurality of network resources into a browser includes:
and loading a plurality of network resources into the browser by using a resource loader of the browser.
In a possible implementation manner of the embodiment of the present invention, the method for loading a resource provided in the embodiment of the present invention further includes:
extracting characteristic points of pictures and images aiming at the pictures in a plurality of network resources and the images of the real world acquired by utilizing a camera;
and matching the characteristic points of the picture with the characteristic points of the image for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, before matching the feature points of the picture and the feature points of the image, the resource loading method provided in the embodiment of the present invention further includes:
and filtering the characteristic points.
In a possible implementation manner of the embodiment of the present invention, the method for loading a resource provided in the embodiment of the present invention further includes:
and determining the main direction of the characteristic point for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, extracting feature points of a picture and an image includes:
and extracting feature points of the pictures and the images by using a Speeded Up Robust Features (SURF) algorithm.
In a second aspect, an embodiment of the present invention provides a resource loading apparatus, including:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a resource obtaining request to a server, and the resource obtaining request is used for obtaining a plurality of network resources based on the browser augmented reality;
the receiving module is used for receiving a plurality of network resources sent by the server;
and the loading module is used for loading the plurality of network resources into the browser.
In a possible implementation manner of the embodiment of the present invention, if a plurality of network resources are compressed, the resource loading apparatus provided in the embodiment of the present invention further includes:
and the decompression module is used for decompressing the plurality of network resources.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention further includes:
and the conversion module is used for converting the plurality of network resources into resources which can be processed by the browser.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention further includes:
and the checking module is used for checking the integrality of the plurality of network resources.
In a possible implementation manner of the embodiment of the present invention, the loading module is specifically configured to:
and loading a plurality of network resources into the browser by using a resource loader of the browser.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention further includes:
the extraction module is used for extracting the characteristic points of the pictures and the images aiming at the pictures in the network resources and the images of the real world acquired by the camera;
and the matching module is used for matching the characteristic points of the picture and the characteristic points of the image so as to be used for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention further includes:
and the filtering module is used for filtering the characteristic points.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention further includes:
and the determining module is used for determining the main direction of the characteristic point so as to be used for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, the extraction module is specifically configured to:
and extracting the characteristic points of the pictures and the images by utilizing an speeded up robust feature SURF algorithm.
In a third aspect, an embodiment of the present invention provides a resource loading apparatus, including: a memory, a processor, and a computer program stored on the memory and executable on the processor;
the processor, when executing the computer program, implements the resource loading method of the first aspect or any of the possible implementations of the first aspect.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for loading resources in the first aspect or any possible implementation manner of the first aspect is implemented.
The resource loading method, the resource loading device, the resource loading equipment and the resource loading medium can acquire a plurality of network resources at one time, so that the loading speed of the network resources can be increased, the response speed of augmented reality based on a browser can be increased, and the experience effect of a user can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a resource loading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a resource loading apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of a hardware architecture of a computing device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Currently, in the augmented reality based on a browser, for each network resource (such as a picture, a JAVA Script (Script), and a Cascading Style Sheet (CSS)), a corresponding resource acquisition request is required, and each time a server receives a resource acquisition request, the server feeds back a corresponding network resource. The loading speed of the network resources is low, so that the response speed of the augmented reality based on the browser is low, and the experience effect of a user is influenced.
In order to solve the problem of the prior art, embodiments of the present invention provide a resource loading method, apparatus, device, and medium. First, a resource loading method provided in an embodiment of the present invention is described in detail below.
Fig. 1 is a schematic flowchart of a resource loading method according to an embodiment of the present invention. The resource loading method can comprise the following steps:
s101: and sending a resource acquisition request to the server.
The resource obtaining request is used for obtaining a plurality of network resources based on the browser augmented reality.
S102: and receiving a plurality of network resources sent by the server.
S103: a plurality of network resources are loaded into a browser.
In an embodiment of the present invention, the XMLHttpRequest object may be created by Ajax, and the open (method, url, async) method and the send method of the XMLHttpRequest object may be called to send the resource acquisition request to the server.
The Ajax is Asynchronous JavaScript (Asynchronous JavaScript) and Extensible Markup Language (XML), and refers to a web page development technology for creating an interactive web page application, which is a technology capable of updating a part of a web page without reloading the entire web page. The XMLHttpRequest object is used to exchange data with the server in the background. The open (method, url, async) method initiates a request, where method denotes the HyperText Transfer Protocol (HTTP) method to be used, such as: the get method, the post method, the put method, and the delete method, and the like. A Uniform Resource Locator (URL) is a URL that indicates to which the request is to be sent by a domstart, which is a UTF-16 string. Async is a Boolean parameter that indicates that operations are not to be performed asynchronously.
The send method is used for sending the HTTP request, and if the HTTP request is an asynchronous request, the method returns immediately after the request is sent; if the request is a synchronization request, the method will not return until the response arrives.
In one embodiment of the present invention, a response type (responseType) attribute of the XMLHttpRequest object may also be assigned as arraybuffer.
The responseType attribute is an attribute of an enumeration type, and returns the type of response data. The responseType attribute supports several types: arraybuffer, blob, document, json, and text. The Arraybuffer type indicates that the response (response) is a JavaScript Arraybuffer containing binary data; blob type represents response is a Blob object containing binary data, which represents a class file object of immutable, original data; the Document type indicates that response is an HTML Document or XML XMLDockent; the json type indicates that response is a JavaScript object. The Text type indicates that response is the Text contained in the DOMString object.
In an embodiment of the present invention, a listening function for listening to the response may be further created by a load method of the XMLHttpRequest object, and when the network resource request is successful, the response is obtained and transferred to a callback function of the load method.
And when the resource request is successful, acquiring a response from the server, and acquiring the network resource sent by the server through the response attribute of the XMLHttpRequest object.
Wherein the response attribute returns an ArrayBuffer, Blob, Document, or DOMString, which type depends on the value of the responseType of the XMLHttpRequest object.
And after the plurality of network resources are acquired, loading the plurality of network resources into the browser. Specifically, a resource loader of a browser may be used to load a plurality of network resources into the browser.
The resource loading method provided by the embodiment of the invention can acquire a plurality of network resources at one time, so that the loading speed of the network resources can be increased, the response speed of the augmented reality based on the browser can be increased, and the experience effect of a user can be improved.
In one possible implementation of the embodiment of the present invention, the server may compress a plurality of network resources. After receiving the compressed multiple network resources sent by the server, the multiple network resources may be decompressed.
According to the resource loading method provided by the embodiment of the invention, the occupation of transmission resources can be reduced by compressing and transmitting a plurality of network resources.
In one embodiment of the invention, multiple network resources may be converted into browser-processable resources. Specifically, when the responseType attribute of the XMLHttpRequest object is assigned as arraybuffer, the embodiment of the invention converts a plurality of network resources into data in an arraybuffer format.
In a possible implementation manner of the embodiment of the present invention, integrity verification may be performed on a plurality of network resources, and if the network resources pass the integrity verification, the network resources are loaded into the browser, and if the network resources do not pass the integrity verification, the network resources need to be acquired again.
The embodiment of the invention does not limit the resource integrity checking mode, and any available integrity checking mode can be applied to the embodiment of the invention.
According to the resource loading method provided by the embodiment of the invention, the integrity of the network resources is verified, so that the accuracy of the resource loaded into the browser can be ensured.
In a possible implementation manner of the embodiment of the present invention, a JSZip object may be created, the acquired data in the arraybuffer format is added to the JSZip object, and an asynchronous loading image (loadAsync) method is invoked to monitor and process the data decompression work in real time.
And acquiring the message of the asynchronous operation by calling a Promise object returned by the loadAsync method. There are three states of Promise, in progress (Pending), completed (Resolved or filled), and failed (Rejected). This means that after a Promise object resolve, the state stays there, whereas after a Promise object Rejected, the state stays there. A plurality of network resources are obtained by calling the then () method of the Promise object, and meanwhile, the loadAsync method works in an asynchronous mode and monitors and processes network resource decompression in real time, so that the time of loading the network resources is shortened as much as possible. After the decompressed network resources are obtained, the decompressed network resources are placed into a container, the integrity of the network resources is checked, and the complete network resources are loaded into a browser; and re-acquiring incomplete network resources. And storing the complete network resource into the memory so as to be convenient for subsequent reading of the network resource.
In the browser-based augmentation, a camera is used to capture real-world images.
In one possible implementation manner of the embodiment of the invention, the characteristic points of the pictures and the images are extracted aiming at the pictures in a plurality of network resources and the images of the real world acquired by utilizing the camera; and matching the characteristic points of the picture with the characteristic points of the image for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, the speeded up robust features SURF algorithm may be used to extract feature points.
Specifically, a black plug (Hessian) matrix is constructed, the Hessian matrix is the core of the SURF algorithm, and the purpose of constructing the Hessian matrix is to generate edge points (catastrophe points) of image stabilization.
For image I (x, y), its corresponding Hessian matrix is:
Figure BDA0002342591460000081
the discriminant of the Hessian matrix is:
Figure BDA0002342591460000082
before Hessian matrix construction, Gaussian filtering needs to be carried out on the image. The filtered Hessian matrix is represented as:
Figure BDA0002342591460000083
wherein L isxx(x, y, σ) represents the second order differential of image I (x, y) with a Gaussian function
Figure BDA0002342591460000084
Convolution at pixel point (x, y). L isxy(x, y, σ) represents the second order differential of image I (x, y) with a Gaussian function
Figure BDA0002342591460000085
Convolution at pixel point (x, y). L isyy(x, y, σ) represents the second order differential of image I (x, y) with a Gaussian function
Figure BDA0002342591460000086
Convolution at pixel point (x, y). σ is the scale.
At this time, the discriminant of the Hessian matrix is:
Det(H)=Lxx*Lyy-Lxy*Lxy
in one embodiment of the invention, to balance the error introduced by using a box filter approximation, embodiments of the invention may apply a filter to LxyMultiplied by a weighting factor a.
At this time, the discriminant of the Hessian matrix is:
Det(H)=Lxx*Lyy-(a*Lxy)2
in general, a is 0.9.
In SURF algorithms, the scale space of SURF algorithms is composed of several groups (Octave), each group containing several layers (levels). The SURF algorithm starts from a box filter, expands the size of the box filter, keeps an image unchanged, and only changes the size of a gaussian filter window to obtain images with different scales, namely a scale space is formed. In order to maintain the continuity of the scale space, the SURF algorithm has partial layer overlap in adjacent groups of the scale space, while the size of the box filters in each group is gradually increased. That is, in the SURF algorithm, the sizes of the images between different groups are consistent, the template sizes of the box filters used between different groups are gradually increased, and the filters with the same size are used for the images of different layers in the same group, but the scale space factors of the filters are gradually increased.
Each pixel point processed by the Hessian matrix (i.e. obtaining the value of the Hessian matrix of each pixel point) is compared with all adjacent points of the image domain (image with the same size) and the scale domain (adjacent scale space), and when the value is greater than (or less than) all the adjacent points, the point is an extreme point, wherein the extreme point is a feature point.
In a possible implementation manner of the embodiment of the present invention, the feature points may also be filtered.
In particular, the feature points with weak energy and the feature points with wrong positioning can be filtered out.
In a possible implementation manner of the embodiment of the present invention, the main direction of the feature point may also be determined for the browser augmented reality.
Wherein each feature point has three pieces of information: location, dimension, and orientation. One feature point may have multiple directions from which embodiments of the present invention determine the principal direction of the feature point.
Specifically, in the SURF algorithm, the Harr wavelet features in the circular neighborhood of the statistical feature points are adopted, that is, in the circular neighborhood of the feature points, the sum of horizontal and vertical Harr wavelet features of all points in a sector area of 60 degrees is counted, then the sectors are rotated at intervals of 0.2 radian, the sum of the Harr wavelet features in the sector area of 60 degrees is counted again, and finally the direction of the sector with the largest sum of the Harr wavelet features is taken as the main direction of the feature points.
In one embodiment of the invention, descriptor vectors may also be constructed. Specifically, a square frame may be selected around the feature point, and the direction of the square frame is the main direction of the feature point. And dividing the square frame into 4-by-4 regions, wherein each region counts Haar wavelet characteristics of 25 pixels in the horizontal direction and the vertical direction, and the wavelet characteristics comprise the sum of values in the horizontal direction, the sum of absolute values in the horizontal direction, the sum of values in the vertical direction and the sum of absolute values in the vertical direction. Thus, each region has 4 values, and each square box has 4 × 16 — 64 dimensions, i.e., each feature point description is 64 dimensions. A 64-dimensional description vector of the feature points is obtained.
In one embodiment of the present invention, when matching the feature points of the picture with the feature points of the image, the SURF algorithm determines whether the two feature points match by calculating a matching degree between the picture in the network resource and the two corresponding feature points of the real-world image acquired by the camera.
Specifically, the matching degree may be cosine similarity of feature vectors of two feature points; the matching degree can also be the similarity of the feature vectors of the two feature points based on the Euclidean distance; the matching degree can also be the Euclidean distance of the feature vectors of the two feature points.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a resource loading apparatus.
Fig. 2 is a schematic structural diagram of a resource loading apparatus according to an embodiment of the present invention. The resource loading means may comprise:
a sending module 201, configured to send a resource obtaining request to a server, where the resource obtaining request is used to obtain multiple network resources based on the browser augmented reality.
A receiving module 202, configured to receive a plurality of network resources sent by a server.
And the loading module 203 is used for loading a plurality of network resources into the browser.
In a possible implementation manner of the embodiment of the present invention, if a plurality of network resources are compressed, the resource loading apparatus provided in the embodiment of the present invention may further include:
and the decompression module is used for decompressing the plurality of network resources.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention may further include:
and the conversion module is used for converting the plurality of network resources into resources which can be processed by the browser.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention may further include:
and the checking module is used for checking the integrality of the plurality of network resources.
In a possible implementation manner of the embodiment of the present invention, the loading module may be specifically configured to:
and loading a plurality of network resources into the browser by using a resource loader of the browser.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention may further include:
the extraction module is used for extracting the characteristic points of the pictures and the images aiming at the pictures in the network resources and the images of the real world acquired by the camera;
and the matching module is used for matching the characteristic points of the picture and the characteristic points of the image so as to be used for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention may further include:
and the filtering module is used for filtering the characteristic points.
In a possible implementation manner of the embodiment of the present invention, the resource loading apparatus provided in the embodiment of the present invention may further include:
and the determining module is used for determining the main direction of the characteristic point so as to be used for the browser augmented reality.
In a possible implementation manner of the embodiment of the present invention, the extraction module may be specifically configured to:
and extracting the characteristic points of the pictures and the images by utilizing an speeded up robust feature SURF algorithm.
The resource loading device provided by the embodiment of the invention can improve the loading speed of network resources, improve the response speed of augmented reality based on a browser and improve the experience effect of a user.
Fig. 3 is a block diagram of a hardware architecture of a computing device according to an embodiment of the present invention. As shown in fig. 3, computing device 300 includes an input device 301, an input interface 302, a central processor 303, a memory 304, an output interface 305, and an output device 306. The input interface 302, the central processing unit 303, the memory 304, and the output interface 305 are connected to each other through a bus 310, and the input device 301 and the output device 306 are connected to the bus 310 through the input interface 302 and the output interface 305, respectively, and further connected to other components of the computing device 300.
Specifically, the input device 301 receives input information from the outside and transmits the input information to the central processor 303 through the input interface 302; central processor 303 processes the input information based on computer-executable instructions stored in memory 304 to generate output information, stores the output information temporarily or permanently in memory 304, and then transmits the output information to output device 306 through output interface 305; output device 306 outputs the output information external to computing device 300 for use by the user.
That is, the computing device shown in fig. 3 may also be implemented as a resource loading device, which may include: a memory storing a computer program; and a processor, which can implement the resource loading method provided by the embodiment of the present invention when executing the computer program.
In an embodiment of the present invention, the resource loading device may be a terminal device, and the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium; when executed by a processor, the computer program implements the resource loading method provided by the embodiment of the invention.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (13)

1. A method for resource loading, the method comprising:
sending a resource acquisition request to a server, wherein the resource acquisition request is used for acquiring a plurality of network resources based on the browser augmented reality;
receiving the plurality of network resources sent by the server;
and loading the plurality of network resources into a browser.
2. The method of claim 1, wherein before loading the plurality of network resources into the browser, if the plurality of network resources are compressed, the method further comprises:
and decompressing the plurality of network resources.
3. The method of claim 1, wherein prior to loading the plurality of network resources into the browser, the method further comprises:
converting the plurality of network resources into the browser processable resource.
4. The method of claim 1, wherein prior to loading the plurality of network resources into the browser, the method further comprises:
the integrity of the plurality of network resources is checked.
5. The method of claim 1, wherein loading the plurality of network resources into a browser comprises:
and loading the plurality of network resources into the browser by using a resource loader of the browser.
6. The method of claim 1, further comprising:
extracting characteristic points of pictures and images in the plurality of network resources and real world images acquired by a camera;
and matching the characteristic points of the picture with the characteristic points of the image for the browser augmented reality.
7. The method of claim 6, wherein prior to said matching feature points of said picture and feature points of said image, said method further comprises:
and filtering the characteristic points.
8. The method of claim 6, further comprising:
and determining the main direction of the characteristic point for the browser augmented reality.
9. The method of claim 6, wherein the extracting feature points of the picture and the image comprises:
and extracting the characteristic points of the picture and the image by utilizing an accelerated robust feature SURF algorithm.
10. An apparatus for resource loading, the apparatus comprising:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for sending a resource obtaining request to a server, and the resource obtaining request is used for obtaining a plurality of network resources based on the browser augmented reality;
the receiving module is used for receiving the plurality of network resources sent by the server;
and the loading module is used for loading the plurality of network resources into the browser.
11. The apparatus of claim 10, wherein the loading module is specifically configured to:
and loading the plurality of network resources into the browser by using a resource loader of the browser.
12. A resource loading apparatus, characterized in that the apparatus comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor;
the processor, when executing the computer program, implements the resource loading method of any of claims 1 to 9.
13. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the resource loading method of any one of claims 1 to 9.
CN201911382319.4A 2019-12-28 2019-12-28 Resource loading method, device, equipment and medium Pending CN113055309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911382319.4A CN113055309A (en) 2019-12-28 2019-12-28 Resource loading method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911382319.4A CN113055309A (en) 2019-12-28 2019-12-28 Resource loading method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113055309A true CN113055309A (en) 2021-06-29

Family

ID=76507027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911382319.4A Pending CN113055309A (en) 2019-12-28 2019-12-28 Resource loading method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113055309A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN103699535A (en) * 2012-09-27 2014-04-02 联想(北京)有限公司 Webpage loading method and terminal equipment
US20140164921A1 (en) * 2012-12-07 2014-06-12 Robert Salinas Methods and Systems of Augmented Reality on Mobile Devices
CN106846495A (en) * 2017-01-17 2017-06-13 腾讯科技(深圳)有限公司 Realize the method and apparatus of augmented reality
CN107222529A (en) * 2017-05-22 2017-09-29 北京邮电大学 Augmented reality processing method, WEB modules, terminal and cloud server
CN109582907A (en) * 2018-12-06 2019-04-05 深圳前海微众银行股份有限公司 Method of calibration, device, equipment and the readable storage medium storing program for executing of web page resources integrality
CN109753334A (en) * 2019-01-14 2019-05-14 长沙眸瑞网络科技有限公司 A kind of threedimensional model display methods based on WebGL

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN103699535A (en) * 2012-09-27 2014-04-02 联想(北京)有限公司 Webpage loading method and terminal equipment
US20140164921A1 (en) * 2012-12-07 2014-06-12 Robert Salinas Methods and Systems of Augmented Reality on Mobile Devices
CN106846495A (en) * 2017-01-17 2017-06-13 腾讯科技(深圳)有限公司 Realize the method and apparatus of augmented reality
CN107222529A (en) * 2017-05-22 2017-09-29 北京邮电大学 Augmented reality processing method, WEB modules, terminal and cloud server
CN109582907A (en) * 2018-12-06 2019-04-05 深圳前海微众银行股份有限公司 Method of calibration, device, equipment and the readable storage medium storing program for executing of web page resources integrality
CN109753334A (en) * 2019-01-14 2019-05-14 长沙眸瑞网络科技有限公司 A kind of threedimensional model display methods based on WebGL

Similar Documents

Publication Publication Date Title
CN110413812B (en) Neural network model training method and device, electronic equipment and storage medium
CN112668588B (en) Parking space information generation method, device, equipment and computer readable medium
CN111340077A (en) Disparity map acquisition method and device based on attention mechanism
CN112418249A (en) Mask image generation method and device, electronic equipment and computer readable medium
CN112528318A (en) Image desensitization method and device and electronic equipment
CN115393815A (en) Road information generation method and device, electronic equipment and computer readable medium
CN110188782B (en) Image similarity determining method and device, electronic equipment and readable storage medium
US9405956B2 (en) Image processing apparatus and method
CN107146245B (en) Image matching method and device
CN110880160B (en) Picture frame super-division method and device, terminal equipment and computer readable storage medium
CN113055309A (en) Resource loading method, device, equipment and medium
CN116596748A (en) Image stylization processing method, apparatus, device, storage medium, and program product
CN115100536B (en) Building identification method and device, electronic equipment and computer readable medium
CN111754435A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN113688928B (en) Image matching method and device, electronic equipment and computer readable medium
CN113808134B (en) Oil tank layout information generation method, oil tank layout information generation device, electronic apparatus, and medium
CN112487943B (en) Key frame de-duplication method and device and electronic equipment
CN113031950B (en) Picture generation method, device, equipment and medium
CN114095783A (en) Picture uploading method and device, computer equipment and storage medium
CN113705386A (en) Video classification method and device, readable medium and electronic equipment
CN114742707B (en) Multi-source remote sensing image splicing method and device, electronic equipment and readable medium
CN112394809A (en) Method, device and communication equipment for realizing augmented reality
US20240176474A1 (en) Electronic device and method for editing screenshot in electronic device
CN115345931B (en) Object attitude key point information generation method and device, electronic equipment and medium
CN113343959A (en) Scene image recognition method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210629