Video index construction method, system and device and storage medium

By calculating the pixel difference between video frames and dynamic filtering, combined with the target detection model, a bitmap index is constructed, which solves the problem of missing important frames in the fixed-interval sampling algorithm and improves the efficiency and accuracy of video retrieval.

CN118733824APending Publication Date: 2024-10-01NANCHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410913200.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the fixed-interval sampling algorithm easily misses important frames when extracting video key frames, resulting in incomplete extraction and affecting the efficiency and accuracy of video retrieval.

Method used

By obtaining the key frame set of the video to be processed, calculating the pixel difference between frames, filtering the key frames based on the preset threshold, inputting the filtered frames into the target detection model, and building a bitmap index to improve the accuracy of key frame extraction. Dynamically adjust frame spacing to reduce redundant frames.

Benefits of technology

It improves the accuracy of key frame extraction, reduces computational overhead and redundant frames, and improves the efficiency and comprehensiveness of video retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733824A_ABST
    Figure CN118733824A_ABST
Patent Text Reader

Abstract

The invention discloses a video index construction method, system and device and a storage medium, and the method comprises the steps: obtaining a first key frame set of a to-be-processed video, and calculating a first pixel difference value between every two adjacent potential key frames in the first key frame set; selecting corresponding potential key frames from the first key frame set based on the first pixel difference value and a preset screening threshold value to form a second key frame set; when a difference value between the first key frame set and the second key frame set meets a preset condition, performing order marking on all potential key frames of the second key frame set to obtain a first key frame sequence number; inputting the second key frame set into the trained target detection model to obtain a first detection label of the second key frame set; and the bitmap index of the to-be-processed video is constructed according to the first detection tag, the first key frame serial number and the preset tag, so that the efficiency and comprehensiveness of video retrieval are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field related to video index construction, and in particular to a video index construction method, system, device and storage medium. Background Art

[0002] Videos have the notable feature of large amounts of data. A video of just a few seconds may contain hundreds of frames, each of which is a complete image, so the amount of data far exceeds that of simple image data. This large amount of data makes video processing and retrieval very complex and difficult. Therefore, optimizing video processing and retrieval technology and improving processing speed and retrieval efficiency have become one of the core challenges in the field of video processing.

[0003] Keyframe extraction is a technology used to accelerate video processing and improve retrieval efficiency. Its basic concept is to select representative and important frames from the video to form a streamlined frame set to represent the content of the entire video. By processing only keyframes instead of full frames, the amount of calculation can be significantly reduced, the processing speed can be improved, and the storage requirements can be reduced. It is particularly suitable for long videos and high-resolution videos. At the same time, keyframes can better represent the video content, reduce the number of frames that need to be processed during retrieval, and thus improve retrieval speed and efficiency.

[0004] At present, key frame extraction algorithms include fixed interval sampling algorithms. Among them, although the fixed interval sampling algorithm is simple and efficient, it is easy to miss some important key frames in the video due to its fixed interval characteristics, resulting in incomplete key frame extraction. Summary of the invention

[0005] The present application aims to at least solve the technical problems existing in the prior art. To this end, the present application proposes a video index construction method, system, device and storage medium, which can improve the accuracy of key frame extraction, reduce computing overhead and redundant frames, and improve the efficiency and comprehensiveness of video retrieval.

[0006] In a first aspect of the present application, a video index construction method is provided, comprising the following steps:

[0007] Acquire a first key frame set of the video to be processed, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed;

[0008] Calculating a first pixel difference between every two adjacent potential key frames in the first key frame set;

[0009] Based on the first pixel difference and a preset screening threshold, selecting corresponding potential key frames from the first key frame set to form a second key frame set;

[0010] When the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number;

[0011] Inputting the second key frame set into a trained object detection model to obtain a first detection label of the second key frame set;

[0012] A bitmap index of the video to be processed is constructed according to the first detection tag, the first key frame sequence number and a preset tag, wherein the preset tag includes all types of the first detection tag.

[0013] The control method according to the embodiment of the present application has at least the following beneficial effects:

[0014] The method obtains a first key frame set of a video to be processed, wherein the first key frame set includes multiple potential key frames, and the potential key frames are video frames selected from the video to be processed; calculates a first pixel difference between each two adjacent potential key frames in the first key frame set; based on the first pixel difference and a preset screening threshold, selects corresponding potential key frames from the first key frame set to form a second key frame set; when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number; the second key frame set is input into a trained target detection model to obtain a first detection label of the second key frame set; a bitmap index of the video to be processed is constructed according to the first detection label, the first key frame sequence number and the preset label, wherein the preset label includes all types of the first detection label. The present application improves the accuracy of key frame extraction by extracting the first key frame set and screening the first key frame set, thereby reducing computational overhead and redundant frames, and improving the efficiency and comprehensiveness of video retrieval.

[0015] According to some embodiments of the present application, the method further includes:

[0016] When the difference between the first key frame set and the second key frame set does not meet a preset condition, calculating a first frame interval according to a preset frame interval and a preset iteration step;

[0017] Acquire a third key frame set of the video to be processed according to the first frame interval;

[0018] Calculating a second pixel difference between every two adjacent potential key frames in the third key frame set;

[0019] Based on the second pixel difference and a preset screening threshold, selecting corresponding potential key frames from the third key frame set to form a fourth key frame set;

[0020] When the difference between the third key frame set and the fourth key frame set meets a preset condition, all potential key frames of the fourth key frame set are sequenced to obtain a second key frame sequence number; the fourth key frame set is input into a trained target detection model to obtain a second detection label of the fourth key frame set; and a bitmap index of the video to be processed is constructed according to the second detection label, the second key frame sequence number and the preset label;

