Resource loading method and apparatus

By storing historical resource feature information of user devices in the server and determining resource address information based on the matching degree of feature information, the problem of low resource loading accuracy in the prior art is solved, and higher resource loading accuracy and recommendation accuracy are achieved.

CN114020998BActive Publication Date: 2026-04-07XIAN WEIWO SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, servers only filter and deduplicate resources with the same address information among those requested by electronic devices, resulting in poor accuracy in loading resources.

Method used

By storing historical resource feature information of user equipment in the server, and based on the relationship between the matching degree between M first feature information and N second feature information and the preset matching degree, at least one first feature information is determined from the M first feature information, and the resource address information indicated by the feature information is sent to the user equipment.

Benefits of technology

It improves the accuracy of resource loading, reduces the frequency of displaying duplicate or similar resources on user devices within a short period of time, and enhances the accuracy of resource recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020998B_ABST
    Figure CN114020998B_ABST
Patent Text Reader

Abstract

This application discloses a resource loading method and apparatus, belonging to the field of communication technology. The method includes: receiving a resource loading request sent by a user equipment; acquiring M first feature information and N second feature information according to the resource loading request, each first feature information indicating a resource and each second feature information indicating a historical resource displayed by the user equipment within a preset time period, where M and N are both positive integers; determining at least one first feature information from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree; and sending first address information to the user equipment, the first address information including the address information of the resource indicated by at least one first feature information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, specifically relating to a resource loading method and apparatus. Background Technology

[0002] Currently, electronic devices can access servers to load resources (such as image resources, video resources, etc.) through the servers.

[0003] Specifically, an electronic device can send a request to a server. After receiving the request, the server can obtain the address information of at least one resource based on the request. Then, the server can filter and deduplicate the address information of the at least one resource (e.g., link information). For example, if link information 1 and link information 2 are the same, the server can keep one of link information 1 and link information 2. Then, the server sends the filtered and deduplicated address information to the electronic device. After receiving the address information sent by the server, the electronic device can load the resource indicated by these address information.

[0004] However, the above method results in poor accuracy in loading resources because the server only filters and removes duplicates of resources with the same address information among the resources requested by electronic devices. Summary of the Invention

[0005] The purpose of this application is to provide a resource loading method and apparatus that can solve the problem that the accuracy of resource loading is low because the server only filters and deduplicates resources with the same address information among the resources requested by electronic devices.

[0006] In a first aspect, embodiments of this application provide a resource loading method applied to a server. The method includes: receiving a resource loading request sent by a user device; acquiring M first feature information and N second feature information according to the resource loading request, each first feature information indicating a resource and each second feature information indicating a historical resource displayed by the user device within a preset time period, where M and N are both positive integers; determining at least one first feature information from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree; and sending first address information to the user device, the first address information including the address information of the resource indicated by the at least one first feature information.

[0007] Secondly, embodiments of this application provide a resource loading method applied to a user equipment. The method includes: sending a resource loading request to a server; receiving first address information sent by the server, the first address information including address information of a resource indicated by at least one first feature information, the at least one first feature information being feature information determined by the server from the M first feature information based on the relationship between the matching degree between M first feature information and N second feature information and a first preset matching degree, the M first feature information and the N second feature information being obtained by the server according to the resource loading request; and downloading and displaying the at least one resource based on the address information of the at least one resource, the address information of the at least one resource being the address information in the first address information.

[0008] Thirdly, embodiments of this application provide a resource loading apparatus, which includes a receiving module, an acquiring module, a determining module, and a sending module. The receiving module is used to receive a resource loading request sent by a user equipment. The acquiring module is used to acquire M first feature information and N second feature information according to the resource loading request received by the receiving module. Each first feature information is used to indicate a resource, and each second feature information is used to indicate a historical resource displayed by the user equipment within a preset time period, where M and N are both positive integers. The determining module is used to determine at least one first feature information from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree. The sending module is used to send first address information to the user equipment, wherein the first address information includes the address information of the resource indicated by the at least one first feature information.

[0009] Fourthly, embodiments of this application provide a resource loading apparatus, which includes a sending module, a receiving module, a downloading module, and a display module; the sending module is used to send a resource loading request to a server; the receiving module is used to receive first address information sent by the server, the first address information including address information of a resource indicated by at least one first feature information, the at least one first feature information being feature information determined by the server from M first feature information based on the relationship between the matching degree between M first feature information and N second feature information and a first preset matching degree, the M first feature information and N second feature information being obtained by the server according to the resource loading request; the downloading module is used to download the at least one resource based on the address information of the at least one resource, the address information of the at least one resource being the address information in the first address information; and the display module is used to display the at least one resource.

[0010] Fifthly, embodiments of this application provide a server, the server including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in the first aspect.

[0011] In a sixth aspect, embodiments of this application provide a user equipment, the user equipment including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in the second aspect.

[0012] In a seventh aspect, embodiments of this application provide a communication system, which includes the resource loading device as described in the third and fourth aspects above; or, the communication system includes the server as described in the fifth aspect above and the user equipment as described in the sixth aspect above.

[0013] Eighthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described in the first or second aspect.

[0014] Ninthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the methods of the first or second aspect.

