WO2020037886A1 - Video associating method and device and computer readable storage medium - Google Patents

Video associating method and device and computer readable storage medium Download PDF

Info

Publication number
WO2020037886A1
WO2020037886A1 PCT/CN2018/120345 CN2018120345W WO2020037886A1 WO 2020037886 A1 WO2020037886 A1 WO 2020037886A1 CN 2018120345 W CN2018120345 W CN 2018120345W WO 2020037886 A1 WO2020037886 A1 WO 2020037886A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
newly uploaded
association
videos
candidate
Prior art date
Application number
PCT/CN2018/120345
Other languages
French (fr)
Chinese (zh)
Inventor
曾金龙
Original Assignee
深圳创维-Rgb电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of WO2020037886A1 publication Critical patent/WO2020037886A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream

Definitions

  • the present application relates to the technical field of video recommendation, and in particular, to a video association method, device, and computer-readable storage medium.
  • this method of attracting users through short videos has the effect of quickly catching the user's attention.
  • the user is required to manually search for video content related to the short video, and to the user Not convenient enough.
  • the main purpose of this application is to provide a video association method, device, and computer-readable storage medium, which aims to solve the problem that when a user is interested in a short video in the prior art, the user is required to manually search for a video related to the short video.
  • Video content is not a convenient technical issue for users.
  • the present application provides a video association method, and the video association method includes the following steps:
  • the step of obtaining a candidate video corresponding to the newly uploaded video includes:
  • the title information of the newly uploaded video is obtained; a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video.
  • a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video.
  • the step of calculating the similarity between the newly uploaded video and each of the videos to be selected includes:
  • the step of obtaining a tag vector of the newly uploaded video and obtaining a tag vector of each of the videos to be selected includes:
  • the step of calculating the similarity between the tag vector of the newly uploaded video and the tag vector of each of the videos to be selected includes:
  • the step of obtaining the target video based on the calculated similarity includes:
  • the method further includes:
  • association relationship between the newly uploaded video and the video corresponding to the association instruction is established.
  • the method further includes:
  • the present application also provides a video-related device.
  • the video-related device includes a memory, a processor, and a video-related program stored on the memory and executable on the processor. The steps of implementing the video association method as described above when the video association program is executed by the processor.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a video-associated program, and the video-associated program is implemented by a processor to implement the video association as described above Method steps.
  • a candidate video corresponding to the newly uploaded video is obtained, where the candidate video includes multiple videos; and the newly uploaded video and the candidate video are calculated.
  • the similarity of each video, and a target video is obtained based on the calculated similarity; the newly uploaded video is associated with the target video.
  • a target video is selected and associated for the newly uploaded video, so that when the user is interested in the newly uploaded video, there is no need to manually search for other videos related to the video, and the associated target video can be directly viewed, which improves the user's Video viewing experience.
  • FIG. 1 is a schematic structural diagram of a video association device in a hardware operating environment according to a solution of an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a first embodiment of a video association method according to this application.
  • FIG. 3 is an association display interface diagram of a first embodiment of a video association method of the present application.
  • FIG. 4 is an association display interface diagram of a second embodiment of a video association method of the present application.
  • FIG. 5 is a schematic diagram of a user autonomous association scenario according to the first embodiment of the video association method of this application.
  • FIG. 6 is a schematic diagram of a user autonomous association scenario according to a second embodiment of a video association method of this application.
  • FIG. 1 is a schematic structural diagram of a video association device in a hardware operating environment according to a solution of an embodiment of the present application.
  • the video-related device may be a smart TV, a PC, or a smart phone, a tablet, or an MP4 (Moving Picture Experts Group Audio Layer 4).
  • Players, portable computers, etc. have a display Functional terminal equipment.
  • the video association device may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display, an input unit such as a keyboard, and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory or a non-volatile memory (for example, a magnetic disk memory).
  • the memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
  • the video association device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
  • sensors such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light.
  • the proximity sensor may turn off the display screen and / or when the mobile terminal is moved to the ear.
  • Backlight As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). It can detect the magnitude and direction of gravity when it is stationary.
  • the mobile terminal can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., here No longer.
  • FIG. 1 does not constitute a limitation on the video-related device, and may include more or fewer components than shown in the figure, or some components may be combined, or different components. Layout.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a video-related program.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect to the client (user) and perform data communication with the client;
  • the processor 1001 can be used to call a video-related program stored in the memory 1005 and perform the following operations:
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • the title information of the newly uploaded video is obtained; a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video.
  • a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video.
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  • the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
  • FIG. 2 is a schematic flowchart of a first embodiment of a video association method of the present application.
  • the video association method includes:
  • Step S10 when a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, where the candidate video includes multiple videos;
  • videos are divided into two types: long videos and short videos.
  • a long video refers to a video whose video duration is greater than or equal to a preset duration
  • a short video refers to a video whose video duration is shorter than a preset duration.
  • a video with a video length of 60 minutes or more is called a long video
  • a video with a video length of less than 60 minutes is called a short video.
  • the video-associated device when the newly uploaded video is a short video, it may obtain a candidate video corresponding to the newly uploaded video from the long video library or obtain it from the short video library.
  • the candidate video corresponding to the newly uploaded video when the newly uploaded video is a long video, the candidate video corresponding to the newly uploaded video is obtained from the long video library or the candidate video corresponding to the newly uploaded video is obtained from the short video library Select video.
  • the candidate video corresponding to the newly uploaded video from the long video library is used as an example for description.
  • a newly uploaded video is received, if the duration of the newly uploaded video is detected and it is detected that the video duration of the newly uploaded video is shorter than the preset duration, it is confirmed that the newly uploaded video is a short video.
  • a formula is a logical formula that operates on strings (including ordinary characters (for example, letters between a to z) and special characters (called "meta characters"). It uses certain predefined characters, and The combination of these specific characters forms a "rule string", which is used to express a filtering logic for strings.
  • a regular expression is a text pattern that describes what to match when searching for text One or more strings), and then search and match in the long video library through the constructed regular expression to obtain the candidate video corresponding to the newly uploaded video.
  • Step S20 Calculate the similarity between the newly uploaded video and each of the videos to be selected, and obtain the target video based on the calculated similarity;
  • step S10 there are multiple videos to be selected based on step S10. For example, there are 5 candidate videos to be obtained, which are candidate video 1, candidate video 2, candidate video 3, candidate video 4, and candidate video 5. Then, the similarity between the newly uploaded video and the candidate videos 1 to 5 is calculated.
  • calculating the similarity between the newly uploaded video and each of the videos to be selected may be: obtaining video information of the newly uploaded video, where the video information includes related information input when the video is uploaded, such as a video title , Actor name, director name, etc. Then, perform word segmentation processing on the video information of the newly uploaded video to obtain a tag vector of the newly uploaded video.
  • the video information of the newly uploaded video includes only the video title information (the user often only enters the video title when uploading a short video), such as "Zombie Supreme Huang Ziyang incarnates as a ghost and eats chicken", which is obtained through word segmentation processing
  • the tag vector A of the newly uploaded video is [Zombie Supreme, Huang Ziyang, Li Gui, Eating Chicken].
  • word segmentation processing may be performed by using a Chinese word segmentation tool, such as jieba, SnowNLP, THULAC, NLPIR, and the like.
  • the video information of each video in the candidate videos (for example, candidate videos 1 to 5) is obtained.
  • candidate videos 1 to 5 are videos in the long video library, the video information is relatively It is relatively complete. Generally, video information including video title, actor name, director name, etc. can be obtained or obtained. You can get video information corresponding to video 1 to be selected, video information 2 corresponding to video 2 to be selected, video information 3 corresponding to video 3 to be selected, video information 4 corresponding to video 4 to be selected, and video corresponding to video 5 to be selected. Information 5. Then perform word segmentation processing on video information 1 to video information 5, respectively, to obtain a tag vector corresponding to the video 1 selected, a tag vector corresponding to the video 2 selected, a tag vector 3 corresponding to the video 3 selected, and a tag vector 4 corresponding to the video 4 selected. 2. The candidate video 5 corresponds to the label vector 5. Then, the similarities S1 to S5 of the label vector A and the label vectors 1 to 5 are calculated, respectively. The calculation method is as follows:
  • N 1 and N 2 are the number of words in the two label vectors
  • N 3 is the number of the same words in the two label vectors.
  • Step S30 Associate the newly uploaded video with the target video.
  • the selected target videos are a candidate video 2, a candidate video 3, and a candidate video 5.
  • FIG. 3 is an association display interface diagram of a first embodiment of a video association method of the present application. As shown in FIG. 3, a prompt message is displayed below the newly uploaded video to remind the user that there are 3 associated videos (that is, corresponding target videos) of the newly uploaded video. If the user clicks the display button, the 3 associated videos are displayed. .
  • FIG. 4 is an association display interface diagram of a second embodiment of a video association method of the present application. After displaying 3 related videos, users can choose to watch.
  • a candidate video corresponding to the newly uploaded video is obtained, where the candidate video includes multiple videos; the newly uploaded video and the candidate video are calculated. The similarity of each video in the video, and obtain the target video based on the calculated similarity; associate the newly uploaded video with the target video.
  • a target video is selected and associated for the newly uploaded video, so that when the user is interested in the newly uploaded video, the user does not need to manually search for other videos related to the video, and can directly watch the associated target video, which improves the user. Video viewing experience.
  • step S10 includes:
  • the title information of the newly uploaded video is obtained; a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video.
  • a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video.
  • the candidate video corresponding to the newly uploaded video from the long video library is used as an example for description.
  • a newly uploaded video is received, if the duration of the newly uploaded video is detected and it is detected that the video duration of the newly uploaded video is shorter than the preset duration, it is confirmed that the newly uploaded video is a short video.
  • a formula is a logical formula that operates on strings (including ordinary characters (for example, letters between a to z) and special characters (called "meta characters"). It uses certain predefined characters, and The combination of these specific characters forms a "rule string", which is used to express a filtering logic for strings.
  • a regular expression is a text pattern that describes what to match when searching for text One or more strings), and then search and match in the long video library through the constructed regular expression to obtain the candidate video corresponding to the newly uploaded video.
  • a candidate video corresponding to a newly uploaded video can be quickly matched, so that a target video can be selected from the candidate videos in the future, narrowing the selection range of subsequent target videos, and improving subsequent selection
  • the relevance of the target video to the newly uploaded video reduces the time required to select the target video.
  • the step of calculating the similarity between the newly uploaded video and each of the videos to be selected includes:
  • step S10 there are multiple videos to be selected based on step S10. For example, there are 5 candidate videos to be obtained, which are candidate video 1, candidate video 2, candidate video 3, candidate video 4, and candidate video 5. Then, the similarity between the newly uploaded video and the candidate videos 1 to 5 is calculated.
  • calculating the similarity between the newly uploaded video and each of the videos to be selected may be: obtaining video information of the newly uploaded video, where the video information includes related information input when the video is uploaded, such as a video title , Actor name, director name, etc. Then, perform word segmentation processing on the video information of the newly uploaded video to obtain a tag vector of the newly uploaded video.
  • the video information of the newly uploaded video includes only the video title information (the user often only enters the video title when uploading a short video), such as "Zombie Supreme Huang Ziyang incarnates as a ghost and eats chicken", which is obtained by word processing
  • the tag vector A of the newly uploaded video is [Zombie Supreme, Huang Ziyang, Li Gui, Eating Chicken].
  • word segmentation processing may be performed by using a Chinese word segmentation tool, such as jieba, SnowNLP, THULAC, NLPIR, and the like.
  • the video information of each video in the candidate videos (for example, candidate videos 1 to 5) is obtained.
  • candidate videos 1 to 5 are videos in the long video library, the video information is relatively It is relatively complete. Generally, video information including video title, actor name, director name, etc. can be obtained or obtained. You can get video information corresponding to video 1 to be selected, video information 2 corresponding to video 2 to be selected, video information 3 corresponding to video 3 to be selected, video information 4 corresponding to video 4 to be selected, and video corresponding to video 5 to be selected. Information 5. Then perform word segmentation processing on video information 1 to video information 5, respectively, to obtain a tag vector corresponding to the video 1 selected, a tag vector corresponding to the video 2 selected, a tag vector 3 corresponding to the video 3 selected, and a tag vector 4 corresponding to the video 4 selected. 2. The candidate video 5 corresponds to the label vector 5. Then, the similarities S1 to S5 of the label vector A and the label vectors 1 to 5 are calculated, respectively. The calculation method is as follows:
  • N 1 and N 2 are the number of words in the two label vectors
  • N 3 is the number of the same words in the two label vectors.
  • the similarity between the newly uploaded video and each of the videos to be selected is calculated, so that the subsequent target video selected based on the similarity is more associated with the newly uploaded video, that is, the target video is more in line with the viewing needs of the user.
  • the step of obtaining a tag vector of the newly uploaded video and obtaining a tag vector of each of the videos to be selected includes:
  • calculating the similarity between the newly uploaded video and each of the videos to be selected may be: obtaining video information of the newly uploaded video, where the video information includes related information input when the video is uploaded, such as a video title , Actor name, director name, etc. Then, perform word segmentation processing on the video information of the newly uploaded video to obtain a tag vector of the newly uploaded video.
  • the video information of the newly uploaded video includes only the video title information (the user often only enters the video title when uploading a short video), such as "Zombie Supreme Huang Ziyang incarnates as a ghost and eats chicken", which is obtained through word segmentation processing.
  • the tag vector A of the newly uploaded video is [Zombie Supreme, Huang Ziyang, Li Gui, Eating Chicken].
  • word segmentation processing may be performed by using a Chinese word segmentation tool, such as jieba, SnowNLP, THULAC, NLPIR, and the like.
  • the video information of each video in the candidate videos (for example, candidate videos 1 to 5) is obtained. Since candidate videos 1 to 5 are videos in the long video library, the video information is relatively It is relatively complete, and generally can obtain or obtain video information including video title, actor name, director name and other information.
  • the candidate video 5 corresponds to the label vector 5.
  • the step of calculating the similarity between the tag vector of the newly uploaded video and the tag vector of each of the videos to be selected includes:
  • a word C1 in a tag vector of a newly uploaded video and a word C2 in a tag vector of a candidate video may express the same meaning, but are displayed in different characters.
  • the similarity calculated in this way will deviate from the actual situation, so root correction is required.
  • the root of play, playing, and played is play. For example, if C1 is playing and C2 is played, the playing in C1 is corrected to play, the played in C2 is corrected to play, and then the similarity calculation is performed to make the calculated similarity more realistic. That is, the tag vector is corrected by root correction in English.
  • root correction is performed on the tag vector, so that the similarity obtained in subsequent calculations is more in line with reality, so that the subsequently selected target video is more in line with user viewing needs.
  • the step of obtaining the target video based on the calculated similarity includes:
  • the similarity between the newly uploaded video and each of the videos to be selected can be obtained.
  • the obtained similarity is S1 to S5, and then S1 to S5 are sorted in descending order.
  • Sorting for example, S2> S3> S5> S2> S1
  • the sorting results of corresponding videos 1 to 5 are: video 2 to be selected> video 3 to be selected> video 5 to be selected> video 2 to be selected > To-be-selected video 1, then starting from to-be-selected video 2, select a preset number of videos (for example, three, this value is set according to actual needs, there is no limit here) as the target video.
  • a candidate video with a large similarity is used as a target video, so that the target video displayed in association with the target video is more in line with the user's viewing needs.
  • the method further includes:
  • association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  • the target video may be automatically associated with the newly uploaded video based on steps S10 to S30, and subsequently, the video selected by the user may be associated with the newly uploaded video based on user operations.
  • the video association device when a user feels that the target video automatically associated with the newly uploaded video based on steps S10 to S30 is not suitable for the user's needs, he can click the association button and then add the video A to be associated, the video association device When the association instruction triggered by the user operation is received, the association relationship between the newly uploaded video and the video corresponding to the association instruction (that is, the video A that the user chooses to add) is established.
  • FIG. 5 is a schematic diagram of a user's autonomous association scenario according to the first embodiment of the video association method of the present application.
  • the target video video to be selected 2, video to be selected 3, video to be selected 5
  • FIG. 6 is a schematic diagram of a user's autonomous association scenario according to the second embodiment of the video association method of the present application.
  • the search input box is used to input a search keyword, and after the search is performed, the search result is displayed. The user clicks a search result to select / deselect it, and finally clicks the OK button to trigger the association instruction.
  • the user can participate in the work of video association, which improves the interaction rate with the user and the user's experience.
  • the participation of the user can also make the video association more suitable for the needs of the user.
  • the method after establishing the association between the newly uploaded video and the video corresponding to the association instruction, the method further includes:
  • the established association relationship is: associate video a and video b with the newly uploaded video.
  • Other users can evaluate video a and video b associated with the newly uploaded video. If video a or video b is suitable for viewing needs, they can like video a or video b. If video a or video b is new, Upload videos that are not relevant, you can click dislike. It may be that after the association is established for a period of time (for example, one month later), the feedback information corresponding to the association is obtained, that is, the number of likes Y corresponding to video a or video b and the number N that is marked as dislike.
  • the user account A will be positively stimulated, such as reward points, upgrade account level, etc .; if the value of Y / N is lower than the second threshold (based on the actual situation) Set), then punish user account A, such as disqualifying the account from participating in video association work.
  • a feedback mechanism is established, and rewarding or punishing the user account through the feedback information improves the enthusiasm of the user to participate in the video association work on the one hand, and improves the quality of the video association on the other hand.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a video-associated program, and when the video-associated program is executed by a processor, implements the steps of the video-associated method as described above. .
  • the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better.
  • Implementation Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM / RAM) as described above. , Magnetic disk, optical disc), including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.

