Information acquisition method and device, electronic equipment and computer readable storage medium

By obtaining the OG picture of web page video and matching it with the preset media library, the problem of inaccurate identification of video identification information in the prior art is solved, and higher extraction accuracy is achieved.

CN120302113APending Publication Date: 2025-07-11SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510324108.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

Existing web page video recognition technology relies on the analysis of video file metadata and video-related attributes in web pages, and often fails to accurately identify video identification information due to missing or confusion.

Method used

By obtaining the target sharing preview image (OG picture) of the target web page and matching the preset sharing preview image in the preset video media library, the target video identification information is determined using image recognition model or semantic understanding.

Benefits of technology

It improves the accuracy of extracting web video identification information, and provides a more reliable identification method especially when metadata is missing or formats are inconsistent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120302113A_ABST
    Figure CN120302113A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information acquisition method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining a target sharing preview picture corresponding to a target webpage in response to the detection of a playing request for target video information in the target webpage; determining a preset video media resource library, wherein preset sharing preview pictures and preset video identification information corresponding to the preset video information are recorded in the preset video media resource library; and determining target video identification information corresponding to the target video information from each piece of preset video identification information according to a target sharing preview picture and each piece of preset sharing preview picture. The target video identification information corresponding to the target video information is screened from the preset video media asset library through the target sharing preview picture of the important composition of the webpage video, so that the extraction accuracy of the webpage video identification information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of web technologies, and particularly to a method, an apparatus, an electronic device, and a computer-readable storage medium for obtaining information. Background Art

[0002] Displaying videos through web pages is an important means of information presentation. When displaying videos based on web pages, it is usually necessary to collaboratively display the main identification information of the videos, such as the title, language, and type of the videos, so that users can better understand the videos.

[0003] The existing web video recognition mainly relies on the extraction of video file metadata or the parsing of specific texts corresponding to video-related attributes and tag fields in web pages. However, in many cases, the video file metadata and the fields containing information such as the video title in the video web page are missing or prone to confusion, resulting in the inability to extract or accurately identify the main identification information of the web video, such as the video title. Summary of the Invention

[0004] The embodiments of the present application provide a method, an apparatus, an electronic device, and a computer-readable storage medium for obtaining information, which can improve the accuracy of extracting web video identification information.

[0005] In a first aspect, the embodiments of the present application provide a method for obtaining information, the method including:

[0006] In response to detecting a play request for target video information in a target web page, obtaining a target shared preview picture corresponding to the target web page;

[0007] Determining a preset video media library, where the preset video media library records preset shared preview pictures and preset video identification information corresponding to each preset video information;

[0008] According to the target shared preview picture and each of the preset shared preview pictures, determining target video identification information corresponding to the target video information from each of the preset video identification information.

[0009] In a second aspect, the embodiments of the present application further provide an apparatus for obtaining information, the apparatus including:

[0010] An obtaining module, configured to obtain a target shared preview picture corresponding to the target web page in response to detecting a play request for target video information in the target web page;

[0011] A determining module, configured to determine a preset video media library, where the preset video media library records preset shared preview pictures and preset video identification information corresponding to each preset video information;

[0012] A selection module, configured to determine, according to the target sharing preview picture and each of the preset sharing preview pictures, a target video identification information corresponding to the target video information from each of the preset video identification information.

[0013] Optionally, in some embodiments of the present application, the determining, according to the target sharing preview picture and each of the preset sharing preview pictures, a target video identification information corresponding to the target video information from each of the preset video identification information includes:

[0014] Determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures;

[0015] Using the preset video identification information corresponding to the preset sharing preview picture as the target video identification information.

[0016] Optionally, in some embodiments of the present application, the determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures includes:

[0017] Calculating the mean square error between the target sharing preview picture and each of the preset sharing preview pictures;

[0018] Determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the mean square error.

[0019] Optionally, in some embodiments of the present application, the determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures includes:

[0020] Extracting first key points and first descriptors of the target sharing preview picture, and extracting second key points and second descriptors of each of the preset sharing preview pictures through a first image recognition model, and determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the first key points, the first descriptors, each of the second key points and each of the second descriptors; or,

