Picture display method and device, terminal equipment and storage medium

文档序号:1963810 发布日期:2021-12-14 浏览:8次 中文

阅读说明:本技术 图片显示方法、装置、终端设备以及存储介质 (Picture display method and device, terminal equipment and storage medium ) 是由 商聪 朱鸿宇 张宁 詹琦 王旭 于 2021-09-17 设计创作,主要内容包括:本发明实施例提出了一种图片显示方法、装置、终端设备以及存储介质,涉及智能终端技术领域;在应用程序访问用户相册时,可以快速获取到用户需求的图片,进而提高用户体验。应用于电子设备终端,所述方法包括:在当前应用程序访问用户相册时,获取所述用户相册中的图片与所述当前应用程序的相关度值;根据所述相关度值对所述用户相册中每张图片进行排序显示在所述当前应用程序展示图片的界面中。(The embodiment of the invention provides a picture display method, a picture display device, terminal equipment and a storage medium, and relates to the technical field of intelligent terminals; when the application program accesses the user photo album, the pictures required by the user can be quickly acquired, and the user experience is further improved. The method is applied to the electronic equipment terminal, and comprises the following steps: when a current application program accesses a user photo album, acquiring a correlation value between a picture in the user photo album and the current application program; and sequencing and displaying each picture in the user photo album in the interface for displaying the picture by the current application program according to the relevance value.)

1. The picture display method is applied to an electronic equipment terminal, and comprises the following steps:

when a current application program accesses a user photo album, acquiring a correlation value between a picture in the user photo album and the current application program;

and sequencing and displaying each picture in the user photo album in the interface for displaying the picture by the current application program according to the relevance value.

2. The method according to claim 1, wherein the pictures in the user album are preset with category characteristics, and the obtaining the relevance value of the pictures in the user album and the current application program comprises:

acquiring historical shared pictures in the user photo album before being accessed by the current application program;

obtaining a first picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing picture, wherein the first picture set is at least one picture with the same category characteristic;

obtaining sharing importance scores of the corresponding category characteristics according to the number of the pictures in the first picture set, wherein the more the number of the pictures in the first picture set is, the higher the sharing importance scores of the category characteristics corresponding to the first picture set are;

and obtaining a correlation value between the pictures in the user photo album and the current application program according to the sharing importance degree score of the category characteristics of the pictures in the user photo album, wherein the higher the sharing importance degree score is, the higher the correlation value is.

3. The method according to claim 1, wherein the pictures in the user album are preset with category characteristics, and the obtaining the relevance value of the pictures in the user album and the current application program comprises:

acquiring the target scene attribute of the current application program;

acquiring historical shared pictures of other users displayed by the current application program under the target scene attribute and the category characteristics of the historical shared pictures of the other users;

obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history shared pictures of the other users, wherein the second picture set is at least one picture with the same category characteristic;

obtaining the initial importance score of the corresponding category characteristic according to the number of the pictures in the second picture set, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance score of the category characteristic corresponding to the second picture set is;

and obtaining the relevance value of the picture in the user photo album and the target scene attribute of the current application program according to the initial importance score of the category characteristic of the picture in the user photo album, wherein the higher the initial importance score is, the higher the relevance value is.

4. The method of claim 2, further comprising:

acquiring the target scene attribute of the current application program;

acquiring historical shared pictures of other users displayed by the current application program under the target scene attribute and the category characteristics of the historical shared pictures of the other users;

obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history shared pictures of the other users, wherein the second picture set is at least one picture with the same category characteristic;

obtaining the initial importance score of the corresponding category characteristic according to the number of the pictures in the second picture set, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance score of the category characteristic corresponding to the second picture set is;

the obtaining of the relevance value between the picture in the user album and the current application program according to the sharing importance value of the category characteristics to which the picture in the user album belongs includes:

and obtaining the correlation value between the pictures in the user photo album and the current application program according to the accumulated value of the sharing importance value and the initial importance value of the category characteristics of the pictures in the user photo album, wherein the correlation value is higher when the accumulated value is higher.

5. The method of claim 2, wherein the obtaining the historical shared pictures in the user's album before being accessed by the current application comprises:

acquiring historical shared pictures which are shared by the current application program in the user album in a first preset time period before the current application program is accessed; or the like, or, alternatively,

and obtaining historical shared pictures which are shared by a plurality of application programs in the user album in a second preset time period before the current application program is accessed.

6. The method according to claim 2, wherein obtaining the sharing importance score of the corresponding category feature according to the number of the pictures in the first picture set comprises:

when any picture in a user photo album receives a picture sharing instruction, inputting a target category characteristic corresponding to a first picture set to which the picture in the user photo album belongs and corresponding to the picture sharing instruction into a preset reinforcement learning model, so that the action of increasing the sharing importance degree score of the target category characteristic is determined as an action of acquiring forward excitation by the preset reinforcement learning model;

and receiving sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

7. The method according to claim 3 or 4, wherein obtaining the sharing importance score of the corresponding category feature according to the number of the pictures in the first picture set comprises:

when any picture in a user photo album receives a picture sharing instruction, inputting a target category characteristic and a target scene attribute corresponding to a first picture set to which the picture in the user photo album belongs corresponding to the picture sharing instruction into a preset reinforcement learning model, so that the preset reinforcement learning model determines an action of increasing the sharing importance degree score of the target category characteristic and the target scene attribute as an action of acquiring forward excitation;

and receiving sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

8. The method of claim 2, wherein the obtaining the relevancy value of the current application to the picture in the user album comprises:

acquiring the storage time of the pictures in each user photo album stored in the local storage area to obtain the time scores of the pictures in the user photo albums;

carrying out weighted summation on the sharing importance value corresponding to the category characteristics of the pictures in each user photo album and the time value of the pictures in each user photo album to obtain the weight value of the pictures in each user photo album;

and obtaining a relevance value of the picture in the user photo album and the current application program according to the weight score of the picture in the user photo album, wherein the higher the weight score is, the higher the relevance value is.

9. The picture display device is characterized by being arranged on an electronic equipment terminal, and comprises:

the system comprises a relevancy value acquisition module, a relevancy value acquisition module and a relevancy value acquisition module, wherein the relevancy value acquisition module is used for acquiring relevancy values of pictures in a user album and a current application program when the current application program accesses the user album;

and the sequencing display module is used for sequencing and displaying each picture in the user photo album in the interface for displaying the picture in the current application program according to the relevance value.

10. A terminal device, comprising:

at least one processor; and