[0021] When the difference between the third key frame set and the fourth key frame set does not meet the preset condition, the second frame interval is calculated according to the preset frame interval and the preset iteration step; the fifth key frame set is obtained according to the second frame interval, and so on, until the difference between the k-1th key frame set and the kth key frame set meets the preset condition, and the bitmap index of the video to be processed is constructed according to the kth key frame set, where k is the number of iterations.

[0022] According to some embodiments of the present application, the method further includes:

[0023] Get the query tag entered by the user;

[0024] When the query tag belongs to the preset tag, searching in the bitmap index according to the query tag to obtain the key frame number corresponding to the query tag;

[0025] Locating the relevant video frames of the video to be processed based on the key frame numbers corresponding to the query tags;

[0026] The relevant video frames are fed back to the user.

[0027] According to some embodiments of the present application, the method further includes:

[0028] When the query tag does not belong to the preset tag, searching in a pre-built tag network according to the query tag to obtain a preset tag corresponding to the query tag;

[0029] Searching in the bitmap index according to a preset tag corresponding to the query tag to obtain a key frame number corresponding to the query tag;

[0030] Locating the relevant video frames of the video to be processed based on the key frame numbers corresponding to the query tags;

[0031] The relevant video frames are fed back to the user.

[0032] According to some embodiments of the present application, the process of constructing the label network includes:

[0033] Based on the preset tags and the preset entities in the knowledge graph, association is performed through a natural language processing method to obtain an association graph;

[0034] Generate an extended label according to the association graph;

[0035] A directed acyclic graph is constructed according to the preset label and the extended label; and the directed acyclic graph is used as a label network, wherein the preset label is an end node of the directed acyclic graph, and the extended label is a branch node of the directed acyclic graph.

[0036] According to some embodiments of the present application, when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number, including:

[0037] Subtract the number of key frames in the first key frame set from the number of key frames in the second key frame set to obtain a difference;

[0038] Dividing the difference by the number of key frames in the first key frame set to obtain a first redundancy rate;

[0039] When the first redundancy rate is within a preset screening threshold range, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number.

[0040] According to some embodiments of the present application, obtaining a first key frame set of the video to be processed includes:

[0041] Acquire a video frame set of the video to be processed according to a first preset frame interval;

[0042] The video frame set is used as the first key frame set.

[0043] In a second aspect of the present application, a video index construction system is provided, the video index construction system comprising:

[0044] A data acquisition module, used to acquire a first key frame set of the video to be processed, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed;

[0045] A first pixel difference calculation module, used for calculating a first pixel difference between every two adjacent potential key frames in the first key frame set;

[0046] a second key frame set screening module, configured to select corresponding potential key frames from the first key frame set based on the first pixel difference and a preset screening threshold value, so as to form a second key frame set;

[0047] A sequence marking module, configured to, when a difference between the first key frame set and the second key frame set satisfies a preset condition, mark all potential key frames of the second key frame set to obtain a first key frame sequence number;

[0048] a detection label acquisition module, configured to input the second key frame set into a trained target detection model to obtain a first detection label of the second key frame set;

[0049] A bitmap index construction module is used to construct a bitmap index of the video to be processed according to the first detection tag, the first key frame sequence number and a preset tag, wherein the preset tag includes all types of the first detection tag.

[0050] The system obtains a first key frame set of a video to be processed, wherein the first key frame set includes multiple potential key frames, and the potential key frames are video frames selected from the video to be processed; calculates a first pixel difference between each two adjacent potential key frames in the first key frame set; based on the first pixel difference and a preset screening threshold, selects corresponding potential key frames from the first key frame set to form a second key frame set; when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number; the second key frame set is input into a trained target detection model to obtain a first detection label of the second key frame set; a bitmap index of the video to be processed is constructed according to the first detection label, the first key frame sequence number and the preset label, wherein the preset label includes all types of the first detection label. The present application improves the accuracy of key frame extraction by extracting the first key frame set and screening the first key frame set, thereby reducing computational overhead and redundant frames, and improving the efficiency and comprehensiveness of video retrieval.

[0051] The third aspect of the present application provides a video index construction electronic device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the above-mentioned video index construction method.

[0052] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned video index construction method.

[0053] It should be noted that the beneficial effects between the second to fourth aspects of the present application and the prior art are the same as the beneficial effects between the above-mentioned video index construction system and the prior art, and will not be described in detail here.

[0054] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0056] Figure 1 is a flowchart of an embodiment of a method for constructing a video index provided by the present application;

[0057] Figure 2 Schematic diagram of a multi-layer label network of an embodiment of the video index construction method provided by the present application;

[0058] Figure 3 is a schematic diagram of a bitmap index of an embodiment of a video index construction method provided by the present application;

[0059] Figure 4 is a structural diagram of an embodiment of a video index construction system provided by the present application;

[0060] Figure 5 It is a schematic structural diagram of an embodiment of an electronic device provided by the present application. DETAILED DESCRIPTION

[0061] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0062] In the description of this application, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0063] In the description of the present application, it should be understood that the descriptions involving orientation, such as the orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0064] In the description of this application, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above terms in this application based on the specific content of the technical solution.

[0065] Before introducing this application, we first give a brief introduction to video databases, data frames, key frames, video retrieval, video analysis, metadata, directed acyclic graphs, indexes, multi-level label networks, redundant video frames, and knowledge graphs.