[0021] Extracting a first feature vector of the target sharing preview picture and extracting second feature vectors of each of the preset sharing preview pictures through a second image recognition model, and determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the first feature vector and each of the second feature vectors.

[0022] Optionally, in some embodiments of the present application, the obtaining the target sharing preview picture corresponding to the target web page in response to detecting a play request for the target video information in the target web page includes:

[0023] In response to detecting a play request for target video information in a target web page, obtain video parameter information of the target video information;

[0024] If the video parameter information meets a parameter threshold, extract the target sharing preview image from the web resource file of the target web page.

[0025] Optionally, in some embodiments of the present application, the method further includes:

[0026] If the target sharing preview image is not extracted from the web resource file, extract video association description information from the web resource file;

[0027] Determine target video identification information corresponding to the target video information according to the video association description information through semantic understanding.

[0028] Optionally, in some embodiments of the present application, after determining the target video identification information corresponding to the target video information from the preset video identification information according to the target sharing preview image and each of the preset sharing preview images, the method further includes:

[0029] Screen at least one associated sharing preview image from each of the preset sharing preview images according to the target sharing preview image, where the similarity between each associated sharing preview image and the target sharing preview image meets a preset condition;

[0030] Display associated videos corresponding to each of the associated sharing preview images in a video recommendation list.

[0031] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above information acquisition method are implemented.

[0032] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above information acquisition method are implemented.

[0033] In a fifth aspect, an embodiment of the present application further provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementation manners of the embodiments of the present application.

[0034] In an embodiment of the present application, in response to detecting a play request for target video information in a target web page, a target sharing preview picture corresponding to the target web page is obtained, a preset video media library is determined, and the preset sharing preview pictures and preset video identification information corresponding to each preset video information are recorded in the preset video media library. According to the target sharing preview picture and each preset sharing preview picture, the target video identification information corresponding to the target video information is determined from each preset video identification information.

[0035] Among them, by using the target sharing preview picture which is an important component of the web page video to screen the target video identification information corresponding to the target video information from the preset video media library, the accuracy of extracting the web page video identification information is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following described drawings are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained according to these drawings.

[0037] Figure 1 is a schematic diagram of a scenario where a terminal device provided by an embodiment of the present application executes the information acquisition method;

[0038] Figure 2 is a schematic flowchart of the information acquisition method provided by an embodiment of the present application;

[0039] Figure 3 is a schematic diagram of a target web page provided by an embodiment of the present application;

[0040] Figure 4 is another schematic flowchart of the information acquisition method provided by an embodiment of the present application;

[0041] Figure 5 is a schematic structural diagram of an information acquisition device provided by an embodiment of the present application;

[0042] Figure 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0043] The following will clearly and completely describe the technical solutions in the present application with reference to the drawings in the present application. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present invention.

[0044] The embodiments of the present application provide an information acquisition method, apparatus, electronic device, and computer-readable storage medium. Specifically, the embodiments of the present application provide an information acquisition apparatus applicable to an electronic device, which is used to improve the accuracy of extracting web page video identification information. Specifically, the electronic device includes a terminal device or a server. The terminal device includes, but is not limited to, devices such as mobile phones, computers, TVs, air conditioners, refrigerators, and cars. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN, Content Delivery Network), and big data and artificial intelligence platforms. The server can be directly or indirectly connected through wired or wireless communication methods.

[0045] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the scenario where the terminal device provided by the embodiments of the present application executes the information acquisition method. Among them, the specific execution process of the terminal device executing the information acquisition method is as follows:

[0046] In response to detecting a play request for target video information in a target web page, the terminal device 10 obtains a target sharing preview picture corresponding to the target web page, determines a preset video media library, where preset sharing preview pictures and preset video identification information corresponding to each preset video information are recorded, and determines the target video identification information corresponding to the target video information from each preset video identification information according to the target sharing preview picture and each preset sharing preview picture.

[0047] For example, the user selects a target video to be played through the web page interface of the target web page provided by the terminal device to obtain target video information, and then triggers the terminal device to obtain the target sharing preview picture of the target web page. Among them, the target sharing preview picture includes the OG picture of the target web page. Then, the terminal device matches the target sharing preview picture in the preset video media library and screens the target video identification information corresponding to the target sharing preview picture.