at least one memory communicatively coupled to the processor, wherein:

the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 8.

11. A non-transitory (non-volatile) computer readable storage medium storing computer instructions that cause the computer to perform the method of any of claims 1 to 8.

[ technical field ] A method for producing a semiconductor device

The embodiment of the invention relates to the technical field of intelligent terminals, in particular to a picture display method, a device terminal device and a storage medium.

[ background of the invention ]

With the development of the intelligent terminal, taking a smart phone as an example, the functions of the smart phone are more and more, and an application program of the smart phone can access a user album of the smart phone, select a picture from the user album and add the picture to the application program, so as to create or share the picture for the second time.

When the number of the pictures in the user album is large, and an application program accesses the user album to select the pictures therein, a plurality of pictures in the user album need to be displayed, and a picture selection instruction given by a user to determine the pictures can be received, so that the time for the application program to access the user album is too long.

[ summary of the invention ]

The embodiment of the invention provides a picture display method and device, terminal equipment and a storage medium, so that when an application program accesses a user album, pictures required by the user can be quickly acquired, and further user experience is improved.

In a first aspect, an embodiment of the present invention provides a picture display method applied to an electronic device terminal, where the method includes: when a current application program accesses a user photo album, acquiring a correlation value between a picture in the user photo album and the current application program; and sequencing and displaying each picture in the user photo album in the interface for displaying the picture by the current application program according to the relevance value.

In the picture display method, before the electronic equipment terminal displays the pictures in the user photo album to the interface for displaying the pictures of the current application program, all the pictures in the user photo album are sorted according to the correlation value of the pictures in the user photo album and the current application program, and then the pictures in each user photo album are sequentially displayed in the interface for displaying the pictures of the current application program according to the sorted sequence, so that the interface for displaying the pictures of the current application program does not passively sort the stored pictures according to the user photo album any more, and the pictures are displayed; the pictures are displayed according to the degree of association between the pictures in the user album and the current application program, so that the application program accessing the user album can preferentially display the pictures related to the application program, the user using the current application program can quickly select the required pictures from the pictures related to the application program, and the experience of the user is improved.

In one possible implementation manner, the pre-setting of a category characteristic for a picture in the user album, and the obtaining of the correlation value between the picture in the user album and the current application program includes:

acquiring historical shared pictures in the user photo album before being accessed by the current application program;

obtaining a first picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing picture, wherein the first picture set is at least one picture with the same category characteristic;

obtaining sharing importance scores of the corresponding category characteristics according to the number of the pictures in the first picture set, wherein the more the number of the pictures in the first picture set is, the higher the sharing importance scores of the category characteristics corresponding to the first picture set are;

and obtaining the relevance value of the picture in the user photo album and the current application program according to the sharing importance value of the category characteristics of the picture in the user photo album, wherein the higher the sharing importance value is, the higher the relevance value is.

In one possible implementation manner, the pre-setting of a category characteristic for a picture in the user album, and the obtaining of the correlation value between the picture in the user album and the current application program includes:

acquiring the target scene attribute of the current application program;

acquiring historical shared pictures of other users displayed by the current application program under the target scene attribute and the category characteristics of the historical shared pictures of the other users;

obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history shared pictures of the other users, wherein the second picture set is at least one picture with the same category characteristic;

obtaining the initial importance score of the corresponding category characteristic according to the number of the pictures in the second picture set, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance score of the category characteristic corresponding to the second picture set is;

and obtaining the relevance value of the picture in the user photo album and the target scene attribute of the current application program according to the initial importance score of the category characteristic of the picture in the user photo album, wherein the higher the sharing importance score is, the higher the relevance value is.

In one possible implementation manner, the method further includes:

acquiring the target scene attribute of the current application program;

acquiring historical shared pictures of other users displayed by the current application program under the target scene attribute and the category characteristics of the historical shared pictures of the other users;

obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history shared pictures of the other users, wherein the second picture set is at least one picture with the same category characteristic;

obtaining the initial importance score of the corresponding category characteristic according to the number of the pictures in the second picture set, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance score of the category characteristic corresponding to the second picture set is;

the obtaining of the relevance value between the picture in the user album and the current application program according to the sharing importance value of the category characteristics to which the picture in the user album belongs includes:

and obtaining the correlation value between the picture in the user photo album and the current application program according to the accumulated value of the sharing importance value and the initial importance value of the category characteristics of the picture in the user photo album, wherein the correlation value is higher when the accumulated value is higher.

In one possible implementation manner, the obtaining history shared pictures in the user album before being accessed by the current application includes:

acquiring historical shared pictures which are shared by the current application program in the user album in a first preset time period before the current application program is accessed; or the like, or, alternatively,

and obtaining historical shared pictures which are shared by a plurality of application programs in the user album in a second preset time period before the current application program is accessed.

In one possible implementation manner, the obtaining the sharing importance scores of the different categories of features according to the number of the pictures in the different first picture sets includes:

when any picture in a user photo album receives a picture sharing instruction, inputting a target category characteristic corresponding to the picture sharing instruction and corresponding to a first picture set to which the picture in the user photo album belongs into a preset reinforcement learning model, so that the action of increasing the sharing importance degree of the target category characteristic is determined as an action of acquiring forward excitation by the preset reinforcement learning model;

and receiving sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

In one possible implementation manner, the obtaining the sharing importance scores of the different categories of features according to the number of the pictures in the different first picture sets includes:

when any picture in a user photo album receives a picture sharing instruction, inputting a target category characteristic corresponding to a first picture set to which the picture in the user photo album belongs and the target scene attribute corresponding to the picture sharing instruction into a preset reinforcement learning model, so that the preset reinforcement learning model determines an action of increasing the sharing importance degree score of the target category characteristic and the target scene attribute as an action of obtaining forward excitation;

and receiving sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

In one possible implementation manner, the obtaining a relevance value between a picture in the user album and the current application includes:

acquiring the storage time of the pictures in each user photo album stored in the local storage area to obtain the time scores of the pictures in the user photo albums;

carrying out weighted summation on the sharing importance value corresponding to the category characteristics of the pictures in each user photo album and the time value of the pictures in each user photo album to obtain the weight value of the pictures in each user photo album;

and obtaining a relevance value of the picture in the user photo album and the current application program according to the weight score of the picture in the user photo album, wherein the higher the weight score is, the higher the relevance value is.

In a second aspect, an embodiment of the present invention provides a picture display device, which is disposed in an electronic device terminal, and includes:

