The present disclosure relates to the technology field of computer vision processing, and in particular to a method, apparatus and storage medium for recommending multimedia resources.
The richness of multimedia resources has attracted a large number of users to watch, and the recommendation of multimedia resources has also attracted more and more attention.
According to an aspect of the present disclosure, there is provided a method for recommending multimedia resources. The method for recommending multimedia resources is applied to a terminal and includes: in response to a multimedia playing instruction, acquiring a target recommendation tree, and the target recommendation tree being constructed based on a content association between a target multimedia resource and recommended multimedia resources; determining a target parent node corresponding to the target multimedia resource in the target recommendation tree; taking multimedia resources corresponding to at least two child nodes of the target parent node as the recommended multimedia resources; and playing the target multimedia resource and displaying presenting information of the recommended multimedia resources on a multimedia playing page.
According to another aspect of the implementations of the present disclosure, there is provided a method for generating a recommendation tree for multimedia resources. The method for generating the recommendation tree for multimedia resources is applied to a server and includes: receiving a target recommendation tree request, the target recommendation tree request comprising user information; based on portrait information corresponding to the user information, acquiring a multimedia resource corresponding to a root node and multimedia resources corresponding to at least two first-layer branch nodes; based on the multimedia resources corresponding to the first-layer branch nodes and the portrait information, acquiring preference information corresponding to the first-layer branch nodes; and based on the preference information corresponding to the first-layer branch nodes, acquiring multimedia resources corresponding to at least two second-layer branch nodes, wherein the at least two second-layer branch nodes correspond to the first-layer branch nodes.
According to another aspect of the implementations of the present disclosure, there is provided electronic equipment. The electronic equipment includes: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to in response to a multimedia playing instruction, acquire a target recommendation tree, and the target recommendation tree being constructed based on a content association between a target multimedia resource and recommended multimedia resources; determine a target parent node corresponding to the target multimedia resource in the target recommendation tree; take multimedia resources corresponding to at least two child nodes of the target parent node as the recommended multimedia resources; and play the target multimedia resource and displaying presenting information of the recommended multimedia resources on a multimedia playing page.
In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the implementations of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms ‘first’, ‘second’ and the like in the description and claims of the present disclosure and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or order. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the implementations of the disclosure described herein can be practiced in sequences other than those illustrated or described herein.
In the related art, multimedia resources viewed by a user are generally a certain number of multimedia resources arranged in a fixed order recommended by a server, as shown in
To this end, the present disclosure proposes a new method for recommending multimedia resources.
Referring to
In some implementations, the server 01 may be used to generate a recommendation tree of multimedia resources. Specifically, the server 01 may be an independent physical server, or a server cluster or distributed system composed of a plurality of physical servers, or may be a cloud server, which provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and basic cloud computing services such as big data and artificial intelligence platforms, etc.
In some implementations, the terminal 02 may be used to implement the method for recommending multimedia resources. Specifically, the terminal 02 may include, but is not limited to, smart phones, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR) devices/virtual reality (VR) devices, smart wearable devices and other types of electronic equipment. In some implementations, the operating system running on electronic equipment may include, but is not limited to, an Android system, an IOS system, Linux, windows, and the like.
In addition, it should be noted that what is shown in
In implementations of the present application, the above-mentioned server 01 and the terminal 02 may be directly or indirectly connected through wired or wireless communication, which is not limited in the present disclosure.
In S301, in response to a multimedia playing instruction, a target recommendation tree is acquired.
In some implementations of the present disclosure, the target recommendation tree may be constructed based on content association between a target multimedia resource and recommended multimedia resources. Nodes in the target recommendation tree, i.e., from a root node to an end node, may represent a recommendation order of corresponding multimedia resources. The target recommendation tree may have a preset number of layers. Each node may have at least two child nodes, and each node has a corresponding multimedia resource, and the present disclosure does not limit the target recommendation tree. As an example, the target recommendation tree may be a target recommendation tree as shown in
In practical applications, the multimedia playing instruction can be triggered by the user, and in response to the multimedia playing instruction, the target recommendation tree can be obtained locally. In response to that the target recommendation tree does not exist locally, the target recommendation tree can be obtained from the server. For example, in response to that the multimedia playing instruction is triggered when the user enters a multimedia playing page, the target recommendation tree may be obtained from the server. A target recommendation tree request may be sent to the server, and the target recommendation tree request may include user information, so that the target recommendation tree corresponding to the user information may be acquired from the server. In response to that the multimedia playing instruction is triggered when the user selects the recommended multimedia resource on the multimedia playing page, a local recommendation tree can be acquired. In response to that the recommended multimedia resource selected by the user corresponds to a non-end node in the local recommendation tree, the local recommendation tree may be determined as the target recommendation tree. In response to that the recommended multimedia resource selected by the user corresponds to an end node in the local recommendation tree, the target recommendation tree may be requested from the server.
In S303, a target parent node corresponding to a target multimedia resource is determined in the target recommendation tree.
In some implementations of the present disclosure, the target multimedia resource may refer to a multimedia resource used for playing. The target multimedia resource can be determined based on the multimedia playing instruction. In some implementations, the target multimedia resource may be determined according to whether the multimedia playing instruction includes identification information of the target multimedia resource. For example, in response to that the multimedia playing instruction includes the identification information of the target multimedia resource, the multimedia resource corresponding to the identification information can be determined as the target multimedia resource; and in response to that the multimedia playing instruction does not include the identification information of the target multimedia resource, the multimedia resource corresponding to the root node in the target recommendation tree can be determined as the target multimedia resource. Correspondingly, the S303 may include the following operations: in response to that the multimedia playing instruction includes the identification information of the target multimedia resource, determining a node corresponding to the identification information in the target recommendation tree as the target parent node; and in response to that the multimedia playing instruction does not include the identification information of the target multimedia resource, determining the root node in the target recommendation tree as the target parent node.
For example, as shown in
In S305, multimedia resources corresponding to at least two child nodes of the target parent node are taken as recommended multimedia resources.
In S307, the target multimedia resource is played on the multimedia playing page, and presenting information of the recommended multimedia resources is displayed on the multimedia playing page.
In some implementations of the present disclosure, the multimedia resources corresponding to at least two child nodes of the target parent node can be taken as the recommended multimedia resources; and the target multimedia resource can be played on the multimedia playing page, and the presenting information of the recommended multimedia resources can be displayed on the multimedia playing page. The presenting information of the recommended multimedia resources may include one frame of image in the recommended multimedia resources, description information of the recommended multimedia resources, and a segment of the recommended multimedia resources, which is not limited in the present disclosure.
As an example, as shown in
In some implementations, in the case that the target recommendation tree includes the presenting information of the multimedia resources corresponding to the nodes, the presenting information of the recommended multimedia resources may be obtained from the target recommendation tree. In the case that the target recommendation tree does not include the presenting information of the multimedia resources corresponding to the nodes, the presenting information of the multimedia resources can be obtained according to the multimedia resources. For example, one frame of image can be extracted from the multimedia resources to treat as the presenting information of the multimedia resources, which is not limited in the present disclosure.
The multimedia resources are recommended to users in the form of a recommendation tree, the target multimedia resource is played on the multimedia playing page, and the presenting information of at least two recommended multimedia resources are displayed on the multimedia playing page, so that when viewing the target multimedia resource, the user can select from at least two recommended multimedia resources. It can improve the selection flexibility of recommended multimedia resources and improve the user experience; at the same time, it can also improve the user's screening efficiency of multimedia resources, and can quickly locate the user's preference, so as to achieve efficient and accurate recommendation of multimedia resources. In addition, by recommending multimedia resources to users in the form of a recommendation tree, the quantity of the recommended multimedia resources can be increased, the number of interactions with the server can be reduced, and the energy consumption of the terminal can be reduced.
By recommending multimedia resources to users in the form of a recommendation tree, playing the target multimedia resource on the multimedia playing page, and displaying the presenting information of at least two recommended multimedia resources on the multimedia playing page, users can select from at least two recommended multimedia resources when viewing the target multimedia resource, thus improving the selection flexibility of recommended multimedia resources and improving the user experience; at the same time, it can also improve the user's screening efficiency of multimedia resources, and can quickly locate the user's preference, so as to achieve efficient and accurate recommendation of multimedia resources. In addition, by recommending multimedia resources to users in the form of a recommendation tree, the quantity of the recommended multimedia resources can be increased, the number of interactions with the server can be reduced, and the energy consumption of the terminal can be reduced.
In S501, in response to that the multimedia playing instruction includes the identification information of the target multimedia resource, a local recommendation tree is acquired.
In S503, in response to that a node corresponding to the identification information in the local recommendation tree is a non-end node, the local recommendation tree is taken as the target recommendation tree.
In S505, in response to that the multimedia playing instruction does not include the identification information of the target multimedia resource, or in response to that the node corresponding to the identification information in the local recommendation tree is an end node, the target recommendation tree is requested from the server.
In some implementations of the present disclosure, in the case that the multimedia playing instruction is triggered when the user enters the multimedia playing page, the multimedia playing instruction does not include identification information of the target multimedia resource; and in the case that the multimedia playing instruction is triggered when the user selects the recommended multimedia resources on the multimedia playing page, the multimedia playing instruction may include identification information of the target multimedia resource. Based on this, it can be judged whether the multimedia playing instruction includes the identification information of the target multimedia resource, and in response to that the multimedia playing instruction does not include the identification information of the target multimedia resource, the target recommendation tree can be requested from the server. For example, a target recommendation tree request may be sent to the server, and the target recommendation tree request may include user information. The server may generate a corresponding target recommendation tree based on the user information, and send the target recommendation tree to the terminal corresponding to the user information, so as to receive the target recommendation tree.
In response to that the multimedia playing instruction includes the identification information of the target multimedia resource, the local recommendation tree can be acquired. Further, it can be judged whether the node corresponding to the identification information in the local recommendation tree is an end node. In response to that the node corresponding to the identification information in the local recommendation tree is a non-end node, the local recommendation tree is taken as the target recommendation tree; and in response to that the node corresponding to the identification information in the local recommendation tree is an end node, the target recommendation tree is requested from the server. For example, a target recommendation tree request may be sent to the server, and the target recommendation tree request may include user information and one or more selected multimedia identifications, and the selected multimedia identifications may refer to one or more identifications of the multimedia selected by the user in the local recommendation tree. The server can generate a corresponding target recommendation tree according to the user information and the selected multimedia identifications, and send the target recommendation tree to the terminal corresponding to the user information, so that the target recommendation tree can be received. The received multimedia resource corresponding to the root node of the target recommendation tree is the same as the target multimedia resource corresponding to the identification information of the target multimedia resource included in the multimedia playing instruction.
In some implementations, as shown in
In other implementations, as shown in
By a way of determining and acquiring the target recommendation tree according to whether the multimedia playing instruction includes the identification information of the target multimedia resource, the target recommendation tree can be accurately acquired, and frequent interaction with the server can be avoided.
In S601, the target multimedia resource is played in a first region of the multimedia playing page.
In S603, presenting information of recommended multimedia resources is displayed in a second region of the multimedia playing page.
In some implementations, as shown in
It should be noted that
By setting the first region and the second region, the target multimedia resource and the recommended multimedia resources can be presented in a differentiated manner. Moreover, by setting the second region below the first region, the recommended multimedia resources can be effectively displayed for the user to select and operate without affecting the playing of the target multimedia resource.
As shown in
In S901, a target recommendation tree request is received, and the target recommendation tree request may include user information.
In some implementations of the present disclosure, the target recommendation tree request may be received, and the target recommendation tree request may include user information, and the user information may refer to information used to uniquely identify the user, such as the user's name and the user's identity (ID).
In S903, multimedia resources corresponding to the root node and multimedia resources corresponding to at least two first-layer branch nodes are acquired based on portrait information corresponding to the user information.
In some implementations of the present disclosure, based on the portrait information corresponding to the user information, a certain number of multimedia resources may be screened from a multimedia resource library to treat as the multimedia resources corresponding to the root node and the multimedia resources corresponding to at least two first-layer branch nodes. The certain number may be the number of nodes of the root node and the at least two first-layer branch nodes. The portrait information may include the user's basic information, user's preference information for multimedia resources. The user's basic information may include the user's age, gender, occupation, etc., and the user's preference information for multimedia resources may include types, content of the multimedia resources that the user prefers, celebrities that the user prefers, and the like. This disclosure does not limit the portrait information.
In some implementations of the present disclosure, as shown in
In other implementations of the present disclosure, as shown in
The above is an example of the implementation of S903, and does not limit the present disclosure.
In S905, preference information corresponding to the first-layer branch nodes is acquired, based on the multimedia resources corresponding to the first-layer branch nodes and portrait information.
In some implementations, the preference information corresponding to one or more first-layer branch nodes may be acquired according to portrait information and tag information of the multimedia resources corresponding to the first-layer branch nodes. The preference information may refer to preference information for multimedia resources, which is not limited in the present disclosure.
In S907, multimedia resources corresponding to at least two second-layer branch nodes are acquired, based on preference information corresponding to the first-layer branch nodes, wherein the at least two second-layer branch nodes correspond to the first-layer branch nodes.
In some implementations of the present disclosure, the multimedia resources corresponding to at least two second-layer branch nodes may be obtained according to the preference information corresponding to the first-layer branch nodes, wherein the at least two second-layer branch nodes correspond to the first-layer branch nodes. For example, as shown in
In some implementations of the present disclosure, the multimedia resources corresponding to the branch nodes of the third layer may continue to be obtained, and so on, until the multimedia resources corresponding to the branch nodes of the end layer are obtained. The number of layers of the target recommendation tree may be preset, which is not limited in the present disclosure. As an example, as shown in
For A112, the preference information corresponding to the node of A112 can be generated according to the tag information of A112 and the preference information corresponding to A11, that is, the preference information of the user is updated. Thereby, two multimedia resources A1121 and A1122 can be obtained according to the preference information corresponding to the node of A112; and the two multimedia resources A1121 and A1122 can be treated as multimedia resources corresponding to two third-layer branch nodes, wherein the two third-layer branch nodes correspond to the node of A112.
For A1122, the preference information corresponding to the node of A1122 can be generated according to the tag information of A1122 and the preference information corresponding to the node of A112, that is, the preference information of the user is updated. Therefore, two multimedia resources A11221 and A11222 can be obtained according to the preference information corresponding to the A1122; and A11221 and A11222 can be treated as the multimedia resources corresponding to two fourth-layer branch nodes, wherein the two fourth-layer branch nodes correspond to the nodes of A1122.
The multimedia resources corresponding to the nodes in the recommendation tree are sequentially obtained using the user's portrait information and the tag information of the multimedia resources obtained in the target recommendation tree, so that the multimedia resources can be recommended in the form of a tree, and recommending the multimedia resources based on the order of the nodes in the recommendation tree can be realized, thus improving the flexibility of multimedia recommendation and quickly locating user preferences.
In S1001, a multimedia resource corresponding to an end multimedia identification in the selected multimedia identifications is taken as the multimedia resource corresponding to the root node.
In practical applications, when the target recommendation tree request further includes the selected multimedia identifications, it can be indicated that a local recommendation tree exists locally. As shown in
For example, as shown in
It should be noted that the number of layers of a previous recommendation tree and the number of layers of the recommendation tree currently to be generated may be the same or different, and the number of child nodes of each node may be the same or different, which is not limited in the present disclosure.
In S1003, interest information is determined based on the selected multimedia identifications.
In some implementations of the present disclosure, the interest information may be determined according to the tag information corresponding to the selected multimedia identifications; or the interest information may be determined according to content information of the multimedia resources corresponding to the selected multimedia identifications, which is not limited in this disclosure.
In S1005, target portrait information corresponding to the user information is generated, based on the interest information and the portrait information.
In some implementations of the present disclosure, the user's portrait information may be updated according to the interest information and the portrait information, and target portrait information corresponding to the user information is generated.
In S1007, multimedia resources corresponding to at least two first-layer branch nodes are acquired based on the target portrait information.
In some implementations of the present disclosure, multimedia resources corresponding to at least two first-layer branch nodes may be acquired according to the target portrait information. For details, refer to S903, which will not be repeated here.
In some implementations of the present disclosure, as shown in
By including selected multimedia identifications in the target recommendation tree request, the portrait information can be updated based on the selected multimedia identifications, and when the target recommendation tree is requested again, the target recommendation tree can be generated according to the updated target portrait information. The target recommendation tree can be generated dynamically according to the user's portrait information, and the accuracy of multimedia resource recommendation can be improved.
The target recommendation tree acquisition module 1201 is configured to acquire a target recommendation tree in response to a multimedia playing instruction, and the target recommendation tree is constructed based on a content association between a target multimedia resource and recommended multimedia resources.
The target parent node determination module 1203 is configured to determine a target parent node corresponding to the target multimedia resource in the target recommendation tree.
The recommended multimedia resource acquisition module 1205 is configured to take multimedia resources corresponding to at least two child nodes of the target parent node as the recommended multimedia resources.
The multimedia resource recommendation module 1207 is configured to play playing the target multimedia resource on a multimedia playing page and display presenting information of the recommended multimedia resources on the multimedia playing page.
By recommending multimedia resources to users in the form of a recommendation tree, playing the target multimedia resource on the multimedia playing page, and displaying the presenting information of at least two recommended multimedia resources on the multimedia playing page, users can select from at least two recommended multimedia resources when viewing the target multimedia resource, thus improving the selection flexibility of recommended multimedia resources and improving the user experience; at the same time, it can also improve the user's screening efficiency of multimedia resources, and can quickly locate the user's preference, so as to achieve efficient and accurate recommendation of multimedia resources. In addition, by recommending multimedia resources to users in the form of a recommendation tree, the quantity of the recommended multimedia resources can be increased, the number of interactions with the server can be reduced, and the energy consumption of the terminal can be reduced.
In some implementations, the target recommendation tree acquisition module 1201 may include a first target recommendation tree acquisition unit and a second target recommendation tree acquisition unit.
The first target recommendation tree acquisition unit is configured to, in response to that the multimedia playing instruction includes identification information of the target multimedia resource, acquire a local recommendation tree, and in response to that a node corresponding to the identification information in the local recommendation tree is a non-end node, take the local recommendation tree as the target recommendation tree.
The second target recommendation tree acquisition unit is configured to, in response to that the multimedia playing instruction does not include the identification information of the target multimedia resource, or in response to that the node corresponding to the identification information in the local recommendation tree is an end node, request the target recommendation tree from a server.
In some implementations, the target parent node determination module 1203 may include a first target parent node determination unit and a second target parent node determination unit.
The first target parent node determination unit is configured to, in response to that the multimedia playing instruction includes the identification information of the target multimedia resource, determine a node corresponding to the identification information in the target recommendation tree as the target parent node.
The second target parent node determining unit is configured to, in response to that the multimedia playing instruction does not include the identification information of the target multimedia resource, determine a root node in the target recommendation tree as the target parent node.
In some implementations, the multimedia resource recommendation module 1207 may include a target multimedia resource playing unit and a recommended multimedia resource display unit.
The target multimedia resource playing unit is configured to play the target multimedia resource in a first region of the multimedia playing page.
The recommended multimedia resource display unit is configured to display the presenting information of the recommended multimedia resources in a second region of the multimedia playing page.
In some implementations, the second region is below the first region.
The request receiving module 1301 is configured to receive a target recommendation tree request; the target recommendation tree request includes user information.
The first multimedia resource acquisition module 1303 is configured to acquire a multimedia resource corresponding to a root node and multimedia resources corresponding to at least two first-layer branch nodes, based on portrait information corresponding to the user information.
The preference information acquisition module 1305 is configured to acquire preference information corresponding to the first-layer branch nodes, based on the multimedia resources corresponding to the first-layer branch nodes and the portrait information.
The second multimedia resource acquisition module 1307 is configured to acquire multimedia resources corresponding to at least two second-layer branch nodes based on the preference information corresponding to the first-layer branch nodes, wherein the at least two second-layer branch nodes correspond to the first-layer branch nodes.
In some implementations, the target recommendation tree request further includes one or more selected multimedia identifications; and the first multimedia resource acquisition module 1303 may include a root node multimedia resource acquisition unit, an interest information determination unit, a target portrait information generation unit, and a first multimedia resource acquisition unit.
The root node multimedia resource acquisition unit is configured to take a multimedia resource corresponding to an end multimedia identification in the selected multimedia identifications as the multimedia resource corresponding to the root node.
The interest information determination unit is configured to determine interest information based on the selected multimedia identifications.
The target portrait information generating unit is configured to generate target portrait information corresponding to the user information based on the interest information and the portrait information.
The first multimedia resource acquisition unit is configured to acquire multimedia resources corresponding to the at least two first-layer branch nodes based on the target portrait information.
Regarding the apparatus in the above-mentioned implementations, the specific manner in which each module performs operations has been described in detail in the implementations of the method, and will not be described in detail here.
Those skilled in the art can understand that the structure shown in
Those skilled in the art can understand that the structure shown in
In some implementations, there is also provided electronic equipment, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement implementations of the method for recommending multimedia resources and the method for generating a recommendation tree for multimedia resources as disclosed herein.
In some implementations, there is also provided a computer readable storage medium, when the instructions in the computer-readable storage medium are executed by the processor of the electronic equipment, enables the electronic equipment to execute the method for recommending multimedia resources and the method for generating a recommendation tree for multimedia resources in the some implementations of the present disclosure. The computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In some implementations, there is also provided a computer program product containing instructions, which, when run on a computer, cause the computer to execute the method for recommending multimedia resources and the method for generating a recommendation tree for multimedia resources in the some implementations of the present disclosure.
Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above implementations can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, when the computer program is executed, it may include the processes of the above-mentioned method implementations. Wherein, any reference to memory, storage, database or other medium used in the various implementations provided in the present disclosure may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
All the implementations of the present disclosure may be implemented independently or in combination with other implementations, which are all regarded as the protection scope required by the present disclosure.
Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above implementations can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it may include the processes of the above-mentioned method implementations. Wherein, any reference to memory, storage, database or other medium used in the various implementations provided in the present disclosure may include non-volatile and/or volatile memory.
Number | Date | Country | Kind |
---|---|---|---|
202110005194.4 | Jan 2021 | CN | national |
The present disclosure is a continuation application of International Application No. PCT/CN2021/118819, filed on Sep. 16, 2021, which is based on and claims priority to Chinese Patent Application No. 202110005194.4, filed on Jan. 5, 2021, the disclosures of which are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2021/118819 | Sep 2021 | US |
Child | 17870962 | US |