[0048] In summary, the embodiments of the present application screen the target video identification information corresponding to the target video information from the preset video media library through the target sharing preview picture, which is an important component of the web page video, and improve the accuracy of extracting web page video identification information.

[0049] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments. Please refer to Figure 2 , Figure 2The flowchart shows the information acquisition method provided by the embodiments of this application. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown in the flowchart. Specifically, the process of the information acquisition method specifically includes:

[0050] 101. In response to detecting a play request for target video information in a target web page, obtain the target sharing preview picture corresponding to the target web page.

[0051] Among them, the target web page refers to the web page where the video is played. For example, when a user enters a certain web page through the website link search method and selects a video to be played on this web page, the web page where the video is played is the target web page. The target video information refers to the target video that the user clicks to play and is presented on the target web page. Among them, after the user clicks to play the target video through this web page, a play request for the target video is generated.

[0052] Among them, the target sharing preview picture refers to the thumbnail or preview picture that should be displayed when the target web page is shared to a social media platform, also known as the OG (Open Graph) picture. In the embodiments of this application, the target sharing preview picture is also the OG picture corresponding to the target video information in the target web page. For example, please refer to Figure 3 , Figure 3 which is a schematic diagram of the target web page provided by the embodiments of this application. Among them, the target video that the user clicks to play is presented on the target web page. Correspondingly, the OG picture of the current target web page is the OG picture of the target video.

[0053] Among them, since the OG picture is an important feature of the video web page content, that is, an important component of the metadata, the obtained OG picture can accurately represent the target video information and improve the accuracy of the target video identification information determined subsequently.

[0054] 102. Determine a preset video media library, where the preset sharing preview pictures and preset video identification information corresponding to each preset video information are recorded in the preset video media library.

[0055] Among them, the preset video information refers to the preset video. It should be noted that the preset video media library is a database that is preset and contains the preset sharing preview pictures and preset video identification information of each video.

[0056] 103. Determine the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures.

[0057] Among them, by comparing the target sharing preview picture extracted from the current target web page with each preset sharing preview picture in the preset video media library, the target video identification information corresponding to the current target sharing preview picture can be filtered out.

[0058] It should be noted that, in the embodiment of the present application, the target video identification information includes video title information. It can be understood that, based on the need for information acquisition, the information stored in the preset video media library and associated with the target sharing preview picture can be obtained.

[0059] For example, in the embodiment of the present application, in order to improve the user experience, the title of the video is obtained and displayed when the video is played. Therefore, when a play request generated by detecting that the user clicks on the video to play is detected, the target sharing preview picture is obtained and matched with the preset sharing preview pictures in the preset video media library, so as to filter out the video title associated with the target sharing preview picture.

[0060] In summary, in the embodiment of the present application, the target video identification information corresponding to the target video information is filtered out from the preset video media library through the target sharing preview picture, which is an important component of the web page video, improving the accuracy of extracting the web page video identification information.

[0061] Among them, in the embodiment of the present application, the preset video identification information corresponding to the preset sharing preview picture that is the same as the target sharing preview picture in the preset video media library can be used as the target video identification information. That is, optionally, in some embodiments of the present application, the step of "determining the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures" includes:

[0062] Determine the preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures;

[0063] Use the preset video identification information corresponding to this preset sharing preview picture as the target video identification information.

[0064] Among them, if the preset sharing preview picture is the same as the target sharing preview picture, it indicates that the video-related information corresponding to this preset sharing preview picture is the same as the target video information, that is, it corresponds to the same video. Correspondingly, the preset video identification information stored in the preset video media library corresponding to this preset sharing preview picture is also the target video identification information corresponding to the target video information.

[0065] Among them, in the embodiments of the present application, the mean square error can be used to determine whether the target sharing preview picture is consistent with the preset sharing preview picture. That is, optionally, in some embodiments of the present application, the step of "determining the preset sharing preview picture that is consistent with the target sharing preview picture from each of the preset sharing preview pictures" includes:

[0066] Calculating the mean square error between the target sharing preview picture and each of the preset sharing preview pictures;