the system comprises a relevancy value acquisition module, a relevancy value acquisition module and a relevancy value acquisition module, wherein the relevancy value acquisition module is used for acquiring relevancy values of pictures in a user album and a current application program when the current application program accesses the user album;

and the sequencing display module is used for sequencing and displaying each picture in the user photo album in the interface for displaying the picture in the current application program according to the relevance value.

In one possible implementation manner, the correlation value obtaining module includes:

a history sharing picture obtaining submodule, configured to obtain a history sharing picture in the user album before the current application program accesses the user album;

the first picture set obtaining sub-module is used for obtaining a first picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing picture, wherein the first picture set is at least one picture with the same category characteristic;

the sharing importance degree score obtaining sub-module is used for obtaining the sharing importance degree scores of the corresponding different types of characteristics according to the number of the pictures in the different first picture sets, wherein the more the number of the pictures in the first picture set is, the higher the sharing importance degree score of the corresponding type characteristics of the first picture set is;

the first relevancy value obtaining submodule is used for obtaining the relevancy value between the picture in the user album and the current application program according to the sharing importance degree value of the category characteristics to which the picture in the user album belongs, and the relevancy value is higher when the sharing importance degree value is higher.

In one possible implementation manner, the correlation value obtaining module includes:

a target scene attribute obtaining submodule, configured to obtain a target scene attribute of the current application program;

the other-user history sharing picture obtaining sub-module is used for obtaining other-user history sharing pictures displayed by the current application program under the target scene attribute and the category characteristics of the other-user history sharing pictures;

the second picture set obtaining sub-module is used for obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history shared pictures of the other users, wherein the second picture set is at least one picture with the same category characteristic;

an initial importance score obtaining sub-module, configured to obtain initial importance scores of different corresponding category features according to the number of pictures in the second picture set, where the greater the number of pictures in the second picture set, the higher the initial importance score of the category feature corresponding to the second picture set is;

and the second correlation value obtaining submodule is used for obtaining the correlation value between the picture in the user album and the target scene attribute of the current application program according to the initial importance value of the class characteristic of the picture in the user album, wherein the higher the sharing importance value is, the higher the correlation value is.

In one possible implementation manner, the apparatus further includes:

the target scene attribute acquisition module is used for acquiring the target scene attribute of the current application program;

the category characteristic acquisition module is used for acquiring other user history sharing pictures displayed by the current application program under the target scene attribute and category characteristics to which the other user history sharing pictures belong;

a second picture set obtaining module, configured to obtain, according to the category features corresponding to the history shared pictures of the other users, a second picture set corresponding to the same category feature, where the second picture set is at least one picture with the same category feature;

an initial importance score obtaining module, configured to obtain an initial importance score of the corresponding category feature according to the number of the pictures in the second picture set, where the larger the number of the pictures in the second picture set is, the higher the initial importance score of the category feature corresponding to the second picture set is;

the correlation value acquisition module comprises:

and the third relevance value obtaining sub-module is used for obtaining the relevance value of the picture in the user photo album and the current application program according to the sharing importance value and the accumulated value of the initial importance value of the class characteristics of the picture in the user photo album, wherein the higher the accumulated value is, the higher the relevance value is.

In one possible implementation manner, the history sharing picture obtaining sub-module includes:

the first history shared picture acquiring subunit is configured to acquire, within a first preset time period before a current application program accesses, a history shared picture once shared by the current application program in the user album; or the like, or, alternatively,

and the second history shared picture acquiring subunit is configured to acquire, within a second preset time period before the current application program accesses, the history shared pictures once shared by the multiple application programs in the user album.

In one possible implementation manner, the sharing importance score obtaining sub-module includes:

the device comprises a first input subunit, a second input subunit and a third input subunit, wherein the first input subunit is used for inputting a target category characteristic corresponding to a first picture set to which pictures in a user photo album belong to a picture sharing instruction and the picture sharing instruction into a preset reinforcement learning model when any picture in the user photo album receives the picture sharing instruction, so that the action of increasing the sharing importance degree score of the target category characteristic is determined as an action of acquiring forward excitation by the preset reinforcement learning model;

and the first receiving subunit is configured to receive sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

In one possible implementation manner, the sharing importance score obtaining sub-module includes:

the second input subunit is used for inputting a preset reinforcement learning model to the target category characteristics and the target scene attributes corresponding to the first picture set to which the pictures in the user album belong according to the picture sharing instruction when any picture in the user album receives the picture sharing instruction, so that the preset reinforcement learning model determines the action of increasing the sharing importance degree score of the target category characteristics and the target scene attributes as an action of obtaining forward excitation;

and the second receiving subunit is configured to receive sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

In one possible implementation manner, the correlation value obtaining module includes:

the time score acquisition submodule is used for acquiring the local storage time of the pictures in each user photo album to obtain the time scores of the pictures in the user photo albums;

the weighted summation submodule is used for carrying out weighted summation on the sharing importance degree score corresponding to the category characteristics of the pictures in each user photo album and the time score of the pictures in each user photo album to obtain the weight score of the pictures in each user photo album;

and the fourth correlation value acquisition submodule is used for acquiring the correlation value between the picture in the user photo album and the current application program according to the weight value of the picture in the user photo album, wherein the higher the weight value is, the higher the correlation value is.

In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to be able to perform the method provided by the first aspect.

In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect.

It should be understood that the second to fourth aspects of the embodiment of the present invention are consistent with the technical solution of the first aspect of the embodiment of the present invention, and the beneficial effects obtained by the aspects and the corresponding possible implementation manners are similar, and are not described again.

[ description of the drawings ]

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a flowchart illustrating steps of a method for displaying images according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of an interface for an application to present pictures in accordance with an example of the present invention;

FIG. 3 is a diagram of an interface for a current application to present pictures in one example of the invention;

FIG. 4 is a flow chart of an exemplary method of performing picture display in accordance with the present invention;

FIG. 5 is a functional block diagram of a picture display device according to an embodiment of the present invention;

fig. 6 is a schematic structural diagram of an electronic terminal device according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.

[ detailed description ] embodiments

For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings.

It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given in the present description without inventive exercise, fall within the scope of protection of the present description.

The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

