Video retrieval method and device, electronic equipment and storage medium

Through the coding and fusion of visual and audio information in video retrieval technology, the retrieval model is used to generate target retrieval content, which solves the problems of high complexity and low efficiency of video retrieval in the existing technology, and achieves fast and accurate video content retrieval.

CN118585671AInactive Publication Date: 2024-09-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD

Patent Information

Application Number
CN202411060755.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure CN118585671A
    Figure CN118585671A
Patent Text Reader

Abstract

The invention relates to the application field of electric digital data processing, and relates to a video retrieval method and device, electronic equipment and a storage medium. In order to solve the problems of high complexity, poor effect and the like of video content retrieval, the video retrieval method comprises the following steps: acquiring a video and to-be-retrieved information for performing content retrieval on the video; analyzing visual information included in the video to obtain a visual sequence, analyzing audio information included in the video to obtain an audio sequence, and converting the information to be retrieved into a text input instruction; based on the visual sequence, the audio sequence, the text input instruction and a retrieval model, target retrieval content matched with the to-be-retrieved information is generated, input of the retrieval model is the visual sequence, the audio sequence and the text instruction, and output of the retrieval model is retrieval content comprising text information and video information. Through the video retrieval method and device, the video retrieval complexity is reduced, and the video retrieval effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic digital data processing, and in particular to a video retrieval method, device, electronic equipment and storage medium. Background Art

[0002] With the continuous development of information technology, the length and quantity of videos are increasing, and video content retrieval technology is becoming more and more important.

[0003] The related technologies mainly include manual speed retrieval and detection based on specific activities or specific content in the video content, such as picture changes, human tracking, vehicle detection, etc. However, the retrieval solutions for video content in the related technologies are time-consuming and labor-intensive, with high retrieval complexity and large limitations in the retrieved content, which cannot meet the retrieval needs of users. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a video retrieval method, device, electronic device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a video retrieval method is provided, comprising: acquiring a video, and information to be retrieved for content retrieval of the video; parsing the visual information included in the video to obtain a visual sequence, and parsing the audio information included in the video to obtain an audio sequence, and converting the information to be retrieved into text input instructions; based on the visual sequence, the audio sequence, the text input instructions and a retrieval model, generating target retrieval content matching the information to be retrieved, the input of the retrieval model being the visual sequence, the audio sequence and the text instructions, and the output of the retrieval model including the retrieval content of the text information and the video information.

[0006] In one embodiment, the target retrieval content matching the information to be retrieved is generated based on the visual sequence, the audio sequence, the text input instruction and the retrieval model, including: encoding the visual sequence to obtain visual coding features, and encoding the audio sequence to obtain audio coding features; aligning and fusing the visual coding features and the audio coding features to obtain fused audio and video features; inputting the fused audio and video features and the text input instruction into the retrieval model to obtain target text information and target video information, and obtaining target retrieval content matching the information to be retrieved based on the target text information and the target video information.

[0007] In one embodiment, the fused audio and video features are stored in a feature vector library, which includes fused audio and video features corresponding to multiple videos; inputting the fused audio and video features and the text input instruction into the retrieval model includes: based on the text input instruction, obtaining the fused audio and video features in the feature vector library that match the text input instruction; inputting the text input instruction and the fused audio and video features corresponding to the text input instruction into the retrieval model.

[0008] In one embodiment, the target retrieval content matching the information to be retrieved is obtained based on the target text information and the target video information, including: based on the target video information, determining the target video in the video matching the target video information; and using the target text information and the target video as the target retrieval content matching the information to be retrieved.

[0009] In one embodiment, the information to be retrieved includes text information to be retrieved and / or audio information to be retrieved, and the converting of the information to be retrieved into text input instructions includes: in response to the information to be retrieved including the audio information to be retrieved, obtaining text information corresponding to the audio information to be retrieved; based on the output of historical text input instructions and the corresponding retrieval model, the text information to be retrieved and / or the text information corresponding to the audio information to be retrieved, obtaining the text input instructions corresponding to the information to be retrieved.