[0066] Video database: A software system used to manage video data and provide users with content-based retrieval. Video databases usually support the storage, analysis, retrieval, and query of video files.

[0067] Data frame: The basic unit in a video database, representing a still image of a video. A video consists of a series of consecutive frames.

[0068] Keyframe: A frame of special importance in a video sequence, usually used to represent a content summary of the video or for retrieval purposes.

[0069] Video retrieval: The process of retrieving specific video clips or key frames from a video database through a certain query method, which may involve technologies such as content analysis and indexing.

[0070] Video analysis: Perform in-depth analysis of video content, including object detection, tracking, and action recognition, to obtain more specific information about the video content.

[0071] Metadata: Additional information describing the content of a video, such as shooting time, location, and keywords. Metadata is used in video databases to organize and retrieve videos more efficiently.

[0072] Directed Acyclic Graph (DAG): A graph structure consisting of nodes and directed edges, and there are no directed edges that form loops in the graph. A DAG is a directed graph, but it is impossible to start from a node and return to the node along the directed edges. Such a graph is acyclic.

[0073] Index: A data structure in a database used to improve data retrieval efficiency. It can speed up query operations by pointing to a fast retrieval path for data in a table.

[0074] Multi-level label network: A hierarchical structure used to organize and represent the labels of video content. This network consists of pre-defined labels and labels obtained by expanding the associated knowledge graph, forming a multi-layer directed graph structure that contains multi-level labels from concrete to abstract, from fine-grained to coarse-grained.

[0075] Redundant video frames: refers to frames with similar or repeated content in video data, which do not contain new or meaningful information. They do not provide additional value in video data processing, but increase the amount of data and the complexity of processing. In addition, in video retrieval and indexing, redundant frames will lead to unnecessary duplication of information, increase the burden on the retrieval system, and reduce the accuracy and response speed of retrieval.

[0076] Knowledge graph: A knowledge graph is a knowledge base that represents the relationships between entities in the form of a graph. The entities can include people, places, and events, and the relationships represent the semantic associations between these entities. The choice of knowledge graph here depends on the domain and needs of the main content of the video data. You can choose some existing public knowledge graphs of related scenes. If the existing knowledge graph does not meet your needs, you can consider customizing a knowledge graph that focuses on a certain scene.

[0077] Videos have the notable feature of large amounts of data. A video of just a few seconds may contain hundreds of frames, each of which is a complete image, so the amount of data far exceeds that of simple image data. This large amount of data makes video processing and retrieval very complex and difficult. Therefore, optimizing video processing and retrieval technology and improving processing speed and retrieval efficiency have become one of the core challenges in the field of video processing.

[0078] Keyframe extraction is a technology used to accelerate video processing and improve retrieval efficiency. Its basic concept is to select representative and important frames from the video to form a streamlined frame set to represent the content of the entire video. By processing only keyframes instead of full frames, the amount of calculation can be significantly reduced, the processing speed can be improved, and the storage requirements can be reduced. It is particularly suitable for long videos and high-resolution videos. At the same time, keyframes can better represent the video content, reduce the number of frames that need to be processed during retrieval, and thus improve retrieval speed and efficiency.

[0079] At present, key frame extraction algorithms include fixed interval sampling algorithms. Among them, although the fixed interval sampling algorithm is simple and efficient, it is easy to miss some important key frames in the video due to its fixed interval characteristics, resulting in incomplete key frame extraction.

[0080] In order to solve the above technical defects, the embodiments of the present application provide a video index construction method, system, device and storage medium.

[0081] See also Figure 1 , is a flow chart of a method for constructing a video index provided by an embodiment of the present application, the method is applied to an electronic device, and the electronic device may be a server, etc. Figure 1 As shown, the video index construction method includes:

[0082] Step S101, obtaining a first key frame set of a video to be processed, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed;

[0083] Step S102, calculating a first pixel difference between every two adjacent potential key frames in the first key frame set;

[0084] Step S103: based on the first pixel difference and a preset screening threshold, selecting corresponding potential key frames from the first key frame set to form a second key frame set;

[0085] Step S104: when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are numbered to obtain a first key frame number;

[0086] Step S105: input the second key frame set into the trained object detection model to obtain a first detection label for the second key frame set;

[0087] Step S106: construct a bitmap index of the video to be processed according to the first detection tag, the first key frame sequence number and the preset tag, wherein the preset tag includes all types of the first detection tag.

[0088] The method obtains a first key frame set of a video to be processed, wherein the first key frame set includes multiple potential key frames, and the potential key frames are video frames selected from the video to be processed; calculates a first pixel difference between each two adjacent potential key frames in the first key frame set; based on the first pixel difference and a preset screening threshold, selects corresponding potential key frames from the first key frame set to form a second key frame set; when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number; the second key frame set is input into a trained target detection model to obtain a first detection label of the second key frame set; a bitmap index of the video to be processed is constructed according to the first detection label, the first key frame sequence number and the preset label, wherein the preset label includes all types of the first detection label. The present application improves the accuracy of key frame extraction by extracting the first key frame set and screening the first key frame set, thereby reducing computational overhead and redundant frames, and improving the efficiency and comprehensiveness of video retrieval.

[0089] In some embodiments, the method further comprises:

[0090] Step S201: when the difference between the first key frame set and the second key frame set does not meet a preset condition, the first frame interval is calculated according to a preset frame interval and a preset iteration step size;

[0091] Step S202: acquiring a third key frame set of the video to be processed according to the first frame interval;