In the related art, the electronic device terminal sorts the pictures according to the storage time of the pictures in the user album, or respectively stores different pictures in the user album in different folders according to the obtaining manner of the pictures, for example, the picture obtained by shooting with a camera is stored in the real shot picture folder, and the picture downloaded from the application program 1 is stored in the picture folder of the application program 1. But the pictures in the different picture folders are still sorted according to the picture storage time. When the application program accesses the user photo album, the pictures can only be passively displayed according to the sequence of the pictures in the user photo album, because the pictures in the user photo album are sorted according to the storage time, the picture preferentially displayed by the application program is the picture with the storage time closest to the current time, and when the picture required by the user is the picture with the storage time farther from the current time, the interface for displaying the picture by the application program needs to sequentially display a plurality of previous pictures so as to display the picture required by the user.

In view of the foregoing problems, an embodiment of the present invention provides a picture display method, which is applied to an electronic device terminal, and is configured to reorder all pictures in a user album according to a relevance value between the pictures in the user album and a current application program, and then display the reordered pictures on an interface where the application program displays the pictures, so that the application program preferentially displays the pictures with greater relevance to the application program.

Fig. 1 is a flowchart illustrating steps of a picture display method according to an embodiment of the present invention, and as shown in fig. 1, the steps of the picture display method may include:

step S11: when a current application program accesses a user photo album, obtaining the correlation value between the pictures in the user photo album and the current application program.

The user album may be an album module including a folder for storing pictures, a program for calling the folder, a program for analyzing the pictures, a program for classifying the pictures, a program for editing the pictures, a program for marking the pictures, and the like in the electronic device terminal.

The application program can access the user photo album to read, store and download the pictures in the user photo album.

Different application programs have different functional characteristics, and different users have different preferences for sharing pictures when using the application programs, so that the correlation value between the pictures and the application programs can represent the correlation degree between the pictures and the functional characteristics of the application programs, and can represent the correlation degree between the pictures in the user album and the preferences of the terminal users of the electronic equipment for obtaining historical pictures. For example, the shopping application, the game application and the social application have different functions, the game application has a high degree of association with the game screenshot, and when the game application is a current application program accessing a user album, the correlation value between the game screenshot in the user album and the current application program is high. User a prefers to select landscape pictures when using the current application or other applications, then the relevance value of the landscape pictures in the user's album to the current application is higher.

Step S12: and sequencing and displaying each picture in the user photo album in the interface for displaying the picture by the current application program according to the relevance value.

After each picture in the user photo album is sequenced according to the relevance value, the picture with the high relevance value in the user photo album is preferentially displayed in an interface for displaying the picture by the current application program.

FIG. 2 is a diagram of an interface for an application to present pictures in accordance with an example of the present invention. As shown in fig. 2, the interface for displaying pictures by the application is a window with a specific size, N pictures in the front order are preferentially displayed after each picture in the user album is sorted, and N pictures in the back order of the currently displayed picture are displayed after the operation of switching the picture displayed by the window by the user is detected.

Before the electronic equipment terminal displays the pictures, the pictures in the user photo album are sequenced according to the relevance values of the pictures and the current application program accessing the user photo album, and the sequenced pictures are displayed on an interface for displaying the pictures in the current application program according to the descending order of the relevance values of the sequenced pictures and the current application program. Compared with passively displaying the pictures in the sequence of the pictures in the user album, the picture display method and the picture display device can intelligently and preferentially display the pictures with high correlation degree with the current application program according to the difference of the current application program.

When the correlation degree of the functional characteristics of the current application program and the pictures in the user album is expressed by the correlation value, the embodiment of the invention provides a method for acquiring the correlation value of the pictures in the user album and the current application program. The pictures in the user photo album are preset with category characteristics.

The album module of the electronic equipment terminal can analyze and identify the content information of the pictures in the user album, and the category characteristics of the pictures are obtained according to the content information of the pictures. When the application program acquires the picture, the content information of the picture in the user album can be analyzed and identified, and the category characteristic of the picture is acquired. In an embodiment of the invention, the pictures in the user album can be labeled, and the category characteristics of the pictures can be preset. Illustratively, a landscape picture sets a landscape tag, a pet picture sets a pet tag, and a person picture sets a person tag.

The album module may further include a face recognition system for recognizing persons in the person picture, and the tags may be set for different persons, for example, the tags may be set for pictures recording different person information: person No. 1, person No. 2, etc.

The step of obtaining the relevance value of the picture in the user album and the current application program may include:

step S21: and acquiring the target scene attribute of the current application program.

The target scene attribute of the current application program may be a scene attribute of the current application program, or may be a scene attribute of a current module in which the current application program operates. Illustratively, the context attributes of the dialog interaction application may be context attributes of the dialog interaction application: and performing conversation interaction, namely, when the conversation interaction application runs the picture sharing module, determining the scene attribute of the picture sharing module.

Step S22: and acquiring historical shared pictures of other users displayed by the current application program under the target scene attribute and the category characteristics of the historical shared pictures of the other users. The number of the historical shared pictures of other users can be one or more.

The other users historically share the pictures, namely, the pictures which are selected and uploaded to the current application program based on the target scene attributes in the process that the user group in the internet historically uses the current application program. For example, a user group of a shopping application may select a picture for searching in a search interface and may select a picture in a conversation interactive interface during use of the shopping application. When the target scene attribute is the functional characteristic of the shopping application, the history sharing pictures of other users are all pictures selected in the process of using the shopping application by the user group. When the target scene attribute is the scene attribute of the dialogue interaction module operated by the shopping application, the history shared pictures of other users are all pictures selected in the process that the user group uses the dialogue interaction module of the shopping application.

In one embodiment of the invention, in the process that the current application program displays other user shared pictures under the target scene attribute, the other user shared pictures can be recorded, and further other user history shared pictures can be mined from a database at the server side of the current application program, and then the mined user history shared pictures are classified by adopting modes such as machine learning and the like, so as to obtain the category characteristics of the other user history shared pictures.

Step S23: and obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing pictures of other users, wherein the second picture set is at least one picture with the same category characteristic.

In an embodiment of the invention, the category features corresponding to the historical sharing pictures of other users include gourmet, pets and facial expression packages, and all the historical sharing pictures of other users can be classified according to the label in the historical sharing picture of each other user, so as to obtain second picture sets respectively corresponding to the gourmet, the pets and the facial expression packages. For example, the historical sharing pictures of other users corresponding to the second picture set of the gourmet are all provided with tags of gourmet category features. It can be understood that, according to different class features, a plurality of second picture sets corresponding to different class features may be obtained, but the processing procedure for the class feature corresponding to each second picture set is the same, and therefore, the scheme may be considered to be introduced from the perspective of standing on any one of the plurality of second picture sets in the following process.

