Video pushing method and device based on video searching and electronic equipment

文档序号:1658683 发布日期:2019-12-27 浏览:29次 中文

阅读说明:本技术 基于视频搜索的视频推送方法、装置、电子设备 (Video pushing method and device based on video searching and electronic equipment ) 是由 蒋淳 于 2019-09-20 设计创作,主要内容包括:本公开提供了一种基于视频搜索的视频推送方法、装置、电子设备,涉及计算机领域。该方法包括:将接收到的搜索关键词发送至服务器;接收服务器返回的与搜索关键词相匹配的至少两个第一视频的第一视频预览信息,至少两个第一视频包括至少两种视频类型的视频,并通过第一展示界面展示第一视频预览信息;接收到针对第一视频预览信息中第一目标预览信息的播放触发操作时,向服务器发送携带第一目标预览信息对应的第一目标视频的标识信息的视频获取请求;接收服务器根据视频获取请求返回的至少两个第二视频及对应的第二视频预览信息,并通过第二展示界面展示第二视频预览信息中第一预定个数的预览信息。(The disclosure provides a video pushing method and device based on video searching and electronic equipment, and relates to the field of computers. The method comprises the following steps: sending the received search keywords to a server; receiving first video preview information of at least two first videos matched with the search keyword, returned by the server, wherein the at least two first videos comprise videos of at least two video types, and displaying the first video preview information through a first display interface; when receiving a play trigger operation aiming at first target preview information in the first video preview information, sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to a server; and receiving at least two second videos returned by the server according to the video acquisition request and corresponding second video preview information, and displaying a first preset number of preview information in the second video preview information through a second display interface.)

1. A video pushing method based on video searching is characterized by comprising the following steps:

sending the received search keywords to a server;

receiving first video preview information of at least two first videos matched with the search keyword, which is returned by the server, wherein the at least two first videos comprise videos of at least two video types, and displaying the first video preview information through a first display interface;

when receiving a play trigger operation for first target preview information in the first video preview information, sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server;

and receiving at least two second videos returned by the server according to the video acquisition request and corresponding second video preview information, and displaying a first preset number of preview information in the second video preview information through a second display interface.

2. The method of claim 1, wherein the receiving first video preview information of at least two first videos matching the search keyword returned by the server comprises:

receiving first video preview information of at least two first videos which are matched with the search keyword and are returned by the server according to the video popularity;

the second video includes:

and the video which belongs to the same video type as the first target video and has the video similarity with the first target video meeting a first preset condition.

3. The method of claim 2, wherein the second video further comprises at least one of:

the first N first videos are sorted according to the video heat in the first videos, and N is a positive integer;

and screening out videos which are similar to the N first videos and meet a second preset condition from a video database.

4. The method according to any one of claims 1 to 3, wherein after sending the video acquisition request carrying the identification information of the first target video corresponding to the first target preview information to the server, the method further comprises:

receiving a first target video returned by the server;

playing the first target video through a first area of the second display interface;

the displaying of the first preset number of preview information in the second video preview information through the second display interface includes:

displaying a first preset number of preview information in the second video preview information through a second area of the second display interface;

the second display interface includes the first area and the second area.

5. The method of claim 4, wherein after presenting the first predetermined number of preview information in the second video preview information via the second area of the second presentation interface, the method further comprises:

when the sliding operation of the user on the second display interface is received, determining a second target video from the at least two second videos, and determining preview information of a second preset number from the second video preview information;

and playing the second target video through the first area of the second display interface, and displaying the second preset number of preview information through the second area of the second display interface.

6. The method according to claims 1 to 3, wherein the receiving at least two second videos and corresponding second video preview information returned by the server comprises:

receiving at least two second videos and corresponding second video preview information which are returned by the server and are sequenced according to the user preference;

the displaying of the first preset number of preview information in the second video preview information through the second display interface includes:

and displaying the preview information of the first preset number in the at least two sequenced second videos in the second video preview information through a second display interface.

7. A video pushing method based on video searching is characterized by comprising the following steps:

determining at least two first videos matched with a search keyword according to the received search keyword from terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

sending first video preview information of the at least two first videos to terminal equipment;

receiving a video acquisition request sent by the terminal device, wherein the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

and determining at least two second videos according to the video acquisition request, and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

8. The method of claim 7, wherein after determining at least two first videos that match the search keyword, the method further comprises:

sequencing the at least two first videos according to the video heat;

the sending the first video preview information of the at least two first videos to the terminal device includes:

and sending the first video preview information of the at least two sequenced first videos to the terminal equipment.

9. The method of claim 8, wherein determining at least two second videos according to the video acquisition request comprises any one of:

according to the identification information in the video acquisition request, determining candidate videos of which the video similarity with the first target video meets a first preset condition, and determining videos which belong to the same video type as the first target video from the candidate videos as the at least two second videos;

determining the videos which are ranked according to the video popularity, ranked N first videos and determined from the candidate videos and belong to the same video type as the first target video as the at least two second videos, wherein N is a positive integer;

and determining the videos which are determined from the candidate videos and belong to the same video type as the first target video, screened from a video database, and meet a second preset condition with the similarity videos of the N first videos as the at least two second videos.

10. The method according to claim 9, wherein the determining, according to the identification information in the video acquisition request, the candidate video whose video similarity with the first target video satisfies a first preset condition includes:

determining the first target video according to the identification information in the video acquisition request;

respectively calculating the video similarity of the first target video and each video according to the coordinates of the first target video and each video in a pre-stored video database in a similarity algorithm model;

and according to the video similarity, determining candidate videos of which the video similarity with the first target video meets a first preset condition from the video database.

11. The method according to claim 9, wherein the determining, as the second video, the video that is screened from the video database and whose similarity to the N first videos meets a second preset condition, comprises:

determining specific parameter coordinates corresponding to the N first videos according to coordinates of the N first videos in a similarity algorithm model, wherein the specific parameter coordinates comprise average value coordinates of the N first videos or variance value coordinates of the N first videos;

determining coordinates of each video in a pre-stored video database in a similarity algorithm model, and respectively calculating the similarity between the coordinates of each video and the coordinates of the specific parameters;

and determining the second video corresponding to the coordinates with the similarity meeting a second preset condition, which are screened from the video database, according to the similarity.

12. The method according to any one of claims 7 to 11, wherein after determining at least two second videos according to the video acquisition request, the method further comprises:

sequencing the at least two second videos according to user preference, wherein the user preference is determined by at least one of attribute information of the user and historical watching records of videos watched by the user;

and sending the at least two second videos sequenced according to the user preference and the corresponding second video preview information to the terminal equipment.

13. A video push apparatus, comprising:

the first transceiver module is used for sending the received search keywords to the server;

the second transceiver module is used for receiving first video preview information of at least two first videos matched with the search keyword, which is returned by the server, wherein the at least two first videos comprise videos of at least two video types, and the first video preview information is displayed through a first display interface;

the third transceiver module is configured to send a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server when receiving a play trigger operation for the first target preview information in the first video preview information;

and the display module is used for receiving at least two second videos and corresponding second video preview information returned by the server according to the video acquisition request and displaying a first preset number of preview information in the second video preview information through a second display interface.

14. A video push apparatus, comprising:

the first determining module is used for determining at least two first videos matched with a search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

the first transceiver module is used for sending the first video preview information of the at least two first videos to the terminal equipment;

a second transceiver module, configured to receive a video acquisition request sent by the terminal device, where the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