[0015] In this embodiment, a resource loading request sent by a user equipment can be received; based on the resource loading request, M first feature information and N second feature information are obtained, each first feature information indicating a resource and each second feature information indicating a historical resource displayed by the user equipment within a preset time period, where M and N are both positive integers; based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree, at least one first feature information is determined from the M first feature information; and first address information is sent to the user equipment, the first address information including the address information of the resource indicated by at least one first feature information. This scheme, upon receiving a resource loading request from a user device, determines at least one first feature from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information corresponding to the N historical resources displayed by the user device within a preset time period and the first preset matching degree. Then, it sends the address information of the resource indicated by the at least one first feature information to the user device. Specifically, it recommends resources (specifically, recommends the address information of the resources) to the user device based on the matching degree between the resource indicated by the obtained address information and the resources historically displayed by the user device. Compared to traditional methods that only filter and deduplicate resources with the same links requested by electronic devices, the resource loading method provided in this application embodiment can improve the accuracy of resource loading. Attached Figure Description

[0016] Figure 1 This application provides a schematic diagram of the architecture of a communication system.

[0017] Figure 2 A schematic diagram illustrating a resource loading method provided in an embodiment of this application;

[0018] Figure 3 One of the schematic diagrams of the resource loading device provided in the embodiments of this application;

[0019] Figure 4 A second schematic diagram of the resource loading device provided in the embodiments of this application;

[0020] Figure 5 A schematic diagram of a communication device provided in an embodiment of this application;

[0021] Figure 6 A hardware schematic diagram of a server provided for an embodiment of this application;

[0022] Figure 7 A hardware schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0025] The resource loading method and apparatus provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0026] The resource loading method provided in this embodiment of the invention can be applied to scenarios where user devices load resources through a server.

[0027] In the resource loading method provided in this application, since the server stores the feature information of resources historically displayed by the user device, when the user device loads resources through the server—specifically, when the user device sends a resource loading request to the server—the server can obtain M first feature information of M resources and N second feature information of N historical resources displayed by the user device, where M and N are both positive integers. Then, based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree, at least one first feature information is determined from the M first feature information. Finally, the address information of the resource indicated by the at least one first feature information is sent to the user device. That is, the server can send the address information of the resources requested by the user device that meet the preset matching degree. Therefore, compared with the traditional technology that only filters and removes duplicates of resources with the same link in the resources requested by the electronic device, the resource loading method provided in this application can improve the accuracy of resource loading.

[0028] The communication system involved in this application is mainly a communication system for communication between user equipment and a server. This communication system may include at least one server and at least one user equipment.

[0029] For example, Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of this application is shown. Figure 1As shown, the communication system may include user equipment 01 and server 02. User equipment 01 and server 02 can establish a connection and communicate with each other.

[0030] User equipment, also known as electronic equipment, can be a mobile phone, tablet computer, laptop computer (or notebook computer), personal digital assistant (PDA), handheld computer, netbook, ultra-mobile personal computer (UMPC), mobile internet device (MID), wearable device (VUE), pedestrian terminal (PUE), and other terminal-side devices. Wearable devices include wristbands, headphones, glasses, etc. It should be noted that the embodiments in this application do not limit the specific type of user equipment.

[0031] The server can be an application server or a system server, which can be determined according to actual usage requirements. This application does not limit the specific server.

[0032] Combination Figure 2 This application provides a resource loading method, which may include the following steps 101 to 107.

[0033] Step 101: The user equipment sends a resource loading request to the server.

[0034] Step 102: The server receives the resource loading request.

[0035] In this embodiment of the application, the resource loading request is used to request the loading of resources through the server.

[0036] Optionally, the resources in this application embodiment can be any possible resources such as text resources, audio resources, image resources, video resources, and advertising resources. The specific resources can be determined according to actual usage needs, and this application embodiment does not limit them.

[0037] Optionally, in this embodiment, the user equipment may send a resource loading request to the server upon user triggering, or the user equipment may send a resource loading request to the server automatically. The specific method can be determined according to actual usage requirements, and this embodiment does not impose any limitations.

[0038] Step 103: The server obtains M first feature information and N second feature information based on the resource loading request.

[0039] Each of the M first feature information can be used to indicate a resource (specifically a candidate resource), and each of the N second feature information can be used to indicate a historical resource displayed by the user device within a preset time period (specifically, it can be based on actual usage needs). M and N can both be positive integers.

[0040] Optionally, in this embodiment of the application, the server can obtain M first feature information in the following two ways (i.e., method one and method two) according to the resource loading request.

[0041] Method 1: The server stores M first characteristic information entries, which are used to indicate M resources. A correspondence exists between these M first characteristic information entries and the address information of the M resources (hereinafter referred to as correspondence 1). Therefore, after receiving the resource loading request, the server can first obtain the address information of the M resources based on the request, and then obtain the M first characteristic information entries based on the address information and correspondence 1. Since the server stores the resource characteristic information, when a user device requests to load resources through the server, the server does not need to obtain the resources or perform feature identification on the obtained resources, thereby shortening the time required for resource loading.

[0042] Method 2: After the server receives the above resource loading request, the server can obtain M address information according to the resource loading request; and based on the M address information, obtain the M resources indicated / corresponding to the M address information; then the server can perform feature identification on each of the M resources to obtain M first feature information.