Step S24: and obtaining the initial importance score of the corresponding category characteristic according to the number of the pictures in the second picture set, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance score of the category characteristic corresponding to the second picture set is.

The more the number of the pictures in the second picture set is, the larger the proportion of the pictures of the category characteristics corresponding to the second picture set in all the pictures applied by the current application program is.

Step S25: and obtaining the relevance value of the picture in the user photo album and the target scene attribute of the current application program according to the initial importance score of the category characteristic of the picture in the user photo album, wherein the higher the sharing importance score is, the higher the relevance value is.

In an example of the present invention, the current application program is a shopping application, the number of the second picture set pictures corresponding to the food category feature is M, the number of the second picture set pictures corresponding to the pet category feature is P, M is greater than P, when the shopping application is used by a user group, the number of times that the received pictures are the food category feature is greater than the number of times that the pictures of the pet category feature are received, the degree of association between the shopping application and the pictures of the food category feature is greater than the degree of association between the shopping application and the pictures of the pet category feature, and the initial importance score of the food category feature is set to be higher than the pet category feature. The relevance value of the pictures with the food category feature tags in the user photo album is higher than that of the pictures with the pet category feature tags, the pictures with the food category feature tags are sequenced before the pictures with the pet category feature tags, and the pictures with the food category feature tags are displayed in an interface for displaying the pictures by the current application program firstly compared with the pictures with the pet category feature tags.

According to the picture uploaded by the user group and the category characteristics corresponding to the pictures uploaded by the user group, which are received by the application program in a historical mode, the association degree of the pictures with the application program in different category characteristics is obtained, and the initial importance degree score is set for the category characteristics; and obtaining the relevance value of the pictures in the user album according to the initial importance degree value of the category characteristics. The higher the initial importance score of the specific category feature is, the higher the relevance value of the picture belonging to the specific category feature is, so that before the picture is displayed, the pictures are sorted according to whether the category feature to which the picture belongs is a common category feature of the current application program, and the picture with high association degree with the application program is preferentially displayed on the interface for displaying the picture of the current application program.

When the relevance value represents the relevance degree between the picture in the user album and the preference of the terminal user of the electronic equipment for obtaining the historical picture, the embodiment of the invention provides a method for obtaining the relevance value between the picture in the user album and the current application program. The pictures in the user photo album are preset with category characteristics. The method for setting the category characteristics can refer to the description of other embodiments of the invention. Obtaining the relevance value of the picture in the user's album and the current application program may include the steps of:

step S31: and acquiring historical sharing pictures in the user photo album before being accessed by the current application program.

The history shared pictures in the user album may refer to pictures that have been uploaded to the current application program in the user album, or pictures that have been uploaded to other application programs in the user album. Historical shared pictures in the user album can represent the preference of the terminal user of the electronic equipment for selecting the pictures.

Acquiring the history sharing picture in the user photo album before being accessed by the current application program comprises the following steps: acquiring historical shared pictures which are shared by the current application program in the user album in a first preset time period before the current application program is accessed; or the like, or, alternatively,

and obtaining historical shared pictures which are shared by a plurality of application programs in the user album in a second preset time period before the current application program is accessed.

The first preset time period and the second preset time period may be the same or different. The first preset time period and the second preset time period may be 1 day, 1 week, or one month, and are determined according to user requirements.

When a mode of obtaining historical shared pictures once shared by the current application program in the user album is adopted, the sharing importance scores of the category characteristics are set by the user based on the preference of the current application program shared pictures, and the obtained sharing importance scores of the category characteristics are more matched with the current application program.

When a mode of obtaining historical shared pictures once shared by a plurality of application programs in a user album is adopted, the sharing importance scores of the category characteristics are set according to the preference of the terminal user of the electronic equipment for sharing the pictures, and the obtained sharing importance scores of the category characteristics are better matched with the preference of the user for sharing the pictures.

The following method can be adopted to acquire the history shared pictures in the user album before the current application program accesses the history shared pictures: before being accessed by the current application program, other application programs or the current application program access the user photo album and operate an interface for displaying pictures; after the electronic equipment terminal detects the operation of selecting the picture by the user, the picture selected by the user is uploaded to an application program for accessing the user photo album, and the selected picture is recorded as a history sharing picture.

Step S32: and obtaining a first picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing picture, wherein the first picture set is at least one picture with the same category characteristic.

Before being accessed by the current application program, the electronic equipment terminal uploads the picture selected by the user to the application program accessing the user photo album, and then records the category characteristics of the selected picture, so that the pictures corresponding to the same category characteristics can be collected, and a first picture set corresponding to the same category characteristics is obtained. It can be understood that, according to different category features, a plurality of first picture sets corresponding to different category features may be obtained, but the processing procedure for the category features corresponding to each first picture set is the same, and therefore, in the following process, the scheme may be considered to be introduced from the perspective of standing on any one of the plurality of first picture sets.

Step S33: and obtaining the sharing importance score of the corresponding category characteristic according to the number of the pictures in the first picture set, wherein the more the number of the pictures in the first picture set is, the higher the sharing importance score of the category characteristic corresponding to the first picture set is.

The number of pictures in the first picture set characterizes the frequency with which pictures of a particular class feature are shared. The higher the frequency with which pictures of a particular category feature are shared, the higher the probability that a user selects a picture of that category feature, or the higher the probability that a user selects a picture of that category feature based on the current application. The more the number of the pictures in the first picture set is, the higher the sharing importance degree value of the category characteristics corresponding to the first picture set is, when the pictures in the user album are rearranged, the pictures with the category characteristics corresponding to the first picture set can be preferentially displayed in the interface for displaying the pictures in the application program, and the picture with the high selection probability in the user album can be preferentially displayed in the interface for displaying the pictures in the application program.

Step S34: and obtaining a correlation value between the pictures in the user photo album and the current application program according to the sharing importance degree score of the category characteristics of the pictures in the user photo album, wherein the higher the sharing importance degree score is, the higher the correlation value is.

According to the matching degree of the functional characteristics of the current application program and the pictures in the user album, setting an initial importance degree score of the pictures in the user album, increasing sharing importance degree scores of the pictures in the user album on the basis of the initial importance degree scores according to the correlation degree of the pictures of the user album and the preferences of the users for obtaining historical pictures, comprehensively considering the functional characteristics of the current application program and the preferences of the users for sharing the pictures, and predicting the probability of the pictures in the user album being selected.

The other step of obtaining the relevance value of the picture in the user album and the current application program is as follows:

step S31: and acquiring the target scene attribute of the current application program.