and the second determining module is used for determining at least two second videos according to the video acquiring request and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

15. An electronic device, comprising:

the electronic device comprises a memory and a processor;

the memory has stored therein a computer program;

the processor, when executing the computer program, is configured to perform the method of any of claims 1-12.

16. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1-12.

Technical Field

The present disclosure relates to the field of computers, and in particular, to a video pushing method and apparatus based on video search, and an electronic device.

Background

In the video display, the video display is generally divided into an outflow stream and an inflow stream, a list of video covers is displayed on a video display interface (or referred to as an outflow display interface) of the outflow stream, a user clicks one of the video covers to enter the inflow stream, and video content corresponding to the video cover starts to be played on the video display interface (or referred to as an inflow display interface) of the inflow stream.

When a user searches videos, one search keyword is used in different scenes and can be understood differently, one search keyword can search various types of videos, and only one type of video is required to be watched by the user, so that the video pushed by the terminal device for the user in an inner stream or an outer stream is not necessarily the video meeting the intention of the user, and meanwhile, after the user watches one inner stream video, the user needs to quit an outer stream display interface to reselect to watch the next desired video.

Therefore, a large amount of search noise is caused by a video pushing mode based on the search keywords of the user, a large amount of videos which are not needed by the user are recommended, video resources are wasted, the search experience of the user is reduced, meanwhile, switching between the internal stream and the external stream is complicated when the videos are recommended to the user in the internal stream, the processing time for recommending the videos to the user in the internal stream is prolonged, and the operation experience of the user is reduced.

Disclosure of Invention

This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

The first aspect of the present disclosure provides a video pushing method based on video search, including:

sending the received search keywords to a server;

receiving first video preview information of at least two first videos matched with the search keyword, returned by the server, wherein the at least two first videos comprise videos of at least two video types, and displaying the first video preview information through a first display interface;

when receiving a play trigger operation aiming at first target preview information in the first video preview information, sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to a server;

and receiving at least two second videos returned by the server according to the video acquisition request and corresponding second video preview information, and displaying a first preset number of preview information in the second video preview information through a second display interface.

The second aspect of the present disclosure provides a video pushing method based on video search, including:

determining at least two first videos matched with the search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

sending first video preview information of at least two first videos to terminal equipment;

receiving a video acquisition request sent by terminal equipment, wherein the video acquisition request is generated in response to a play trigger operation aiming at first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

and determining at least two second videos according to the video acquisition request, and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

A third aspect of the present disclosure provides a video pushing apparatus, including:

the first transceiver module is used for sending the received search keywords to the server;

the second transceiver module is used for receiving first video preview information of at least two first videos matched with the search keyword, which is returned by the server, wherein the at least two first videos comprise videos of at least two video types, and the first video preview information is displayed through a first display interface;

the third transceiver module is used for sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server when receiving a play trigger operation aiming at the first target preview information in the first video preview information;

and the display module is used for receiving at least two second videos and corresponding second video preview information returned by the server according to the video acquisition request and displaying a first preset number of preview information in the second video preview information through a second display interface.

A fourth aspect of the present disclosure provides a video pushing apparatus, including:

the first determining module is used for determining at least two first videos matched with the search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

the first transceiver module is used for sending first video preview information of at least two first videos to the terminal equipment;

the second transceiver module is used for receiving a video acquisition request sent by the terminal device, wherein the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

and the second determining module is used for determining at least two second videos according to the video acquiring request and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

In a fifth aspect of the present disclosure, an electronic device is provided, which includes:

the electronic device comprises a memory and a processor;

the memory has a computer program stored therein;

a processor for performing the method of any one of the first and second aspects when executing the computer program.

A sixth aspect of the disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processor, performs the method of any one of the first and second aspects.

The technical scheme provided by the disclosure has the following beneficial effects:

in this embodiment, the search keyword is sent to the server, the server may return first video preview information of at least two first videos matched with the search keyword, the at least two first videos include videos of at least two video types, when a play trigger operation for the first target video preview information is received, a video acquisition request is sent to the server, and then at least two second videos and corresponding second video preview information returned by the server according to the identification information of the first target video in the video acquisition request are received, a first predetermined number of preview information in the second video preview information is displayed through a second display interface, a second video may be recommended to the user in an internal stream, the second video is returned by the server based on the identification information of the first target video, the first target video satisfies a video intended by the user, and the second video also satisfies the video intended by the user to a great extent, therefore, when videos are recommended in the inner flow based on the search keywords, videos which are more consistent with the user intention can be recommended, and a large number of videos which do not meet the user intention are prevented from being pushed to the user, so that video resources are saved, and the search experience of the user is improved. Meanwhile, in the method and the device, the second video which meets the user intention can be played in the second display interface (namely the inner flow display interface) without returning to the first display interface (namely the outer flow display interface), so that the processing time for recommending the video which meets the user intention to the user in the inner flow is shortened, and the complexity for recommending the video to the user in the inner flow is reduced.

Drawings

The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.

FIG. 1 is a schematic diagram of one embodiment of a video pushing method based on video search according to the present disclosure;

FIG. 2 is a possible case of the second display interface area division of the present disclosure;

FIG. 3 is another possible scenario of the second display interface area division of the present disclosure;

FIG. 4 is a schematic diagram of another embodiment of the video pushing method based on video search according to the present disclosure;

FIG. 5 is a schematic diagram of another embodiment of the video pushing method based on video search according to the present disclosure;

FIG. 6 is a scene schematic diagram of a video pushing method based on video search according to the present disclosure;

fig. 7 is a schematic structural diagram of a video pushing apparatus according to the present disclosure;

fig. 8 is another schematic structural diagram of the video pushing apparatus of the present disclosure;

fig. 9 is a schematic structural diagram of an electronic device of the present disclosure.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.

In the existing video recommendation scheme, after a user watches an internal flow video, the user needs to quit an external flow display interface to reselect to watch a next video to be watched, so that the terminal can recommend videos meeting the user intention to the user in the internal flow only based on user operation, and the processing time for recommending videos meeting the user intention to the user in the internal flow is long and the difficulty is high. Meanwhile, when the terminal searches videos based on the keywords input by the user, the keywords can be understood differently in different fields or scenes, so that videos which are not related to the user intention can be searched according to the keywords input by the user, videos which are not related to the user intention can be recommended in an internal flow display interface, and waste of video resources is caused.

The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.

First, it should be noted that videos (including a first video and a second video) in the present disclosure may be videos in a Feed video stream, the Feed video stream is a video stream formed by video contents published on a network platform (may be a server) by a plurality of information sources subscribed by a user, a friend or an object of interest is used as the information source in a Feed scene, and video contents are dynamic (published video contents) of the friend or the object of interest, or other users determined to be matched according to user figures may be used as the information source, and content from the matched information source is pushed to the user, and when friends are sufficiently good or friends publish dynamic sufficiently frequently, the user can continuously receive the video contents.

The outflow in the present disclosure refers to a feed video stream that only pushes video preview information to a user, but not directly pushes video, and a video cover, a list, or a poster is displayed on a corresponding outflow display interface, and if the user wants to watch the video, the user needs to enter the inflow. The internal flow in the disclosure refers to a feed video flow for directly pushing a video to a user, and a corresponding internal flow display interface directly plays the video to the user. For example, a user clicks some video preview information in the out-flow presentation interface to enter the in-flow presentation, and plays the video in the in-flow presentation interface.