[0043] Optionally, in this embodiment of the application, for each of the above M resources, a resource can be a resource in the server that receives the resource loading request, or it can be a resource in another server besides the server that receives the resource loading request. The specific resource can be determined according to actual usage requirements, and this embodiment of the application does not limit it.

[0044] In this embodiment, the server may include multiple information lists, each corresponding to a device. Each information list may include the device identifier, the time information of the historical resources displayed by the device, the feature information of the historical resources displayed by the device, and the address information of the historical resources displayed by the device. Of course, in actual implementation, the server may also use the time when it sends a resource to the user device as the display time of that resource on the user device.

[0045] It is understood that in the embodiments of this application, the resource loading request may include the device identifier of the user device, so that after the server receives the resource loading request of the user device, it can find the information list corresponding to the user device based on the device identifier, and obtain the N second feature information displayed by the user device within a preset time period from the information list.

[0046] Optionally, in this embodiment, the historical resource indicated by each second feature information can be a resource in the server that receives the resource loading request, or it can be a resource in another server besides the server that receives the resource loading request. The specific resource can be determined according to actual usage requirements, and this embodiment does not limit it.

[0047] Optionally, in this embodiment, the information list may further include type information of historical resources displayed by a device corresponding to the information list. This type information indicates the resource type of the historical resources displayed by the device. Thus, after the server receives a resource loading request, it can retrieve N second feature information items corresponding to resource type 0 from the information list corresponding to the user device, based on the resource type (hereinafter referred to as resource type 0, such as image type, text type, etc.). This reduces the number of N second feature information items retrieved by the server, thereby reducing the server's information processing load.

[0048] Optionally, in this embodiment, if a feature information indicates a text resource, the feature information includes keywords in the text resource; if a feature information indicates an image resource, the feature information may include the perceptual hash and color matrix corresponding to the image resource; if a feature information indicates an image resource, the feature information may include the perceptual hash and color matrix corresponding to each frame in the video resource; if a feature information indicates an audio resource, the feature information may include keywords in the text content corresponding to the audio resource.

[0049] Optionally, in this embodiment of the application, the aforementioned preset time period can be determined based on the current system time (the default system time of the server is the same as the current system time of the user device) and the preset duration. The preset duration can be a user-defined duration or a default duration in the server. This embodiment of the application does not limit this.

[0050] Specifically, assuming the current system time is the first moment and the preset duration is t1, the server can determine the second moment based on the first moment and the duration t1. The duration between the second moment and the first moment is t1, and the second moment is earlier than the first moment. Therefore, the server can determine the preset time period as the period between the second moment and the first moment. For example, if the current system time is 10:10 (i.e., the first moment) and the preset duration is 10 minutes (i.e., the preset duration), then the preset time period is the period between 10:00 (i.e., the second moment) and 10:10.

[0051] It is understood that in this embodiment of the application, the N historical resources indicated by the above-mentioned N second feature information are resources displayed by the user equipment within a preset time period.

[0052] Optionally, in this embodiment of the application, the server obtains M first feature information according to the resource loading request through the following steps A and B.

[0053] Step A: The server obtains P pieces of first feature information based on the resource loading request.

[0054] Where P can be an integer greater than or equal to M.

[0055] Optionally, in this embodiment of the application, the P resources indicated by the P first feature information are resources that satisfy the resource loading request, and the P resources correspond one-to-one with the P first feature information.

[0056] For further descriptions of the P resources, please refer to the relevant descriptions of the M resources in the above embodiments. To avoid repetition, they will not be repeated here.

[0057] Step B: Based on the relationship between the matching degree between the P first feature information and the second preset matching degree, the server performs deduplication on the P first feature information to obtain M first feature information.

[0058] In this embodiment of the application, the matching degree among the aforementioned M first feature information is less than or equal to the second preset matching degree. That is, the M resources indicated by the M first feature information are resources with a low matching degree.

[0059] Optionally, in this embodiment, the second preset matching degree can be preset by the user or the system default. It can be determined according to actual usage needs, and this embodiment does not limit it.

[0060] In this embodiment of the application, since the server can first deduplicate the P first feature information obtained according to the resource loading request of the user device to obtain M first feature information with a smaller matching degree, that is, the M first feature information are non-repeating feature information, the resource deduplication can be performed more accurately.

[0061] Step 104: The server determines at least one first feature from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information and the first preset matching degree.

[0062] Optionally, in this embodiment of the application, the first preset matching degree can be the system default or a user-defined value, which can be determined according to actual usage needs.

[0063] Optionally, in one embodiment of this application, the server may first determine N matching degrees between each of the at least one first feature information and N second feature information, and then determine the number of N matching degrees that are greater than or equal to a first preset matching degree (e.g., the target number described below). If the number is less than a certain number (e.g., the preset number described below), that is, the matching degree between the resource indicated by the at least one first feature information and the resource historically displayed by the user device is small, the server can avoid repeatedly recommending resources that have been displayed by the user device within a short period of time (e.g., a preset period of time) to the user device, thereby reducing the frequency of the same or similar resources being displayed by the same user device within a certain period of time. In another approach, the server can first determine N matching degrees between each of the at least one first feature information and N second feature information, and then determine the number of N matching degrees that are greater than or equal to a first preset matching degree (e.g., the target number described below). If the number is greater than or equal to a number (e.g., the preset number described below), that is, the matching degree between the resource indicated by the at least one first feature information and the resources historically displayed by the user device is relatively large, the server can repeatedly recommend resources that have been displayed by the user device within a short period of time (e.g., a preset period of time) to the user device. In this way, the same user device can display the same or similar resources within a period of time, that is, resources can be recommended to the user device to which the user belongs according to the user's preferences.