[0010] According to a second aspect of an embodiment of the present disclosure, a video retrieval device is provided, comprising: an acquisition unit, for acquiring a video and information to be retrieved for content retrieval of the video; a parsing unit, for parsing the visual information included in the video to obtain a visual sequence, and parsing the audio information included in the video to obtain an audio sequence, and converting the information to be retrieved into text input instructions; a processing unit, for generating target retrieval content matching the information to be retrieved based on the visual sequence, the audio sequence, the text input instructions and a retrieval model, the input of the retrieval model being a visual sequence, an audio sequence and a text instruction, and the output of the retrieval model comprising retrieval content of the text information and the video information.

[0011] In one embodiment, the processing unit generates target retrieval content that matches the information to be retrieved based on the visual sequence, the audio sequence, the text input instruction and the retrieval model in the following manner: encode the visual sequence to obtain visual coding features, and encode the audio sequence to obtain audio coding features; align and fuse the visual coding features and the audio coding features to obtain fused audio and video features; input the fused audio and video features and the text input instruction into the retrieval model to obtain target text information and target video information, and based on the target text information and the target video information, obtain target retrieval content that matches the information to be retrieved.

[0012] In one embodiment, the fused audio and video features are stored in a feature vector library, which includes fused audio and video features corresponding to multiple videos; the processing unit inputs the fused audio and video features and the text input instruction into a retrieval model in the following manner: based on the text input instruction, obtaining the fused audio and video features in the feature vector library that match the text input instruction; inputting the text input instruction and the fused audio and video features corresponding to the text input instruction into the retrieval model.

[0013] In one embodiment, the processing unit obtains target retrieval content that matches the information to be retrieved based on the target text information and the target video information in the following manner: based on the target video information, determining a target video in the video that matches the target video information; and using the target text information and the target video as target retrieval content that matches the information to be retrieved.

[0014] In one embodiment, the information to be retrieved includes text information to be retrieved and / or audio information to be retrieved, and the parsing unit converts the information to be retrieved into text input instructions in the following manner: in response to the information to be retrieved including audio information to be retrieved, obtaining text information corresponding to the audio information to be retrieved; based on historical text input instructions and the output of the corresponding retrieval model, the text information to be retrieved and / or the text information corresponding to the audio information to be retrieved, obtaining the text input instructions corresponding to the information to be retrieved.

[0015] According to a third aspect of an embodiment of the present disclosure, a video retrieval device is provided, including:

[0016] A processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the video retrieval method described in the first aspect or any one of the embodiments of the first aspect.

[0017] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal can perform the method described in the first aspect or any one of the implementations of the first aspect.

[0018] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by using a retrieval model, based on the visual sequence and audio sequence of the video, the target retrieval content corresponding to the information to be retrieved is generated, thereby reducing the operational complexity required for video retrieval, and using the retrieval model, it is possible to meet the retrieval requirements of different content to be retrieved, thereby increasing the flexibility and accuracy of video retrieval.

[0019] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] Figure 1 The figure is a flowchart of a video retrieval method according to an exemplary embodiment.

[0022] Figure 2 The figure is a flowchart of a method for generating target retrieval content according to an exemplary embodiment.

[0023] Figure 3 The figure is a flowchart of a video retrieval method according to an exemplary embodiment.

[0024] Figure 4 The figure is a flow chart of a method for acquiring target retrieval content according to an exemplary embodiment.

[0025] Figure 5 It is a schematic diagram of a retrieval model of a surveillance video scene according to an exemplary embodiment.

[0026] Figure 6 The figure is a schematic diagram showing a video retrieval process of a surveillance video scene according to an exemplary embodiment.

[0027] Figure 7 It is an effect diagram of a video retrieval method in a surveillance video scene according to an exemplary embodiment.

[0028] Figure 8 The figure is a block diagram of a video retrieval device according to an exemplary embodiment.

[0029] Fig. 9The invention is a block diagram of a device for video retrieval according to an exemplary embodiment.

[0030] Fig.10 The invention is a block diagram of a device for video retrieval according to an exemplary embodiment. DETAILED DESCRIPTION

[0031] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0032] In the accompanying drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limitations on the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure. The embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings.