Abstract

Disclosed in the present application are a video associating method and device and a computer readable storage medium, the video associating method comprising the following steps: when receiving a new upload video, acquiring videos to be selected corresponding to the new upload video, wherein there are a plurality of videos contained in the videos to be selected; calculating the similarity level between the new upload video and each video among the videos to be selected, and obtaining a target video on the basis of the calculated similarity level; and associating the new upload video with the target video.

Description

视频关联方法、装置及计算机可读存储介质Video association method, device and computer-readable storage medium 技术领域Technical field
本申请涉及视频推荐技术领域,尤其涉及视频关联方法、装置及计算机可读存储介质。The present application relates to the technical field of video recommendation, and in particular, to a video association method, device, and computer-readable storage medium.
背景技术Background technique
互联网的普及带动了信息化数字化的全面发展,网络视频也得到了快速发展。The popularity of the Internet has led to the all-round development of informatization and digitization, and online video has also developed rapidly.
目前,在一些视频软件中,通过短视频来吸引用户,例如,以影视作品中的精彩片段制作的短视频,从而提高视频软件的人气。At present, in some video software, users are attracted by short videos, for example, short videos made with wonderful clips in film and television works, thereby increasing the popularity of video software.
目前这种通过短视频吸引用户的方式,虽然起到了迅速抓住用户眼球的效果,但是当用户对某个短视频感兴趣时,需要用户手动去搜索与该短视频相关的视频内容,对用户来说不够便利。At present, this method of attracting users through short videos has the effect of quickly catching the user's attention. However, when a user is interested in a short video, the user is required to manually search for video content related to the short video, and to the user Not convenient enough.
发明内容Summary of the Invention
本申请的主要目的在于提供一种视频关联方法、装置及计算机可读存储介质,旨在解决现有技术中当用户对某个短视频感兴趣时,需要用户手动去搜索与该短视频相关的视频内容,对用户来说不够便利的技术问题。The main purpose of this application is to provide a video association method, device, and computer-readable storage medium, which aims to solve the problem that when a user is interested in a short video in the prior art, the user is required to manually search for a video related to the short video. Video content is not a convenient technical issue for users.
为实现上述目的,本申请提供一种视频关联方法,所述视频关联方法包括以下步骤:To achieve the above object, the present application provides a video association method, and the video association method includes the following steps:
当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;When a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, wherein the candidate video includes multiple videos;
计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;Calculating the similarity between the newly uploaded video and each of the videos to be selected, and obtaining the target video based on the calculated similarity;
将所述新上传视频与所述目标视频进行关联。Associate the newly uploaded video with the target video.
可选的,所述当接收到新上传视频时,获取所述新上传视频对应的待选视频的步骤包括:Optionally, when a newly uploaded video is received, the step of obtaining a candidate video corresponding to the newly uploaded video includes:
当接收到新上传视频时,获取所述新上传视频的标题信息;基于所述标题信息构建正则表达式,并通过所述正则表达式在视频库中进行匹配,得到所述新上传视频对应的待选视频。When a newly uploaded video is received, the title information of the newly uploaded video is obtained; a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video. Candidate video.
可选的,所述计算所述新上传视频与所述待选视频中各个视频的相似度的步骤包括:Optionally, the step of calculating the similarity between the newly uploaded video and each of the videos to be selected includes:
获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量;Obtaining a tag vector of the newly uploaded video, and obtaining a tag vector of each of the videos to be selected;
计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度。Calculate the similarity between the tag vector of the newly uploaded video and the tag vector of each video in the candidate video.
可选的,所述获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量的步骤包括:Optionally, the step of obtaining a tag vector of the newly uploaded video and obtaining a tag vector of each of the videos to be selected includes:
获取所述新上传视频的视频信息,对所述新上传视频的视频信息进行分词处理,得到所述新上传视频的标签向量;Acquiring video information of the newly uploaded video, performing word segmentation processing on the video information of the newly uploaded video, and obtaining a tag vector of the newly uploaded video;
获取所述待选视频中各个视频的视频信息,对所述待选视频中各个视频的视频信息进行分词处理,得到所述待选视频中各个视频的标签向量。Acquiring video information of each video in the candidate video, performing word segmentation processing on the video information of each video in the candidate video, and obtaining a label vector of each video in the candidate video.
可选的,所述计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度的步骤包括:Optionally, the step of calculating the similarity between the tag vector of the newly uploaded video and the tag vector of each of the videos to be selected includes:
对所述新上传视频的标签向量进行词根矫正,得到第一标签向量,对所述待选视频中各个视频的标签向量进行词根矫正,得到第二标签向量组;Perform root correction on a label vector of the newly uploaded video to obtain a first label vector, perform root correction on a label vector of each video in the candidate video, and obtain a second label vector group;
计算所述第一标签向量与所述第二标签向量组中各个标签向量的相似度。Calculate the similarity between the first label vector and each label vector in the second label vector group.
可选的,所述基于计算得到的相似度得到目标视频的步骤包括:Optionally, the step of obtaining the target video based on the calculated similarity includes:
按照相似度由大至小的顺序,对所述待选视频中各个视频进行排序,得到排序结果;Sorting each of the videos to be selected according to the similarity order, to obtain a ranking result;
从排序结果的首位开始选取预设个数的视频,得到目标视频。Select a preset number of videos from the first position of the ranking result to get the target video.
可选的,所述将所述新上传视频与所述目标视频进行关联之后,还包括:Optionally, after associating the newly uploaded video with the target video, the method further includes:
当接收到用户账号发送的关联指令时,建立所述新上传视频与所 述关联指令对应视频的关联关系。When the association instruction sent by the user account is received, the association relationship between the newly uploaded video and the video corresponding to the association instruction is established.
可选的,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:Optionally, after establishing the association between the newly uploaded video and the video corresponding to the association instruction, the method further includes:
获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
此外,为实现上述目的,本申请还提供一种视频关联装置,所述视频关联装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的视频关联程序,所述视频关联程序被所述处理器执行时实现如上所述的视频关联方法的步骤。In addition, in order to achieve the above-mentioned object, the present application also provides a video-related device. The video-related device includes a memory, a processor, and a video-related program stored on the memory and executable on the processor. The steps of implementing the video association method as described above when the video association program is executed by the processor.
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有视频关联程序,所述视频关联程序被处理器执行时实现如上所述的视频关联方法的步骤。In addition, in order to achieve the above object, the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a video-associated program, and the video-associated program is implemented by a processor to implement the video association as described above Method steps.
本申请中,当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;将所述新上传视频与所述目标视频进行关联。通过本申请,为新上传视频选取目标视频并关联,使得用户在对新上传视频感兴趣时,无需手动去搜索与该视频相关的其他视频,可直接观看已关联的目标视频,提升了用户的视频观看体验。In this application, when a newly uploaded video is received, a candidate video corresponding to the newly uploaded video is obtained, where the candidate video includes multiple videos; and the newly uploaded video and the candidate video are calculated. The similarity of each video, and a target video is obtained based on the calculated similarity; the newly uploaded video is associated with the target video. Through this application, a target video is selected and associated for the newly uploaded video, so that when the user is interested in the newly uploaded video, there is no need to manually search for other videos related to the video, and the associated target video can be directly viewed, which improves the user's Video viewing experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例方案涉及的硬件运行环境的视频关联装置结构示意图;FIG. 1 is a schematic structural diagram of a video association device in a hardware operating environment according to a solution of an embodiment of the present application; FIG.
图2为本申请视频关联方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of a first embodiment of a video association method according to this application;
图3为本申请视频关联方法第一实施例的关联显示界面图;FIG. 3 is an association display interface diagram of a first embodiment of a video association method of the present application; FIG.
图4为本申请视频关联方法第二实施例的关联显示界面图;4 is an association display interface diagram of a second embodiment of a video association method of the present application;
图5为本申请视频关联方法第一实施例的用户自主关联场景示意图;FIG. 5 is a schematic diagram of a user autonomous association scenario according to the first embodiment of the video association method of this application; FIG.
图6为本申请视频关联方法第二实施例的用户自主关联场景示意图。FIG. 6 is a schematic diagram of a user autonomous association scenario according to a second embodiment of a video association method of this application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features and advantages of the purpose of this application will be further described with reference to the embodiments and the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
如图1所示,图1为本申请实施例方案涉及的硬件运行环境的视频关联装置结构示意图。As shown in FIG. 1, FIG. 1 is a schematic structural diagram of a video association device in a hardware operating environment according to a solution of an embodiment of the present application.
本申请实施例视频关联装置可以是智能电视、PC,也可以是智能手机、平板电脑、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、便携计算机等具有显示功能的终端设备。In the embodiment of the present application, the video-related device may be a smart TV, a PC, or a smart phone, a tablet, or an MP4 (Moving Picture Experts Group Audio Layer 4). Players, portable computers, etc. have a display Functional terminal equipment.
如图1所示,该视频关联装置可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the video association device may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display, an input unit such as a keyboard, and the optional user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (for example, a magnetic disk memory). The memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
可选地,视频关联装置还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲 击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the video association device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light. The proximity sensor may turn off the display screen and / or when the mobile terminal is moved to the ear. Backlight. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). It can detect the magnitude and direction of gravity when it is stationary. It can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. Of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., here No longer.
本领域技术人员可以理解,图1中示出的视频关联装置结构并不构成对视频关联装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the video-related device shown in FIG. 1 does not constitute a limitation on the video-related device, and may include more or fewer components than shown in the figure, or some components may be combined, or different components. Layout.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及视频关联程序。As shown in FIG. 1, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a video-related program.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的视频关联程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user) and perform data communication with the client; and the processor 1001 can be used to call a video-related program stored in the memory 1005 and perform the following operations:
当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;When a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, wherein the candidate video includes multiple videos;
计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;Calculating the similarity between the newly uploaded video and each of the videos to be selected, and obtaining the target video based on the calculated similarity;
将所述新上传视频与所述目标视频进行关联。Associate the newly uploaded video with the target video.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
当接收到新上传视频时,获取所述新上传视频的标题信息;基于所述标题信息构建正则表达式,并通过所述正则表达式在视频库中进行匹配,得到所述新上传视频对应的待选视频。When a newly uploaded video is received, the title information of the newly uploaded video is obtained; a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video. Candidate video.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量;Obtaining a tag vector of the newly uploaded video, and obtaining a tag vector of each of the videos to be selected;
计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度。Calculate the similarity between the tag vector of the newly uploaded video and the tag vector of each video in the candidate video.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
获取所述新上传视频的视频信息,对所述新上传视频的视频信息 进行分词处理,得到所述新上传视频的标签向量;Acquiring video information of the newly uploaded video, performing word segmentation processing on the video information of the newly uploaded video, and obtaining a tag vector of the newly uploaded video;
获取所述待选视频中各个视频的视频信息,对所述待选视频中各个视频的视频信息进行分词处理,得到所述待选视频中各个视频的标签向量。Acquiring video information of each video in the candidate video, performing word segmentation processing on the video information of each video in the candidate video, and obtaining a label vector of each video in the candidate video.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
对所述新上传视频的标签向量进行词根矫正,得到第一标签向量,对所述待选视频中各个视频的标签向量进行词根矫正,得到第二标签向量组;Perform root correction on a label vector of the newly uploaded video to obtain a first label vector, perform root correction on a label vector of each video in the candidate video, and obtain a second label vector group;
计算所述第一标签向量与所述第二标签向量组中各个标签向量的相似度。Calculate the similarity between the first label vector and each label vector in the second label vector group.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
按照相似度由大至小的顺序,对所述待选视频中各个视频进行排序,得到排序结果;Sorting each of the videos to be selected according to the similarity order, to obtain a ranking result;
从排序结果的首位开始选取预设个数的视频,得到目标视频。Select a preset number of videos from the first position of the ranking result to get the target video.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
进一步地,处理器1001可以调用存储器1005中存储的视频关联程序,还执行以下操作:Further, the processor 1001 may call a video-associated program stored in the memory 1005, and further perform the following operations:
获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
参照图2,图2为本申请视频关联方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a video association method of the present application.
在一实施例中,视频关联方法包括:In one embodiment, the video association method includes:
步骤S10,当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;Step S10: when a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, where the candidate video includes multiple videos;
本实施例中,将视频分为长视频和短视频两个类型。其中,长视频指视频时长大于或等于预设时长的视频,短视频指视频时长小于预 设时长的视频。例如,将视频时长大于或等于60分钟的视频称作长视频,将视频时长小于60分钟的视频称作短视频。In this embodiment, videos are divided into two types: long videos and short videos. Among them, a long video refers to a video whose video duration is greater than or equal to a preset duration, and a short video refers to a video whose video duration is shorter than a preset duration. For example, a video with a video length of 60 minutes or more is called a long video, and a video with a video length of less than 60 minutes is called a short video.
本实施例中,当视频关联装置接收到新上传视频时,可以是在新上传视频为短视频时,从长视频片库中获取新上传视频对应的待选视频或从短视频片库中获取新上传视频对应的待选视频;还可以是在新上传视频为长视频时,从长视频片库中获取新上传视频对应的待选视频或从短视频片库中获取新上传视频对应的待选视频。In this embodiment, when the video-associated device receives a newly uploaded video, when the newly uploaded video is a short video, it may obtain a candidate video corresponding to the newly uploaded video from the long video library or obtain it from the short video library. The candidate video corresponding to the newly uploaded video; when the newly uploaded video is a long video, the candidate video corresponding to the newly uploaded video is obtained from the long video library or the candidate video corresponding to the newly uploaded video is obtained from the short video library Select video.
本申请视频关联方法一可选实施例中,以新上传视频为短视频时,从长视频片库中获取新上传视频对应的待选视频为例进行说明。当接收到新上传视频时,若通过对新上传视频的时长视频进行检测,检测到该新上传视频的视频时长小于预设时长,则确认该新上传视频为短视频。获取该新上传视频的标题信息(视频在被上传时会被要求输入视频标题,因此可以基于输入的视频标题,获取新上传视频的标题信息),并基于该标题信息构建正则表达式(正则表达式是对字符串(包括普通字符(例如,a到z之间的字母)和特殊字符(称为“元字符”))操作的一种逻辑公式,就是用事先定义好的一些特定字符、及这些特定字符的组合,组成一个“规则字符串”,这个“规则字符串”用来表达对字符串的一种过滤逻辑。正则表达式是一种文本模式,模式描述在搜索文本时要匹配的一个或多个字符串),然后通过构建的正则表达式在长视频片库中进行搜索匹配,得到新上传视频对应的待选视频。In an optional embodiment of the video association method of the present application, when the newly uploaded video is a short video, the candidate video corresponding to the newly uploaded video from the long video library is used as an example for description. When a newly uploaded video is received, if the duration of the newly uploaded video is detected and it is detected that the video duration of the newly uploaded video is shorter than the preset duration, it is confirmed that the newly uploaded video is a short video. Get the title information of the newly uploaded video (the video will be required to enter the video title when it is uploaded, so you can get the title information of the newly uploaded video based on the input video title), and build a regular expression (regular expression based on the title information) A formula is a logical formula that operates on strings (including ordinary characters (for example, letters between a to z) and special characters (called "meta characters"). It uses certain predefined characters, and The combination of these specific characters forms a "rule string", which is used to express a filtering logic for strings. A regular expression is a text pattern that describes what to match when searching for text One or more strings), and then search and match in the long video library through the constructed regular expression to obtain the candidate video corresponding to the newly uploaded video.
步骤S20,计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;Step S20: Calculate the similarity between the newly uploaded video and each of the videos to be selected, and obtain the target video based on the calculated similarity;
本实施例中,基于步骤S10获取的待选视频,一般来说会有多个。例如,获取的待选视频有5个,分别为待选视频1、待选视频2、待选视频3、待选视频4、待选视频5。则分别计算新上传视频与待选视频1至待选视频5的相似度。In this embodiment, generally, there are multiple videos to be selected based on step S10. For example, there are 5 candidate videos to be obtained, which are candidate video 1, candidate video 2, candidate video 3, candidate video 4, and candidate video 5. Then, the similarity between the newly uploaded video and the candidate videos 1 to 5 is calculated.
本申请一实施例中,计算新上传视频与待选视频中各个视频的相似度可以是:获取新上传视频的视频信息,其中,视频信息包括该视频被上传时输入的相关信息,例如视频标题、演员名、导演名等。然后,对新上传视频的视频信息进行分词处理,得到新上传视频的标签 向量。一实施例中,新上传视频的视频信息中仅包括视频标题信息(用户在上传短视频时,往往只会输入视频标题),例如“僵尸至尊黄子扬化身厉鬼吃鸡”,通过分词处理,得到的新上传视频的标签向量A为[僵尸至尊,黄子扬,厉鬼,吃鸡]。本实施例中,可通过中文分词工具,如jieba、SnowNLP、THULAC、NLPIR等进行分词处理。同样的,获取待选视频中各个视频(例如待选视频1至待选视频5)的视频信息,由于待选视频1至待选视频5为长视频片库中的视频,其视频信息相对来说比较完整,一般均可或得到包含视频标题、演员名、导演名等信息的视频信息。即可得到待选视频1对应的视频信息1、待选视频2对应的视频信息2、待选视频3对应的视频信息3、待选视频4对应的视频信息4、待选视频5对应的视频信息5。然后分别对视频信息1至视频信息5进行分词处理,得到待选视频1对应标签向量1、待选视频2对应标签向量2、待选视频3对应标签向量3、待选视频4对应标签向量4、待选视频5对应标签向量5。然后分别计算标签向量A与标签向量1至标签向量5的相似度S1至S5。计算方式如下:In an embodiment of the present application, calculating the similarity between the newly uploaded video and each of the videos to be selected may be: obtaining video information of the newly uploaded video, where the video information includes related information input when the video is uploaded, such as a video title , Actor name, director name, etc. Then, perform word segmentation processing on the video information of the newly uploaded video to obtain a tag vector of the newly uploaded video. In one embodiment, the video information of the newly uploaded video includes only the video title information (the user often only enters the video title when uploading a short video), such as "Zombie Supreme Huang Ziyang incarnates as a ghost and eats chicken", which is obtained through word segmentation processing The tag vector A of the newly uploaded video is [Zombie Supreme, Huang Ziyang, Li Gui, Eating Chicken]. In this embodiment, word segmentation processing may be performed by using a Chinese word segmentation tool, such as jieba, SnowNLP, THULAC, NLPIR, and the like. Similarly, the video information of each video in the candidate videos (for example, candidate videos 1 to 5) is obtained. Since candidate videos 1 to 5 are videos in the long video library, the video information is relatively It is relatively complete. Generally, video information including video title, actor name, director name, etc. can be obtained or obtained. You can get video information corresponding to video 1 to be selected, video information 2 corresponding to video 2 to be selected, video information 3 corresponding to video 3 to be selected, video information 4 corresponding to video 4 to be selected, and video corresponding to video 5 to be selected. Information 5. Then perform word segmentation processing on video information 1 to video information 5, respectively, to obtain a tag vector corresponding to the video 1 selected, a tag vector corresponding to the video 2 selected, a tag vector 3 corresponding to the video 3 selected, and a tag vector 4 corresponding to the video 4 selected. 2. The candidate video 5 corresponds to the label vector 5. Then, the similarities S1 to S5 of the label vector A and the label vectors 1 to 5 are calculated, respectively. The calculation method is as follows:
Figure PCTCN2018120345-appb-000001
Figure PCTCN2018120345-appb-000001
其中,N 1、N 2分别为两标签向量中词的个数,N 3为两标签向量中相同的词的个数。通过上述计算后,便可得到新上传视频与待选视频中各个视频的相似度,例如得到的相似度为S1至S5,然后将S1至S5按照由大到小的顺序进行排序,例如S2>S3>S5>S2>S1,则相应的待选视频1至待选视频5的排序结果为:待选视频2>待选视频3>待选视频5>待选视频2>待选视频1,然后从待选视频2开始,选取预设个数(例如3个,该数值根据实际需要进行设置,在此不作限制)的视频,作为目标视频。 Among them, N 1 and N 2 are the number of words in the two label vectors, and N 3 is the number of the same words in the two label vectors. After the above calculation, the similarity between the newly uploaded video and each video in the candidate video can be obtained. For example, the obtained similarity is S1 to S5, and then S1 to S5 are sorted in descending order, such as S2>S3>S5>S2> S1, the corresponding results of the videos 1 to 5 selected are: video 2 to be selected> video 3 to be selected> video 5 to be selected> video 2 to be selected> video 1 to be selected, Then, starting from video 2 to be selected, a preset number of videos (for example, 3, which is set according to actual needs, and there is no limitation here) is selected as the target video.
步骤S30,将所述新上传视频与所述目标视频进行关联。Step S30: Associate the newly uploaded video with the target video.
本申请一实施例中,经过步骤S20之后,选取的目标视频为待选视频2、待选视频3以及待选视频5。参照图3,图3为本申请视频关联方法第一实施例的关联显示界面图。如图3所示,在新上传视频 的下面显示提示信息,提示用户该新上传视频的关联视频(即对应的目标视频)有3个,若用户点击显示按钮,则将3个关联视频显示出来。参照图4,图4为本申请视频关联方法第二实施例的关联显示界面图。将3个关联视频显示后,用户便可选择观看。In an embodiment of the present application, after step S20, the selected target videos are a candidate video 2, a candidate video 3, and a candidate video 5. Referring to FIG. 3, FIG. 3 is an association display interface diagram of a first embodiment of a video association method of the present application. As shown in FIG. 3, a prompt message is displayed below the newly uploaded video to remind the user that there are 3 associated videos (that is, corresponding target videos) of the newly uploaded video. If the user clicks the display button, the 3 associated videos are displayed. . Referring to FIG. 4, FIG. 4 is an association display interface diagram of a second embodiment of a video association method of the present application. After displaying 3 related videos, users can choose to watch.
本实施例中,当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;将所述新上传视频与所述目标视频进行关联。通过本实施例,为新上传视频选取目标视频并关联,使得用户在对新上传视频感兴趣时,无需手动去搜索与该视频相关的其他视频,可直接观看已关联的目标视频,提升了用户的视频观看体验。In this embodiment, when a newly uploaded video is received, a candidate video corresponding to the newly uploaded video is obtained, where the candidate video includes multiple videos; the newly uploaded video and the candidate video are calculated. The similarity of each video in the video, and obtain the target video based on the calculated similarity; associate the newly uploaded video with the target video. With this embodiment, a target video is selected and associated for the newly uploaded video, so that when the user is interested in the newly uploaded video, the user does not need to manually search for other videos related to the video, and can directly watch the associated target video, which improves the user. Video viewing experience.
进一步的,本申请视频关联方法一实施例中,步骤S10包括:Further, in an embodiment of the video association method of this application, step S10 includes:
当接收到新上传视频时,获取所述新上传视频的标题信息;基于所述标题信息构建正则表达式,并通过所述正则表达式在视频库中进行匹配,得到所述新上传视频对应的待选视频。When a newly uploaded video is received, the title information of the newly uploaded video is obtained; a regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain the corresponding information of the newly uploaded video. Candidate video.
本申请视频关联方法一可选实施例中,以新上传视频为短视频时,从长视频片库中获取新上传视频对应的待选视频为例进行说明。当接收到新上传视频时,若通过对新上传视频的时长视频进行检测,检测到该新上传视频的视频时长小于预设时长,则确认该新上传视频为短视频。获取该新上传视频的标题信息(视频在被上传时会被要求输入视频标题,因此可以基于输入的视频标题,获取新上传视频的标题信息),并基于该标题信息构建正则表达式(正则表达式是对字符串(包括普通字符(例如,a到z之间的字母)和特殊字符(称为“元字符”))操作的一种逻辑公式,就是用事先定义好的一些特定字符、及这些特定字符的组合,组成一个“规则字符串”,这个“规则字符串”用来表达对字符串的一种过滤逻辑。正则表达式是一种文本模式,模式描述在搜索文本时要匹配的一个或多个字符串),然后通过构建的正则表达式在长视频片库中进行搜索匹配,得到新上传视频对应的待选视频。In an optional embodiment of the video association method of the present application, when the newly uploaded video is a short video, the candidate video corresponding to the newly uploaded video from the long video library is used as an example for description. When a newly uploaded video is received, if the duration of the newly uploaded video is detected and it is detected that the video duration of the newly uploaded video is shorter than the preset duration, it is confirmed that the newly uploaded video is a short video. Get the title information of the newly uploaded video (the video will be required to enter the video title when it is uploaded, so you can get the title information of the newly uploaded video based on the input video title), and build a regular expression (regular expression based on the title information) A formula is a logical formula that operates on strings (including ordinary characters (for example, letters between a to z) and special characters (called "meta characters"). It uses certain predefined characters, and The combination of these specific characters forms a "rule string", which is used to express a filtering logic for strings. A regular expression is a text pattern that describes what to match when searching for text One or more strings), and then search and match in the long video library through the constructed regular expression to obtain the candidate video corresponding to the newly uploaded video.
本实施例中,基于正则表达式,可以快速匹配到新上传视频对应的待选视频,使得后续可以从待选视频中选取目标视频,缩小了后续 目标视频的选取范围,一方面提高了后续选取的目标视频与新上传视频的关联度,另一方面减少了选取目标视频所需的时间。In this embodiment, based on a regular expression, a candidate video corresponding to a newly uploaded video can be quickly matched, so that a target video can be selected from the candidate videos in the future, narrowing the selection range of subsequent target videos, and improving subsequent selection The relevance of the target video to the newly uploaded video on the other hand reduces the time required to select the target video.
进一步的,本申请视频关联方法一实施例中,所述计算所述新上传视频与所述待选视频中各个视频的相似度的步骤包括:Further, in an embodiment of the video association method of the present application, the step of calculating the similarity between the newly uploaded video and each of the videos to be selected includes:
获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量;Obtaining a tag vector of the newly uploaded video, and obtaining a tag vector of each of the videos to be selected;
计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度。Calculate the similarity between the tag vector of the newly uploaded video and the tag vector of each video in the candidate video.
本实施例中,基于步骤S10获取的待选视频,一般来说会有多个。例如,获取的待选视频有5个,分别为待选视频1、待选视频2、待选视频3、待选视频4、待选视频5。则分别计算新上传视频与待选视频1至待选视频5的相似度。In this embodiment, generally, there are multiple videos to be selected based on step S10. For example, there are 5 candidate videos to be obtained, which are candidate video 1, candidate video 2, candidate video 3, candidate video 4, and candidate video 5. Then, the similarity between the newly uploaded video and the candidate videos 1 to 5 is calculated.
本申请一实施例中,计算新上传视频与待选视频中各个视频的相似度可以是:获取新上传视频的视频信息,其中,视频信息包括该视频被上传时输入的相关信息,例如视频标题、演员名、导演名等。然后,对新上传视频的视频信息进行分词处理,得到新上传视频的标签向量。一实施例中,新上传视频的视频信息中仅包括视频标题信息(用户在上传短视频时,往往只会输入视频标题),例如“僵尸至尊黄子扬化身厉鬼吃鸡”,通过分词处理,得到的新上传视频的标签向量A为[僵尸至尊,黄子扬,厉鬼,吃鸡]。本实施例中,可通过中文分词工具,如jieba、SnowNLP、THULAC、NLPIR等进行分词处理。同样的,获取待选视频中各个视频(例如待选视频1至待选视频5)的视频信息,由于待选视频1至待选视频5为长视频片库中的视频,其视频信息相对来说比较完整,一般均可或得到包含视频标题、演员名、导演名等信息的视频信息。即可得到待选视频1对应的视频信息1、待选视频2对应的视频信息2、待选视频3对应的视频信息3、待选视频4对应的视频信息4、待选视频5对应的视频信息5。然后分别对视频信息1至视频信息5进行分词处理,得到待选视频1对应标签向量1、待选视频2对应标签向量2、待选视频3对应标签向量3、待选视频4对应标签向量4、待选视频5对应标签向量5。然后分别 计算标签向量A与标签向量1至标签向量5的相似度S1至S5。计算方式如下:In an embodiment of the present application, calculating the similarity between the newly uploaded video and each of the videos to be selected may be: obtaining video information of the newly uploaded video, where the video information includes related information input when the video is uploaded, such as a video title , Actor name, director name, etc. Then, perform word segmentation processing on the video information of the newly uploaded video to obtain a tag vector of the newly uploaded video. In one embodiment, the video information of the newly uploaded video includes only the video title information (the user often only enters the video title when uploading a short video), such as "Zombie Supreme Huang Ziyang incarnates as a ghost and eats chicken", which is obtained by word processing The tag vector A of the newly uploaded video is [Zombie Supreme, Huang Ziyang, Li Gui, Eating Chicken]. In this embodiment, word segmentation processing may be performed by using a Chinese word segmentation tool, such as jieba, SnowNLP, THULAC, NLPIR, and the like. Similarly, the video information of each video in the candidate videos (for example, candidate videos 1 to 5) is obtained. Since candidate videos 1 to 5 are videos in the long video library, the video information is relatively It is relatively complete. Generally, video information including video title, actor name, director name, etc. can be obtained or obtained. You can get video information corresponding to video 1 to be selected, video information 2 corresponding to video 2 to be selected, video information 3 corresponding to video 3 to be selected, video information 4 corresponding to video 4 to be selected, and video corresponding to video 5 to be selected. Information 5. Then perform word segmentation processing on video information 1 to video information 5, respectively, to obtain a tag vector corresponding to the video 1 selected, a tag vector corresponding to the video 2 selected, a tag vector 3 corresponding to the video 3 selected, and a tag vector 4 corresponding to the video 4 selected. 2. The candidate video 5 corresponds to the label vector 5. Then, the similarities S1 to S5 of the label vector A and the label vectors 1 to 5 are calculated, respectively. The calculation method is as follows:
Figure PCTCN2018120345-appb-000002
Figure PCTCN2018120345-appb-000002
其中,N 1、N 2分别为两标签向量中词的个数,N 3为两标签向量中相同的词的个数。通过上述计算后,便可得到新上传视频与待选视频中各个视频的相似度。 Among them, N 1 and N 2 are the number of words in the two label vectors, and N 3 is the number of the same words in the two label vectors. After the above calculation, the similarity between the newly uploaded video and each of the videos to be selected can be obtained.
本实施例中,计算新上传视频与待选视频中各个视频的相似度,使得后续基于相似度选取的目标视频与新上传视频的关联度更高,即使得目标视频更符合用户的观看需要。In this embodiment, the similarity between the newly uploaded video and each of the videos to be selected is calculated, so that the subsequent target video selected based on the similarity is more associated with the newly uploaded video, that is, the target video is more in line with the viewing needs of the user.
进一步的,本申请视频关联方法一实施例中,所述获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量的步骤包括:Further, in an embodiment of the video association method of the present application, the step of obtaining a tag vector of the newly uploaded video and obtaining a tag vector of each of the videos to be selected includes:
获取所述新上传视频的视频信息,对所述新上传视频的视频信息进行分词处理,得到所述新上传视频的标签向量;Acquiring video information of the newly uploaded video, performing word segmentation processing on the video information of the newly uploaded video, and obtaining a tag vector of the newly uploaded video;
获取所述待选视频中各个视频的视频信息,对所述待选视频中各个视频的视频信息进行分词处理,得到所述待选视频中各个视频的标签向量。Acquiring video information of each video in the candidate video, performing word segmentation processing on the video information of each video in the candidate video, and obtaining a label vector of each video in the candidate video.
本申请一实施例中,计算新上传视频与待选视频中各个视频的相似度可以是:获取新上传视频的视频信息,其中,视频信息包括该视频被上传时输入的相关信息,例如视频标题、演员名、导演名等。然后,对新上传视频的视频信息进行分词处理,得到新上传视频的标签向量。一实施例中,新上传视频的视频信息中仅包括视频标题信息(用户在上传短视频时,往往只会输入视频标题),例如“僵尸至尊黄子扬化身厉鬼吃鸡”,通过分词处理,得到的新上传视频的标签向量A为[僵尸至尊,黄子扬,厉鬼,吃鸡]。本实施例中,可通过中文分词工具,如jieba、SnowNLP、THULAC、NLPIR等进行分词处理。同样的,获取待选视频中各个视频(例如待选视频1至待选视频5)的视频信息,由于待选视频1至待选视频5为长视频片库中的视频,其视频信息相对来说比较完整,一般均可或得到包含视频标题、演员名、 导演名等信息的视频信息。即可得到待选视频1对应的视频信息1、待选视频2对应的视频信息2、待选视频3对应的视频信息3、待选视频4对应的视频信息4、待选视频5对应的视频信息5。然后分别对视频信息1至视频信息5进行分词处理,得到待选视频1对应标签向量1、待选视频2对应标签向量2、待选视频3对应标签向量3、待选视频4对应标签向量4、待选视频5对应标签向量5。In an embodiment of the present application, calculating the similarity between the newly uploaded video and each of the videos to be selected may be: obtaining video information of the newly uploaded video, where the video information includes related information input when the video is uploaded, such as a video title , Actor name, director name, etc. Then, perform word segmentation processing on the video information of the newly uploaded video to obtain a tag vector of the newly uploaded video. In one embodiment, the video information of the newly uploaded video includes only the video title information (the user often only enters the video title when uploading a short video), such as "Zombie Supreme Huang Ziyang incarnates as a ghost and eats chicken", which is obtained through word segmentation processing. The tag vector A of the newly uploaded video is [Zombie Supreme, Huang Ziyang, Li Gui, Eating Chicken]. In this embodiment, word segmentation processing may be performed by using a Chinese word segmentation tool, such as jieba, SnowNLP, THULAC, NLPIR, and the like. Similarly, the video information of each video in the candidate videos (for example, candidate videos 1 to 5) is obtained. Since candidate videos 1 to 5 are videos in the long video library, the video information is relatively It is relatively complete, and generally can obtain or obtain video information including video title, actor name, director name and other information. You can get video information corresponding to video 1 to be selected, video information 2 corresponding to video 2 to be selected, video information 3 corresponding to video 3 to be selected, video information 4 corresponding to video 4 to be selected, and video corresponding to video 5 to be selected. Information 5. Then perform word segmentation processing on video information 1 to video information 5, respectively, to obtain a tag vector corresponding to the video 1 selected, a tag vector corresponding to the video 2 selected, a tag vector 3 corresponding to the video 3 selected, and a tag vector 4 corresponding to the video 4 selected. 2. The candidate video 5 corresponds to the label vector 5.
进一步的,本申请视频关联方法一实施例中,所述计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度的步骤包括:Further, in an embodiment of the video association method of the present application, the step of calculating the similarity between the tag vector of the newly uploaded video and the tag vector of each of the videos to be selected includes:
对所述新上传视频的标签向量进行词根矫正,得到第一标签向量,对所述待选视频中各个视频的标签向量进行词根矫正,得到第二标签向量组;Perform root correction on a label vector of the newly uploaded video to obtain a first label vector, perform root correction on a label vector of each video in the candidate video, and obtain a second label vector group;
计算所述第一标签向量与所述第二标签向量组中各个标签向量的相似度。Calculate the similarity between the first label vector and each label vector in the second label vector group.
本实施例中,在新上传视频的标签向量中的某个词C1,与某待选视频的标签向量中的某个词C2,其可能表达的是同一个意思,但以不同的字符显示,如此计算出的相似度便会与实际情况有偏差,因此需要进行词根矫正。以英文环境为例,play、playing、played其词根为play。例如C1为playing,C2为played,则将C1中的playing矫正为play,将C2中的played矫正为play,然后再做相似度计算,使得计算得到的相似度更符合实际。即对英文通过词根矫正的方式对标签向量进行矫正。类似的,在中文环境中,由于用户可能使用某个演员的别称称呼该演员,例如周星驰、周星星、星爷,这几个词其实指的都是周星驰,“周星驰”便是这几个词的词根,若C1为周星星,C2为星爷,则将C1中的周星星矫正为周星驰,将C2中的星爷矫正为周星驰。本实施例中,可以通过为每个演员维护派生词库,以支持词根矫正。例如,在一派生词库中,“周星星”、“星爷”对应的词根均为“周星驰”,则后续在标签向量中出现“周星星”、“星爷”时,自动矫正为“周星驰”。In this embodiment, a word C1 in a tag vector of a newly uploaded video and a word C2 in a tag vector of a candidate video may express the same meaning, but are displayed in different characters. The similarity calculated in this way will deviate from the actual situation, so root correction is required. Taking the English environment as an example, the root of play, playing, and played is play. For example, if C1 is playing and C2 is played, the playing in C1 is corrected to play, the played in C2 is corrected to play, and then the similarity calculation is performed to make the calculated similarity more realistic. That is, the tag vector is corrected by root correction in English. Similarly, in the Chinese environment, because the user may use another name for an actor, such as Zhou Xingchi, Zhou Xingxing, and Xing Ye, these words actually refer to Zhou Xingchi, and "Chou Xingchi" is the word , If C1 is Zhou Xingxing and C2 is Xingye, then the Cing Xingzhi in C1 is corrected to Chow Xingchi, and the Xingye in C2 is corrected to Chow Xingchi. In this embodiment, a derived lexicon can be maintained for each actor to support root correction. For example, in a derivation thesaurus, the roots corresponding to "Xingxing Zhou" and "Xingye" are both "Xingxing Zhou", and then when "Xingxing Zhou" and "Xingye" appear in the label vector, it is automatically corrected to "Xingxing Zhou ".
本实施例中,在做相似度计算前,先对标签向量进行词根矫正, 使得后续计算得到的相似度更符合实际,从而使得后续选取的目标视频更符合用户观看需要。In this embodiment, before performing similarity calculation, root correction is performed on the tag vector, so that the similarity obtained in subsequent calculations is more in line with reality, so that the subsequently selected target video is more in line with user viewing needs.
进一步的,本申请视频关联方法一实施例中,所述基于计算得到的相似度得到目标视频的步骤包括:Further, in an embodiment of the video association method of the present application, the step of obtaining the target video based on the calculated similarity includes:
按照相似度由大至小的顺序,对所述待选视频中各个视频进行排序,得到排序结果;Sorting each of the videos to be selected according to the similarity order, to obtain a ranking result;
从排序结果的首位开始选取预设个数的视频,得到目标视频。Select a preset number of videos from the first position of the ranking result to get the target video.
本实施例中,通过相似度计算后,便可得到新上传视频与待选视频中各个视频的相似度,例如得到的相似度为S1至S5,然后将S1至S5按照由大到小的顺序进行排序,例如S2>S3>S5>S2>S1,则相应的待选视频1至待选视频5的排序结果为:待选视频2>待选视频3>待选视频5>待选视频2>待选视频1,然后从待选视频2开始,选取预设个数(例如3个,该数值根据实际需要进行设置,在此不作限制)的视频,作为目标视频。In this embodiment, after the similarity calculation is performed, the similarity between the newly uploaded video and each of the videos to be selected can be obtained. For example, the obtained similarity is S1 to S5, and then S1 to S5 are sorted in descending order. Sorting, for example, S2> S3> S5> S2> S1, the sorting results of corresponding videos 1 to 5 are: video 2 to be selected> video 3 to be selected> video 5 to be selected> video 2 to be selected > To-be-selected video 1, then starting from to-be-selected video 2, select a preset number of videos (for example, three, this value is set according to actual needs, there is no limit here) as the target video.
本实施例中,将相似度大的待选视频作为目标视频,使得关联显示的目标视频更符合用户观看需要。In this embodiment, a candidate video with a large similarity is used as a target video, so that the target video displayed in association with the target video is more in line with the user's viewing needs.
进一步的,本申请视频关联方法一实施例中,步骤S30之后,还包括:Further, in an embodiment of the video association method of the present application, after step S30, the method further includes:
当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
本实施例中,基于步骤S10至步骤S30可自动为新上传视频关联目标视频,后续,还可基于用户操作,为新上传视频关联用户选择的视频。In this embodiment, the target video may be automatically associated with the newly uploaded video based on steps S10 to S30, and subsequently, the video selected by the user may be associated with the newly uploaded video based on user operations.
本申请一实施例中,当一用户觉得基于步骤S10至步骤S30自动为新上传视频关联的目标视频不够贴合用户需要时,可通过点击关联按钮,然后添加需要关联的视频A,视频关联装置接收到用户操作触发的关联指令时,建立新上传视频与关联指令对应视频(即用户选择添加的视频A)的关联关系。In an embodiment of the present application, when a user feels that the target video automatically associated with the newly uploaded video based on steps S10 to S30 is not suitable for the user's needs, he can click the association button and then add the video A to be associated, the video association device When the association instruction triggered by the user operation is received, the association relationship between the newly uploaded video and the video corresponding to the association instruction (that is, the video A that the user chooses to add) is established.
参照图5,图5为本申请视频关联方法第一实施例的用户自主关联场景示意图。如图5所示,基于步骤S10至步骤S30已自动为新上 传视频关联了目标视频(待选视频2、待选视频3、待选视频5),用户点击“+关联正片”按钮,进入如图6所示的界面。参照图6,图6为本申请视频关联方法第二实施例的用户自主关联场景示意图。如图6所示,搜索输入框用于输入搜索关键字,进行搜索后,显示搜索结果,用户点击某个搜索结果可选择/取消选择,最后点击确定按钮触发关联指令。Referring to FIG. 5, FIG. 5 is a schematic diagram of a user's autonomous association scenario according to the first embodiment of the video association method of the present application. As shown in FIG. 5, based on steps S10 to S30, the target video (video to be selected 2, video to be selected 3, video to be selected 5) has been automatically associated with the newly uploaded video, and the user clicks the "+ associated feature" button to enter the The interface shown in Figure 6. Referring to FIG. 6, FIG. 6 is a schematic diagram of a user's autonomous association scenario according to the second embodiment of the video association method of the present application. As shown in FIG. 6, the search input box is used to input a search keyword, and after the search is performed, the search result is displayed. The user clicks a search result to select / deselect it, and finally clicks the OK button to trigger the association instruction.
本实施例中,用户可参与到视频关联的工作中来,提高了与用户的互动率,提升了用户的体验,用户的参与还可使得视频关联更加贴合用户需要。In this embodiment, the user can participate in the work of video association, which improves the interaction rate with the user and the user's experience. The participation of the user can also make the video association more suitable for the needs of the user.
进一步的,本申请视频关联方法一实施例中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:Further, in an embodiment of the video association method of the present application, after establishing the association between the newly uploaded video and the video corresponding to the association instruction, the method further includes:
获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
本实施例中,当基于用户账号A发送的关联指令,建立的关联关系为:将视频a、视频b与新上传视频关联。其他用户可对该新上传视频关联的视频a以及视频b进行评价,若觉得视频a或视频b很契合观看需求,则可为视频a或视频b点赞,若觉得视频a或视频b与新上传视频的关联性不强,则可点击不喜欢。可以是该关联关系建立一段时间后(例如一个月后),获取该关联关系对应的反馈信息,即视频a或视频b对应的点赞数量Y以及被标记为不喜欢的数量N,若Y/N的值高于第一阈值(根据实际情况进行设置),则对用户账号A进行正向激励,例如奖励积分、提升账号等级等;若Y/N的值低于第二阈值(根据实际情况进行设置),则对用户账号A进行惩罚,例如取消该账号参与视频关联工作的资格。In this embodiment, when based on the association instruction sent by the user account A, the established association relationship is: associate video a and video b with the newly uploaded video. Other users can evaluate video a and video b associated with the newly uploaded video. If video a or video b is suitable for viewing needs, they can like video a or video b. If video a or video b is new, Upload videos that are not relevant, you can click dislike. It may be that after the association is established for a period of time (for example, one month later), the feedback information corresponding to the association is obtained, that is, the number of likes Y corresponding to video a or video b and the number N that is marked as dislike. If Y / If the value of N is higher than the first threshold (set according to the actual situation), the user account A will be positively stimulated, such as reward points, upgrade account level, etc .; if the value of Y / N is lower than the second threshold (based on the actual situation) Set), then punish user account A, such as disqualifying the account from participating in video association work.
本实施例中,建立反馈机制,通过反馈信息对用户账号进行奖励或惩罚一方面提高了用户参与视频关联工作的积极性,另一方面提高了视频关联的质量。In this embodiment, a feedback mechanism is established, and rewarding or punishing the user account through the feedback information improves the enthusiasm of the user to participate in the video association work on the one hand, and improves the quality of the video association on the other hand.
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有视频关联程序,所述视频关联程序被处理器执行时实现如上所述的视频关联方法的步骤。In addition, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a video-associated program, and when the video-associated program is executed by a processor, implements the steps of the video-associated method as described above. .
本申请计算机可读存储介质的具体实施例与上述视频关联方法的各个实施例基本相同,在此不做赘述。The specific embodiments of the computer-readable storage medium of the present application are basically the same as the embodiments of the video association method described above, and are not repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, in this article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, It also includes other elements not explicitly listed, or elements inherent to such a process, method, article, or system. Without more restrictions, an element limited by the sentence "including a ..." does not exclude the existence of other identical elements in the process, method, article, or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the superiority or inferiority of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better. Implementation. Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM) as described above. , Magnetic disk, optical disc), including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present application.
以上仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only optional embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of the application, or directly or indirectly applied to other related technologies The fields are equally included in the patent protection scope of this application.