[0092] Step S203, calculating the second pixel difference between every two adjacent potential key frames in the third key frame set;

[0093] Step S204: based on the second pixel difference and the preset screening threshold, select corresponding potential key frames from the third key frame set to form a fourth key frame set;

[0094] Step S205: when the difference between the third key frame set and the fourth key frame set meets the preset condition, all potential key frames of the fourth key frame set are sequenced to obtain a second key frame sequence number; the fourth key frame set is input into the trained object detection model to obtain a second detection label of the fourth key frame set; a bitmap index of the video to be processed is constructed according to the second detection label, the second key frame sequence number and the preset label;

[0095] Step S206: When the difference between the third key frame set and the fourth key frame set does not meet the preset condition, the second frame interval is calculated according to the preset frame interval and the preset iteration step; the fifth key frame set is obtained according to the second frame interval, and so on, until the difference between the k-1th key frame set and the kth key frame set meets the preset condition, and the bitmap index of the video to be processed is constructed according to the kth key frame set, where k is the number of iterations.

[0096] In this implementation, fixed-interval sampling is used for preliminary screening in the first layer, and a large amount of video data is quickly processed with low computing power consumption, and the inter-frame difference method is used in the second layer to finely screen the preliminary screening results to ensure the accuracy of the key frames. In order to further optimize the effect, the dynamic adjustment mechanism adjusts the sampling interval of the first layer according to the difference between the final key frame and the potential key frame to achieve the best redundancy. This multi-layer structure not only improves the accuracy of key frame extraction, but also effectively reduces computing overhead and redundant frames. It can adapt to videos of different themes and scenes, meet real-time processing requirements, and fully utilize the advantages of various computing power devices.

[0097] In some embodiments, the method further comprises:

[0098] Step S301: Obtain the query tag input by the user;

[0099] Step S302: When the query tag belongs to a preset tag, search in the bitmap index according to the query tag to obtain the key frame number corresponding to the query tag;

[0100] Step S303: locate the relevant video frames of the video to be processed based on the key frame numbers corresponding to the query tags;

[0101] Step S304: Feedback the relevant video frames to the user.

[0102] Specifically, the user enters a preset tag, and the system quickly finds all key frames containing the tag according to the bitmap index corresponding to the tag. The key frames are quickly located to the video clips containing relevant content, and the query results are returned and fed back to the user.

[0103] In this implementation, by searching in the bitmap index according to the query tag, the characteristics of the preset tag are fully utilized to achieve efficient retrieval of existing content.

[0104] In some embodiments, the method further comprises:

[0105] Step S401: when the query tag does not belong to the preset tag, search in a pre-built tag network according to the query tag to obtain the preset tag corresponding to the query tag;

[0106] Step S402: searching in the bitmap index according to the preset tag corresponding to the query tag to obtain the key frame number corresponding to the query tag;

[0107] Step S403: locate the relevant video frames of the video to be processed based on the key frame numbers corresponding to the query tags;

[0108] Step S404: Feedback the relevant video frames to the user.

[0109] Specifically, refer to Figure 2 , the preset labels can be regarded as the terminal nodes of the network, and the new labels of the associated knowledge graph or logical combination are used as branch nodes. The relevant new nodes are added layer by layer from the terminal nodes to build a multi-level label network.

[0110] The expanded multi-level label network structure is a directed acyclic graph (DAG), which has hierarchical and branching characteristics, such as Figure 2 As shown in Figure 2. Such a structure helps to express the relationship between tags more flexibly and finely, so that the tag network has multi-level and multi-dimensional semantic information. Specifically, the structure of the expanded tag network includes:

[0111] Terminal nodes: The preset labels act as the terminal and finest-grained labels in the network, and are the terminal nodes in the directed graph. These nodes have no out-degree, that is, they do not point to other nodes.

[0112] For example, in a driving scenario, labels such as "closing eyes", "looking around", "playing with mobile phone", "making and receiving phone calls", etc. are usually specific objects, behaviors, etc.

[0113] Branch nodes: Expanded labels are branch nodes in a directed graph, which point to other branch nodes or terminal nodes. Each branch node can be associated with (point to) multiple terminal nodes or other branch nodes.

[0114] For example, if the knowledge graph is expanded and branch nodes such as "dangerous driving" and "using electronic devices" are associated, they may point to terminal nodes such as "closing eyes", "looking around", "playing with mobile phone", "making phone calls" and so on. In addition, "dangerous driving" can also point to the branch node "using electronic devices".

[0115] Directed edges: Directed edges in a label network represent the direction of association between labels. Branch nodes point to terminal nodes, and the scope expands layer by layer, which helps the system understand the semantic relationship between labels.

[0116] The structure of the label network shows a clear hierarchical relationship, starting from the terminal node and building up layer by layer through the branch nodes. Each layer represents a level of abstraction or expansion, allowing the label network to represent the relationship between labels from concrete to abstract, from fine-grained to coarse-grained. And because of the DAG structure, the label network remains acyclic, avoiding circular dependencies and ambiguity. This multi-layer label network design helps to improve the semantic expression ability of labels, allowing the system to adapt to different query requirements more flexibly while maintaining the clarity and understandability of the structure.

[0117] Specifically, the user inputs an extended tag that does not belong to the preset tag, traverses the tag node from the multi-level tag network, and traverses to obtain all leaf nodes of the subtree with the node as the root.

[0118] The bitmap indexes corresponding to these leaf nodes are obtained, and these indexes are merged using a logical OR operation to obtain an overall index representing the content related to the extended tag.