[0033] The video retrieval method provided by the embodiment of the present disclosure is applied to the field of video processing technology. The video retrieval method provided by the embodiment of the present disclosure is mainly used to use a language model to retrieve video content based on natural language content input by a user, and obtain a retrieval result that matches the content input by the user. With the rapid development of information technology, video retrieval systems have become an indispensable part of public safety, traffic management, commercial safety and other fields.

[0034] However, the related video retrieval system mainly relies on manual monitoring and post-playback, which has problems such as low efficiency, low information utilization, and difficulty in real-time response. In another type of related technology, when the video screen is detected to have screen jitter or target objects, the video screen is recorded, and the content obtained is single and cannot meet the user's retrieval needs.

[0035] In view of this, the embodiment of the present disclosure provides a video retrieval method, which calls a pre-trained retrieval model after receiving a retrieval instruction sent by a user, and provides retrieval content matching the user's retrieval instruction based on the video, thereby analyzing the user's retrieval needs and providing retrieval content that meets the user's retrieval requirements, reducing the time and operation complexity required for retrieving content, and being able to meet a variety of retrieval needs and provide corresponding retrieval content.

[0036] The video retrieval method provided by the embodiments of the present disclosure may be deployed on the cloud side or on the electronic device side.

[0037] Figure 1 is a flowchart of a video retrieval method according to an exemplary embodiment. Figure 1 As shown, the following steps are included.

[0038] In step S11, a video and information to be retrieved for content retrieval of the video are obtained.

[0039] In the disclosed embodiment, the video and the information to be retrieved may be acquired at different times. For example, the video may be acquired at multiple different times, and the information to be retrieved may be acquired at the current time.

[0040] In the embodiment of the present disclosure, the video may include visual information and audio information.

[0041] In the disclosed embodiment, the information to be retrieved may be a specific natural language instruction input by a user, or a fixed instruction generated by a specific system or program based on specific conditions. The information to be retrieved includes key information or query conditions for locating and extracting video clips that match the requirements.

[0042] In step S12, the visual information included in the video is parsed to obtain a visual sequence, the audio information included in the video is parsed to obtain an audio sequence, and the information to be retrieved is converted into a text input instruction.

[0043] In the embodiments of the present disclosure, the visual information contained in the video may be the image content in the video. It should be understood that the visual information in the video is obtained by combining multiple frames corresponding to different times, and the video information may be a frame corresponding to a time in a video. By analyzing the video, all or including specific feature frames contained in the video are obtained, and the obtained frames are arranged in chronological order to obtain a visual sequence obtained by parsing the video.

[0044] In the embodiment of the present disclosure, the video may also include audio information, wherein the audio information may be audio information that meets specific requirements among all audio information in the video, for example, the audio information may be human voice appearing in the video. The screened audio information is matched with the time period corresponding to the visual sequence to obtain the audio information corresponding to each frame in the visual sequence, and the audio information is sorted in chronological order to obtain an audio sequence.

[0045] In the embodiment of the present disclosure, the information to be retrieved may include text information to be retrieved and / or audio information to be retrieved. The text information to be retrieved may be a natural language input by a user, and the audio information to be retrieved may be a voice input by a user.

[0046] In the disclosed embodiment, in response to the information to be retrieved including the audio information to be retrieved, text information corresponding to the audio information to be retrieved is acquired.

[0047] It should be understood that the information to be retrieved in the embodiments of the present disclosure may also include other forms of information content, such as picture information, and the picture information can be converted into text input instructions using conventional image content to text conversion methods, such as using a picture-to-text model. The embodiments of the present disclosure do not limit the information format of the information to be retrieved and the method of converting the information to be retrieved into text input instructions.

[0048] In the disclosed embodiment, based on the information to be retrieved, combined with historical information and prompt templates, the text input instruction corresponding to the information to be retrieved can be obtained based on the historical text input instruction and the output of the corresponding retrieval model, the text information to be retrieved and / or the text information corresponding to the audio information to be retrieved. By combining historical question and answer information, the relevance of the context is increased, so that the text input instruction contains more complete information.

[0049] In step S13, target retrieval content matching the information to be retrieved is generated based on the visual sequence, the audio sequence, the text input instruction and the retrieval model.