Claims (20)

  1. 一种视频关联方法,其中,所述视频关联方法包括以下步骤:A video association method, wherein the video association method includes the following steps:
    当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;When a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, wherein the candidate video includes multiple videos;
    计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;Calculating the similarity between the newly uploaded video and each of the videos to be selected, and obtaining the target video based on the calculated similarity;
    将所述新上传视频与所述目标视频进行关联。Associate the newly uploaded video with the target video.
  2. 如权利要求1所述的视频关联方法,其中,所述将所述新上传视频与所述目标视频进行关联之后,还包括:The video association method according to claim 1, wherein after associating the newly uploaded video with the target video, further comprising:
    当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  3. 如权利要求2所述的视频关联方法,其中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:The video association method according to claim 2, wherein after establishing the association between the newly uploaded video and the video corresponding to the association instruction, further comprising:
    获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
  4. 如权利要求1所述的视频关联方法,其中,所述当接收到新上传视频时,获取所述新上传视频对应的待选视频的步骤包括:The video association method according to claim 1, wherein when the newly uploaded video is received, the step of obtaining a candidate video corresponding to the newly uploaded video comprises:
    当接收到新上传视频时,获取所述新上传视频的标题信息;When a newly uploaded video is received, obtaining title information of the newly uploaded video;
    基于所述标题信息构建正则表达式,并通过所述正则表达式在视频库中进行匹配,得到所述新上传视频对应的待选视频。A regular expression is constructed based on the title information, and the regular expression is matched in a video library to obtain a candidate video corresponding to the newly uploaded video.
  5. 如权利要求4所述的视频关联方法,其中,所述将所述新上传视频与所述目标视频进行关联之后,还包括:The video association method according to claim 4, wherein after associating the newly uploaded video with the target video, further comprising:
    当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  6. 如权利要求5所述的视频关联方法,其中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:The video association method according to claim 5, wherein after establishing the association between the newly uploaded video and the video corresponding to the association instruction, further comprising:
    获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
  7. 如权利要求1所述的视频关联方法,其中,所述计算所述新上传视频与所述待选视频中各个视频的相似度的步骤包括:The video association method according to claim 1, wherein the step of calculating the similarity between the newly uploaded video and each of the videos to be selected comprises:
    获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量;Obtaining a tag vector of the newly uploaded video, and obtaining a tag vector of each of the videos to be selected;
    计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度。Calculate the similarity between the tag vector of the newly uploaded video and the tag vector of each video in the candidate video.
  8. 如权利要求7所述的视频关联方法,其中,所述将所述新上传视频与所述目标视频进行关联之后,还包括:The video association method according to claim 7, wherein after associating the newly uploaded video with the target video, further comprising:
    当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  9. 如权利要求8所述的视频关联方法,其中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:The video association method according to claim 8, wherein after establishing the association between the newly uploaded video and the video corresponding to the association instruction, further comprising:
    获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
  10. 如权利要求7所述的视频关联方法,其中,所述获取所述新上传视频的标签向量,获取所述待选视频中各个视频的标签向量的步骤包括:The video association method according to claim 7, wherein the step of obtaining a tag vector of the newly uploaded video and obtaining a tag vector of each of the videos to be selected comprises:
    获取所述新上传视频的视频信息,对所述新上传视频的视频信息进行分词处理,得到所述新上传视频的标签向量;Acquiring video information of the newly uploaded video, performing word segmentation processing on the video information of the newly uploaded video, and obtaining a tag vector of the newly uploaded video;
    获取所述待选视频中各个视频的视频信息,对所述待选视频中各个视频的视频信息进行分词处理,得到所述待选视频中各个视频的标签向量。Acquiring video information of each video in the candidate video, performing word segmentation processing on the video information of each video in the candidate video, and obtaining a label vector of each video in the candidate video.
  11. 如权利要求10所述的视频关联方法,其中,所述将所述新上传视频与所述目标视频进行关联之后,还包括:The video association method according to claim 10, wherein after associating the newly uploaded video with the target video, further comprising:
    当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  12. 如权利要求11所述的视频关联方法,其中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:The video association method according to claim 11, wherein after establishing the association between the newly uploaded video and the video corresponding to the association instruction, further comprising:
    获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
  13. 如权利要求7所述的视频关联方法,其中,所述计算所述新上传视频的标签向量与所述待选视频中各个视频的标签向量的相似度的步骤包括:The video association method according to claim 7, wherein the step of calculating the similarity between the tag vector of the newly uploaded video and the tag vector of each of the videos to be selected comprises:
    对所述新上传视频的标签向量进行词根矫正,得到第一标签向量,对所述待选视频中各个视频的标签向量进行词根矫正,得到第二标签向量组;Perform root correction on a label vector of the newly uploaded video to obtain a first label vector, perform root correction on a label vector of each video in the candidate video, and obtain a second label vector group;
    计算所述第一标签向量与所述第二标签向量组中各个标签向量的相似度。Calculate the similarity between the first label vector and each label vector in the second label vector group.
  14. 如权利要求13所述的视频关联方法,其中,所述将所述新上传视频与所述目标视频进行关联之后,还包括:The video association method according to claim 13, wherein after associating the newly uploaded video with the target video, further comprising:
    当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  15. 如权利要求14所述的视频关联方法,其中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:The video association method according to claim 14, wherein after establishing the association between the newly uploaded video and the video corresponding to the association instruction, further comprising:
    获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
  16. 如权利要求1所述的视频关联方法,其中,所述基于计算得到的相似度得到目标视频的步骤包括:The video association method according to claim 1, wherein the step of obtaining the target video based on the calculated similarity comprises:
    按照相似度由大至小的顺序,对所述待选视频中各个视频进行排序,得到排序结果;Sorting each of the videos to be selected according to the similarity order, to obtain a ranking result;
    从排序结果的首位开始选取预设个数的视频,得到目标视频。Select a preset number of videos from the first position of the ranking result to get the target video.
  17. 如权利要求16所述的视频关联方法,其中,所述将所述新上传视频与所述目标视频进行关联之后,还包括:The video association method according to claim 16, wherein after associating the newly uploaded video with the target video, further comprising:
    当接收到用户账号发送的关联指令时,建立所述新上传视频与所述关联指令对应视频的关联关系。When an association instruction sent by a user account is received, an association relationship between the newly uploaded video and a video corresponding to the association instruction is established.
  18. 如权利要求17所述的视频关联方法,其中,所述建立所述新上传视频与所述关联指令对应视频的关联关系之后,还包括:The video association method according to claim 17, wherein after establishing the association between the newly uploaded video and the video corresponding to the association instruction, further comprising:
    获取所述关联关系对应的反馈信息,并对所述用户账号执行所述反馈信息对应的奖惩措施。Acquiring feedback information corresponding to the association relationship, and performing reward and punishment measures corresponding to the feedback information to the user account.
  19. 一种视频关联装置,其中,所述视频关联装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的视频关联程序,所述视频关联程序被所述处理器执行时实现如下步骤:A video-associated device, wherein the video-associated device includes a memory, a processor, and a video-associated program stored on the memory and executable on the processor; Implement the following steps during execution:
    当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;When a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, wherein the candidate video includes multiple videos;
    计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;Calculating the similarity between the newly uploaded video and each of the videos to be selected, and obtaining the target video based on the calculated similarity;
    将所述新上传视频与所述目标视频进行关联。Associate the newly uploaded video with the target video.
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有视频关联程序,所述视频关联程序被处理器执行时实现如下步骤:A computer-readable storage medium, wherein a video-related program is stored on the computer-readable storage medium, and when the video-related program is executed by a processor, the following steps are implemented:
    当接收到新上传视频时,获取所述新上传视频对应的待选视频,其中,所述待选视频中包含多个视频;When a newly uploaded video is received, obtaining a candidate video corresponding to the newly uploaded video, wherein the candidate video includes multiple videos;
    计算所述新上传视频与所述待选视频中各个视频的相似度,并基于计算得到的相似度得到目标视频;Calculating the similarity between the newly uploaded video and each of the videos to be selected, and obtaining the target video based on the calculated similarity;
    将所述新上传视频与所述目标视频进行关联。Associate the newly uploaded video with the target video.