[0067] Determining the preset sharing preview picture that is consistent with the target sharing preview picture from each of the preset sharing preview pictures according to the mean square error.

[0068] Among them, the mean square error is to calculate the average of the squared differences of the corresponding pixel values of two pictures. The smaller the mean square error, the closer the pictures are.

[0069] Among them, in the embodiments of the present application, the picture consistency comparison can also be performed through a machine learning model. For example, by extracting the key points and descriptors of the picture, and judging whether the target sharing preview picture is consistent with the preset sharing preview picture through the key points and descriptors, or by extracting the feature vectors of the picture, and judging whether the target sharing preview picture is consistent with the preset sharing preview picture through the comparison of the feature vectors. That is, optionally, in some embodiments of the present application, the step of "determining the preset sharing preview picture that is consistent with the target sharing preview picture from each of the preset sharing preview pictures" includes:

[0070] Extracting the first key points and the first descriptors of the target sharing preview picture through a first image recognition model, and extracting the second key points and the second descriptors of each of the preset sharing preview pictures, and determining the preset sharing preview picture that is consistent with the target sharing preview picture from each of the preset sharing preview pictures according to the first key points, the first descriptors, each of the second key points and each of the second descriptors; or,

[0071] Extracting the first feature vector of the target sharing preview picture through a second image recognition model and extracting the second feature vectors of each of the preset sharing preview pictures, and determining the preset sharing preview picture that is consistent with the target sharing preview picture from each of the preset sharing preview pictures according to the first feature vector and each of the second feature vectors.

[0072] Among them, both the first image recognition model and the second image recognition model are machine learning models obtained through training. Among them, the first image recognition model and the second image recognition model can be the same model, or different models trained based on different output requirements.

[0073] Among them, in the embodiments of the present application, since not all played videos meet the user's needs or are for enhancing the user's personalized design space, in the embodiments of the present application, after detecting a play request for target video information, the video parameter information of the target video information can also be preferentially extracted, and by analyzing the video parameter information, it is determined whether to trigger the acquisition of the target video identification information of the target video information. That is, optionally, in some embodiments of the present application, the step "in response to detecting a play request for target video information in a target web page, obtain the target sharing preview picture corresponding to the target web page" includes:

[0074] In response to detecting a play request for target video information in a target web page, obtain the video parameter information of the target video information;

[0075] If the video parameter information meets the parameter threshold, extract the target sharing preview picture from the web resource file of the target web page.

[0076] Among them, the video parameter information includes information such as the format type of the video (such as MP3 or MP4, etc.), duration, resolution, etc. Among them, the user can also customize the video parameter information to be concerned, so that the user can customize the acquisition control of the target video identification information according to personal preferences.

[0077] Among them, the web resource file refers to the HTML file corresponding to the target web page. The picture link (URL) of the target sharing preview picture is obtained from the "OG" field corresponding to the OG picture in this HTML file, and this picture link points to the target sharing preview picture.

[0078] Among them, in the embodiments of the present application, when the target sharing preview picture is not extracted from the web resource file or the extracted target sharing preview picture is incorrect, the target video identification information corresponding to the target video information can also be analyzed in combination with some video association description information of the video. That is, optionally, in some embodiments of the present application, the method further includes:

[0079] If the target sharing preview picture is not extracted from the web resource file, extract the video association description information from the web resource file;

[0080] Determine the target video identification information corresponding to the target video information through semantic understanding according to the video association description information.

[0081] Among them, the video association description information is information associated with the target video information, and is the key text information corresponding to the target video information obtained by extracting the content of specific fields from the HTML file corresponding to the target web page. For example, the key text information includes the title of the video, content description, actor list, or evaluation information, etc.

[0082] It should be noted that, in some cases, there may be partial missing of the key text information, or due to the complex and diverse content and structure of the video web page, it is impossible to directly determine the target video identification information of the target video information or difficult to ensure the accuracy of the determined target video identification information based on the key text information extracted from the web page resource file. Therefore, in the embodiments of the present application, by extracting the video associated description information corresponding to the target video information and comprehensively analyzing and determining the target video identification information corresponding to the target video information through semantic understanding based on the extracted various associated description information, the accuracy of the target video identification information is improved.