Step S32: and acquiring historical shared pictures of other users displayed by the current application program under the target scene attribute and the category characteristics of the historical shared pictures of the other users.

Step S33: and obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing pictures of other users, wherein the second picture set is at least one picture with the same category characteristic.

Step S34: and obtaining initial importance scores of different corresponding class characteristics according to the number of pictures in different second picture sets, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance score of the class characteristic corresponding to the second picture set is.

After the initial importance scores of different types of features are obtained, sharing importance scores of different types of features can be obtained and updated in the process that an application program calls pictures in a user photo album continuously, the sharing importance scores are increased on the basis of the initial importance scores, the accumulated values of the sharing importance scores and the initial importance scores of the types of features are obtained, and the relevance values of the pictures in the user photo album are set according to the accumulated values of the sharing importance scores and the initial importance scores.

Step S35: and acquiring historical sharing pictures in the user photo album before being accessed by the current application program.

Step S36: and obtaining a first picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing picture, wherein the first picture set is at least one picture with the same category characteristic.

Step S37: and obtaining the sharing importance score of the corresponding category characteristic according to the number of the pictures in the first picture set, wherein the more the number of the pictures in the first picture set is, the higher the sharing importance score of the category characteristic corresponding to the first picture set is.

Step S38: and obtaining the correlation value between the pictures in the user photo album and the current application program according to the accumulated value of the sharing importance value and the initial importance value of the category characteristics of the pictures in the user photo album, wherein the correlation value is higher when the accumulated value is higher.

Another embodiment of the invention provides a method for obtaining sharing importance scores of different types of features. The embodiment of the invention adopts a reinforcement learning mechanism to continuously learn the association degree between the pictures corresponding to the different types of characteristics and the current application program, and dynamically updates the sharing importance scores of the pictures corresponding to the different types of characteristics. The step of obtaining the sharing importance scores of the corresponding different categories of features according to the number of the pictures in the first picture set may include:

step S41: when any picture in a user photo album receives a picture sharing instruction, inputting a target category characteristic corresponding to a first picture set to which the picture in the user photo album belongs and corresponding to the picture sharing instruction into a preset reinforcement learning model, so that the action of increasing the sharing importance degree score of the target category characteristic is determined as an action of obtaining forward excitation by the preset reinforcement learning model.

In a time period before the current application program accesses the user photo album at the current time, the user photo album can be accessed by other application programs of the electronic equipment terminal or the current application program, and when any application program obtains a target picture corresponding to the picture sharing instruction from the user photo album, the target category characteristics corresponding to a first picture set to which the target picture belongs are recorded.

The preset reinforcement learning model is provided with multiple types of characteristics and sharing importance scores corresponding to different types of characteristics. And adding the sharing importance degree score corresponding to the specific class characteristics into an action strategy of a preset strong learning model. The specific category characteristics corresponding to the action strategy executed by the preset reinforcement learning model at this time are the same as the target category characteristics input into the preset reinforcement learning model, the preset reinforcement learning model obtains forward excitation, so that the preset reinforcement learning model still executes the same action strategy at the next time, a user continuously selects pictures with the specific category characteristics for multiple times in a specific time period, the sharing importance degree score of the specific category characteristics can be continuously increased, and the purpose of dynamically adjusting the sharing importance degree scores of different category characteristics according to the preference of the user for selecting the pictures is achieved.

In one example of the present invention, a pet category feature and a character category feature are set in a preset reinforcement learning model, and the preset reinforcement learning model executes an action strategy 1: increasing the sharing importance degree score of the pet category characteristics, wherein the target category characteristics received by the preset reinforcement learning model are the pet category characteristics, and obtaining forward excitation; presetting a forward excitation when the reinforcement learning model learns the action execution strategy 1, and continuing to execute the action strategy 1 next time; and when the action strategy is executed again, the measurement is adjusted, and the action strategy 2 is executed to obtain the forward excitation. In the process, the frequency and the times of inputting the different types of features into the preset reinforcement learning model determine the sharing importance degree value of the types of features in the preset reinforcement learning model. The larger the frequency and times of inputting different types of features into the preset strong learning model are, the larger the number of pictures in the first picture set corresponding to the different types of features is.

Step S42: and after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times, receiving sharing importance scores corresponding to different types of features output by the preset reinforcement learning model.

After the pictures in the user album are uploaded to the application program, the category characteristics of the uploaded pictures are recorded, the category characteristics are input into a preset reinforcement learning model, the sharing importance degree value of the category characteristics is adjusted according to the picture selection preference of the user through the preset reinforcement learning model, and the preference of the user changing along with time is continuously learned; when the current application program accesses the user photo album, according to the sharing importance degree value of the category characteristics, the relevance value of the pictures in the user photo album is set, and according to the relevance value of the pictures in the user photo album, the pictures in the user photo album are displayed in the interface for displaying the pictures of the current application program in a sequencing mode, so that the purposes of predicting the preference of the user and intelligently recommending the pictures required by the user are achieved.

The same application program may include multiple scene attributes, for example, a shopping application includes a conversation interaction scene attribute, a picture sharing scene attribute, and the like. In order to obtain sharing importance scores of category features under different scene attributes in a targeted manner, so that pictures related to specific scene attributes can be recommended to a user in a targeted manner under different scene attributes of current application program operation, the step of obtaining corresponding sharing importance scores of different category features according to the number of pictures in different first picture sets may include the following steps:

step S51: when any picture in the user album receives the picture sharing instruction, uploading the picture corresponding to the picture sharing instruction to the application program, and acquiring the current target scene attribute of the application program.

Step S52: when any picture in a user photo album receives a picture sharing instruction, inputting a target category characteristic and a target scene attribute corresponding to a first picture set to which the picture in the user photo album belongs corresponding to the picture sharing instruction into a preset reinforcement learning model, so that the action of increasing the sharing importance degree score of the target category characteristic and the target scene attribute is determined as an action of acquiring forward excitation by the preset reinforcement learning model.

Step S53: and after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times, receiving sharing importance scores corresponding to different types of features output by the preset reinforcement learning model.

Before the current application program accesses the user photo album, the electronic equipment terminal responds to the picture sharing instruction when accessing the application program of the user photo album, records the target category characteristics of the target picture when receiving the uploaded target picture, and records the target scene attribute of the application program accessing the user photo album. And inputting the target scene attribute and the target category characteristic into a preset reinforcement learning model, so that the preset reinforcement learning model learns the preference of the user for selecting the picture based on the target scene attribute.