Referring to fig. 1, the present disclosure provides a video pushing method based on video search, which may be specifically executed by an electronic device, where the electronic device may be a terminal device, and the terminal device may be a desktop device or a mobile terminal, and the present disclosure includes:

step S101: and sending the received search keyword to a server.

Step S102: receiving first video preview information of at least two first videos matched with the search keyword, returned by the server, wherein the at least two first videos comprise videos of at least two video types, and displaying the first video preview information through a first display interface.

The method comprises the steps that a user inputs a search keyword in a search box of the terminal equipment and clicks a search button, the terminal equipment receives the search keyword input by the user, and the terminal equipment sends the keyword to a server so that the server can determine video content matched with the search keyword. A search keyword may have different understandings in different scenes, and thus a search keyword may search for various types of videos.

The server can search according to the search keyword to obtain at least two first videos, the at least two first videos comprise videos of at least two types, video preview information is corresponding to the at least two first videos one by one, the first video preview information comprises video preview information corresponding to the at least two first videos one by one, and the terminal equipment receives the first video preview information returned by the server and displays the first video preview information through a first display interface.

For example, the user searches for the keyword "apple", the server may retrieve the video of the iphone and the video of the apple as fruit, and the preview information of the video of the iphone and the preview information of the apple fruit video are displayed on the first display interface of the terminal.

In this embodiment, the preview information of the video refers to a cover, a poster or a list page of the video, and the first display interface is the above-mentioned outflow display interface.

Step S103: and when receiving a play trigger operation aiming at first target preview information in the first video preview information, sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server.

When the terminal device receives a play trigger operation of a user for first target preview information in the first video preview information, the terminal device sends a video acquisition request to the server, wherein the video acquisition request carries identification information of a first target video corresponding to the first target preview information, and it can be understood that the identification information of the video can uniquely indicate the video.

In this embodiment, the play trigger operation may be a click operation of the user on video preview information (which may be the first target preview information) of the video.

Step S104: and receiving at least two second videos returned by the server according to the video acquisition request and corresponding second video preview information, and displaying a first preset number of preview information in the second video preview information through a second display interface.

After receiving the video acquisition request, the server determines at least two second videos, and similarly, the at least two second videos correspond to video preview information in a one-to-one correspondence manner, the second video preview information includes video preview information corresponding to the at least two second videos in a one-to-one correspondence manner, the server sends the at least two second videos and the second video preview information to the terminal device, the terminal device adds the at least two second videos into a cache of the terminal device after receiving the at least two second videos and the second video preview information, because the size of a display interface of the terminal device is limited, the terminal device can display a first preset number of preview information in the second video preview information through the second display interface, the first preset number is preset by the terminal device, and the first preset number of preview information can be part of preview information in the second video preview information.

In this embodiment, the search keyword is sent to the server, the server may return first video preview information of at least two first videos matched with the search keyword, the at least two first videos include videos of at least two video types, when a play trigger operation for the first target video preview information is received, a video acquisition request is sent to the server, and then at least two second videos and corresponding second video preview information returned by the server according to the identification information of the first target video in the video acquisition request are received, a first predetermined number of preview information in the second video preview information is displayed through a second display interface, a second video may be recommended to the user in an internal stream, the second video is returned by the server based on the identification information of the first target video, the first target video satisfies a video intended by the user, and the second video also satisfies the video intended by the user to a great extent, therefore, when videos are recommended in the inner flow based on the search keywords, videos which are more consistent with the intentions of the users can be recommended, and the videos which do not meet the intentions of the users are prevented from being pushed to the users, so that video resources are saved, and the search experience of the users is improved. Meanwhile, in the method and the device, the second video which meets the user intention can be played in the second display interface (namely the inner flow display interface) without returning to the first display interface (namely the outer flow display interface), so that the processing time for recommending the video which meets the user intention to the user in the inner flow is shortened, and the complexity for recommending the video to the user in the inner flow is reduced.

Optionally, receiving first video preview information of at least two first videos that are returned by the server and match with the search keyword, where the receiving includes:

receiving first video preview information of at least two first videos which are returned by a server, are sorted according to video popularity and are matched with the search keyword;

the second video includes:

the video which belongs to the same video type as the first target video and has video similarity with the first target video meeting a first preset condition;

the second video further comprises at least one of:

the first N first videos are sorted according to the video heat in the first videos, and N is a positive integer;

and screening out videos which meet second preset conditions with the video similarity of the N first videos from the video database.

In this embodiment, the video recommended by the first presentation interface or the outflow presentation interface may be: according to the video recommended to the user by the real-time video heat of the video, the specific implementation mode of the first video preview information received by the terminal equipment and returned by the server is as follows:

the server determines at least two first videos according to the search keywords, then sorts the at least two first videos according to real-time video heat, the real-time video heat is determined by at least one of real-time clicking (or browsing) amount, forwarding amount and sharing amount of the videos, the server correspondingly sorts video preview information corresponding to the at least two first videos one by one according to sorting results of the at least two first videos, and then the first video preview information obtained through sorting is sent to the terminal equipment, so that the terminal equipment displays the first video preview information obtained through sorting on a first display interface, and preview information of the first video which is ranked ahead can be preferentially displayed to a user.

In this embodiment, the process of determining the first video according to the search keyword and ranking the first video may be performed by a search engine of the server. The search results of the search engine are more considering real-time video heat or more considering timeliness, and the search results ranked in the front are not necessarily really interesting to the user.

Based on the ranking of the at least two first videos, the at least two second videos determined by the server may include videos similar to the first target video actively selected by the user, and may further include videos determined by one or more first videos with top ranking results after the ranking by the server, and the process of determining the at least two second videos may be completed by a recommendation engine of the server. Specifically, the server determines that there are three possible implementation manners of the second video, which are described below:

first, it should be noted that the video similarity can be used to measure the similarity (or correlation) of the video contents of two videos, for example, if both videos are videos obtained by the watermelon slicing method, the similarity is higher, and if one video is a sports video and one video is a movie video, the similarity is lower.

Mode 1:

the server determines the videos that may be of interest to the user, the first target video is actively selected by the user and is necessarily the video of interest to the user, and the server may determine at least two second videos similar to the first target video according to the first target video, specifically:

the server determines a first target video selected by the user according to the identification information of the first target video in the video acquisition request, the server determines a candidate video with video similarity to the first target video meeting a first preset condition, the server can determine to obtain the candidate video meeting the user intention by setting the first preset condition, meanwhile, as the above search keyword may search for a video of a different video type, in the video recommended by the stream, it is also possible to include a video belonging to a different video type from the first target video, that is, among the candidate videos, there may be videos belonging to different video types from the first target video, and obviously the videos do not satisfy the user intention, the server may determine at least two second videos belonging to the same video type as the first target video from among the candidate videos according to the video type of the first target video.

In this embodiment, it may be that the candidate video and the at least two second videos are the same video, that is, the videos having the video similarity greater than the first preset condition with the first target video are all of the same video type as the first target video. Of course, the at least two second videos may also be part of the candidate videos.

In this embodiment, the video similarity between two videos may be represented by the position distance of the two videos in the similarity algorithm model, that is, the distance value calculated by the two videos is the similarity value of the two videos, the distance value may be normalized to [0, 1], where 0 represents that the two videos are farthest away, the corresponding two videos are lowest in similarity, and 1 represents that the two videos are closest in distance and the corresponding similarity is highest. Specifically, the specific way for the server to determine the candidate video whose video similarity with the first target video meets the first preset condition is as follows:

the server has a similarity algorithm model, the similarity algorithm model can be used as a functional module of the server, a video database prestored by the server stores massive videos, each video and the first target video correspond to a coordinate (generally a coordinate of a two-dimensional coordinate system) in the similarity algorithm model, the server determines the coordinate of the first target video in the similarity algorithm model and determines the coordinate of each video in the prestored video database in the similarity algorithm model, and for one video in the video database, the method for calculating the video similarity is as follows: the cosine similarity of the coordinates of the video and the coordinates of the first target video is calculated, and the cosine similarity is used as the video similarity of the video and the first target video.

Usually, the distance value of the two videos is in the range of [0.7, 0.8], that is, the video similarity of the two videos meets the first preset condition. One possible situation is that the first preset condition may also be [0.5, 0.8] first, and after the candidate video is determined according to [0.5, 0.8], the candidate video is recommended to the user in the internal stream so as to search whether the user is really interested, so as to further adjust the value range of the first preset condition, and finally, a value range is found to ensure that the second video determined according to the value range is the video really interested by the user.

For example, the coordinates of the first target video are (X1, Y1), the coordinates of a certain video in the video database are (X2, Y2), the cosine similarity of the two coordinates is calculated, and if the calculation result is 0.7-0.8, the video is considered to meet the first preset condition, and the video is the second video.

Mode 2:

when the server determines the second video, in addition to the video in which the user is interested, the server may also consider the real-time video heat of the video, specifically:

the at least two second videos include the second video determined in the above mode 1, and the at least two second videos also include N first videos which are sorted in top by video hotness in all the first videos. Since the server ranks all the first videos obtained by searching the search keywords in advance, the server can add the N first videos ranked at the top to at least two second videos, and the N first videos and the second videos determined by the method 1 are used as videos recommended in the inner stream together. The specific numerical value of N is preset by the server, and N is a positive integer.

Mode 3:

when the same server determines the second video, in addition to the video in which the user is interested, the real-time video heat of the video may be considered, and when the real-time video heat is considered, there is a difference between the mode of determining the second video and the mode 2, specifically:

the at least two second videos include the second video determined by the above mode 1, and the at least two second videos further include: and determining the video with the video similarity meeting a second preset condition by the N first videos which are ranked at the top according to the video heat in all the first videos.

Since the server sorts all the first videos obtained by searching the search keywords in advance, the server can take N first videos which are sorted in the front (namely the first N first videos recommended in the first display interface), similarly, the N first videos correspond to one coordinate in the similarity calculation model one by one, a specific parameter coordinate is calculated according to the coordinates of the N first videos, the specific parameter coordinate can be an average value coordinate of the N first videos or a variance value coordinate of the N first videos, the similarity calculation model also stores the coordinates of each video in the video database, the similarity between the specific parameter coordinate and the coordinates of each video in the video database is respectively calculated, if the similarity obtained by calculating the coordinates of one or more videos and the specific parameter coordinate meets a second preset condition, the one or more videos are also added into at least two second videos as the second videos, as a video recommended in the stream together with the second video determined by the mode 1.

Similarly, the specific value of N is preset by the server, and N is a positive integer. The second preset condition may be the same as or different from the first preset condition.

Taking the specific parameter coordinate as an average coordinate as an example, if N is 5, the server takes the first 5 videos recommended to the user by the first display interface, the coordinates of the five videos are (x1, y1), (x2, y2), (x3, y3), (x4, y4), and (x5, y5), and calculates the average coordinate of the 5 coordinatesThe coordinate of a certain video in the video database is (x6, y6), the similarity between (M, N) and (x6, y6) is calculated, if the calculation result is [0.7, 0.8]]And if the second preset condition is considered to be met within the range, adding the video into at least two second videos.

In this embodiment, a manner of determining at least two second videos is introduced, where a first target video is actively selected by a user, a second video whose video similarity with the first target video meets a first preset condition is also greatly interested by the user, and meanwhile, the video types of the second video and the first video are the same, so that the second video is further ensured to be an intention video of the user, further, at least two second videos may also be added to N first videos recommended by an outflow presentation interface and ranked in the front, so that the real-time property of the second video may be ensured, or after an average value or a variance value is taken on coordinates of N first videos recommended by the outflow presentation interface and ranked in the front, similar videos are determined to be added to at least two second videos, so that the diversity and the relevance of the second videos may be ensured.

It can be seen that the second video determined in the above embodiment is an intention video of the user, the video preview information corresponding to at least two second videos is displayed on the second display interface, and the user can operate the second video preview information on the second display interface to play the corresponding second video, so that one or more second videos meeting the intention of the user can be played on the second display interface even if the user does not exit from the first display interface, thereby saving the processing time for recommending the intention video to the user in the internal flow, and providing better search experience for the user.

Optionally, after sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server, the method further includes:

receiving a first target video returned by a server;

playing the first target video through the first area of the second display interface;

displaying a first preset number of preview information in the second video preview information through a second display interface, wherein the displaying includes:

displaying a first preset number of preview information in the second video preview information through a second area of a second display interface;

the second display interface includes a first region and a second region.

The terminal equipment can only play one video within a period of time, namely the terminal equipment cannot play two videos simultaneously, a second display interface of the terminal equipment is divided into a first area and a second area, the first area is a video playing area, the second area is a display area of video preview information, a user can execute sliding operation in the second display interface to change the videos played and the displayed video preview information in the second display interface, the video playing area and the display area are not fixed, and occupied positions of the first area and the second area in the second display interface are not limited. The second area may be split into a plurality of small areas for presenting a plurality of video preview information. While the first area plays the video, the second area presents the user with a listing, cover, or poster of the video.

After the terminal device sends a video acquisition request carrying identification information of the first target video to the server, the server also returns the first target video to the terminal device, so that the terminal device plays the first target video through a first area of a second display interface, and simultaneously displays the preview information of the first preset number in the second video preview information through a second area, namely, the playing of the first target video and the displaying of the preview information of the first preset number are carried out simultaneously.

In this embodiment, one possible situation of the first area and the second area on the second display interface is shown in fig. 2.

Optionally, after displaying the first predetermined number of preview information in the second video preview information through the second area of the second display interface, the method further includes:

when the sliding operation of a user on a second display interface is received, determining a second target video from at least two second videos, and determining preview information of a second preset number from the second video preview information;

and playing the second target video through the first area of the second display interface, and displaying a second preset number of preview information through the second area of the second display interface.

The at least two second videos and the corresponding second video preview information received by the terminal device are sorted, and the sorting process will be described in the following embodiments, when the terminal device receives a sliding operation of the user on the second display interface along the length direction of the display interface, the terminal device gradually displays the video preview information of the second videos that are not yet displayed to the user according to the sorting result, that is, the user can update the video preview information of the second videos displayed in the second display interface by performing the sliding operation, when the sliding operation is stopped, the terminal device determines a second target video that the user wants to play from the at least two second videos, and the determination criterion is that, in the sliding process, if the video preview information of a certain second video is completely displayed to the user, or the video preview information of a certain second video is completely displayed on the second display interface, and if the video preview information of the two second videos is completely displayed to the user in the sliding process, the second video with the top sequence is played.

And when the sliding operation is stopped, the terminal equipment displays a second preset number of pieces of preview information to the user in a second area of a second display interface, wherein the second preset number is set in advance by the terminal equipment, and at the moment, the preview information in the second area can only display part of the preview information, namely, the user can only see one part of the video cover (or poster or list).