[0119] Based on this overall index, quickly find all keyframes related to the extended tag content.

[0120] Quickly locate the video clip containing relevant content from the key frame and return the query result.

[0121] Feedback the query results to the user.

[0122] In this implementation, the different characteristics of preset tags and extended tags are fully utilized, which not only realizes efficient retrieval of existing content, but also provides flexible query based on knowledge graph extended tags. This design enables users to explore and analyze the content in the video database in a more intelligent and comprehensive way, and more comprehensively discover valuable content in the video data.

[0123] In some embodiments, the process of constructing the label network includes:

[0124] Step S501: Based on preset tags and preset entities in the knowledge graph, association is performed through a natural language processing method to obtain an association graph;

[0125] Step S502: Generate an extended tag according to the association graph;

[0126] Step S503, constructing a directed acyclic graph according to the preset labels and the extended labels; and using the directed acyclic graph as a label network, wherein the preset labels are the end nodes of the directed acyclic graph, and the extended labels are the branch nodes of the directed acyclic graph.

[0127] In this embodiment, preset tags are associated with entities in the knowledge graph through semantic relationships. Association rules can be manually defined or automatically established using natural language processing (NLP) technology, such as using entity linking technology to match tags in text with entities in the knowledge graph. This helps to discover potential valuable information in video data and provides strong support for in-depth mining and retrieval of video data content.

[0128] In some embodiments, when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number, including:

[0129] Step S601, subtract the number of key frames in the first key frame set from the number of key frames in the second key frame set to obtain a difference;

[0130] Step S602: Divide the difference by the number of key frames in the first key frame set to obtain a first redundancy rate;

[0131] Step S603: When the first redundancy rate is within a preset screening threshold range, all potential key frames of the second key frame set are numbered to obtain a first key frame number.

[0132] Specifically, the redundancy rate represents the proportion of redundant frames in the initial screening potential key frame set.

[0133] According to the results of the initial screening and re-screening, the final key frame set is compared with the initial screening potential key frame set to calculate the redundancy rate.

[0134] Redundancy rate = number of redundant elements / number of total elements*100% = (potential key frame Q-final key frame Z) / potential key frame Q*100%.

[0135] Evaluation and analysis: Based on the redundancy data, determine the effect and quality of key frame extraction and whether the sampling interval needs to be adjusted. Specifically:

[0136] If the redundancy rate is too low (key frames may be missed): reduce the sampling interval (adjust the sampling interval according to the preset frame interval and the preset iteration step, and different iteration rounds correspond to different preset iteration steps) to increase the coverage of potential key frames.

[0137] If the redundancy rate is too high (too many similar key frames): increase the sampling interval (adjust the sampling interval according to the preset frame interval and the preset iteration step, and different iteration rounds correspond to different preset iteration steps), and reduce the number of redundant frames.

[0138] Repeated iterative adjustment: Repeatedly adjust the sampling interval and extract key frames until the expected redundancy rate requirement is met, or the set upper limit of the number of iterations is reached.

[0139] In this implementation, the dynamic adjustment mechanism can be used to adaptively optimize the sampling interval according to the characteristics and requirements of the video content, thereby improving the accuracy and efficiency of key frame extraction.

[0140] In some embodiments, obtaining a first key frame set of a video to be processed includes:

[0141] Step S701, obtaining a video frame set of a video to be processed according to a first preset frame interval;

[0142] Step S702: Use the video frame set as the first key frame set.

[0143] Specifically, refer to Figure 3 In some embodiments, after processing and analyzing the video data, a lot of content information will be obtained. Usually, a database table is designed to effectively store the tag information corresponding to the key frames and other related metadata. Multiple tables are created to organize the data, including a key frame table, a target detection result table, and possible other metadata tables.

[0144] First, the keyframe table should include the unique identifier of the keyframe, the storage path of the video and keyframe image data, timestamp and other information to help track the basic properties of each keyframe. Secondly, the object detection result table should record each detected object, including its position, category, confidence and other information in the keyframe. Such a table can provide detailed information about the objects detected in each keyframe.

[0145] In order to speed up the retrieval, a bitmap index is created for each preset tag, such as Figure 3 As shown in the figure. Each tag has a corresponding bitmap index.

[0146] The number of bits in the index corresponds to the number of key frames in the video sequence. If a bit is 1, it means that the corresponding label appears in the key frame, and if it is 0, it means that it does not appear. This allows indexing of a single label.

[0147] For example, for behavior a, the nth position of the index represents the nth key frame of the video, 0 at this position indicates that behavior a does not appear in this frame, and 1 indicates that behavior a appears in this frame.

[0148] By using multiple bitmap indexes, that is, one bitmap index corresponds to one tag, the present application can represent the occurrence of multiple tags on the same keyframe, and each tag has its own independent index, thereby supporting the indexing of multiple tags. Such an index structure makes it possible to quickly understand in which keyframes each tag appears.

[0149] When querying content related to multiple tags, bit operations (such as AND, OR) can be used to quickly locate key frames related to multiple tags. This operation is efficient in bit operations on bitmaps because they can process multiple bits in parallel. Through bitmap indexing, the application can quickly and effectively manage and retrieve tag information, providing an efficient basis for querying and analyzing video databases.

[0150] A bitmap is a data structure used to represent a binary sequence where each bit corresponds to the value of a property or state. Each bit can only have two values, usually 0 or 1. In computer science, bitmaps are often used to represent a set of discrete Boolean values, where each element corresponds to a bit. This structure is very efficient because it can store a large amount of Boolean information in a compact way.