[0050] In the disclosed embodiment, the input of the retrieval model is a visual sequence, an audio sequence, and a text instruction, and the output of the retrieval model includes the retrieval content of the text information and the video information. The text input instruction can be input into the retrieval model as a text instruction, and the retrieval model performs an analysis operation based on the visual sequence, the audio sequence, and the text input instruction, and generates the retrieval content of the text information and the video information that matches the information to be retrieved. The retrieval model can be a large language model (LLM).

[0051] In the disclosed embodiment, the text information and video information retrieval content output by the retrieval model can be processed to obtain target retrieval content that matches the information to be retrieved, without the need to manually query the video content frame by frame, so as to provide the target retrieval content. This reduces the human resource pressure for video content retrieval and can meet a variety of retrieval needs.

[0052] Furthermore, the retrieval model in the embodiment of the present disclosure can obtain more video information content and output more accurate target retrieval content by using input information based on three modes: a visual sequence representing visual information, an audio sequence representing audio information, and text input instructions. For example, if the target object does not appear in the video screen, but the sound made by the target object is recorded in the video, the video retrieval method provided by the embodiment of the present disclosure can provide a video clip of the target object making the sound and text describing the sound made by the target object.

[0053] In the disclosed embodiment, the retrieval model may include an encoding module, through which the audio sequence and the visual sequence are encoded and fused to obtain feature vector information containing multimodal information.

[0054] Figure 2 is a flow chart of a method for generating target retrieval content according to an exemplary embodiment. Figure 2 As shown, the following steps are included.

[0055] In step S21, the visual sequence is encoded to obtain visual coding features, and the audio sequence is encoded to obtain audio coding features.

[0056] In the disclosed embodiment, a pre-trained video encoder model may be used to encode a video sequence to obtain encoded video data corresponding to the encoded sequence, which may also be referred to as a visual encoding feature. A pre-trained audio encoder model may also be used to encode an audio sequence to obtain encoded audio data corresponding to the encoded sequence, which may also be referred to as an audio encoding feature.

[0057] In step S22, the visual coding features and the audio coding features are aligned and fused to obtain fused audio and video features.

[0058] In the disclosed embodiment, the visual coding feature may be a feature vector capable of representing information contained in a visual sequence, and the audio coding feature may be a feature vector capable of representing information contained in an audio sequence.

[0059] In the disclosed embodiment, a pre-trained feature fusion model can be used to perform alignment and fusion operations on the acquired visual coding features and audio coding features. Among them, the alignment operation of the visual coding features and the audio coding features can be to establish a corresponding relationship between the visual coding features and the audio coding features at the same time, ensuring that the visual and audio features are corresponding in time series. The alignment operation can also be to align the size and length of the visual coding features and the audio coding features at the same time. For example, the visual coding feature is an x-dimensional vector, and the audio coding feature is a y-dimensional vector. x and y are not the same positive integers. Then, the visual coding feature and the audio coding feature can be uniformly adjusted to a z-dimensional vector, where z is a positive integer.

[0060] In the disclosed embodiment, the visual coding features and audio coding features after the alignment operation are subjected to feature fusion. The feature fusion operation may be one or a combination of concatenation, weighted summation, and feature interaction of the visual coding features and the audio coding features. Through the feature fusion operation, a fused audio and video feature including the visual coding features and the audio coding features is obtained to achieve the representation of the two modal features of vision and audio using unified features.

[0061] In step S23, the fused audio and video features and text input instructions are input into the retrieval model to obtain target text information and target video information, and based on the target text information and target video information, target retrieval content matching the information to be retrieved is obtained.

[0062] In the disclosed embodiment, fused audio and video features including visual features and audio features of a video and text input instructions converted from the information to be retrieved may be input into a retrieval model. The retrieval model searches the fused audio and video features, obtains fused audio and video features that match the text input instructions, and generates target retrieval content that matches the information to be retrieved, which is used to answer the question information contained in the information to be retrieved.