As mentioned above, the second area may be split into a plurality of small areas for displaying a plurality of video preview information, a possible case of the first area and the second area on the second display interface in this embodiment is shown in fig. 3, the second area in the second display interface is divided into two small areas, the size of the small areas may be different, the first area is larger than each small area, one small area displays video preview information of the kth ordered second video, the video preview information only displays a part of the kth ordered second video, the first area displays the kth +1 ordered second video (i.e. the second target video), and the other small area displays video preview information of the kth +2 ordered second video, the video preview information also displays only a part of the video preview information.

In this embodiment, the user updates the video preview information displayed in the second display interface by performing a sliding operation in the second display interface, and simultaneously can play the second target video, so that even if the user does not exit the inner flow display interface, the second target video which may be interested by the user can be played in the inner flow display interface.

Optionally, the receiving at least two second videos and corresponding second video preview information returned by the server includes:

receiving at least two second videos and corresponding second video preview information which are returned by the server and are sequenced according to the user preference;

displaying a first preset number of preview information in the second video preview information through a second display interface, wherein the displaying includes:

and displaying the preview information of the first preset number in the at least two sequenced second videos in the second video preview information through a second display interface.

In this embodiment, after the server determines the at least two second videos, the server may further perform personalized ranking on the at least two second videos according to a user preference, where the user preference is determined by at least one of attribute information of the user and a historical viewing record of videos watched by the user, and the user preference may also be determined according to other factors, which is not limited herein.

The attribute information of the user may be at least one of gender, age, occupation, and the like of the user, for example, if the user is female, the movie-like video of the at least two second videos may be arranged in front, and if the user is male, the sport-like video and the game-like video of the at least two second videos may be arranged in front; the historical watching record of the video watched by the user can be at least one of the time length of the video watched by the user, the completion degree of the video watched by the user and the video types of the video watched by the user, wherein the video types of the video types watched by the user are more than a threshold value, for example, the completion degree of the user watching a certain video is more than a certain percentage, the video is the video of the automobile advertisement, and the video belonging to the automobile advertisement class in at least two second videos is arranged in front; when the time for watching a certain video by a user is more than a certain time threshold value, the video is a dance video, and the videos belonging to the dance class in at least two second videos are arranged in front; the user often watches videos of the movie category, and the videos belonging to the movie category of the at least two second videos may be ranked in front.

The server correspondingly sorts the video preview information corresponding to the at least two second videos according to the sorting of the at least two second videos, so that the second video preview information obtained through sorting is sent to the terminal equipment, meanwhile, the server also sends the at least two sorted second videos to the terminal equipment, the terminal equipment caches the at least two second videos, and according to the sorting result, a second preset number of preview information in the second video preview information displayed on a second display interface is displayed.

In this embodiment, the server may sort the at least two second videos according to the preference of the user, so that the terminal device displays the video preview information on the second display interface according to the sorting result, and thus the second videos which meet the preference of the user more easily can be seen by the user.

Optionally, the videos recommended by the inflow presentation interface and the videos recommended by the outflow presentation interface need to eliminate duplicate videos, specifically: the terminal device displays videos of the video preview information on a first display interface, namely videos recommended on an external flow display interface, and many videos are high-quality videos obtained by screening of a server, if a user does not see the videos, the videos recommended on the external flow display interface can be continuously recommended in the internal flow display interface (namely, second videos can be determined to be recommended to the user), and the N first videos ranked at the top are taken and added into at least two second videos; within a first preset time length, for videos which are selected to be played by a user in the outflow display interface, continuous recommendation is not performed in the inflow display interface (namely, the videos are not determined to be recommended to the user as second videos); and the video played in the internal flow display interface is not recommended continuously in the external flow display interface within a second preset time length, and the first preset time length and the second preset time length can be the same or different.

The present disclosure is described below from the perspective of a server, and as shown in fig. 4, the present disclosure provides a video pushing method based on video search, which may be specifically executed by an electronic device, where the electronic device may be a server, and specifically includes the following steps:

step S401, determining at least two first videos matched with a search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

step S402, sending first video preview information of at least two first videos to terminal equipment;

step S403, receiving a video acquisition request sent by the terminal device, where the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

step S404, determining at least two second videos according to the video acquisition request, and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

Optionally, after determining at least two first videos matching the search keyword, the method further includes:

sequencing at least two first videos according to the video heat;

sending first video preview information of at least two first videos to a terminal device, including:

and sending the first video preview information of the at least two sequenced first videos to the terminal equipment.

Optionally, determining at least two second videos according to the video obtaining request includes any one of the following situations:

according to the identification information in the video acquisition request, determining candidate videos of which the video similarity with the first target video meets a first preset condition, and determining videos which belong to the same video type as the first target video from the candidate videos as at least two second videos;

determining the first N videos which are ranked according to the video heat degree and belong to the same video type as the first target video from the candidate videos as at least two second videos, wherein N is a positive integer;

and determining videos which are determined from the candidate videos and belong to the same video type as the first target video, screened from the video database and meet a second preset condition with the similarity videos of the N first videos as at least two second videos.

Optionally, determining, according to the identification information in the video acquisition request, a candidate video whose video similarity with the first target video meets a first preset condition includes:

determining a first target video according to the identification information in the video acquisition request;

respectively calculating the video similarity of the first target video and each video according to the coordinates of the first target video and each video in a pre-stored video database in a similarity algorithm model;

and according to the video similarity, determining candidate videos of which the video similarity with the first target video meets a first preset condition from a video database.

Optionally, determining, as the second video, a video that is screened from the video database and satisfies a second preset condition with the similarity videos of the N first videos, where the video includes:

determining specific parameter coordinates corresponding to the N first videos according to coordinates of the N first videos in the similarity algorithm model, wherein the specific parameter coordinates comprise average value coordinates of the N first videos or variance value coordinates of the N first videos;

determining coordinates of each video in a pre-stored video database in a similarity algorithm model, and respectively calculating the similarity between the coordinates of each video and the coordinates of the specific parameters;

and determining a second video corresponding to the coordinate with the similarity meeting a second preset condition, which is obtained by screening from the video database according to the similarity.

Optionally, after determining at least two second videos according to the video acquisition request, the method further includes:

sequencing the at least two second videos according to user preference, wherein the user preference is determined by at least one item of attribute information of a user and historical watching records of videos watched by the user;

and sending the at least two second videos sequenced according to the user preference and the corresponding second video preview information to the terminal equipment.

It should be noted that the method shown in this embodiment is substantially the same as the method shown in fig. 1 in the foregoing, and the difference is only that the method shown in fig. 1 is described with a terminal device as an execution subject of the method, and the method shown in this embodiment is described with a server as an execution subject of the method. Therefore, the method and the scheme of the alternative embodiment thereof shown in this embodiment may specifically refer to the description of the method and the scheme of the alternative embodiment thereof shown in fig. 1 in the foregoing, and are not described herein again.