[0064] Optionally, in this embodiment of the application, after performing the following steps 104a and 104b on each of the M first feature information, at least one of the above-mentioned first feature information can be obtained.

[0065] Step 104a: The server determines the number of targets with matching degrees greater than or equal to the first preset matching degree among the N matching degrees. The N matching degrees include the matching degree between a first feature information and N second feature information, and the first preset matching degree.

[0066] Step 104b: When the target number is less than or equal to the preset number, the server determines a first feature information as the first feature information among at least one first feature information.

[0067] In this embodiment of the application, for each of the M first feature information, the server can first determine N matching degrees between the first feature information and N second feature information, and then determine the number of the N matching degrees that is greater than or equal to a first preset matching degree (e.g., the number 1). If the number 1 is less than the preset number, it means that the frequency of the user device displaying the resource indicated by the first feature information / similar resources of the resource indicated by the first feature information within the preset time period is relatively small, so the server can determine the first feature information as one of the first feature information in the above at least one first feature information. If the number 1 is greater than the preset number, it means that the frequency of the user device displaying the resource indicated by the first feature information / similar resources of the resource indicated by the first feature information within the preset time period is relatively high, so the server can determine that the first feature information is not included in the above at least one first feature information.

[0068] It is understandable that after the server executes steps 104a and 104b M times, it can obtain at least one of the aforementioned first feature information.

[0069] Optionally, in this embodiment of the application, the preset quantity can be a user-defined quantity or a default quantity in the server; this embodiment of the application does not impose any limitation.

[0070] In this embodiment, the server can match each of the M first feature information with the feature information corresponding to all resources displayed by the user device within a preset time period to obtain at least one first feature information. Since the matching degree between the resource indicated by each of the at least one first feature information and all resources displayed by the user device within the preset time period is small, the frequency of users browsing the same or similar resources within the preset time period can be avoided, thereby further improving the accuracy of resources sent by the server to the electronic device.

[0071] Step 105: The server sends the first address information to the user equipment.

[0072] The first address information may include the address information of the resource indicated by at least one of the first feature information.

[0073] It is understood that in this embodiment of the application, the number of address information included in the first address information is the same as the number of at least one first feature information mentioned above.

[0074] Optionally, in this embodiment, the first address information may also include address information corresponding to other resources that meet the conditions (i.e., K resources). For the K resources, please refer to the relevant description in the following embodiments. To avoid repetition, it will not be repeated here.

[0075] Step 106: The user equipment receives the first address information.

[0076] Step 107: The user equipment downloads and displays at least one resource based on the address information of at least one resource.

[0077] The address information of at least one of the above resources can be the address information in the first address information.

[0078] Optionally, in this embodiment, after receiving the first address information, the user equipment can download and display the resources corresponding to at least a portion of the address information in the first address information, i.e., the aforementioned at least one resource. It is understood that in this embodiment, the at least one resource is all or part of the resources indicated by the aforementioned at least one first feature information. This improves the flexibility of the user equipment in downloading and displaying resources.

[0079] In the resource loading method provided in this application embodiment, after receiving a resource loading request sent by a user device, at least one first feature information can be determined from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information corresponding to the N historical resources displayed by the user device within a preset time period and the first preset matching degree. The address information of the resource indicated by the at least one first feature information is then sent to the user device. In other words, resources can be recommended to the user device (specifically, the address information of the resource is recommended to the user device) based on the matching degree between the resource indicated by the obtained address information and the resources historically displayed by the user device. This can improve the accuracy of loading resources.

[0080] It is understood that, in this embodiment of the application, after receiving a resource loading request from a user device, the server can not only obtain the address information of the resource corresponding to the resource loading request in the server (hereinafter referred to as address information a), but also obtain the address information of the resource (e.g., the K resources described below) corresponding to the resource loading request from other servers besides the server (hereinafter referred to as address information b).

[0081] Optionally, in this embodiment of the application, the server may only perform deduplication processing on the resource corresponding to the above address information a, and then the server may send address information b and the address information of the deduplicated resource to the user device. This can save the user device the time of loading resources and improve the efficiency of loading resources.

[0082] Optionally, in this embodiment of the application, it is assumed that the M resources indicated by the above M first feature information are resources in the server; then after the above step 101, the resource loading method provided in this embodiment of the application may further include the following step 108.

[0083] Step 108: The server obtains the address information of K resources from other servers besides the server itself.

[0084] The first address information may also include the address information of K resources, where K is an integer greater than or equal to 0.

[0085] Optionally, in this embodiment, the other servers can be one or more servers other than the server receiving the resource loading request (hereinafter referred to as the target server). It is understood that the target server can obtain the address information of K resources from the other servers with authorization.

[0086] In this embodiment, the server can directly obtain K address information (i.e., the address information of K resources) from other servers without downloading the K resources from other servers and performing deduplication on the K resources. Therefore, on the one hand, it can save the time for user devices to load resources and improve the efficiency of loading resources; on the other hand, it can improve the richness of resources recommended to user devices.