Table 1 shows a state space of sharing importance scores corresponding to different classes of features output by a pre-defined reinforcement learning model according to an example of the present invention. Wherein L > Q > R > E; as shown in table 1, in an example of the present invention, the pre-set reinforcement learning model is provided with a pet category feature, a landscape category feature, a dialogue interaction scene attribute, and a picture sharing scene attribute.

Table 1:

category features Scene attributes Sharing importance scores
Pet animal Dialogue interaction field L
Pet animal Picture sharing Q
Landscape Dialogue interaction field E
Landscape Picture sharing R

After the action of obtaining the forward direction motivation is executed for a plurality of times by the preset reinforcement learning model after a period of time, the sharing importance scores corresponding to different category characteristics are shown in table 1. When the current application program accesses the user photo albums, the relevance value of the pictures in each user photo album is obtained according to the sharing importance value corresponding to the category characteristics shown in the table 1, and the pictures in all the user photo albums are sorted and displayed on the interface for displaying the pictures in the current application program according to the relevance values of the pictures in the user photo albums, so that the interface for displaying the pictures in the current application program shown in the figure 3 is obtained. FIG. 3 is a diagram of an interface for a current application to present pictures in an example of the invention.

Another embodiment of the invention provides a method for obtaining the relevance value of the pictures in the user photo album and the current application program, obtaining the weight value of the pictures in the user photo album by combining the storage time of the pictures in the user photo album and the sharing importance value of the pictures in the user photo album, and sequencing the pictures in all the user photo albums according to the weight value of the pictures in each user photo album. The method comprises the following steps:

step S61: and acquiring the storage time of the pictures in each user photo album stored in the local storage area to obtain the time scores of the pictures in the user photo albums.

Step S62: and carrying out weighted summation on the sharing importance value corresponding to the category characteristics of the pictures in each user photo album and the time value of the pictures in each user photo album to obtain the weight value of the pictures in each user photo album.

Step S63: and obtaining a relevance value of the picture in the user photo album and the current application program according to the weight score of the picture in the user photo album, wherein the higher the weight score is, the higher the relevance value is.

According to the embodiment of the invention, on the basis of sorting the pictures in the user photo album according to the storage time of the pictures in the user photo album, the sharing importance scores of the pictures in the user photo album are obtained and weighted to obtain the weight score of the pictures in each user photo album, so that the traditional mode of sorting according to the storage time of the pictures in the user photo album is optimized, and the sorting sequence of the pictures in the user photo album when a specific application program selects the pictures is optimized.

FIG. 4 is a flowchart illustrating an exemplary method for displaying pictures according to the present invention, as shown in FIG. 4, illustrating a process of obtaining pictures in a user's album from the completion of initialization by a current application; in the process of executing the picture display method by the electronic equipment terminal, the machine learning module can be called to learn the information of the photo album module, so that the purpose of intelligently recommending the pictures in the photo album of the user is realized.

Step A: after the user album receives the access of the initialized application program 1, the electronic equipment terminal obtains initial importance degree scores of different types of features under the current running target scene attribute of the application program 1 according to the functional characteristics of the application program 1; and establishing an initial state space in a preset reinforcement learning model according to the initial importance scores of the different classes of features. Illustratively, table 2 is a list of information for the initial state space of the pre-set reinforcement learning model in one example of the present invention.

Table 2:

category features Scene attributes Sharing importance scores
Pet animal Dialogue interaction field 1
Pet animal Picture sharing 1
Landscape Dialogue interaction field 1
Landscape Picture sharing 2

And B: and displaying an interface for displaying the pictures in the application program 1 according to the original sequence of the pictures in the user photo album.

And C: and receiving the picture sharing instruction, and uploading the target picture corresponding to the picture sharing instruction to the application program 1. And recording the target scene attribute of the application program 1 and the category characteristics of the target picture, and inputting a preset reinforcement learning model.

Step D: and the preset reinforcement learning model executes an action strategy, and selects a specific state in the state space to increase the sharing importance value. And when the action strategy is matched with the category characteristics of the target picture and the target scene attributes, presetting a reinforcement learning model to obtain forward excitation.

Step E: and the application program 1 accesses the user photo album again, after the user photo album receives the access of the application program 1, the electronic equipment terminal calls the sharing importance scores and the accumulated values of the initial importance scores of the different types of characteristics output by the preset reinforcement learning model, and the weight scores of the pictures in the user photo album belonging to the different types of characteristics are obtained according to the accumulated values of the different types of characteristics and the picture storage time in the user photo album. For example, the accumulated value of the pet category features is 8, the accumulated value of the landscape category features is 5, the accumulated values of the pictures in the user album corresponding to the pet category features are 8, the accumulated values of the pictures in the user album corresponding to the landscape category features are 4, and the accumulated values of the pictures in the user album and the storage time of the pictures in the user album are weighted to obtain the weighted score of the pictures in the user album.

Step F: and according to the weight scores of the pictures in the user photo albums, the pictures in all the user photo albums are displayed in an interface for displaying the pictures in the application program 1 in sequence, so that the effect of intelligently recommending the pictures is realized.

Fig. 5 is a functional block diagram of a picture display apparatus according to an embodiment of the present invention, the picture display apparatus being disposed in a terminal device, as shown in fig. 5, the apparatus including:

a relevancy value obtaining module 51, configured to obtain a relevancy value between a picture in a user album and a current application program when the current application program accesses the user album;

and the sequencing display module 52 is configured to sequence and display each picture in the user album in the interface where the current application program displays the picture according to the relevance value.

The image filtering apparatus provided in the embodiment shown in fig. 5 may be used to implement the technical solutions of the method embodiments shown in fig. 1 to fig. 4 in this specification, and further reference may be made to the relevant descriptions in the method embodiments for realizing the principles and technical effects.

Optionally, the correlation value obtaining module includes:

a history sharing picture obtaining submodule, configured to obtain a history sharing picture in the user album before the current application program accesses the user album;

the first picture set obtaining sub-module is used for obtaining a first picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history sharing picture, wherein the first picture set is at least one picture with the same category characteristic;

the sharing importance degree score obtaining sub-module is used for obtaining the sharing importance degree score of the corresponding category characteristic according to the number of the pictures in the first picture set, wherein the more the number of the pictures in the first picture set is, the higher the sharing importance degree score of the category characteristic corresponding to the first picture set is;

the first relevancy value obtaining submodule is used for obtaining the relevancy value between the picture in the user album and the current application program according to the sharing importance degree value of the category characteristics to which the picture in the user album belongs, and the relevancy value is higher when the sharing importance degree value is higher.