[0063] In the disclosed embodiment, the encoding module in the model can save the fused audio and video features in a feature vector library, which includes fused audio and video features corresponding to multiple videos. After obtaining the information to be retrieved, the relevant fused audio and video features in the vector library are directly retrieved for retrieval.

[0064] Figure 3 is a flowchart of a video retrieval method according to an exemplary embodiment. Figure 3 As shown, the following steps are included.

[0065] In step S31, based on the text input instruction, the fused audio and video features matching the text input instruction in the feature vector library are obtained.

[0066] In the disclosed embodiment, before the text input instruction is input into the retrieval model, the fused audio and video features existing in the feature vector library can be screened based on the text input instruction, and the screened fused audio and video features can be input into the retrieval model to reduce the retrieval pressure of the retrieval model and enhance the correlation between the input fused audio and video features and the text input instruction. For example, the feature vector library includes the fused audio and video features of the past n days, and the fused audio and video features of each day are separately stored in the feature vector library and marked with time information. If it is detected that the user's text input instruction is "Please search for target XX in yesterday's video", the fused audio and video features representing the information content of yesterday's video in the retrieval library can be retrieved as the fused audio and video features corresponding to the text input instruction.

[0067] In step S32, the text input instruction and the fused audio and video features corresponding to the text input instruction are input into the retrieval model.

[0068] In the disclosed embodiment, the fused audio and video features corresponding to the text input instruction in the feature vector library are used to obtain the fused video features most relevant to the text input instruction in the feature vector library. The fused audio and video features corresponding to the text input instruction are input into the retrieval model together with the text input instruction, thereby improving the quality of the retrieval model's answer to the text input instruction and the corresponding fused audio and video features, and reducing the interference and retrieval pressure caused by irrelevant fused audio and video features.

[0069] In the disclosed embodiment, by adding a linear connection layer in the phase retrieval model, it is possible to input the fused audio and video features into the retrieval model.

[0070] In the embodiment of the present disclosure, the information included in the target retrieval content may be multimodal information. For example, the target retrieval content may include target text information and target video.

[0071] Figure 4 is a flow chart of a method for obtaining target search content according to an exemplary embodiment. Figure 4 As shown, the following steps are included.

[0072] In step S41, based on the target video information, a target video in the video that matches the target video information is determined.

[0073] In the disclosed embodiment, the target video information output by the retrieval model may be the time information of the video, for example, the frame number interval or time interval of the video. The corresponding video segment in the target video information may be determined through a simple mapping relationship, and the video segment may be used as the target video matching the target video information.

[0074] In step S42, the target text information and the target video are used as target search content that matches the information to be searched.

[0075] In the disclosed embodiment, the generated target text information and the target video corresponding to the target video information are output as target retrieval content generated by the retrieval model based on the information to be retrieved, so as to obtain multimodal target retrieval content based on the information to be retrieved, making the provided target retrieval content richer, more comprehensive and accurate, and enhancing the user's retrieval experience.

[0076] In an exemplary embodiment, the structure of the retrieval model for the surveillance video scene is as follows: Figure 5 As shown, Figure 5 is a schematic diagram of a retrieval model for a surveillance video scene according to an exemplary embodiment. Figure 5 In the process, the ordered frame images (corresponding to the visual sequence) of a video are input into the video encoder for encoding to obtain the video embedding information (video embedding, corresponding to the visual encoding feature), and the audio signal (corresponding to the audio sequence) of the video is input into the audio encoder for encoding to obtain the audio embedding information (audio embedding, corresponding to the audio encoding feature). The video embedding and audio embedding are input into the feature fusion module to obtain the encoding features of the aligned audio and video content (corresponding to the fused audio and video features). The encoding features are combined with the text instructions and input into the large model. The large model is improved on the basis of the question-answering large language pre-training model. The linear connection layer is used to input the encoding features of the audio and video into the model. The text instructions are processed according to the prompt words of the model and output as text and video sequence frames corresponding to the text content.