[0087] Optionally, in this embodiment of the application, after step 107 above, the resource loading method provided in this embodiment of the application may further include the following steps 109 and 110.

[0088] Step 109: The user equipment sends display information for at least one resource to the server.

[0089] Step 110: The server receives and saves the display information of at least one resource.

[0090] Wherein, the above-mentioned at least one resource can be a resource in the resource corresponding to the first address information, and the display information of the above-mentioned at least one resource can include: the address information of the at least one resource, and the display time of the at least one resource on the user device (specifically, the display time information).

[0091] Optionally, in the embodiments of this application, the above-mentioned at least one resource may be all the resources in the resources corresponding to the first address information, or it may be a part of the resources in the resources corresponding to the first address information. The embodiments of this application do not limit this.

[0092] Optionally, in this embodiment, the display information of the at least one resource may further include: display location information of the at least one resource, which indicates the display location of the at least one resource on the screen of the user device. In this case, when the server sends the address information of one of the at least one resources to the user device again, the server may also send the display location information to the user device so that the user device can display the resource again at the location indicated by the display location information. That is, the display location of the resource on the user device remains unchanged.

[0093] In this embodiment of the application, after receiving the display information of at least one resource, the server can update the information list corresponding to the user device in the server based on the display information of at least one resource, that is, store the display information of at least one resource in the information list.

[0094] It is understood that in this embodiment of the application, after each device displays the resources loaded by the server, it can send the display information of the displayed resources to the server so that the server can update the information list corresponding to the device.

[0095] Optionally, in this embodiment of the application, for each resource display information sent by the user equipment, the server may delete the display information of a resource after a preset time period of saving the display information of a resource.

[0096] In this embodiment, after the user device displays the resources loaded by the server, it can send the display information of these resources to the server. Therefore, the server can accurately record the display information of these resources on the user device. When the server receives another resource loading request from the user device, the server can accurately obtain the feature information of the historical resources displayed by the user device. This allows the server to more accurately deduplicate the resources corresponding to the resource loading request, thereby further improving the accuracy of resource loading.

[0097] Optionally, in this embodiment of the application, after step 110 above, the resource loading method provided in this embodiment of the application may further include the following steps 111 and 114.

[0098] Step 111: If the server does not contain the feature information of the target resource corresponding to the second address information, it obtains the target resource based on the second address information.

[0099] The target resource can be one of the resources mentioned above.

[0100] In this embodiment of the application, for each of the above at least one resource, after receiving and saving the display information of at least one resource, the server can determine whether the server includes feature information corresponding to the address information of a resource. If the server includes feature information corresponding to the address information of the resource, it means that the server has feature information of the resource; if the server does not include feature information corresponding to the address information of the resource, it means that the server does not have feature information of the resource.

[0101] Optionally, in this embodiment of the application, when the target resource is a resource on another server, the server obtains the target resource based on the second address information by downloading the target resource from the other server based on the second address information.

[0102] Step 112: The server performs feature recognition on the target resource to obtain the feature information of the target resource.

[0103] Optionally, in this embodiment of the application, the server uses different methods to identify the features of different types of target resources.

[0104] For example, when the target resource is a text resource, the server can extract keywords from the text resource to obtain its feature information; when the target resource is an audio resource, the server can extract keywords from the corresponding text content of the audio resource to obtain its feature information; when the target resource is an image resource, the server can extract the image's perceptual hash and color matrix to obtain its feature information; when the target resource is a video resource, the server can extract the perceptual hash and color matrix of each frame in the video resource and use all extracted perceptual hashes and color matrices as the video resource's feature information.

[0105] Step 113: The server creates an association between the characteristic information of the target resource and the second address information.

[0106] Optionally, in this embodiment of the application, when there are multiple target resources, for each target resource, the server can create an association between the feature information of the target resource and a second address information, wherein the second address information corresponds to the target resource.

[0107] Step 114: The server saves the characteristic information of the target resource.

[0108] Optionally, in this embodiment of the application, the server may permanently store the feature information of the target resource in the server, or it may delete the feature information of the target resource after storing it in the server for a period of time. This embodiment of the application does not impose any limitations.

[0109] In this embodiment, when the server does not include the feature information of resources (such as the target resource mentioned above) that have been loaded and displayed by the user device through the server, the server can obtain the target resource through the address information of the target resource, identify the target resource to obtain the feature information of the target resource, and associate and save the obtained feature information with the address information of the target resource. Thus, the server can store the feature information of all resources that have been loaded and displayed through the service. Therefore, when the server receives a resource loading request from the user device again, the server can directly obtain the feature information of the historical resources displayed by the user device within a certain period of time, without having to obtain these historical resources and perform feature identification on these historical resources again. This can shorten the time required for the service to deduplicate resources and improve the speed of loading resources.

[0110] It should be noted that the resource loading method provided in this application embodiment can be executed by a server, a user device, a resource loading device, or a control module in the resource loading device for executing the resource loading method. This application embodiment uses the execution of the resource loading method by a resource loading device as an example to illustrate the resource loading method provided in this application embodiment.