PCT/CN2018/120345 2018-08-24 2018-12-11 Video associating method and device and computer readable storage medium WO2020037886A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810979343.5A CN109040775A (en) 2018-08-24 2018-08-24 Video correlating method, device and computer readable storage medium
CN201810979343.5 2018-08-24

Publications (1)

Publication Number Publication Date
WO2020037886A1 true WO2020037886A1 (en) 2020-02-27

Family

ID=64624903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120345 WO2020037886A1 (en) 2018-08-24 2018-12-11 Video associating method and device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109040775A (en)
WO (1) WO2020037886A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767796B (en) * 2020-05-29 2023-12-15 北京奇艺世纪科技有限公司 Video association method, device, server and readable storage medium
CN111767814A (en) * 2020-06-19 2020-10-13 北京奇艺世纪科技有限公司 Video determination method and device
CN112328833B (en) * 2020-11-09 2024-03-26 腾讯科技(深圳)有限公司 Label processing method, device and computer readable storage medium
CN113722542A (en) * 2021-08-31 2021-11-30 青岛聚看云科技有限公司 Video recommendation method and display device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102959542A (en) * 2010-06-30 2013-03-06 阿尔卡特朗讯公司 Method and apparatus for managing video content
CN106162351A (en) * 2016-08-02 2016-11-23 合网络技术(北京)有限公司 A kind of video recommendation method and device
CN106686404A (en) * 2016-12-16 2017-05-17 中兴通讯股份有限公司 Video analysis platform, matching method, accurate advertisement delivery method and system
CN106802913A (en) * 2016-12-06 2017-06-06 乐视控股(北京)有限公司 One kind plays content recommendation method and its device
US20180007409A1 (en) * 2015-07-06 2018-01-04 Tencent Technology (Shenzhen) Company Limited Video recommending method, server, and storage media
CN107748759A (en) * 2017-09-21 2018-03-02 广州华多网络科技有限公司 Video pushing method and its equipment
CN107968952A (en) * 2017-12-19 2018-04-27 聚好看科技股份有限公司 A kind of method, apparatus, server and computer-readable storage medium for recommending video

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186550A (en) * 2011-12-27 2013-07-03 盛乐信息技术(上海)有限公司 Method and system for generating video-related video list
US10387431B2 (en) * 2015-08-24 2019-08-20 Google Llc Video recommendation based on video titles
US20170169040A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for recommending video
CN107807964B (en) * 2017-10-11 2021-02-09 咪咕互动娱乐有限公司 Digital content ordering method, apparatus and computer readable storage medium
CN108012192A (en) * 2017-12-25 2018-05-08 北京奇艺世纪科技有限公司 A kind of method and system of identification and the polymerization of video resource

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102959542A (en) * 2010-06-30 2013-03-06 阿尔卡特朗讯公司 Method and apparatus for managing video content
US20180007409A1 (en) * 2015-07-06 2018-01-04 Tencent Technology (Shenzhen) Company Limited Video recommending method, server, and storage media
CN106162351A (en) * 2016-08-02 2016-11-23 合网络技术(北京)有限公司 A kind of video recommendation method and device
CN106802913A (en) * 2016-12-06 2017-06-06 乐视控股(北京)有限公司 One kind plays content recommendation method and its device
CN106686404A (en) * 2016-12-16 2017-05-17 中兴通讯股份有限公司 Video analysis platform, matching method, accurate advertisement delivery method and system
CN107748759A (en) * 2017-09-21 2018-03-02 广州华多网络科技有限公司 Video pushing method and its equipment
CN107968952A (en) * 2017-12-19 2018-04-27 聚好看科技股份有限公司 A kind of method, apparatus, server and computer-readable storage medium for recommending video