[0151] In this application, the main function of the bitmap is to build an index, which can efficiently store the label information in a large number of video frames and record the occurrence of each label in each key frame. Its simple structure and the parallelism of bit operations enable efficient positioning and processing of label information during the query process.

[0152] This application improves the accuracy and efficiency of video database index construction and query by optimizing multiple modules in the video database index construction process. This application optimizes the key frame extraction process through layered design and adaptive adjustment mechanism, using a low-overhead primary screening module and a high-precision re-screening module. The primary screening uses fixed frame interval sampling to quickly screen potential key frames, and the re-screening determines the final key frame through the inter-frame difference method. The adaptive adjustment mechanism dynamically adjusts the primary screening sampling interval according to the re-screening results to ensure optimal key frame coverage and redundancy.

[0153] This application significantly improves the processing speed while ensuring accuracy, reduces computing power consumption, and adapts to video content of different themes and scenes. In addition, the efficiency of video database retrieval query is improved by expanding the tags and building a multi-level tag network. First, a multi-level tag network is built by logically combining important tags to achieve flexible expansion of predefined tag sets, dynamically expand tags, increase the flexibility of video database queries, improve data utilization efficiency, and comprehensively discover valuable content in video data.

[0154] Compared with traditional methods, this application solves the problem of flexibility of label-based video databases, so that labels are no longer limited to pre-defined content, but can be dynamically expanded to related entities in the graph, thereby improving the flexibility of video database queries, more comprehensively discovering valuable content in video data, and providing users with smarter and more comprehensive video retrieval services.

[0155] Specifically, in order to facilitate understanding by those skilled in the art, a set of optimal embodiments is provided below:

[0156] 1. Data acquisition:

[0157] Acquire a video frame set of the video to be processed according to a first preset frame interval;

[0158] The video frame set is used as a first key frame set, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed.

[0159] 2. Calculation of the second key frame set:

[0160] A first pixel difference between each two adjacent potential key frames in the first key frame set is calculated.

[0161] Based on the first pixel difference and a preset screening threshold, corresponding potential key frames are selected from the first key frame set to form a second key frame set.

[0162] Based on the first pixel difference and a preset screening threshold, corresponding potential key frames are selected from the first key frame set to form a second key frame set.

[0163] 3. Bitmap index construction:

[0164] When the difference between the first key frame set and the second key frame set meets the preset condition, all potential key frames of the second key frame set are numbered to obtain the first key frame number, which is specifically:

[0165] Subtract the number of key frames in the first key frame set from the number of key frames in the second key frame set to obtain a difference;

[0166] Dividing the difference by the number of key frames in the first key frame set to obtain a first redundancy rate;

[0167] When the first redundancy rate is within a preset screening threshold range, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number;

[0168] Inputting the second key frame set into the trained object detection model to obtain a first detection label of the second key frame set;

[0169] A bitmap index of the video to be processed is constructed according to the first detection tag, the first key frame sequence number and the preset tag, wherein the preset tag includes all types of the first detection tag.

[0170] 4. Calculation of the fourth key frame set:

[0171] When the difference between the first key frame set and the second key frame set does not meet the preset condition, the first frame interval is calculated according to the preset frame interval and the preset iteration step;

[0172] Acquire a third key frame set of the video to be processed according to the first frame interval;

[0173] Calculating a second pixel difference between each two adjacent potential key frames in the third key frame set;

[0174] Based on the second pixel difference and the preset screening threshold, corresponding potential key frames are selected from the third key frame set to form a fourth key frame set.

[0175] 5. Bitmap index construction:

[0176] When the difference between the third key frame set and the fourth key frame set meets a preset condition, all potential key frames of the fourth key frame set are sequenced to obtain a second key frame sequence number; the fourth key frame set is input into the trained target detection model to obtain a second detection label of the fourth key frame set; and a bitmap index of the video to be processed is constructed according to the second detection label, the second key frame sequence number and the preset label;

[0177] When the difference between the third key frame set and the fourth key frame set does not meet the preset conditions, the second frame interval is calculated according to the preset frame interval and the preset iteration step; the fifth key frame set is obtained according to the second frame interval, and so on, until the difference between the k-1th key frame set and the kth key frame set meets the preset conditions, and the bitmap index of the video to be processed is constructed according to the kth key frame set, where k is the number of iterations.

[0178] 6. Video Query:

[0179] Get the query tag entered by the user;

[0180] When the query tag belongs to the preset tag, the key frame number corresponding to the query tag is obtained by searching in the bitmap index according to the query tag;

[0181] Locate the relevant video frames of the video to be processed based on the key frame number corresponding to the query tag;

[0182] Feed the relevant video frames back to the user.

[0183] When the query tag does not belong to the preset tag, a search is performed in a pre-built tag network according to the query tag to obtain the preset tag corresponding to the query tag, wherein the tag network construction process includes:

[0184] Based on the preset tags and the preset entities in the knowledge graph, association is performed through natural language processing methods to obtain an association graph;

[0185] Generate extended labels based on the association graph;

[0186] A directed acyclic graph is constructed according to preset labels and extended labels; and the directed acyclic graph is used as a label network, wherein the preset labels are end nodes of the directed acyclic graph, and the extended labels are branch nodes of the directed acyclic graph.

[0187] Search the bitmap index according to the preset tag corresponding to the query tag to obtain the key frame number corresponding to the query tag;

[0188] Locate the relevant video frames of the video to be processed based on the key frame number corresponding to the query tag;

[0189] Feed the relevant video frames back to the user.