[0111] Figure 3 A schematic diagram of a possible structure of the resource loading device involved in an embodiment of this application is shown. For example... Figure 3 As shown, the resource loading device 200 may include: a receiving module 201, an acquiring module 202, a determining module 203, and a sending module 204; the receiving module 201 can be used to receive a resource loading request sent by a user equipment; the acquiring module 202 can be used to acquire M first feature information and N second feature information according to the resource loading request received by the receiving module 201, each first feature information indicating a resource, and each second feature information indicating a historical resource displayed by the user equipment within a preset time period, where M and N are both positive integers; the determining module 203 can be used to determine at least one first feature information from the M first feature information according to the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree; the sending module 204 can be used to send first address information to the user equipment, the first address information including the address information of the resource indicated by the at least one first feature information.

[0112] Optionally, the message processing device 200 may further include: a processing module; an acquisition module 202, specifically configured to acquire P first feature information pieces according to a resource loading request, where P is an integer greater than or equal to M; and a processing module, configured to perform deduplication processing on the P first feature information pieces based on the relationship between the matching degree between the P first feature information pieces acquired by the acquisition module 202 and a second preset matching degree, to obtain M first feature information pieces; wherein the matching degree between the M first feature information pieces is less than or equal to the second preset matching degree.

[0113] Optionally, the determining module 203 can be specifically used to determine the target number of matching degrees that are greater than or equal to the first preset matching degree among N matching degrees, where the N matching degrees include the matching degree between a first feature information and N second feature information; and when the target number is less than or equal to the preset number, a first feature information is determined as the first feature information among at least one first feature information.

[0114] Optionally, the M resources indicated by the M first feature information are resources in the server; the acquisition module 202 can also be used to acquire the address information of K resources in other servers besides the server after the receiving module 201 receives the resource loading request sent by the user equipment; wherein, the first address information also includes the address information of K resources, and K is an integer greater than or equal to 0.

[0115] Optionally, the message processing device 200 may further include: a storage module; a receiving module 201, which may be used to receive display information of at least one resource sent by the user equipment after the sending module 204 sends the first address information to the user equipment; and a storage module, which may be used to store the display information of at least one resource sent by the user equipment, wherein the at least one resource is a resource in the resource corresponding to the first address information, and the display information of the at least one resource includes: the address information of the at least one resource and the display time of the at least one resource on the user equipment.

[0116] Optionally, the message processing device 200 may further include: an identification module and a creation module; an acquisition module 202, which may also be used to acquire a target resource based on the second address information when the device does not include the feature information of the target resource corresponding to the second address information, wherein the target resource is a resource among at least one resource; an identification module, which may be used to perform feature identification on the target resource acquired by the acquisition module 202 to obtain the feature information of the target resource; a creation module, which may be used to create an association between the feature information of the target resource and the second address information; and a storage module, which may also be used to store the feature information of the target resource.

[0117] In the resource loading apparatus provided in this application embodiment, after receiving a resource loading request sent by a user device, at least one first feature information can be determined from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information corresponding to the N historical resources displayed by the user device within a preset time period and the first preset matching degree. The address information of the resource indicated by the at least one first feature information is then sent to the user device. In other words, resources can be recommended to the user device (specifically, the address information of the resource is recommended to the user device) based on the matching degree between the resource indicated by the obtained address information and the resources historically displayed by the user device. This can improve the accuracy of loading resources.

[0118] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.

[0119] The resource loading device in this application embodiment can be a server, a device with an operating system, or a component, integrated circuit, or chip in the server.

[0120] Figure 4 A schematic diagram of a possible structure of the resource loading device involved in an embodiment of this application is shown. For example... Figure 4 As shown, the resource loading device 300 may include: a sending module 301, a receiving module 302, a downloading module 303, and a display module 304. The sending module 301 can be used to send a resource loading request to the server; the receiving module 302 can be used to receive first address information sent by the server, the first address information including the address information of at least one resource indicated by at least one first feature information, the at least one first feature information being feature information determined by the server from M first feature information based on the relationship between the matching degree between M first feature information and N second feature information and a first preset matching degree, the M first feature information and N second feature information being obtained by the server according to the resource loading request; the downloading module 303 can be used to download the at least one resource based on the address information of the at least one resource, the address information of the at least one resource being the address information in the first address information; the display module 304 can be used to display the at least one resource.

[0121] Optionally, the sending module 301 can also be used to send display information of at least one resource to the server after the display module 304 displays at least one resource based on the address information of at least one resource. The display information of at least one resource includes: the address information of at least one resource and the display time of at least one resource on the user device.

[0122] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.

[0123] The resource loading device in this application embodiment can be a device, or it can be a component, integrated circuit, or chip in a user equipment. The user equipment can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0124] The resource loading device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0125] The resource loading device provided in this application embodiment can achieve... Figure 2 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0126] like Figure 5 As shown, this application embodiment also provides a communication device 400, including a processor 402, a memory 401, and a program or instructions stored in the memory 401 and executable on the processor 402. For example, when the communication device 400 is a server, the program or instructions executed by the processor 402 implement the various processes executed by the server in the above-mentioned resource loading method, and can achieve the same technical effect; when the communication device 400 is a user device, the program or instructions executed by the processor 402 implement the various processes executed by the user device in the above-mentioned resource loading method, and can achieve the same technical effect. To avoid repetition, further details are omitted here.

[0127] Figure 6 This is a schematic diagram of the hardware structure of a server according to an embodiment of this application.