[0083] Among them, semantic understanding, also known as semantic parsing, is a natural language processing technology, which involves operations such as word segmentation, part-of-speech tagging, syntactic analysis, semantic analysis, and information extraction. The embodiments of the present application estimate the target video identification information based on the natural language processing technology combined with the video associated description information.

[0084] Among them, in the embodiments of the present application, after obtaining the target sharing preview picture, similar videos can also be recommended for the user according to the target sharing preview picture and each preset sharing preview picture to improve the user's video browsing experience. That is, optionally, in some embodiments of the present application, after the step of "determining the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures", the method further includes:

[0085] Screening at least one associated sharing preview picture from each of the preset sharing preview pictures according to the target sharing preview picture, where the similarity between each associated sharing preview picture and the target sharing preview picture meets a preset condition;

[0086] Displaying the associated videos corresponding to each of the associated sharing preview pictures in the video recommendation list.

[0087] Among them, by screening the preset sharing preview pictures with a relatively high similarity to the target sharing preview picture through picture similarity and pushing the corresponding associated videos in the video recommendation list, the pushing of videos with a relatively high similarity is realized, and the similar video recommendation function is realized.

[0088] In summary, the embodiments of the present application screen the target video identification information corresponding to the target video information from the preset video media library through the target sharing preview picture, which is an important component of the web video, and improves the accuracy of the extraction of the web video identification information.

[0089] Among them, in order to understand the embodiments of the present application more clearly, the steps of the embodiments of the present application will be described as a whole below. Please refer to Figure 4 , Figure 4It is another schematic flowchart of the information acquisition method provided by the embodiments of the present application. Specifically, the information acquisition method includes:

[0090] 111. In response to entering the target web page, intercept the video URL requested by the target web page;

[0091] 112. Extract video parameter information according to the video URL;

[0092] 113. Screen out the target video information that meets the requirements according to the video parameter information and the parameter threshold;

[0093] 114. If the target video information that meets the requirements is screened out, parse the web page resource file of the target web page to obtain the target sharing preview picture;

[0094] Among them, the target sharing preview picture includes the OG picture.

[0095] 115. If the target sharing preview picture is parsed, screen out the target video identification information and the associated sharing preview picture from the preset video media library according to the target sharing preview picture;

[0096] Among them, compare the target sharing preview picture with each preset sharing preview picture in the preset video media library, screen out the preset sharing preview picture that is the same as the target sharing preview picture, and use the preset video identification information corresponding to the preset sharing preview picture as the target video identification information.

[0097] Among them, compare the target sharing preview picture with each preset sharing preview picture in the preset video media library, and screen out the preset sharing preview picture with a relatively high similarity to the target sharing preview picture as the associated sharing preview picture.

[0098] 116. Output the target video identification information, and output the associated video corresponding to the associated sharing preview picture in the video recommendation list.

[0099] In summary, the OG picture is an important feature of the video web page content. Especially when the video-related metadata in the web page is missing, or the video tag attribute formats in different web pages are inconsistent, the OG picture information can be used as an important basis for web page video recognition and has a high recognition accuracy. Compared with the method of parsing through web page resource fields in the prior art, the embodiments of the present application use the OG picture parsed from the web page to identify information such as the title corresponding to the web page video, providing another practical idea for web page video recognition.

[0100] Among them, when the OG picture recognition method fails, semantic analysis is used for web page video recognition, so that the recognition result no longer depends on the video information pointed to by the tags of fixed web resource files. That is, instead of directly taking the content corresponding to the tags as the video recognition result, semantic analysis recognition that comprehensively uses all key text information in the web page is performed, making the recognition result more accurate and having a wider scope of application.

[0101] Compared with the prior art, combining OG picture recognition and semantic analysis methods for web page video recognition helps to greatly improve the accuracy of web page video recognition and expand the coverage of web pages that can be recognized. For example, combining the semantic analysis method enables web pages without OG pictures to also participate in video recognition to obtain recognition results.

[0102] To facilitate better implementation of the information acquisition method of the present application, the present application also provides an information acquisition device based on the above information acquisition method. The meanings of the nouns are the same as those in the above information acquisition method, and the specific implementation details can be referred to the description in the method embodiments.