[0190] In addition, refer to Figure 4 One embodiment of the present application provides a video index construction system, including a data acquisition module 1100, a first pixel difference calculation module 1200, a second key frame set screening module 1300, a sequence module 1400, a detection label acquisition module 1500 and a bitmap index construction module 1600, wherein:

[0191] The data acquisition module 1100 is used to acquire a first key frame set of the video to be processed, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed;

[0192] The first pixel difference calculation module 1200 is used to calculate the first pixel difference between every two adjacent potential key frames in the first key frame set;

[0193] The second key frame set screening module 1300 is used to select corresponding potential key frames from the first key frame set based on the first pixel difference and a preset screening threshold to form a second key frame set;

[0194] The sequence marking module 1400 is used to mark all potential key frames of the second key frame set to obtain the first key frame sequence number when the difference between the first key frame set and the second key frame set meets a preset condition;

[0195] The detection label acquisition module 1500 is used to input the second key frame set into the trained target detection model to obtain the first detection label of the second key frame set;

[0196] The bitmap index building module 1600 is used to build a bitmap index of the video to be processed according to the first detection tag, the first key frame sequence number and the preset tag, wherein the preset tag includes all types of the first detection tag.

[0197] The system obtains a first key frame set of a video to be processed, wherein the first key frame set includes multiple potential key frames, and the potential key frames are video frames selected from the video to be processed; calculates a first pixel difference between each two adjacent potential key frames in the first key frame set; based on the first pixel difference and a preset screening threshold, selects corresponding potential key frames from the first key frame set to form a second key frame set; when the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number; the second key frame set is input into a trained target detection model to obtain a first detection label of the second key frame set; a bitmap index of the video to be processed is constructed according to the first detection label, the first key frame sequence number and the preset label, wherein the preset label includes all types of the first detection label. The present application improves the accuracy of key frame extraction by extracting the first key frame set and screening the first key frame set, thereby reducing computational overhead and redundant frames, and improving the efficiency and comprehensiveness of video retrieval.

[0198] In some implementations, the video index construction system further includes an iteration module, specifically configured to:

[0199] When the difference between the first key frame set and the second key frame set does not meet the preset condition, the first frame interval is calculated according to the preset frame interval and the preset iteration step;

[0200] Acquire a third key frame set of the video to be processed according to the first frame interval;

[0201] Calculating a second pixel difference between each two adjacent potential key frames in the third key frame set;

[0202] Based on the second pixel difference and a preset screening threshold, selecting corresponding potential key frames from the third key frame set to form a fourth key frame set;

[0203] When the difference between the third key frame set and the fourth key frame set meets a preset condition, all potential key frames of the fourth key frame set are sequenced to obtain a second key frame sequence number; the fourth key frame set is input into the trained target detection model to obtain a second detection label of the fourth key frame set; and a bitmap index of the video to be processed is constructed according to the second detection label, the second key frame sequence number and the preset label;

[0204] When the difference between the third key frame set and the fourth key frame set does not meet the preset conditions, the second frame interval is calculated according to the preset frame interval and the preset iteration step; the fifth key frame set is obtained according to the second frame interval, and so on, until the difference between the k-1th key frame set and the kth key frame set meets the preset conditions, and the bitmap index of the video to be processed is constructed according to the kth key frame set, where k is the number of iterations.

[0205] In some implementations, the video index construction system further includes a first query module, specifically configured to:

[0206] Get the query tag entered by the user;

[0207] When the query tag belongs to the preset tag, the key frame number corresponding to the query tag is obtained by searching in the bitmap index according to the query tag;

[0208] Locate the relevant video frames of the video to be processed based on the key frame number corresponding to the query tag;

[0209] Feed the relevant video frames back to the user.

[0210] In some implementations, the video index construction system further includes a second query module, specifically configured to:

[0211] When the query tag does not belong to the preset tag, a search is performed in the pre-built tag network according to the query tag to obtain the preset tag corresponding to the query tag;

[0212] Search the bitmap index according to the preset tag corresponding to the query tag to obtain the key frame number corresponding to the query tag;

[0213] Locate the relevant video frames of the video to be processed based on the key frame number corresponding to the query tag;

[0214] Feed the relevant video frames back to the user.

[0215] In some implementations, the second query module is further specifically configured to:

[0216] Based on the preset tags and the preset entities in the knowledge graph, association is performed through natural language processing methods to obtain an association graph;

[0217] Generate extended labels based on the association graph;

[0218] A directed acyclic graph is constructed according to preset labels and extended labels; and the directed acyclic graph is used as a label network, wherein the preset labels are end nodes of the directed acyclic graph, and the extended labels are branch nodes of the directed acyclic graph.

[0219] In some implementations, the sequence module is further specifically used to:

[0220] Subtract the number of key frames in the first key frame set from the number of key frames in the second key frame set to obtain a difference;

[0221] Dividing the difference by the number of key frames in the first key frame set to obtain a first redundancy rate;

[0222] When the first redundancy rate is within a preset screening threshold range, all potential key frames in the second key frame set are sequenced to obtain a first key frame sequence number.

[0223] In some implementations, the data acquisition module is further specifically used to:

[0224] Acquire a video frame set of the video to be processed according to a first preset frame interval;

[0225] The video frame set is used as the first key frame set.

[0226] It should be noted that the present system embodiment and the above-mentioned method embodiment are based on the same inventive concept, so the relevant contents of the above-mentioned method embodiment are also applicable to the present system embodiment and will not be repeated here.