[0077] exist Figure 5 In the model, the model can use a large number of datasets of video image title pairs and visual instruction tuning datasets to train the retrieval model, and also include vertical datasets for monitoring video instruction tuning to achieve targeted training for monitoring video content. Use existing video encoders (such as Vision Transformer), audio encoders (such as ImageBind), and existing parameters in the open source large language model to train the parameters of the audio and video encoding feature input branch and feature fusion module to align audio and video in the feature embedding space. Fix the parameters of the video encoder, audio encoder, and feature fusion module, and train the large model part consisting of the fine-tuned audio and video encoding feature input branch and the large language model.

[0078] In an exemplary embodiment, the video retrieval process for the surveillance video scene is as follows: Figure 6 As shown, Figure 6 The figure is a schematic diagram showing a video retrieval process of a surveillance video scene according to an exemplary embodiment.

[0079] exist Figure 6 In the example, for the text instructions input by the user (corresponding to the information to be retrieved), the text instructions input by the user can be processed into a form that conforms to the model input (corresponding to the text input instructions), and historical information can be integrated if there is any. The processed user instructions and the surveillance video encoding vector (corresponding to the fused audio and video features) are input into the multimodal large model, and the model outputs text (corresponding to the target text information) and video sequence (corresponding to the target video information). Combined with the system marking time of the surveillance video, the corresponding video clip is extracted according to the video sequence and returned to the user together with the model output text.

[0080] In an exemplary embodiment, the effect of the video retrieval method provided by the embodiment of the present disclosure in the surveillance video scene is as follows: Figure 7 As shown, Figure 7 It is an effect diagram of a video retrieval method in a surveillance video scene according to an exemplary embodiment.

[0081] exist Figure 7 In the surveillance video scene in the monitoring system, the graphical interface in the monitoring system may include multiple areas, and each area may include multiple regional monitoring points, such as Figure 7 As shown, in area A, area B, area C and area D, area A includes monitoring points A1 and A2, and area B includes monitoring points B1 and B2. The user can preliminarily filter the monitoring video data in the vector library by selecting a specific monitoring point in a specific area. For example, if the user selects monitoring point A1 in area A, the monitoring video content obtained by monitoring point A1 in area A in the vector library can be filtered out as the obtained video. The user can input voice or text information to the monitoring system through input operations in the input area. After the user completes the input, the user's input content and the search content generated based on the multimodal model (corresponding to the retrieval model) and post-processed are displayed in the information display area of ​​the monitoring system. For example, the user inputs natural language to search for clues in the surveillance video content, "Help me find the final destination of item A on the ground this afternoon." The multimodal large model (corresponding retrieval model) searches the content to be searched input by the user and the stored feature vector library obtained through the surveillance video to generate target retrieval content that matches the information to be searched, including: target text information "Based on the understanding and search of the content of the surveillance video, item A placed under the steps was moved by a black dog at hh hours and mm minutes on MM months and days YYYY. Click the following screen to view the detailed clip" and the corresponding target video. In the surveillance system, the video timeline can also be displayed to display the time information corresponding to the current playback frame in the target video output by the multimodal model. The user can operate the video timeline by clicking or dragging to control the target video to display the playback frame corresponding to the video timeline.

[0082] In the disclosed embodiment, the visual information and audio information in the video are parsed to obtain the video sequence and audio sequence, and the video sequence, audio sequence and the information to be retrieved are input into the retrieval model, and the target retrieval content matching the information to be retrieved is obtained based on the output content of the retrieval model, so as to realize the automatic generation of retrieval results based on the content to be retrieved, reduce the resources required for video retrieval, and improve the retrieval efficiency of video retrieval. And for the content to be retrieved, the model can be used to generate the target retrieval content that meets the retrieval requirements contained in the content to be retrieved, so that the generated target retrieval content meets more retrieval requirements.

[0083] Based on the same concept, the embodiment of the present disclosure also provides a video retrieval device.

[0084] It is understandable that the video retrieval device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0085] Figure 8 FIG. 1 is a block diagram of a video retrieval device 100 according to an exemplary embodiment. Figure 8 The device includes an acquisition unit 101, a parsing unit 102 and a processing unit 103.

[0086] The acquisition unit 101 is used to acquire a video and information to be retrieved for performing content retrieval on the video.

[0087] The parsing unit 102 is used to parse the visual information included in the video to obtain a visual sequence, parse the audio information included in the video to obtain an audio sequence, and convert the information to be retrieved into a text input instruction.