[0128] This application also provides a server in its embodiments. For example... Figure 6 As shown, the server 900 in this embodiment includes: a processor 91, a transceiver 92, a memory 93, a network interface 94, and a bus interface. Figure 6 In this configuration, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 91) and memory (memory 93). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 92 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. Processor 91 is responsible for managing the bus architecture and general processing, and memory 93 can store data used by processor 91 during operation. Additionally, the server includes several functional modules not shown and will not be described further here.

[0129] Specifically, the server also includes instructions or programs stored in memory 93 and executable on processor 91, which are invoked by processor 91 to execute. Figure 3 The methods executed by each module in the process achieve the same technical effect, and to avoid repetition, they will not be described in detail here.

[0130] The transceiver 92 can be used to receive resource loading requests sent by user equipment; the processor 91 can also be used to obtain M first feature information and N second feature information according to the resource loading request received by the transceiver 92, where each first feature information is used to indicate a resource and each second feature information is used to indicate a historical resource displayed by the user equipment within a preset time period, where M and N are both positive integers; the processor 91 can also be used to determine at least one first feature information from the M first feature information according to the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree; the transceiver 92 can also be used to send first address information to the user equipment, where the first address information includes the address information of the resource indicated by the at least one first feature information.

[0131] Optionally, the processor 91 can be used to obtain P first feature information according to the resource loading request, where P is an integer greater than or equal to M; the processor 91 can also be used to perform deduplication processing on the P first feature information based on the relationship between the matching degree between the P first feature information and the second preset matching degree to obtain M first feature information; wherein the matching degree between the M first feature information is less than or equal to the second preset matching degree.

[0132] Optionally, the processor 91 can be specifically used to determine the target number of matching degrees that are greater than or equal to a first preset matching degree among N matching degrees, the N matching degrees including the matching degree between a first feature information and N second feature information; and when the target number is less than or equal to the preset number, a first feature information is determined as the first feature information among at least one first feature information.

[0133] Optionally, the M resources indicated by the M first feature information are resources in the server; the processor 91 can also be used to obtain the address information of K resources in other servers besides the server after the transceiver 92 receives the resource loading request sent by the user equipment; wherein, the first address information also includes the address information of K resources, and K is an integer greater than or equal to 0.

[0134] Optionally, the transceiver 92 can also be used to receive display information of at least one resource sent by the user equipment after sending the first address information to the user equipment; the memory 93 can be used to store the display information of at least one resource sent by the user equipment, wherein the at least one resource is a resource in the resource corresponding to the first address information, and the display information of the at least one resource includes: the address information of the at least one resource and the display time of the at least one resource on the user equipment.

[0135] Optionally, the processor 91 can also be used to obtain the target resource based on the second address information when the device does not include the feature information of the target resource corresponding to the second address information, wherein the target resource is a resource among at least one resource; the processor 91 can also be used to perform feature recognition on the target resource to obtain the feature information of the target resource; the processor 91 can also be used to create an association relationship between the feature information of the target resource and the second address information; the memory 93 can also be used to store the feature information of the target resource.

[0136] In the server provided in this application embodiment, after receiving a resource loading request sent by a user device, at least one first feature can be determined from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information corresponding to the N historical resources displayed by the user device within a preset time period and the first preset matching degree. The address information of the resource indicated by the at least one first feature information is then sent to the user device. In other words, resources can be recommended to the user device (specifically, the address information of the resource is recommended to the user device) based on the matching degree between the resource indicated by the obtained address information and the resources historically displayed by the user device. This can improve the accuracy of loading resources.

[0137] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0138] The electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.

[0139] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0140] The processor 1010 can be used to send a resource loading request to the server; the radio frequency unit 1001 can be used to receive first address information sent by the server, the first address information including the address information of at least one resource indicated by at least one first feature information, the at least one first feature information being feature information determined by the server from M first feature information based on the relationship between the matching degree between M first feature information and N second feature information and a first preset matching degree, the M first feature information and N second feature information being obtained by the server according to the resource loading request; the processor 1010 can be used to download the at least one resource based on the address information of the at least one resource, the address information of the at least one resource being the address information in the first address information; the display unit 1006 can be used to display the at least one resource.

[0141] Optionally, the processor 1010 can also be used to send display information of at least one resource to the server after the display unit 1006 displays at least one resource based on the address information of at least one resource. The display information of at least one resource includes: the address information of at least one resource and the display time of at least one resource on the user device.

[0142] For details on the beneficial effects of the various implementation methods in this embodiment, please refer to the beneficial effects of the corresponding implementation methods in the above method embodiments. To avoid repetition, these will not be repeated here.

[0143] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. Processor 1010 can integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 1010.

[0144] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described resource loading method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.

[0145] The processor mentioned above refers to the processor in the electronic device described in the above embodiments. The readable storage medium mentioned above includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk. This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the resource loading method embodiments described above, and can achieve the same technical effects. To avoid repetition, it will not be described again here.