Optionally, the correlation value obtaining module includes:

a target scene attribute obtaining submodule, configured to obtain a target scene attribute of the current application program;

the category characteristic obtaining submodule is used for obtaining other user history sharing pictures displayed by the current application program under the target scene attribute and category characteristics to which the other user history sharing pictures belong;

the second picture set obtaining sub-module is used for obtaining a second picture set corresponding to the same category characteristic according to the category characteristic corresponding to the history shared pictures of the other users, wherein the second picture set is at least one picture with the same category characteristic;

the initial importance degree score obtaining sub-module is used for obtaining the initial importance degree score of the corresponding category characteristic according to the number of the pictures in the second picture set, wherein the more the number of the pictures in the second picture set is, the higher the initial importance degree score of the category characteristic corresponding to the second picture set is;

and the second correlation value obtaining submodule is used for obtaining the correlation value between the picture in the user album and the target scene attribute of the current application program according to the initial importance value of the class characteristic of the picture in the user album, wherein the higher the sharing importance value is, the higher the correlation value is.

Optionally, the apparatus further comprises:

the target scene attribute acquisition module is used for acquiring the target scene attribute of the current application program;

the category characteristic acquisition module is used for acquiring other user history sharing pictures displayed by the current application program under the target scene attribute and category characteristics to which the other user history sharing pictures belong;

a second picture set obtaining module, configured to obtain, according to the category features corresponding to the history shared pictures of the other users, a second picture set corresponding to the same category feature, where the second picture set is at least one picture with the same category feature;

the initial importance score obtaining module is used for obtaining the initial importance scores of the corresponding category characteristics according to the number of the pictures in the second picture set, wherein the larger the number of the pictures in the second picture set is, the higher the initial importance scores of the category characteristics corresponding to the second picture set are;

the correlation value acquisition module comprises:

and the third relevance value obtaining sub-module is used for obtaining the relevance value of the picture in the user photo album and the current application program according to the sharing importance value and the accumulated value of the initial importance value of the class characteristics of the picture in the user photo album, wherein the higher the accumulated value is, the higher the relevance value is.

Optionally, the history sharing picture obtaining sub-module includes:

the first history shared picture acquiring subunit is configured to acquire, within a first preset time period before a current application program accesses, a history shared picture once shared by the current application program in the user album; or the like, or, alternatively,

and the second history shared picture acquiring subunit is configured to acquire, within a second preset time period before the current application program accesses, the history shared pictures once shared by the multiple application programs in the user album.

Optionally, the sharing importance score obtaining sub-module includes:

the device comprises a first input subunit, a second input subunit and a third input subunit, wherein the first input subunit is used for inputting a target category characteristic corresponding to a first picture set to which pictures in a user photo album belong to a picture sharing instruction and the picture sharing instruction into a preset reinforcement learning model when any picture in the user photo album receives the picture sharing instruction, so that the action of increasing the sharing importance degree score of the target category characteristic is determined as an action of acquiring forward excitation by the preset reinforcement learning model;

and the first receiving subunit is configured to receive sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

Optionally, the sharing importance score obtaining sub-module includes:

the second input subunit is used for inputting a preset reinforcement learning model to the target category characteristics and the target scene attributes corresponding to the first picture set to which the pictures in the user album belong according to the picture sharing instruction when any picture in the user album receives the picture sharing instruction, so that the preset reinforcement learning model determines the action of increasing the sharing importance degree score of the target category characteristics and the target scene attributes as an action of obtaining forward excitation;

and the second receiving subunit is configured to receive sharing importance scores corresponding to different types of features output by the preset reinforcement learning model after the preset reinforcement learning model executes the action of obtaining the forward excitation for multiple times.

Optionally, the correlation value obtaining module includes:

the time score acquisition submodule is used for acquiring the local storage time of the pictures in each user photo album to obtain the time scores of the pictures in the user photo albums;

the weighted summation submodule is used for carrying out weighted summation on the sharing importance degree score corresponding to the category characteristics of the pictures in each user photo album and the time score of the pictures in each user photo album to obtain the weight score of the pictures in each user photo album;

and the fourth correlation value acquisition submodule is used for acquiring the correlation value between the picture in the user photo album and the current application program according to the weight value of the picture in the user photo album, wherein the higher the weight value is, the higher the correlation value is.

The apparatus provided in the above-mentioned illustrated embodiment is used to implement the technical solution of the above-mentioned illustrated method embodiment, and the implementation principle and technical effect thereof may further refer to the related description in the method embodiment, which is not described herein again.

Fig. 6 is a schematic structural diagram of an electronic terminal device according to an embodiment of the present invention, where the electronic terminal device 200 includes a processor 210, a memory 211, and a computer program stored in the memory 211 and capable of being executed on the processor 210, where the processor 210 implements the steps in the foregoing method embodiments when executing the program, and the electronic terminal device according to the embodiment may be used to implement the technical solution according to the foregoing method embodiment, and the implementation principle and the technical effect of the electronic terminal device may further refer to the related descriptions in the method embodiments, and are not described herein again.

Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure, where as shown in fig. 7, the terminal device may include at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the image filtering method provided by the embodiments shown in fig. 1 to 4 in the present specification.

The terminal device may be an intelligent electronic device such as a smart phone, a tablet computer, or a notebook computer, and the form of the terminal device is not limited in this embodiment.

It is to be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation to the terminal device 100. In other embodiments of the invention, terminal device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.

The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.

A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.

The processor 110 executes various functional applications and data processing by executing programs stored in the internal memory 121, for example, implementing the image filtering method provided by the embodiments of fig. 1 to 7 of the present invention.

The wireless communication function of the terminal device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.

The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

The terminal device 100 implements a display function by the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

The terminal device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.

The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, the brightness and the skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.

The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the terminal device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.

The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform fourier transform or the like on the frequency point energy.

Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record video in a plurality of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.

The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like. The storage data area may store data (such as audio data, a phonebook, etc.) created during use of the terminal device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the terminal device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.

Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer instructions, which cause a computer to execute an image filtering method provided by the embodiments shown in fig. 1 to 7 in this specification.

The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash memory, an optical fiber, a portable compact disc read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present description may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

In the description of embodiments of the invention, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

Furthermore, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise.

Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.

The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.

It should be noted that the terminal according to the embodiment of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a tablet computer (tablet computer), a mobile phone, an MP3 player, an MP4 player, and the like.

In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

27页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于细粒度特征提取的图像理解方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!