[0088] The processing unit 103 is used to generate target retrieval content matching the information to be retrieved based on the visual sequence, audio sequence, text input instructions and retrieval model. The input of the retrieval model is the visual sequence, audio sequence and text instructions, and the output of the retrieval model includes the retrieval content of text information and video information.

[0089] In one embodiment, the processing unit 103 generates target retrieval content that matches the information to be retrieved based on the visual sequence, the audio sequence, the text input instructions and the retrieval model in the following manner: encode the visual sequence to obtain visual coding features, and encode the audio sequence to obtain audio coding features; align and fuse the visual coding features and the audio coding features to obtain fused audio and video features; input the fused audio and video features and the text input instructions into the retrieval model to obtain target text information and target video information, and based on the target text information and the target video information, obtain the target retrieval content that matches the information to be retrieved.

[0090] In one embodiment, the fused audio and video features are stored in a feature vector library, which includes fused audio and video features corresponding to multiple videos; the processing unit 103 inputs the fused audio and video features and the text input instructions into the retrieval model in the following manner: based on the text input instructions, the fused audio and video features matching the text input instructions in the feature vector library are obtained; the text input instructions and the fused audio and video features corresponding to the text input instructions are input into the retrieval model.

[0091] In one embodiment, the processing unit 103 obtains target retrieval content that matches the information to be retrieved based on the target text information and the target video information in the following manner: based on the target video information, determine the target video in the video that matches the target video information; and use the target text information and the target video as the target retrieval content that matches the information to be retrieved.

[0092] In one embodiment, the information to be retrieved includes text information to be retrieved and / or audio information to be retrieved, and the parsing unit 102 converts the information to be retrieved into text input instructions in the following manner: in response to the information to be retrieved including audio information to be retrieved, obtaining text information corresponding to the audio information to be retrieved; based on historical text input instructions and the output of the corresponding retrieval model, the text information to be retrieved and / or the text information corresponding to the audio information to be retrieved, obtaining text input instructions corresponding to the information to be retrieved.

[0093] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0094] Fig. 9 2 is a block diagram of a device 200 for video retrieval according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0095] Reference Fig. 9, the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0096] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0097] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0098] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0099] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0100] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0101] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0102] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0103] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0104] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0105] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0106] Fig.10 is a block diagram of a device 300 for video retrieval according to an exemplary embodiment. For example, the device 300 may be provided as a server. Fig.10 The apparatus 300 includes a processing component 322, which further includes one or more processors, and a memory resource represented by a memory 332 for storing instructions, such as an application, that can be executed by the processing component 322. The application stored in the memory 332 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 322 is configured to execute the instructions to perform the above-mentioned video retrieval method.

[0107] The device 300 may also include a power supply component 326 configured to perform power management of the device 300, a wired or wireless network interface 350 configured to connect the device 300 to a network, and an input / output (I / O) interface 358. The device 300 may operate based on an operating system stored in the memory 332, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0108] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0109] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0110] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0111] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0112] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0113] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A video retrieval method, characterized in that: include: Acquire a video and information to be retrieved for performing content retrieval on the video; Parsing visual information included in the video to obtain a visual sequence, parsing audio information included in the video to obtain an audio sequence, and converting the information to be retrieved into a text input instruction; Based on the visual sequence, the audio sequence, the text input instructions and the retrieval model, target retrieval content matching the information to be retrieved is generated, the input of the retrieval model is the visual sequence, the audio sequence and the text instructions, and the output of the retrieval model includes the retrieval content of the text information and the video information.

2. The method according to claim 1, characterized in that The step of generating target search content matching the information to be searched based on the visual sequence, the audio sequence, the text input instruction and the search model comprises: Encoding the visual sequence to obtain visual coding features, and encoding the audio sequence to obtain audio coding features; Aligning and fusing the visual coding features and the audio coding features to obtain fused audio and video features; The fused audio and video features and the text input instructions are input into a retrieval model to obtain target text information and target video information, and based on the target text information and the target video information, target retrieval content matching the information to be retrieved is obtained.