In this embodiment, after the server receives the video obtaining request carrying the identification information of the first target video, the first target video is actively selected by the user and is the intention video of the user, the server determines at least two second videos of which the video similarity with the first target video meets a first preset condition, the second videos are also interested by the user to a large extent, meanwhile, the video types of the second video and the first video are the same, the second video is further ensured to be the intention video of the user, the server sends at least two second videos and corresponding second video preview information to the terminal equipment, therefore, videos which are more accordant with the user intention can be recommended in the inner flow based on the search keywords, a large number of videos which do not meet the user intention can be prevented from being pushed to the user, video resources are saved, and the search experience of the user is improved. Meanwhile, in the disclosure, the second video meeting the user intention can be played in the second display interface (namely the inner flow display interface) without returning to the first display interface (namely the outer flow display interface), so that the time for recommending the video meeting the user intention to the user in the inner flow is reduced.

Referring to fig. 5, the scheme of the present disclosure is described from the perspective of interaction between a terminal device and a server.

Step S501, the terminal device sends the received search keyword to a server.

Step S502, the server determines at least two first videos matched with the search keyword.

Step S503, the server sends first video preview information of at least two first videos to the terminal equipment;

step S504, the terminal equipment displays first video preview information through a first display interface;

step S505, the terminal equipment receives a play trigger operation of a user for first target preview information in the first video preview information;

step S506, the terminal equipment sends a video acquisition request to the server, wherein the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

step S507, determining at least two second videos according to the video acquisition request;

step S508, at least two second videos and corresponding second video preview information are sent to the terminal equipment

Step S509, the terminal device displays a first predetermined number of pieces of preview information in the second video preview information through the second display interface;

step S510, the terminal equipment receives sliding operation of a user on a second display interface;

step S511, the terminal equipment determines a second target video from at least two second videos and determines preview information with a second preset number from the second video preview information;

step S512, the terminal device plays the second target video through the first area of the second display interface, and displays a second predetermined number of pieces of preview information through the second area of the second display interface.

It should be noted that the method shown in this embodiment is substantially the same as the method shown in fig. 1 or fig. 4 in the foregoing description. Therefore, the method shown in this embodiment may specifically refer to the description of the method shown in fig. 1 or fig. 4 and the scheme in the optional embodiment thereof in the foregoing, and the effect achieved by the method shown in this embodiment may also refer to the description of the technical effect of the method shown in fig. 1 or fig. 4, and is not described herein again.

The present disclosure may be applied to push Feed video streams in a Feed scene, and an application scene of the present disclosure is described below with reference to fig. 6.

The method comprises the steps that a user inputs search keywords in a search interface of terminal equipment, a search button is clicked, the terminal sends the search keywords to a server, a recommendation engine of the server searches to obtain at least two feed stream videos containing at least two video types and serves as videos recommended by an outflow display interface, the at least two feed stream videos are sequenced according to video heat, sequencing results are feed stream video 1, feed stream video 2 to feed stream video n, and the server sends video preview information of corresponding sequencing to the terminal equipment.

The sorted video preview information is displayed on the outer flow display interface of the terminal device, as shown in fig. 6, the video preview information of the feed stream video 1, the video preview information of the feed stream video 2 to the video preview information of the feed stream video n are sequentially sorted, the user clicks the video preview information of the feed stream video 1, the terminal device sends the user request to the server, a recommendation engine of the server determines that videos with video similarity to the feed stream video 1 meeting a preset condition are added to the inner flow candidate video set, meanwhile, 3 feed stream videos corresponding to the feed stream video 2, the feed stream video 4 and the like which are sorted in the front can be added to the inner flow candidate video set (in the present scenario, three examples are provided, actually, more than 3 or less than 3), or after average coordinates of the 3 feed stream videos which are sorted in the front are taken at the same time, video similarity is calculated with each video in the video database, so as to determine that similar videos are added to the inner flow candidate video set, the server sorts the videos in the internal flow candidate video set according to the preference of the user, the videos in the internal flow candidate video set are also Feed stream videos, the server sends the sorted internal flow candidate video set and corresponding video preview information to the terminal equipment, and meanwhile the server responds to the user request and sends the Feed stream video 1 to the terminal equipment.

The method comprises the steps that terminal equipment is switched to an internal flow display interface, feed stream video 1 is played above the internal flow display interface, meanwhile, due to the fact that the area of the internal flow display interface is limited, the terminal equipment displays video preview information corresponding to the 1 st ordered internal flow candidate video in an internal flow candidate video set in other areas of the internal flow display interface, a user can update the video preview information of the internal flow candidate video pushed on the internal flow display interface by sliding on the internal flow display interface, if the video preview information of a certain internal flow candidate video is completely displayed on the internal flow display interface, the internal flow candidate video can be played, and for example, the kth order of the video preview information in the figure is displayed completely1Intra stream candidate video and kth stream candidate video1If the video preview information of +1 internal stream candidate videos is completely displayed, the k-th video in the top sequence is played1And a plurality of inner stream candidate videos, and the user can watch one or more inner stream candidate videos by sliding and updating the preview information of the inner stream candidate videos.

Fig. 7 is a schematic structural diagram of a video pushing apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, the apparatus according to the embodiment of the present disclosure may include:

a first transceiver module 701, configured to send the received search keyword to a server;

the second transceiver module 702 is configured to receive first video preview information of at least two first videos that are returned by the server and matched with the search keyword, where the at least two first videos include videos of at least two video types, and display the first video preview information through a first display interface;

the third transceiver module 703 is configured to send a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server when receiving a play trigger operation for the first target preview information in the first video preview information;

the display module 704 is configured to receive at least two second videos and corresponding second video preview information returned by the server according to the video acquisition request, and display a first predetermined number of preview information in the second video preview information through a second display interface.

Optionally, when receiving the first video preview information of the at least two first videos matching the search keyword, which is returned by the server, the second transceiver module 702 is specifically configured to:

receiving first video preview information of at least two first videos which are returned by a server, are sorted according to video popularity and are matched with the search keyword;

the second video includes:

the video which belongs to the same video type as the first target video and has video similarity with the first target video meeting a first preset condition;

the second video further comprises at least one of:

the first N first videos are sorted according to the video heat in the first videos, and N is a positive integer;

and screening out videos which meet second preset conditions with the video similarity of the N first videos from the video database.

Optionally, after the third transceiver module 703 sends, to the server, a video acquisition request carrying identification information of a first target video corresponding to the first target preview information, the apparatus further includes:

the fourth transceiving module is used for receiving the first target video returned by the server;

the first playing module is used for playing the first target video through the first area of the second display interface;

the displaying module 704, when displaying a first predetermined number of pieces of preview information in the second video preview information through the second displaying interface, is specifically configured to:

displaying a first preset number of preview information in the second video preview information through a second area of a second display interface;

the second display interface includes a first region and a second region.

Optionally, after the displaying module 704 displays the first predetermined number of pieces of preview information in the second video preview information through the second area of the second display interface, the apparatus further includes:

the fifth transceiver module is used for determining a second target video from the at least two second videos and determining a second preset number of preview information from the second video preview information when receiving the sliding operation of the user on the second display interface;

and the second playing module plays the second target video through the first area of the second display interface and displays a second preset number of pieces of preview information through the second area of the second display interface.

Optionally, when receiving at least two second videos and corresponding second video preview information returned by the server, the display module 704 is specifically configured to:

receiving at least two second videos and corresponding second video preview information which are returned by the server and are sequenced according to the user preference;

when the display module 704 displays the first predetermined number of pieces of preview information in the second video preview information through the second display interface, the display module is specifically configured to:

and displaying the preview information of the first preset number in the at least two sequenced second videos in the second video preview information through a second display interface.

Fig. 8 is a schematic structural diagram of a video pushing apparatus according to another embodiment of the present disclosure, and as shown in fig. 8, the apparatus according to the embodiment of the present disclosure may include:

a first determining module 801, configured to determine, according to a received search keyword from a terminal device, at least two first videos that match the search keyword, where the at least two first videos include videos of at least two video types;

a first transceiver module 802, configured to send first video preview information of at least two first videos to a terminal device;

the second transceiver module 803 is configured to receive a video acquisition request sent by a terminal device, where the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

the second determining module 804 is configured to determine at least two second videos according to the video obtaining request, and send the at least two second videos and corresponding second video preview information to the terminal device.

Optionally, after the first determining module 801 determines at least two first videos matching the search keyword, the apparatus further includes:

the first sequencing module is used for sequencing at least two first videos according to the video heat;

when the first transceiver module 802 sends the first video preview information of at least two first videos to the terminal device, it is specifically configured to:

and sending the first video preview information of the at least two sequenced first videos to the terminal equipment.

Optionally, when determining at least two second videos according to the video acquisition request, the second determining module 804 is specifically configured to perform any one of the following operations:

according to the identification information in the video acquisition request, determining candidate videos of which the video similarity with the first target video meets a first preset condition, and determining videos which belong to the same video type as the first target video from the candidate videos as at least two second videos;

determining the first N videos which are ranked according to the video heat degree and belong to the same video type as the first target video from the candidate videos as at least two second videos, wherein N is a positive integer;

and determining videos which are determined from the candidate videos and belong to the same video type as the first target video, screened from the video database and meet a second preset condition with the similarity videos of the N first videos as at least two second videos.

Optionally, when determining, according to the identification information in the video acquisition request, a candidate video whose video similarity with the first target video meets a first preset condition, the second determining module 804 is specifically configured to:

determining a first target video according to the identification information in the video acquisition request;

respectively calculating the video similarity of the first target video and each video according to the coordinates of the first target video and each video in a pre-stored video database in a similarity algorithm model;

and according to the video similarity, determining candidate videos of which the video similarity with the first target video meets a first preset condition from a video database.

Optionally, the second determining module 804 is specifically configured to, when determining, as the second video, the video that is screened from the video database and satisfies the second preset condition with the similarity videos of the N first videos, determine that:

determining specific parameter coordinates corresponding to the N first videos according to coordinates of the N first videos in the similarity algorithm model, wherein the specific parameter coordinates comprise average value coordinates of the N first videos or variance value coordinates of the N first videos;

determining coordinates of each video in a pre-stored video database in a similarity algorithm model, and respectively calculating the similarity between the coordinates of each video and the coordinates of the specific parameters;

and determining a second video corresponding to the coordinate with the similarity meeting a second preset condition, which is obtained by screening from the video database according to the similarity.

Optionally, after the second determining module 804 determines at least two second videos according to the video obtaining request, the apparatus further includes:

the second sequencing module is used for sequencing at least two second videos according to user preference, and the user preference is determined by at least one of attribute information of a user and historical watching records of videos watched by the user;

and the third transceiver module is used for sending the at least two second videos and the corresponding second video preview information which are sequenced according to the user preference to the terminal equipment.

Referring now to fig. 9, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1 or the server of fig. 4) 600 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 601 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)602, a Random Access Memory (RAM)603 and a storage device 608 hereinafter, which are specifically shown as follows:

as shown in fig. 9, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.

Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 9 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.

It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: 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 present disclosure, 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. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many 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: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.

The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending the received search keywords to a server; receiving first video preview information of at least two first videos matched with the search keyword, returned by the server, wherein the at least two first videos comprise videos of at least two video types, and displaying the first video preview information through a first display interface; when receiving a play trigger operation aiming at first target preview information in the first video preview information, sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to a server; and receiving at least two second videos returned by the server according to the video acquisition request and corresponding second video preview information, and displaying a first preset number of preview information in the second video preview information through a second display interface.

Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining at least two first videos matched with the search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types; sending first video preview information of at least two first videos to terminal equipment; receiving a video acquisition request sent by terminal equipment, wherein the video acquisition request is generated in response to a play trigger operation aiming at first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information; and determining at least two second videos according to the video acquisition request, and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, 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 flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module or unit does not in some cases constitute a limitation of the unit itself, for example, the first transceiver module may also be described as a "module sending the received search keyword to the server".

The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.

According to one or more embodiments of the present disclosure, there is provided a video push method based on video search, including:

sending the received search keywords to a server;

receiving first video preview information of at least two first videos matched with the search keyword, returned by the server, wherein the at least two first videos comprise videos of at least two video types, and displaying the first video preview information through a first display interface;

when receiving a play trigger operation aiming at first target preview information in the first video preview information, sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to a server;

and receiving at least two second videos returned by the server according to the video acquisition request and corresponding second video preview information, and displaying a first preset number of preview information in the second video preview information through a second display interface.

Optionally, receiving first video preview information of at least two first videos that are returned by the server and match with the search keyword, where the receiving includes:

receiving first video preview information of at least two first videos which are returned by a server, are sorted according to video popularity and are matched with the search keyword;

the second video includes:

the video which belongs to the same video type as the first target video and has video similarity with the first target video meeting a first preset condition;

the second video further comprises at least one of:

the first N first videos are sorted according to the video heat in the first videos, and N is a positive integer;

and screening out videos which meet second preset conditions with the video similarity of the N first videos from the video database.

Optionally, after sending the video acquisition request carrying the identification information of the first target video corresponding to the first target preview information to the server, the method further includes:

receiving a first target video returned by a server;

playing the first target video through the first area of the second display interface;

displaying a first preset number of preview information in the second video preview information through a second display interface, wherein the displaying includes:

displaying a first preset number of preview information in the second video preview information through a second area of a second display interface;

the second display interface includes a first region and a second region.

Optionally, after displaying the first predetermined number of pieces of preview information in the second video preview information through the second area of the second display interface, the method further includes:

when the sliding operation of a user on a second display interface is received, determining a second target video from at least two second videos, and determining preview information of a second preset number from the second video preview information;

and playing the second target video through the first area of the second display interface, and displaying a second preset number of preview information through the second area of the second display interface.

Optionally, the receiving at least two second videos and corresponding second video preview information returned by the server includes:

receiving at least two second videos and corresponding second video preview information which are returned by the server and are sequenced according to the user preference;

displaying a first preset number of preview information in the second video preview information through a second display interface, wherein the displaying includes:

and displaying the preview information of the first preset number in the at least two sequenced second videos in the second video preview information through a second display interface.

According to one or more embodiments of the present disclosure, there is also provided a video pushing method based on video search, including:

determining at least two first videos matched with the search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

sending first video preview information of at least two first videos to terminal equipment;

receiving a video acquisition request sent by terminal equipment, wherein the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

and determining at least two second videos according to the video acquisition request, and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

Optionally, after determining at least two first videos matching the search keyword, the method further includes:

sequencing at least two first videos according to the video heat;

sending first video preview information of at least two first videos to a terminal device, including:

and sending the first video preview information of the at least two sequenced first videos to the terminal equipment.

Optionally, determining at least two second videos according to the video obtaining request includes any one of the following situations:

according to the identification information in the video acquisition request, determining candidate videos of which the video similarity with the first target video meets a first preset condition, and determining videos which belong to the same video type as the first target video from the candidate videos as at least two second videos;

determining the first N videos which are ranked according to the video heat degree and belong to the same video type as the first target video from the candidate videos as at least two second videos, wherein N is a positive integer;