[0103] Please refer to Figure 5 , Figure 5 which is a schematic structural diagram of the information acquisition device provided by the embodiments of the present application. The information acquisition device can be specifically as follows:

[0104] An acquisition module 201, configured to acquire a target sharing preview picture corresponding to the target web page in response to detecting a play request for target video information in the target web page;

[0105] A determination module 202, configured to determine a preset video media library, where preset sharing preview pictures and preset video identification information corresponding to each preset video information are recorded in the preset video media library;

[0106] A selection module 203, configured to determine target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures.

[0107] Optionally, in some embodiments of the present application, the determining, from each of the preset video identification information, target video identification information corresponding to the target video information according to the target sharing preview picture and each of the preset sharing preview pictures includes:

[0108] Determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures;

[0109] Taking the preset video identification information corresponding to the preset sharing preview picture as the target video identification information.

[0110] Optionally, in some embodiments of the present application, determining the preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures includes:

[0111] Calculating the mean square error between the target sharing preview picture and each of the preset sharing preview pictures;

[0112] Determining the preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the mean square error.

[0113] Optionally, in some embodiments of the present application, determining the preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures includes:

[0114] Extracting the first key points and the first descriptors of the target sharing preview picture, and extracting the second key points and the second descriptors of each of the preset sharing preview pictures through a first image recognition model, and determining the preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the first key points, the first descriptors, each of the second key points and each of the second descriptors; or,

[0115] Extracting the first feature vector of the target sharing preview picture and the second feature vectors of each of the preset sharing preview pictures through a second image recognition model, and determining the preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the first feature vector and each of the second feature vectors.

[0116] Optionally, in some embodiments of the present application, in response to detecting a play request for target video information in a target web page, obtaining the target sharing preview picture corresponding to the target web page includes:

[0117] In response to detecting a play request for target video information in a target web page, obtaining the video parameter information of the target video information;

[0118] If the video parameter information meets the parameter threshold, extracting the target sharing preview picture from the web resource file of the target web page.

[0119] Optionally, in some embodiments of the present application, the method further includes:

[0120] If the target sharing preview picture is not extracted from the web resource file, extracting video-related description information from the web resource file;

[0121] Determining the target video identification information corresponding to the target video information through semantic understanding according to the video-related description information.

[0122] Optionally, in some embodiments of the present application, after determining the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures, the method further includes:

[0123] Screening at least one associated sharing preview picture from each of the preset sharing preview pictures according to the target sharing preview picture, wherein the similarity between each associated sharing preview picture and the target sharing preview picture meets a preset condition;

[0124] Displaying the associated videos corresponding to each of the associated sharing preview pictures in a video recommendation list.

[0125] In an embodiment of the present application, an obtaining module 201 obtains a target sharing preview picture corresponding to the target web page in response to detecting a play request for target video information in the target web page, a determining module 202 determines a preset video media library, and the preset video media library records preset sharing preview pictures and preset video identification information corresponding to each preset video information. A selecting module 203 determines the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures.

[0126] Among them, in the embodiment of the present application, the target video identification information corresponding to the target video information is screened from the preset video media library through the target sharing preview picture which is an important component of the web page video, improving the accuracy of extracting the web page video identification information.

[0127] In addition, the present application further provides an electronic device, as Figure 6 shown, which shows a schematic structural diagram of the electronic device involved in the present application. Specifically:

[0128] The electronic device may include a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, an input unit 304 and other components. Those skilled in the art can understand that Figure 6 the structural diagram of the electronic device shown in does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange different components. Among them:

[0129] The processor 301 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 302, and by invoking the data stored in the memory 302, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 301 either.

[0130] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.); the data storage area can store data created according to the use of the electronic device. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0131] The electronic device further includes a power supply 303 for supplying power to each component. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 303 may also include any components such as one or more DC or AC power supplies, a recharge system, a power device debugging circuit, a power converter or inverter, and a power status indicator.

[0132] The electronic device may further include an input unit 304, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0133] Although not shown, the electronic device may further include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 301 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application programs stored in the memory 302, thereby implementing the steps in any of the information acquisition methods provided in the embodiments of the present application.