[0227] Figure 5 A schematic diagram of the hardware structure of the video index construction provided in an embodiment of the present application is shown.

[0228] The video index building device may include a processor 501 and a memory 502 storing computer program instructions.

[0229] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0230] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0231] In some embodiments, the memory 502 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0232] The processor 501 implements any one of the video index construction methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .

[0233] In one example, the video index construction device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

[0234] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0235] Bus 510 includes hardware, software or both, and the parts of video index construction equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0236] The video index construction device can execute the video index construction method in the embodiment of the present application based on the three-dimensional design model, thereby realizing the combination of Figure 1 and Figure 4 The video index construction method and system described.

[0237] In addition, in combination with the video index construction method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the video index construction methods in the above embodiment is implemented.

[0238] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0239] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0240] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0241] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0242] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A video index construction method, characterized in that: The video index construction method comprises: Acquire a first key frame set of the video to be processed, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed; Calculating a first pixel difference between every two adjacent potential key frames in the first key frame set; Based on the first pixel difference and a preset screening threshold, selecting corresponding potential key frames from the first key frame set to form a second key frame set; When the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number; Inputting the second key frame set into a trained object detection model to obtain a first detection label of the second key frame set; A bitmap index of the video to be processed is constructed according to the first detection tag, the first key frame sequence number and a preset tag, wherein the preset tag includes all types of the first detection tag.

2. The video index construction method according to claim 1, characterized in that: The method further comprises: When the difference between the first key frame set and the second key frame set does not meet a preset condition, calculating a first frame interval according to a preset frame interval and a preset iteration step; Acquire a third key frame set of the video to be processed according to the first frame interval; Calculating a second pixel difference between every two adjacent potential key frames in the third key frame set; Based on the second pixel difference and a preset screening threshold, selecting corresponding potential key frames from the third key frame set to form a fourth key frame set; When the difference between the third key frame set and the fourth key frame set meets a preset condition, all potential key frames of the fourth key frame set are sequenced to obtain a second key frame sequence number; the fourth key frame set is input into a trained target detection model to obtain a second detection label of the fourth key frame set; and a bitmap index of the video to be processed is constructed according to the second detection label, the second key frame sequence number and the preset label; When the difference between the third key frame set and the fourth key frame set does not meet the preset condition, the second frame interval is calculated according to the preset frame interval and the preset iteration step; the fifth key frame set is obtained according to the second frame interval, and so on, until the difference between the k-1th key frame set and the kth key frame set meets the preset condition, and the bitmap index of the video to be processed is constructed according to the kth key frame set, where k is the number of iterations.

3. The video index construction method according to claim 1, characterized in that: The method further comprises: Get the query tag entered by the user; When the query tag belongs to the preset tag, searching in the bitmap index according to the query tag to obtain the key frame number corresponding to the query tag; Locating the relevant video frames of the video to be processed based on the key frame numbers corresponding to the query tags; The relevant video frames are fed back to the user.

4. The video index construction method according to claim 3, characterized in that: The method further comprises: When the query tag does not belong to the preset tag, searching in a pre-built tag network according to the query tag to obtain a preset tag corresponding to the query tag; Searching in the bitmap index according to a preset tag corresponding to the query tag to obtain a key frame number corresponding to the query tag; Locating the relevant video frames of the video to be processed based on the key frame numbers corresponding to the query tags; The relevant video frames are fed back to the user.

5. The video index construction method according to claim 4, characterized in that: The process of constructing the label network includes: Based on the preset tags and the preset entities in the knowledge graph, association is performed through a natural language processing method to obtain an association graph; Generate an extended label according to the association graph; A directed acyclic graph is constructed according to the preset label and the extended label; and the directed acyclic graph is used as a label network, wherein the preset label is an end node of the directed acyclic graph, and the extended label is a branch node of the directed acyclic graph.

6. The video index construction method according to claim 1, characterized in that: When the difference between the first key frame set and the second key frame set meets a preset condition, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number, including: Subtract the number of key frames in the first key frame set from the number of key frames in the second key frame set to obtain a difference; Dividing the difference by the number of key frames in the first key frame set to obtain a first redundancy rate; When the first redundancy rate is within a preset screening threshold range, all potential key frames of the second key frame set are sequenced to obtain a first key frame sequence number.

7. The video index construction method according to claim 1, characterized in that: The step of obtaining a first key frame set of the video to be processed includes: Acquire a video frame set of the video to be processed according to a first preset frame interval; The video frame set is used as the first key frame set.

8. A video index construction system, characterized in that: The video index construction system comprises: A data acquisition module, used to acquire a first key frame set of the video to be processed, wherein the first key frame set includes a plurality of potential key frames, and the potential key frames are video frames selected from the video to be processed; A first pixel difference calculation module, used for calculating a first pixel difference between every two adjacent potential key frames in the first key frame set; a second key frame set screening module, configured to select corresponding potential key frames from the first key frame set based on the first pixel difference and a preset screening threshold value, so as to form a second key frame set; A sequence marking module, configured to, when a difference between the first key frame set and the second key frame set satisfies a preset condition, mark all potential key frames of the second key frame set to obtain a first key frame sequence number; a detection label acquisition module, configured to input the second key frame set into a trained target detection model to obtain a first detection label of the second key frame set; A bitmap index construction module is used to construct a bitmap index of the video to be processed according to the first detection tag, the first key frame sequence number and a preset tag, wherein the preset tag includes all types of the first detection tag.

9. A video index construction device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute a video index construction method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a video index construction method as described in any one of claims 1 to 7.