and determining videos which are determined from the candidate videos and belong to the same video type as the first target video, screened from the video database and meet a second preset condition with the similarity videos of the N first videos as at least two second videos.

Optionally, determining, according to the identification information in the video acquisition request, a candidate video whose video similarity with the first target video meets a first preset condition includes:

determining a first target video according to the identification information in the video acquisition request;

respectively calculating the video similarity of the first target video and each video according to the coordinates of the first target video and each video in a pre-stored video database in a similarity algorithm model;

and according to the video similarity, determining candidate videos of which the video similarity with the first target video meets a first preset condition from a video database.

Optionally, determining, as the second video, a video that is screened from the video database and satisfies a second preset condition with the similarity videos of the N first videos, where the video includes:

determining specific parameter coordinates corresponding to the N first videos according to coordinates of the N first videos in the similarity algorithm model, wherein the specific parameter coordinates comprise average value coordinates of the N first videos or variance value coordinates of the N first videos;

determining coordinates of each video in a pre-stored video database in a similarity algorithm model, and respectively calculating the similarity between the coordinates of each video and the coordinates of the specific parameters;

and determining a second video corresponding to the coordinate with the similarity meeting a second preset condition, which is obtained by screening from the video database according to the similarity.

Optionally, after determining at least two second videos according to the video acquisition request, the method further includes:

sequencing the at least two second videos according to user preference, wherein the user preference is determined by at least one item of attribute information of a user and historical watching records of videos watched by the user;

and sending the at least two second videos sequenced according to the user preference and the corresponding second video preview information to the terminal equipment.

According to one or more embodiments of the present disclosure, there is provided a video push apparatus including:

the first transceiver module is used for sending the received search keywords to the server;

the second transceiver module is used for receiving first video preview information of at least two first videos matched with the search keyword, which is returned by the server, wherein the at least two first videos comprise videos of at least two video types, and the first video preview information is displayed through a first display interface;

the third transceiver module is used for sending a video acquisition request carrying identification information of a first target video corresponding to the first target preview information to the server when receiving a play trigger operation aiming at the first target preview information in the first video preview information;

and the display module is used for receiving at least two second videos and corresponding second video preview information returned by the server according to the video acquisition request and displaying a first preset number of preview information in the second video preview information through a second display interface.

Optionally, when receiving the first video preview information of the at least two first videos matched with the search keyword, which is returned by the server, the second transceiver module is specifically configured to:

receiving first video preview information of at least two first videos which are returned by a server, are sorted according to video popularity and are matched with the search keyword;

the second video includes:

the video which belongs to the same video type as the first target video and has video similarity with the first target video meeting a first preset condition;

the second video further comprises at least one of:

the first N first videos are sorted according to the video heat in the first videos, and N is a positive integer;

and screening out videos which meet second preset conditions with the video similarity of the N first videos from the video database.

Optionally, after the third transceiver module sends, to the server, a video acquisition request carrying identification information of the first target video corresponding to the first target preview information, the apparatus further includes:

the fourth transceiving module is used for receiving the first target video returned by the server;

the first playing module is used for playing the first target video through the first area of the second display interface;

the display module is specifically configured to, when displaying the first predetermined number of pieces of preview information in the second video preview information through the second display interface:

displaying a first preset number of preview information in the second video preview information through a second area of a second display interface;

the second display interface includes a first region and a second region.

Optionally, after the displaying module displays the first predetermined number of pieces of preview information in the second video preview information through the second area of the second display interface, the apparatus further includes:

the fifth transceiver module is used for determining a second target video from the at least two second videos and determining a second preset number of preview information from the second video preview information when receiving the sliding operation of the user on the second display interface;

and the second playing module plays the second target video through the first area of the second display interface and displays a second preset number of pieces of preview information through the second area of the second display interface.

Optionally, when receiving at least two second videos and corresponding second video preview information returned by the server, the display module is specifically configured to:

receiving at least two second videos and corresponding second video preview information which are returned by the server and are sequenced according to the user preference;

when the display module displays the first preset number of pieces of preview information in the second video preview information through the second display interface, the display module is specifically configured to:

and displaying the preview information of the first preset number in the at least two sequenced second videos in the second video preview information through a second display interface.

According to one or more embodiments of the present disclosure, there is also provided a video push apparatus including:

the first determining module is used for determining at least two first videos matched with the search keyword according to the received search keyword from the terminal equipment, wherein the at least two first videos comprise videos of at least two video types;

the first transceiver module is used for sending first video preview information of at least two first videos to the terminal equipment;

the second transceiver module is used for receiving a video acquisition request sent by the terminal device, wherein the video acquisition request is generated in response to a play trigger operation for first target preview information in the first video preview information, and the video acquisition request carries identification information of a first target video corresponding to the first target preview information;

and the second determining module is used for determining at least two second videos according to the video acquiring request and sending the at least two second videos and corresponding second video preview information to the terminal equipment.

Optionally, after the determining, by the first determining module, at least two first videos matching the search keyword, the apparatus further includes:

the first sequencing module is used for sequencing at least two first videos according to the video heat;

when the first transceiver module sends the first video preview information of the at least two first videos to the terminal device, the first transceiver module is specifically configured to:

and sending the first video preview information of the at least two sequenced first videos to the terminal equipment.

Optionally, when determining at least two second videos according to the video acquisition request, the second determining module is specifically configured to perform any one of the following operations:

according to the identification information in the video acquisition request, determining candidate videos of which the video similarity with the first target video meets a first preset condition, and determining videos which belong to the same video type as the first target video from the candidate videos as at least two second videos;

determining the first N videos which are ranked according to the video heat degree and belong to the same video type as the first target video from the candidate videos as at least two second videos, wherein N is a positive integer;

and determining videos which are determined from the candidate videos and belong to the same video type as the first target video, screened from the video database and meet a second preset condition with the similarity videos of the N first videos as at least two second videos.

Optionally, when determining, according to the identification information in the video acquisition request, a candidate video whose video similarity with the first target video meets a first preset condition, the second determining module is specifically configured to:

determining a first target video according to the identification information in the video acquisition request;

respectively calculating the video similarity of the first target video and each video according to the coordinates of the first target video and each video in a pre-stored video database in a similarity algorithm model;

and according to the video similarity, determining candidate videos of which the video similarity with the first target video meets a first preset condition from a video database.

Optionally, when determining, as the second video, the video that is screened from the video database and whose similarity to the N first videos meets the second preset condition, the second determining module is specifically configured to:

determining specific parameter coordinates corresponding to the N first videos according to coordinates of the N first videos in the similarity algorithm model, wherein the specific parameter coordinates comprise average value coordinates of the N first videos or variance value coordinates of the N first videos;

determining coordinates of each video in a pre-stored video database in a similarity algorithm model, and respectively calculating the similarity between the coordinates of each video and the coordinates of the specific parameters;

and determining a second video corresponding to the coordinate with the similarity meeting a second preset condition, which is obtained by screening from the video database according to the similarity.

Optionally, after the second determining module determines at least two second videos according to the video obtaining request, the apparatus further includes:

the second sequencing module is used for sequencing at least two second videos according to user preference, and the user preference is determined by at least one of attribute information of a user and historical watching records of videos watched by the user;

and the third transceiver module is used for sending the at least two second videos and the corresponding second video preview information which are sequenced according to the user preference to the terminal equipment.

The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

32页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于深度学习的案件研判方法及装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!