[0146] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0147] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0148] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0149] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A resource loading method, applied to a server, characterized in that, The method includes: Receive resource loading requests sent by user equipment; According to the resource loading request, M first feature information and N second feature information are obtained. Each first feature information is used to indicate a resource, and each second feature information is used to indicate a historical resource displayed by the user equipment within a preset time period. M and N are both positive integers. Based on the relationship between the matching degree between the M first feature information and the N second feature information and the first preset matching degree, at least one first feature information is determined from the M first feature information. Send first address information to the user equipment, wherein the first address information includes the address information of the resource indicated by the at least one first feature information; The step of determining at least one first feature from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree includes: After performing the following steps on each of the M first feature information pieces, the at least one first feature information piece is obtained: Determine the target number of matching degrees that are greater than or equal to the first preset matching degree among N matching degrees, wherein the N matching degrees include the matching degree between a first feature information and the N second feature information; If the target quantity is less than or equal to a preset quantity, the first feature information is determined as the first feature information among the at least one first feature information.

2. The method according to claim 1, characterized in that, The step of obtaining M first feature information based on the resource loading request includes: Based on the resource loading request, obtain P first feature information, where P is an integer greater than or equal to M; Based on the relationship between the matching degree between the P first feature information and the second preset matching degree, the P first feature information is deduplicated to obtain the M first feature information. Wherein, the matching degree among the M first feature information is less than or equal to the second preset matching degree.

3. The method according to claim 1, characterized in that, The M resources indicated by the M first feature information are resources in the server; After receiving the resource loading request sent by the user equipment, the method further includes: Obtain the address information of K resources from servers other than the server mentioned above; The first address information also includes the address information of the K resources, where K is an integer greater than or equal to 0.

4. The method according to claim 1, 2 or 3, characterized in that, After sending the first address information to the user equipment, the method further includes: Receive and save display information of at least one resource sent by the user equipment, wherein the at least one resource is a resource in the resource corresponding to the first address information, and the display information of the at least one resource includes: The address information of the at least one resource and the display time of the at least one resource on the user device.

5. The method according to claim 4, characterized in that, After receiving and saving the display information of at least one resource sent by the target device, the method further includes: If the server does not include the feature information of the target resource corresponding to the second address information, the target resource is obtained based on the second address information, and the target resource is one of the at least one resources. The target resource is subjected to feature recognition to obtain its feature information; Create an association between the characteristic information of the target resource and the second address information; Save the characteristic information of the target resource.

6. A resource loading method, applied to a user equipment, characterized in that, The method includes: Send a resource loading request to the server; The server receives first address information, which includes the address information of a resource indicated by at least one first feature information. The at least one first feature information is a feature information determined by the server from the M first feature information based on the relationship between the matching degree between M first feature information and N second feature information and a first preset matching degree. The M first feature information and the N second feature information are obtained by the server based on the resource loading request. Based on the address information of at least one resource, download and display the at least one resource, wherein the address information of the at least one resource is the address information in the first address information; The at least one feature information includes: a first feature information whose target number is less than or equal to a preset number, wherein the target number is the number of targets with a matching degree greater than or equal to the first preset matching degree among N matching degrees, and the N matching degrees include the matching degree between a first feature information and the N second feature information.

7. The method according to claim 6, characterized in that, After displaying the at least one resource based on its address information, the method further includes: Send display information of the at least one resource to the server, the display information of the at least one resource including: The address information of the at least one resource and the display time of the at least one resource on the user device.

8. A resource loading device, characterized in that, The device includes: a receiving module, an acquiring module, a determining module, and a sending module; The receiving module is used to receive resource loading requests sent by user equipment; The acquisition module is used to acquire M first feature information and N second feature information according to the resource loading request received by the receiving module. Each first feature information is used to indicate a resource, and each second feature information is used to indicate a historical resource displayed by the user equipment within a preset time period. M and N are both positive integers. The determining module is used to determine at least one first feature information from the M first feature information based on the relationship between the matching degree between the M first feature information and the N second feature information and a first preset matching degree; The sending module is configured to send first address information to the user equipment, wherein the first address information includes the address information of the resource indicated by the at least one first feature information; The determining module is specifically configured to perform the following steps on each of the M first feature information to obtain the at least one first feature information: Determine the target number of matching degrees that are greater than or equal to the first preset matching degree among N matching degrees, wherein the N matching degrees include the matching degree between a first feature information and the N second feature information; If the target quantity is less than or equal to a preset quantity, the first feature information is determined as the first feature information among the at least one first feature information.

9. A resource loading device, characterized in that, The device includes a sending module, a receiving module, a downloading module, and a display module; The sending module is used to send a resource loading request to the server; The receiving module is configured to receive first address information sent by the server. The first address information includes the address information of a resource indicated by at least one first feature information. The at least one first feature information is feature information determined by the server from the M first feature information based on the relationship between the matching degree between M first feature information and N second feature information and a first preset matching degree. The M first feature information and the N second feature information are obtained by the server based on the resource loading request. The download module is used to download the at least one resource based on the address information of at least one resource, wherein the address information of the at least one resource is the address information in the first address information received by the receiving module; The display module is used to display the at least one resource downloaded by the download module; The at least one feature information includes: a first feature information whose target number is less than or equal to a preset number, wherein the target number is the number of targets with a matching degree greater than or equal to the first preset matching degree among N matching degrees, and the N matching degrees include the matching degree between a first feature information and the N second feature information.

Citation Information

Patent Citations

  • Data management method under big data environment

    CN105574113A

  • Resource loading method and electronic equipment

    CN112287261A