3. The method according to claim 2, characterized in that The fused audio and video features are stored in a feature vector library, and the feature vector library includes fused audio and video features corresponding to multiple videos; The step of inputting the fused audio and video features and the text input instruction into a retrieval model comprises: Based on the text input instruction, obtaining the fused audio and video features matching the text input instruction in the feature vector library; The text input instruction and the fused audio and video features corresponding to the text input instruction are input into the retrieval model.

4. The method according to claim 2 or 3, characterized in that: The step of obtaining target search content matching the information to be searched based on the target text information and the target video information includes: Based on the target video information, determining a target video in the video that matches the target video information; The target text information and the target video are used as target retrieval content that matches the information to be retrieved.

5. The method according to claim 1, characterized in that The information to be retrieved includes text information to be retrieved and / or audio information to be retrieved, and converting the information to be retrieved into a text input instruction includes: In response to the information to be retrieved including the audio information to be retrieved, acquiring text information corresponding to the audio information to be retrieved; Based on the historical text input instructions and the output of the corresponding retrieval model, the text information to be retrieved and / or the text information corresponding to the audio information to be retrieved, the text input instructions corresponding to the information to be retrieved are obtained.

6. A video retrieval device, characterized in that: include: An acquisition unit, used to acquire a video and information to be retrieved for performing content retrieval on the video; A parsing unit, configured to parse the visual information included in the video to obtain a visual sequence, parse the audio information included in the video to obtain an audio sequence, and convert the information to be retrieved into a text input instruction; A processing unit is used to generate target retrieval content matching the information to be retrieved based on the visual sequence, the audio sequence, the text input instruction and the retrieval model, wherein the input of the retrieval model is the visual sequence, the audio sequence and the text instruction, and the output of the retrieval model includes the retrieval content of the text information and the video information.

7. The device according to claim 6, characterized in that The processing unit generates target retrieval content matching the information to be retrieved based on the visual sequence, the audio sequence, the text input instruction and the retrieval model in the following manner: Encoding the visual sequence to obtain visual coding features, and encoding the audio sequence to obtain audio coding features; Aligning and fusing the visual coding features and the audio coding features to obtain fused audio and video features; The fused audio and video features and the text input instructions are input into a retrieval model to obtain target text information and target video information, and based on the target text information and the target video information, target retrieval content matching the information to be retrieved is obtained.

8. The device according to claim 7, characterized in that The fused audio and video features are stored in a feature vector library, and the feature vector library includes fused audio and video features corresponding to multiple videos; The processing unit inputs the fused audio and video features and the text input instruction into the retrieval model in the following manner: Based on the text input instruction, obtaining the fused audio and video features matching the text input instruction in the feature vector library; The text input instruction and the fused audio and video features corresponding to the text input instruction are input into the retrieval model.

9. The device according to claim 7 or 8, characterized in that The processing unit obtains target search content matching the information to be searched based on the target text information and the target video information in the following manner: Based on the target video information, determining a target video in the video that matches the target video information; The target text information and the target video are used as target retrieval content that matches the information to be retrieved.

10. The device according to claim 6, characterized in that The information to be retrieved includes text information to be retrieved and / or audio information to be retrieved, and the parsing unit converts the information to be retrieved into a text input instruction in the following manner: In response to the information to be retrieved including the audio information to be retrieved, acquiring text information corresponding to the audio information to be retrieved; Based on the historical text input instructions and the output of the corresponding retrieval model, the text information to be retrieved and / or the text information corresponding to the audio information to be retrieved, the text input instructions corresponding to the information to be retrieved are obtained.

11. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the method described in any one of claims 1 to 5.

12. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Text-to-video cross-modal retrieval method based on multistage coding

    CN111309971A

  • Video retrieval method and device, electronic equipment and computer readable storage medium

    CN114090823A

  • Method for intelligently identifying and searching programs based on audio

    CN114547373A

  • Multi-mode video retrieval method and device based on multiple encoders, equipment and medium

    CN116737996A

  • Multi-modal file retrieval method and system based on large language model and medium

    CN118035473A

Cited By

  • Visual language positioning method and device based on multiple modes

    CN119271843A