Also Published As

Publication number Publication date
CN109040775A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US20180152767A1 (en) Providing related objects during playback of video data
WO2020037886A1 (en) Video associating method and device and computer readable storage medium
US9749283B2 (en) Interactive content in a messaging platform
WO2017181612A1 (en) Personalized video recommendation method and device
US11017024B2 (en) Media content rankings for discovery of novel content
CN105025993B (en) The method and apparatus of ludic activity feeding
KR102059428B1 (en) How to display content viewing devices and their content viewing options
US9652659B2 (en) Mobile device, image reproducing device and server for providing relevant information about image captured by image reproducing device, and method thereof
CN109754316B (en) Product recommendation method, product recommendation system and storage medium
US20170235828A1 (en) Text Digest Generation For Searching Multiple Video Streams
CN106445997B (en) Information processing method and server
WO2016000536A1 (en) Method for activating application program, user terminal and server
CN114564666B (en) Encyclopedia information display method, device, equipment and medium
WO2017113673A1 (en) Picture viewing method and apparatus, and electronic device
CN112818224B (en) Information recommendation method and device, electronic equipment and readable storage medium
US20150154302A1 (en) Information processing apparatus and recording medium
US20200177937A1 (en) Methods, systems, and media for indicating viewership of a video
CN108401173B (en) Mobile live broadcast interactive terminal, method and computer readable storage medium
CN108268644B (en) Video searching method, server and video searching system
CN111095335A (en) Search result based list generation in a single view
US8943525B2 (en) Information processing apparatus, information processing method, and program
CN106936830B (en) Multimedia data playing method and device
TWI506569B (en) A method for image tagging that identifies regions and behavior relationship between different objects
US20200228617A1 (en) Event recording method and apparatus, electronic device, and storage medium
TW201840196A (en) Video recommendation method, server, and client

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18931272

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18931272

Country of ref document: EP

Kind code of ref document: A1