[0134] In the embodiment of the present application, in response to detecting a play request for target video information in a target web page, a target sharing preview picture corresponding to the target web page is obtained, a preset video media library is determined, and the preset sharing preview pictures and preset video identification information corresponding to each preset video information are recorded in the preset video media library. According to the target sharing preview picture and each preset sharing preview picture, the target video identification information corresponding to the target video information is determined from each preset video identification information.

[0135] Among them, by using the target sharing preview picture which is an important component of the web page video to screen the target video identification information corresponding to the target video information from the preset video media library, the accuracy of extracting the web page video identification information is improved.

[0136] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0137] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0138] Therefore, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any information acquisition method provided by the present application.

[0139] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0140] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc.

[0141] Since the instructions stored in the computer-readable storage medium can execute the steps in any information acquisition method provided by the present application, the beneficial effects that can be achieved by any information acquisition method provided by the present application can be realized. For details, reference may be made to the previous embodiments, which will not be elaborated herein.

[0142] The above has introduced in detail an information acquisition method, device, electronic device, and computer-readable storage medium provided by this application. Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. An information acquisition method, characterized in that, The method includes: In response to detecting a play request for target video information in a target web page, obtaining a target sharing preview picture corresponding to the target web page; Determining a preset video media library, where preset sharing preview pictures and preset video identification information corresponding to respective preset video information are recorded in the preset video media library; According to the target sharing preview picture and each of the preset sharing preview pictures, determining target video identification information corresponding to the target video information from each of the preset video identification information.

2. The information acquisition method according to claim 1, wherein The determining target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures includes: Determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures; Taking the preset video identification information corresponding to this preset sharing preview picture as the target video identification information.

3. The information acquisition method according to claim 2, wherein The determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures includes: Calculating the mean square error between the target sharing preview picture and each of the preset sharing preview pictures; According to the mean square error, determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures.

4. The information acquisition method according to claim 2, characterized in that The determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures includes: Extracting first key points and first descriptors of the target sharing preview picture, and extracting second key points and second descriptors of each of the preset sharing preview pictures through a first image recognition model, and determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the first key points, the first descriptors, each of the second key points, and each of the second descriptors; or, Extracting a first feature vector of the target sharing preview picture and extracting second feature vectors of each of the preset sharing preview pictures through a second image recognition model, and determining a preset sharing preview picture that is the same as the target sharing preview picture from each of the preset sharing preview pictures according to the first feature vector and each of the second feature vectors.

5. The information acquisition method according to claim 1, wherein The obtaining a target sharing preview picture corresponding to the target web page in response to detecting a play request for target video information in a target web page includes: In response to detecting a play request for target video information in a target web page, obtaining video parameter information of the target video information; If the video parameter information meets a parameter threshold, extracting the target sharing preview picture from the web resource file of the target web page.

6. The information acquisition method according to claim 5, wherein The method further includes: If the target sharing preview picture is not extracted from the web resource file, extracting video association description information from the web resource file; According to the video association description information, determining target video identification information corresponding to the target video information through semantic understanding.

7. The information acquisition method according to claim 1, wherein After determining the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures, the method further includes: Screening at least one associated sharing preview picture from each of the preset sharing preview pictures according to the target sharing preview picture, wherein the similarity between each associated sharing preview picture and the target sharing preview picture meets a preset condition; Displaying the associated videos corresponding to each of the associated sharing preview pictures in a video recommendation list.

8. An information acquisition device, characterized in that, The apparatus includes: An obtaining module, configured to obtain a target sharing preview picture corresponding to the target web page in response to detecting a play request for target video information in the target web page; A determining module, configured to determine a preset video media library, where preset sharing preview pictures and preset video identification information corresponding to each preset video information are recorded in the preset video media library; A selecting module, configured to determine the target video identification information corresponding to the target video information from each of the preset video identification information according to the target sharing preview picture and each of the preset sharing preview pictures.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the information obtaining method according to any one of claims 1-7 are implemented.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, the steps in the information obtaining method according to any one of claims 1-7 are implemented.