US20200304822A1 - Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server - Google Patents

Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server Download PDF

Info

Publication number
US20200304822A1
US20200304822A1 US16/893,154 US202016893154A US2020304822A1 US 20200304822 A1 US20200304822 A1 US 20200304822A1 US 202016893154 A US202016893154 A US 202016893154A US 2020304822 A1 US2020304822 A1 US 2020304822A1
Authority
US
United States
Prior art keywords
video
feature
original video
decoding
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US16/893,154
Inventor
Bairui WANG
Lin Ma
Wei Liu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of US20200304822A1 publication Critical patent/US20200304822A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7844Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using original textual content or text extracted from visual content or transcript of audio data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • G06K9/00718
    • G06K9/00751
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • G06V20/47Detecting features for summarising video content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234336Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by media transcoding, e.g. video is transformed into a slideshow of still pictures or audio is converted into text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display

Definitions

  • This application relates to the field of Internet technologies, specifically, to the field of video processing technologies, and in particular, to a video processing method, a video processing apparatus, a video retrieval method, a video retrieval apparatus, a computer storage medium, and a server.
  • a video processing procedure generally includes an encoding stage and a decoding stage.
  • an encoder performs feature extraction on each frame of an original video.
  • a decoder predicts a natural sentence used for describing the content of the video according to an extracted video feature.
  • the video content understanding service is implemented by using the solution in the related art, only a natural sentence used for describing video content is obtained, and how to improve a description accuracy rate of the natural sentence for the video content is not considered. Consequently, the quality of the video content understanding service cannot be ensured.
  • Embodiments of this application provide a video processing method and apparatus, a video retrieval method and apparatus, a storage medium, and a server.
  • a video processing method is applied to a video processing system, the video processing system including an encoder, a decoder, and a reconstructor, and the method including:
  • adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • the video processing method further includes:
  • a video retrieval method includes:
  • the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing method for generating a natural sentence;
  • a video processing apparatus includes:
  • a processing unit configured to perform encoding and decoding on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • a reconstruction unit configured to reconstruct a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage
  • a difference obtaining unit configured to obtain a difference between the video feature of the target video and the video feature of the original video
  • an optimization unit configured to adjust a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • the processing unit is further configured to: determine words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and combine the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • a video retrieval apparatus includes:
  • a receiving unit configured to receive a video retrieval request, the video retrieval request carrying retrieval key information
  • a retrieval unit configured to search a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing apparatus for generating a natural sentence;
  • an obtaining unit configured to obtain a matching video corresponding to the natural sentence matching the retrieval key information
  • an output unit configured to output the matching video.
  • a non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform the following operations:
  • adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • the computer-readable instructions when executed by the one or more processors, cause the one or more processors to further perform the following operations:
  • a non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform the following operations:
  • the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained by performing operations in the video processing method for generating a natural sentence;
  • a server including a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform the following operations:
  • adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • the computer-readable instructions when executed by the one or more processors, cause the one or more processors to further perform the following operations:
  • a server including a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform the following operations:
  • the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained by performing operations in the video processing method for generating a natural sentence;
  • FIG. 1 is a schematic structural diagram of the framework of an existing video processing system.
  • FIG. 2 is a schematic structural diagram of the framework of a video processing system according to an embodiment of this application.
  • FIG. 3 is a flowchart of a video processing method according to an embodiment of this application.
  • FIG. 4 is a flowchart of another video processing method according to an embodiment of this application.
  • FIG. 5 is a flowchart of still another video processing method according to an embodiment of this application.
  • FIG. 6 is a schematic structural diagram of a video processing apparatus according to an embodiment of this application.
  • FIG. 7 is a flowchart of a video retrieval method according to an embodiment of this application.
  • FIG. 8 a is a schematic diagram of a page of a video website according to an embodiment of this application.
  • FIG. 8 b is a schematic diagram of a video retrieval interface of a video website according to an embodiment of this application.
  • FIG. 8 c is a schematic diagram of a retrieval result interface of a video website according to an embodiment of this application.
  • FIG. 9 is a schematic structural diagram of a video retrieval apparatus according to an embodiment of this application.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of this application.
  • a video content understanding service has emerged to facilitate quick understanding of the main content of videos.
  • the so-called video content understanding service is performing a series of encoding and decoding processing such as video feature extraction and video content understanding on a video, to eventually generate a natural sentence used for describing video content.
  • the video content understanding service is a service of describing video content with a natural sentence.
  • the video content understanding service may be applied to a plurality of Internet scenarios.
  • the video content understanding service may be applied to a categorization scenario in which videos are categorized based on natural sentence descriptions of the videos on a video website.
  • the video content understanding service may further be applied to a retrieval scenario of a video website in which videos are retrieved based on natural sentence descriptions of the videos, and may further be combined with a voice retrieval system to convert natural sentences of videos into voice for output to help the visually impaired perform video retrieval.
  • An important factor of measuring the quality of the video content understanding service is a description accuracy rate of a natural sentence used for describing video content.
  • a higher description accuracy rate of the natural sentence indicates a higher matching degree between content expressed by the natural sentence and the video content, so that the quality of the video content understanding service is improved, and user experience is better.
  • a lower description accuracy rate of the natural sentence indicates a lower matching degree between the content expressed by the natural sentence and the video content, so that the quality of the video content understanding service is lowered, and the user experience is poorer.
  • a video processing system shown in FIG. 1 is used for implementing the video content understanding service. Referring to FIG. 1 , a framework structure of the video processing system is mainly formed by an encoder and a decoder.
  • an existing video processing procedure includes an encoding stage and a decoding stage.
  • the encoder performs feature extraction on each frame of an original video.
  • an extracted frame feature is transformed in a manner such as an average feature mechanism or an attention mechanism, and the decoder then predicts a natural sentence used for describing the content of the video according to a transformed video feature.
  • the decoder generates the natural sentence by using the video feature outputted by the encoder.
  • a description accuracy rate of the natural sentence for video content may be affected because partial semantics of the video content are neglected, and the quality of the video content understanding service is affected as a result.
  • a description accuracy rate of a natural sentence for video content is improved by using both forward information from the video content to the natural sentence and backward information from the natural sentence to the video content, that is, by using bilateral information, thereby improving the quality of the video content understanding service.
  • a specific principle is as follows: since a natural sentence used for describing content of an original video can be generated by performing a series of processing on the content of the original video, conversely, the content of the original video can be restored by preforming a series of processing on the generated natural sentence.
  • the video processing system provided in this embodiment of this application introduces a reconstructor configured to reconstruct and restore the video content based on the conventional solution.
  • the video processing system in an embodiment of this application includes an encoder, a decoder, and a reconstructor.
  • the encoder, the decoder, and the reconstructor may be specifically devices formed by hardware, or may be implemented in the form of computer programs.
  • the computer programs may be run on a server shown in FIG.
  • the original video is a to-be-described video that is originally inputted into the encoder
  • a target video is an inputted video that is reconstructed and restored by the reconstructor according to the natural sentence obtained through decoding.
  • the video processing system shown in FIG. 2 there are mainly four stages in a video processing procedure in this embodiment of this application, including an encoding stage, a decoding stage, a reconstruction stage, and an optimization stage. The stages are specifically as follows:
  • An original video is inputted into the encoder, and the encoder performs feature extraction on each frame of the original video, to obtain a frame feature sequence.
  • the frame feature sequence may also be referred to as a video feature of the original video.
  • the encoder may perform feature extraction based on a convolutional neural network (CNN).
  • CNN convolutional neural network
  • an example in which the encoder performs feature extraction based on a CNN Inception-V4 is used.
  • the frame feature sequence V of the original video After the frame feature sequence V of the original video is obtained, the frame feature sequence may be transformed in a manner such as an average feature mechanism or an attention mechanism, and a video feature obtained through transformation is then inputted into the decoder.
  • the decoder predicts words at a plurality of decoding moments according to the video feature, and combines the words at the decoding moments according to a time sequence to generate a natural sentence used for describing content of the original video.
  • the average feature mechanism is performing integration and transformation on the frame feature sequence according to a method of calculating an average feature.
  • the frame feature sequence V is integrated based on the average feature mechanism, and the integrated video feature may be expressed by the following Formula (1):
  • the attention mechanism also referred to as an attention model, is widely applied to various types of deep learning tasks such as natural language processing, image recognition, and voice recognition, and greatly improves the deep learning tasks.
  • the attention mechanism may include a spatial attention mechanism and a temporal attention mechanism.
  • the temporal attention mechanism is applied more widely.
  • the system performance in sequence-to-sequence natural language processing can be effectively improved either by introducing the attention mechanism into an encoder framework to perform weighted transformation on a source sequence or by introducing the attention mechanism into a decoder framework to perform weighted transformation on a target sequence.
  • the frame feature sequence V is integrated based on the temporal attention mechanism, and the integrated video feature may be expressed by the following Formula (2):
  • ⁇ i indicates a dynamic weight of the frame feature ⁇ i . It may be known from the foregoing Formula (2) that, the temporal attention mechanism allocates one weight to each frame feature, and an integrated feature is obtained by performing weighted addition on all frame features.
  • the decoder may predict the natural sentence by using a recursive neural network (RNN).
  • RNN a recursive neural network
  • LSTM long short-term memory
  • an example in which the frame feature sequence is transformed by using the temporal attention mechanism are used for description.
  • S the natural sentence that is generated by the decoder and is used for describing the content of the original video.
  • a specific processing procedure of the decoding stage in this embodiment of this application is as follows:
  • the frame feature sequence V is integrated once by using the temporal attention mechanism.
  • the temporal attention mechanism For specific integration processing, refer to the foregoing Formula (2).
  • the foregoing Formula (2) may be transformed into the following Formula (3):
  • C t k indicates an integrated feature obtained at any decoding moment t k
  • ⁇ i t k indicates a dynamic weight allocated to a frame feature ⁇ i at a decoding moment t k
  • the integrated feature obtained at each decoding moment is inputted into the decoder, and the decoder predicts a word at each decoding moment according to the inputted integrated feature.
  • Formula (4) For a process in which the decoder predicts a word, refer to the following Formula (4):
  • s ⁇ k indicates some words that have been obtained through prediction in the natural sentence S
  • indicates a processing parameter of the decoder.
  • P( ) indicates a probability of the word s k obtained through prediction at a current decoding moment
  • exp( ) indicates an exponential function
  • h k indicates the k th hidden state of the LSTM network of the decoder.
  • ⁇ ( ) indicates an activation function of the LSTM network of the decoder.
  • the hidden state sequence H of the original video at the decoding stage is transformed in a manner such as an average feature mechanism or an attention mechanism, the transformed hidden state is inputted into the reconstructor, and the reconstructor reconstructs a feature of a target video according to the transformed hidden state.
  • the reconstructor may reconstruct a feature of an inputted video based on a deep neural network.
  • the deep neural network herein may include, but is not limited to, a CNN and a recurrent neural network.
  • An LSTM network is used as an example.
  • the hidden state sequence H of the original video at the decoding stage is used as an input of an LSTM network of the reconstructor, and a global feature and/or local features of the target video may be reconstructed.
  • the global feature herein is a feature jointly reflected by all video frames, and the local features are several frame features.
  • the reconstructor may reconstruct a global feature of the target video.
  • the reconstructor needs to fully consider hidden states the original video in the decoding stage at all decoding moments.
  • the reconstructor needs to perform n times of reconstruction processing. It is assumed that a reconstruction moment is t j , where j is a positive integer, and 1 ⁇ j ⁇ n. It may be seen that, the reconstruction moment t j corresponds to the decoding moment t k .
  • a correspondence herein is that: a global feature of the target video at a reconstruction moment t 1 may be reconstructed by using a hidden state h 1 at a decoding moment t 1 ; a global feature of the target video at a reconstruction moment t 2 may be reconstructed by using a hidden state h 2 at a decoding moment t 2 ; similarly, a global feature of the target video at a reconstruction moment t n may be reconstructed by using a hidden state h n at a decoding moment t n . It may be known from the above, a global feature of the target video at the reconstruction moment t j may be reconstructed by using the hidden state h k at any decoding moment t k .
  • the hidden state sequence H of the original video at the decoding stage may be integrated based on the average feature mechanism, and the global expression information of the natural sentence predicted by the decoder may be obtained, which is shown in the following Formula (5).
  • ⁇ (H) indicates an average feature of the hidden states of the decoder at the decoding moments.
  • i t j , ⁇ t j , o t j and g t j are respectively referred to as an input gate, a forget gate, a memory gate, and an output gate.
  • tanh( ) is a hyperbolic tangent function
  • is a common activation function, such as the sigmoid function, in a neural network.
  • z j not only indicates the hidden state of the reconstructor at the current reconstruction moment t j , but also indicates the global feature of the target video reconstructed by the reconstructor at the current reconstruction moment t j .
  • the reconstructor may reconstruct local features of the target video.
  • the reconstructor needs to reconstruct a feature, that is, a frame feature, of each video frame in the target video including m (m is a positive integer) frames.
  • the local features of the target video include the frame feature.
  • the reconstructor needs to perform m times of reconstruction processing.
  • a reconstruction moment is t j , where j is a positive integer, and 1 ⁇ j ⁇ m. It is assumed that the reconstructor obtains a frame feature z 1 through reconstruction at a reconstruction moment t 1 , and obtains a frame feature z 2 through reconstruction at a reconstruction moment t 2 .
  • the rest is deduced by analogy, and the reconstructor obtains a frame feature z m through reconstruction at a reconstruction moment t m .
  • the hidden state sequence of the original video at the decoding stage is transformed based on the temporal attention mechanism, and a process of the transformation is specifically: at each reconstruction moment, every time the reconstructor performs reconstruction processing of a frame feature, performing transformation once on the hidden state sequence of the decoder by using the temporal attention mechanism.
  • local expression information of the natural sentence obtained by the decoder through prediction may be obtained, that is, text information ⁇ t j of the current reconstruction moment t j is obtained, where
  • the hidden state z j-1 of the reconstructor at the previous reconstruction moment t j-1 are then used as inputs of the LSTM network of the reconstructor, and a hidden state z j of the reconstructor at the current reconstruction moment t j is obtained.
  • the process may be represented by the following Formula (8):
  • z t j not only indicates the hidden state of the reconstructor at the current reconstruction moment t j , but also indicates one frame feature of the target video reconstructed by the reconstructor at the current reconstruction moment t j .
  • a feature of the target video is compared with a feature of the original video that is originally inputted. If a difference between the two features is relatively small (for example, less than a preset threshold), it indicates that the natural sentence generated by the decoder is a relatively accurate description of video content of the original video. Conversely, if the difference between the two features is relatively large (for example, greater than the preset threshold), it indicates that the natural sentence generated by the decoder is not an adequately accurate description of video content of the original video.
  • processing parameters of the decoder and/or the reconstructor may be optimized and trained based on the difference between the two parameters, so that the difference between the two parameters is gradually reduced. In this process, backward information from the natural sentence to the video content is used for constraining the generation of the natural sentence by the decoder. With continuous optimization, an entire framework network of the video processing system tends to be stable, and the generated natural sentence describes the video content more accurately.
  • the server may construct a global loss function L rec g of the reconstructor by using a Euclidean distance between the global feature of the original video and the global feature of the target video, which is represented by:
  • the server may construct a local loss function L rec l of the reconstructor by using an average Euclidean distance between video frame features of the constructed target video and frame features of the original video, which is represented by:
  • ⁇ rec indicates a processing parameter of the reconstructor.
  • is an empirical parameter used for balancing the impact of a loss of the reconstructor on the entire video processing system, and the value of ⁇ may be set according to actual experience.
  • L rec (V, Z; ⁇ rec ) in the foregoing Formula (11) is replaced with Formula (9), and the value of ⁇ may be set to 0.2.
  • L rec (V, Z; ⁇ rec ) in the foregoing Formula (11) is replaced with Formula (10), and the value of ⁇ may be set to 0.1.
  • the foregoing Formula (11) reflects a difference between the feature of the original video and the feature of the target video.
  • An effect of the optimization stage is to optimize and train the entire framework network of the video processing system, and the constantly reduced difference reflected in Formula (11), thereby constraining the generation of the natural sentence, to enable the description accuracy rate of the natural sentence to be higher.
  • the difference is mainly affected by the processing parameter ⁇ of the decoder and the processing parameter ⁇ rec of the reconstructor.
  • a process of the optimization stage is training the processing parameter of the decoder and/or the processing parameter of the reconstructor based on the difference function in the foregoing Formula (11), so that a result of Formula (11) is less than a preset threshold, to reduce the difference.
  • forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain the natural sentence
  • backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video
  • the framework of a video processing system is optimized based on a difference between the target video and the original video.
  • an embodiment of this application provides a video processing method.
  • the method may be applied to the video processing system shown in FIG. 2 .
  • the method may include the following steps S 101 to S 104 .
  • forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence
  • backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video
  • the framework of a video processing system is optimized based on a difference between the target video and the original video.
  • An embodiment of this application provides another video processing method.
  • the method may be applied to the video processing system shown in FIG. 2 .
  • the method may include the following steps S 201 to S 211 .
  • Step S 203 may include the following steps s 11 and s 12 .
  • forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence
  • backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video
  • the framework of a video processing system is optimized based on a difference between the target video and the original video.
  • An embodiment of this application provides still another video processing method.
  • the method may be applied to the video processing system shown in FIG. 2 .
  • the method may include the following steps S 301 to S 311 .
  • forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence
  • backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video
  • the framework of a video processing system is optimized based on a difference between the target video and the original video.
  • each step of the flowcharts in FIG. 3 to FIG. 5 is displayed sequentially according to arrows, the steps are not necessarily performed according to an order indicated by arrows. Unless explicitly specified in this application, the sequence of the steps is not strictly limited, and the steps may be performed in other sequences.
  • at least some steps in FIG. 3 to FIG. 5 may include a plurality of substeps or a plurality of stages. The substeps or the stages are not necessarily performed at a same moment, and instead may be performed at different moments.
  • a performing sequence of the substeps or the stages is not necessarily performing in sequence, and instead may be performing in turn or alternately with another step or at least some of substeps or stages of the another step.
  • an embodiment of this application further discloses a video processing apparatus.
  • the video processing apparatus may be a computer program (including program code) run on a server.
  • the video processing apparatus may be applied to the video processing methods in the embodiments shown in FIG. 3 to FIG. 5 , so as to perform the steps in the video processing methods.
  • the video processing apparatus includes the following units:
  • a processing unit 101 configured to perform encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • a reconstruction unit 102 configured to reconstruct a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage;
  • a difference obtaining unit 103 configured to obtain a difference between the video feature of the target video and the video feature of the original video
  • an optimization unit 104 configured to adjust a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • the processing unit 101 is specifically configured to: invoke the encoder to extract frame features of the original video; combine the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video; obtain hidden states of the decoder at a plurality of decoding moments; and combine the obtained hidden states at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain the hidden state of the original video at the decoding stage.
  • the processing unit 101 is specifically configured to: integrate the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature; and invoke the decoder to perform decoding processing on the integrated feature, to obtain the hidden states of the decoder at the plurality of decoding moments.
  • the video feature of the target video includes a global feature of the target video
  • the reconstruction unit 102 is specifically configured to: apply an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and invoke the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
  • the difference obtaining unit 103 is specifically configured to: calculate a first Euclidean distance between the global feature of the target video and the video feature of the original video; construct a global loss function of the reconstructor according to the first Euclidean distance; obtain a loss function of the decoder; construct a global difference function according to the loss function of the decoder and the global loss function of the reconstructor; and determine the difference between the video feature of the target video and the video feature of the original video according to the global difference function.
  • the reconstruction unit 102 is specifically configured to: apply a temporal attention mechanism to a hidden state of the decoder at each decoding moment, to obtain corresponding local expression information; and invoke the reconstructor to reconstruct local features of the target video according to the local expression information and the hidden state of the decoder at each decoding moment.
  • the difference obtaining unit 103 is specifically configured to: calculate second Euclidean distances between the local features of the target video and the video feature of the original video; construct a local loss function of the reconstructor according to the second Euclidean distances; obtain a loss function of the decoder; and determine the difference between the video feature of the target video and the video feature of the original video according to a local difference function.
  • the optimization unit 104 is specifically configured to: optimize and update the processing parameter of the decoder according to the difference; and/or optimize and update the processing parameter of the reconstructor according to the difference.
  • the processing unit is further configured to: determine words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and combine the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • steps S 101 to S 104 involved in the video processing method shown in FIG. 3 may be performed by the units in the video processing apparatus shown in FIG. 6 .
  • steps S 101 , S 102 , S 103 , and S 104 shown in FIG. 3 may be respectively performed by the processing unit 101 , the reconstruction unit 102 , the difference obtaining unit 103 , and the optimization unit 104 shown in FIG. 6 .
  • steps S 201 to S 211 involved in the video processing method shown in FIG. 4 may be performed by the units in the video processing apparatus shown in FIG. 6 .
  • steps S 201 to S 204 , S 205 and S 206 , S 207 to S 210 , and S 211 shown in FIG. 4 may be respectively performed by the processing unit 101 , the reconstruction unit 102 , the difference obtaining unit 103 , and the optimization unit 104 shown in FIG. 6 .
  • steps S 201 to S 211 involved in the video processing method shown in FIG. 5 may be performed by the units in the video processing apparatus shown in FIG. 6 .
  • steps S 301 to S 304 , S 305 and S 306 , S 307 to S 310 , and S 311 shown in FIG. 5 may be respectively performed by the processing unit 101 , the reconstruction unit 102 , the difference obtaining unit 103 , and the optimization unit 104 shown in FIG. 6 .
  • the units in the video processing apparatus shown in FIG. 6 may be separately or wholly combined into one or several other units, or one (or more) of the units herein may further be divided into multiple units of smaller functions. In this way, same operations can be implemented, and implementation of the technical effects of the embodiments of this application is not affected.
  • the foregoing units are divided based on logical functions. During actual application, a function of one unit may be implemented by a plurality of units, or functions of a plurality of units are implemented by one unit. In other embodiments of this application, the video processing apparatus may also include other units. During actual application, the functions may also be cooperatively implemented by other units and may be cooperatively implemented by a plurality of units.
  • forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence
  • backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video
  • the framework of a video processing system is optimized based on a difference between the target video and the original video.
  • the method may include the following steps S 401 to S 404 .
  • the video processing system shown in FIG. 2 may be deployed on a backend server of a video website.
  • the video processing system can predict and generate natural sentences with high description accuracy rates for all videos on the video website, thereby providing a high-quality video content understanding service (for example, a video retrieval service) for the video website.
  • the video website may provide a video retrieval entrance.
  • the video website is provided with a video retrieval shortcut button (a dashed-line box part shown in FIG. 8 a ).
  • a video retrieval shortcut button triggered (for example, clicked or selected)
  • a video retrieval interface shown in FIG. 8 b is entered.
  • the video retrieval interface includes an input interface, and a user may input retrieval key information into the input interface, and clicks a “Search” button to initiate a video retrieval request.
  • the video retrieval request carries the retrieval key information inputted by the user, so that a front end (for example, a browser client) of the video website transmits the video retrieval request to the backend server, and the backend server provides a video retrieval service to the user based on the video processing system shown in FIG. 2 .
  • the input interface in the video retrieval interface may include a text input interface and a voice input interface. Retrieval key information inputted through the text input interface is a retrieval text.
  • the retrieval text is characters such as a keyword “roast” or “running”.
  • Retrieval key information inputted through the voice input interface is a retrieval audio.
  • the retrieval audio is voice appearing in a to-be-retrieved video uploaded by the user or an audio such as recorded voice of the user.
  • the video database includes all the videos on the video website. Specifically, the video database includes at least one video category, at least one video in each video category, and a natural sentence corresponding to each video.
  • the natural sentence corresponding to each video is obtained through prediction by the video processing system.
  • the natural sentence corresponding to each video is obtained through processing by using the video processing method for generating a natural sentence.
  • the video database may be represented by the following table:
  • Video Video category Natural sentence Video-1 TV shows Natural sentence 1 Video-2 Movies Natural sentence 2 Video-3 Variety shows Natural sentence 3 . . . . . . . .
  • Video categories may be set by the video website according to various attributes. For example, video categories shown in Table 1 may be set according to content attributes. Alternatively, video categories such as Chinese mainland, Hong Kong & Taiwan, Europe & US, and Japan & Korea may be set according to regional attributes.
  • Each video category includes a tag set.
  • the tag set may include a plurality of tags, and the tags may be content tags of videos in the video category, tags manually set on the backend, comment tags of users, or the like.
  • the videos may be categorized according to a natural sentence of each video. Specifically, a natural sentence of a video is sequentially formed by a plurality of words, so that the natural sentence of the video may be indicated by a word set.
  • the natural sentence 1 corresponding to the Video-1 may be represented by ⁇ word 1, word 2, . . . , word n ⁇ . Because each video category has a corresponding tag set, the videos may be categorized by calculating matching degrees between word sets corresponding to natural sentences of the videos and tag sets of the video categories.
  • the retrieval key information may include a retrieval text or a retrieval audio.
  • the retrieval text may be alternatively represented by a keyword set in practice, and may be represented by ⁇ keyword 1, keyword 2, . . . , and keyword n ⁇ .
  • the retrieval text includes the characters “roast” and “running”, and a keyword set corresponding to the retrieval text is ⁇ roast, running ⁇ .
  • similarities between the keyword set and the word sets corresponding to the natural sentences of the videos shown in Table 1 may be separately calculated.
  • a similarity between the keyword set and a word set corresponding to a natural sentence is greater than a preset threshold, it indicates that the two sets match. Otherwise, the two sets do not match. In this way, one or more natural sentences matching the retrieval key information may be found from the video database.
  • the retrieval key information is a retrieval audio
  • an audio-to-text technology may be first used, to convert the retrieval audio into a retrieval text.
  • One or more natural sentences matching the retrieval key information may then be found from the video database according to a matching method in the foregoing implementation.
  • This implementation may be used to help the visually impaired perform video retrieval, thereby improving the intelligence and practicality of a video retrieval function of the video website.
  • steps S 403 and S 404 for example, assuming that a similarity between the retrieval key information and the natural sentence 1 is greater than the preset threshold, and a similarity between the retrieval key information and the natural sentence 2 is also greater than the preset threshold, the retrieval key information matches the natural sentence 1 and also matches the natural sentence 2. Therefore, it may be obtained according to Table 1 that matching videos include Video-1 and Video-2. Further, as shown in a retrieval result interface in FIG. 8 c , the matching videos Video-1 and Video-2 are displayed in the retrieval result interface. It may be understood that, there may be one or more matching videos. When outputted, the matching videos may be outputted in descending order of similarities between natural sentences of the matching videos and the retrieval key information or may be outputted in random order.
  • a natural sentence with a higher accuracy rate can be predicted for a video based on an optimized framework of a video processing system, and a matching video meeting a video retrieval requirement is obtained according to the natural sentence, thereby providing a high-quality video retrieval service to a user, and improving the intelligence and practicality of the video processing system.
  • an embodiment of this application further provides a video retrieval apparatus.
  • the video retrieval apparatus may be a computer program (including program code) run on a server.
  • the video retrieval apparatus may be applied to the video retrieval method in the embodiment shown in FIG. 7 , so as to perform the steps in the video retrieval method. Referring to FIG. 9 , the video retrieval apparatus runs the following units:
  • a receiving unit 201 configured to receive a video retrieval request, the video retrieval request carrying retrieval key information
  • a retrieval unit 202 configured to search a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing apparatus for generating a natural sentence;
  • an obtaining unit 203 configured to obtain a matching video corresponding to the natural sentence matching the retrieval key information
  • an output unit 204 configured to output the matching video.
  • steps S 401 to S 404 involved in the video retrieval method shown in FIG. 7 may be performed by the units in the video retrieval apparatus shown in FIG. 9 .
  • steps S 401 , S 402 , S 403 , and S 404 shown in FIG. 7 may be respectively performed by the receiving unit 201 , the retrieval unit 202 , the obtaining unit 203 , and the output unit 204 shown in FIG. 9 .
  • units in the video retrieval apparatus shown in FIG. 9 may be separately or wholly combined into one or several other units, or one (or more) of the units herein may further be divided into multiple units of smaller functions. In this way, same operations can be implemented, and implementation of the technical effects of the embodiments of this application is not affected.
  • the foregoing units are divided based on logical functions.
  • a function of one unit may be implemented by a plurality of units, or functions of a plurality of units are implemented by one unit.
  • the video retrieval apparatus may also include other units.
  • the functions may also be cooperatively implemented by other units and may be cooperatively implemented by a plurality of units.
  • a natural sentence with a higher accuracy rate can be predicted for a video based on an optimized framework of a video processing system, and a matching video meeting a video retrieval requirement is obtained according to the natural sentence, thereby providing a high-quality video retrieval service to a user, and improving the intelligence and practicality of the video processing system.
  • an embodiment of this application further provides a server, and the server may be a backend server of a video website.
  • the server may be a backend server of a video website.
  • an internal structure of the server at least includes the video processing system shown in FIG. 2 , that is, includes an encoder, a decoder, and a reconstructor.
  • the interior of the server further includes a processor, a communications interface, and a computer storage medium.
  • the processor, the communications interface, and the computer storage medium of the server may be connected by a bus or in other manners. In FIG. 10 in this embodiment of this application, a bus connection is used as an example.
  • the communications interface is a medium implementing interaction and information exchange between the server and an external device (for example, a terminal device).
  • the processor (or referred to as a central processing unit (CPU)) is a computing core and a control core of the server, is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement a corresponding method procedure and a corresponding function.
  • the processor is configured to: control the video processing system to perform encoding and decoding processing on an original video, reconstruct a target video, obtain a difference between the target video and the original video, optimize the framework of the video processing system according to the difference, and the like.
  • the processor is configured to: search a video database for a matching natural sentence according to retrieval key information carried in a video retrieval request, obtain and output a matching video corresponding to the matching natural sentence, and the like.
  • the non-transitory computer storage medium is a memory device in the server and is configured to store programs and data.
  • the computer storage medium herein may include an internal storage medium of the server and may also include an expanded storage medium supported by the server.
  • the computer storage medium provides a storage space, storing an operating system of the server.
  • the storage space further stores one or more instructions are suitable for being loaded and executed by the processor, and the instructions may be one or more computer programs (including program code).
  • the computer storage medium herein may be a high speed random access memory (RAM) or a non-transitory memory, for example, at least one magnetic disk memory.
  • the computer storage medium may further be at least one computer storage medium located away from the foregoing processor.
  • the computer storage medium stores one or more first instructions.
  • the processor loads and executes the one or more first instructions stored in the computer storage medium, to implement corresponding steps in the method procedures shown in FIG. 3 to FIG. 5 .
  • the one or more first instructions in the computer storage medium are loaded and executed by the processor to perform the following steps: performing encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage; reconstructing a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage; obtaining a difference between the video feature of the target video and the video feature of the original video; and adjusting a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • the processor in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of performing encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage, the processor specifically performs the following steps: invoking the encoder to extract frame features of the original video; combining the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video; obtaining hidden states of the decoder at a plurality of decoding moments; and combining the obtained hidden states at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain the hidden state of the original video at the decoding stage.
  • the processor in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of obtaining hidden states of the decoder at a plurality of decoding moments, specifically performs the following steps: integrating the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature; and invoking the decoder to perform decoding processing on the integrated feature, to obtain the hidden states of the decoder at the plurality of decoding moments.
  • the video feature of the target video includes a global feature of the target video.
  • the processor loads the one or more first instructions in the computer storage medium to perform the step of reconstructing a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage, the processor specifically performs the following steps: applying an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and invoking the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
  • the processor specifically performs the following steps: calculating a first Euclidean distance between the global feature of the target video and the video feature of the original video; constructing a global loss function of the reconstructor according to the first Euclidean distance; obtaining a loss function of the decoder; constructing a global difference function according to the loss function of the decoder and the global loss function of the reconstructor; and determining the difference between the video feature of the target video and the video feature of the original video according to the global difference function.
  • the video feature of the target video includes local features of the target video.
  • the processor loads the one or more first instructions in the computer storage medium to perform the step of reconstructing a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage, the processor specifically performs the following steps: applying a temporal attention mechanism to a hidden state of the decoder at each decoding moment, to obtain corresponding local expression information; and invoking the reconstructor to reconstruct the local features of the target video according to the local expression information and the hidden state of the decoder at each decoding moment.
  • the processor specifically performs the following steps: calculating second Euclidean distances between the local features of the target video and the video feature of the original video; constructing a local loss function of the reconstructor according to the second Euclidean distances; obtaining a loss function of the decoder; constructing a local difference function according to the loss function of the decoder and the local loss function of the reconstructor; and determining the difference between the video feature of the target video and the video feature of the original video according to the local difference function.
  • the processor in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of adjusting a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference, specifically performs the following steps: optimizing and updating the processing parameter of the decoder according to the difference; and/or optimizing and updating the processing parameter of the reconstructor according to the difference.
  • the processor loads the one or more first instructions in the computer storage medium to perform the following steps: determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain the natural sentence
  • backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video
  • the framework of a video processing system is optimized based on a difference between the target video and the original video.
  • the computer storage medium stores one or more second instructions.
  • the processor loads and executes the one or more second instructions stored in the computer storage medium, to implement corresponding steps in the method procedure shown in FIG. 7 .
  • the one or more second instructions in the computer storage medium are loaded and executed by the processor to perform the following steps: receiving a video retrieval request, the video retrieval request carrying retrieval key information; searching a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained by performing the video processing apparatus for generating a natural sentence; obtaining a matching video corresponding to the natural sentence matching the retrieval key information; and outputting the matching video.
  • the retrieval key information includes a retrieval text or a retrieval audio.
  • the retrieval key information is a retrieval audio
  • the processor before the processor loads the one or more second instructions in the computer storage medium to perform the step of searching a video database for a natural sentence matching the retrieval key information, the processor further performs the following step: converting the retrieval audio into a retrieval text.
  • this application provides a non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform operations in the foregoing video processing method and/or video retrieval method.
  • the operations in the video processing method and the video retrieval method herein may be steps in the foregoing video processing method and/or video retrieval method in the embodiments.
  • this application provides a server including a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform operations in the foregoing video processing method and/or video retrieval method.
  • the operations in the video processing method and the video retrieval method herein may be steps in the foregoing video processing method and/or video retrieval method in the embodiments.
  • a natural sentence with a higher accuracy rate can be predicted for a video based on an optimized framework of a video processing system, and a matching video meeting a video retrieval requirement is obtained according to the natural sentence, thereby providing a high-quality video retrieval service to a user, and improving the intelligence and practicality of the video processing system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Provided are a video processing method and apparatus, a video retrieval method and apparatus, a medium, and a server. The video processing method includes: performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage; reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage; obtaining a difference between the video feature of the target video and the video feature of the original video; and adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation application of PCT Patent Application No. PCT/CN2019/075534, entitled “VIDEO PROCESSING METHOD AND APPARATUS, VIDEO RETRIEVAL METHOD AND APPARATUS, STORAGE MEDIUM AND SERVER” filed on Feb. 20, 2019, which claims priority to Chinese Patent Application No. 201810179638.4, entitled “VIDEO PROCESSING METHOD AND APPARATUS, VIDEO RETRIEVAL METHOD AND APPARATUS, STORAGE MEDIUM, AND SERVER” filed Mar. 5, 2018, all of which are incorporated by reference in their entirety.
  • FIELD OF THE TECHNOLOGY
  • This application relates to the field of Internet technologies, specifically, to the field of video processing technologies, and in particular, to a video processing method, a video processing apparatus, a video retrieval method, a video retrieval apparatus, a computer storage medium, and a server.
  • BACKGROUND OF THE DISCLOSURE
  • A video content understanding service has emerged to facilitate quick understanding of the main content of videos. The video content understanding service is a service of describing video content with a natural sentence. An important factor of measuring the quality of the video content understanding service is a description accuracy rate of a natural sentence used for describing video content. In the related art, a video processing procedure generally includes an encoding stage and a decoding stage. In the encoding stage, an encoder performs feature extraction on each frame of an original video. In the decoding stage, a decoder predicts a natural sentence used for describing the content of the video according to an extracted video feature. Although the video content understanding service is implemented by using the solution in the related art, only a natural sentence used for describing video content is obtained, and how to improve a description accuracy rate of the natural sentence for the video content is not considered. Consequently, the quality of the video content understanding service cannot be ensured.
  • SUMMARY
  • Embodiments of this application provide a video processing method and apparatus, a video retrieval method and apparatus, a storage medium, and a server.
  • A video processing method is applied to a video processing system, the video processing system including an encoder, a decoder, and a reconstructor, and the method including:
  • performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage; obtaining a difference between the video feature of the target video and the video feature of the original video; and
  • adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • In an embodiment, the video processing method further includes:
  • determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and
  • combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • A video retrieval method includes:
  • receiving a video retrieval request, the video retrieval request carrying retrieval key information;
  • searching a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing method for generating a natural sentence; and
  • obtaining a matching video corresponding to the natural sentence matching the retrieval key information, and outputting the matching video.
  • A video processing apparatus includes:
  • a processing unit, configured to perform encoding and decoding on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • a reconstruction unit, configured to reconstruct a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage;
  • a difference obtaining unit, configured to obtain a difference between the video feature of the target video and the video feature of the original video; and
  • an optimization unit, configured to adjust a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • In an embodiment, the processing unit is further configured to: determine words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and combine the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • A video retrieval apparatus includes:
  • a receiving unit, configured to receive a video retrieval request, the video retrieval request carrying retrieval key information;
  • a retrieval unit, configured to search a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing apparatus for generating a natural sentence;
  • an obtaining unit, configured to obtain a matching video corresponding to the natural sentence matching the retrieval key information; and
  • an output unit, configured to output the matching video.
  • A non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform the following operations:
  • performing encoding and decoding on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage;
  • obtaining a difference between the video feature of the target video and the video feature of the original video; and
  • adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • In an embodiment, the computer-readable instructions, when executed by the one or more processors, cause the one or more processors to further perform the following operations:
  • determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and
  • combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • A non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform the following operations:
  • receiving a video retrieval request, the video retrieval request carrying retrieval key information;
  • searching a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained by performing operations in the video processing method for generating a natural sentence; and
  • obtaining a matching video corresponding to the natural sentence matching the retrieval key information, and outputting the matching video.
  • A server including a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform the following operations:
  • performing encoding and decoding on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage;
  • obtaining a difference between the video feature of the target video and the video feature of the original video; and
  • adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
  • In an embodiment, the computer-readable instructions, when executed by the one or more processors, cause the one or more processors to further perform the following operations:
  • determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and
  • combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • A server including a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform the following operations:
  • receiving a video retrieval request, the video retrieval request carrying retrieval key information;
  • searching a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained by performing operations in the video processing method for generating a natural sentence; and
  • obtaining a matching video corresponding to the natural sentence matching the retrieval key information, and outputting the matching video.
  • Details of one or more embodiments of this application are provided in the accompany drawings and description below. Other features, objectives, and advantages of this application become apparent from the specification, the accompanying drawings, and the claims.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • To describe the technical solutions in the embodiments of this application or the related art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the related art. Apparently, the accompanying drawings in the following description show merely some embodiments of this application, and a person of ordinary skill in the art may derive other drawings from the accompanying drawings without creative efforts.
  • FIG. 1 is a schematic structural diagram of the framework of an existing video processing system.
  • FIG. 2 is a schematic structural diagram of the framework of a video processing system according to an embodiment of this application.
  • FIG. 3 is a flowchart of a video processing method according to an embodiment of this application.
  • FIG. 4 is a flowchart of another video processing method according to an embodiment of this application.
  • FIG. 5 is a flowchart of still another video processing method according to an embodiment of this application.
  • FIG. 6 is a schematic structural diagram of a video processing apparatus according to an embodiment of this application.
  • FIG. 7 is a flowchart of a video retrieval method according to an embodiment of this application.
  • FIG. 8a is a schematic diagram of a page of a video website according to an embodiment of this application.
  • FIG. 8b is a schematic diagram of a video retrieval interface of a video website according to an embodiment of this application.
  • FIG. 8c is a schematic diagram of a retrieval result interface of a video website according to an embodiment of this application.
  • FIG. 9 is a schematic structural diagram of a video retrieval apparatus according to an embodiment of this application.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of this application.
  • DESCRIPTION OF EMBODIMENTS
  • The following clearly and completely describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application.
  • A video content understanding service has emerged to facilitate quick understanding of the main content of videos. The so-called video content understanding service is performing a series of encoding and decoding processing such as video feature extraction and video content understanding on a video, to eventually generate a natural sentence used for describing video content. In other words, the video content understanding service is a service of describing video content with a natural sentence. The video content understanding service may be applied to a plurality of Internet scenarios. For example, the video content understanding service may be applied to a categorization scenario in which videos are categorized based on natural sentence descriptions of the videos on a video website. For another example, the video content understanding service may further be applied to a retrieval scenario of a video website in which videos are retrieved based on natural sentence descriptions of the videos, and may further be combined with a voice retrieval system to convert natural sentences of videos into voice for output to help the visually impaired perform video retrieval.
  • An important factor of measuring the quality of the video content understanding service is a description accuracy rate of a natural sentence used for describing video content. A higher description accuracy rate of the natural sentence indicates a higher matching degree between content expressed by the natural sentence and the video content, so that the quality of the video content understanding service is improved, and user experience is better. Conversely, a lower description accuracy rate of the natural sentence indicates a lower matching degree between the content expressed by the natural sentence and the video content, so that the quality of the video content understanding service is lowered, and the user experience is poorer. In a conventional solution, a video processing system shown in FIG. 1 is used for implementing the video content understanding service. Referring to FIG. 1, a framework structure of the video processing system is mainly formed by an encoder and a decoder. Correspondingly, an existing video processing procedure includes an encoding stage and a decoding stage. In the encoding stage, the encoder performs feature extraction on each frame of an original video. In the decoding stage, an extracted frame feature is transformed in a manner such as an average feature mechanism or an attention mechanism, and the decoder then predicts a natural sentence used for describing the content of the video according to a transformed video feature. It may be seen from the foregoing video processing solution that, in the conventional solution, the decoder generates the natural sentence by using the video feature outputted by the encoder. However, in the natural sentence generated by using the conventional solution, a description accuracy rate of the natural sentence for video content may be affected because partial semantics of the video content are neglected, and the quality of the video content understanding service is affected as a result.
  • Based on this, the embodiments of this application provide such a concept of a video processing system: a description accuracy rate of a natural sentence for video content is improved by using both forward information from the video content to the natural sentence and backward information from the natural sentence to the video content, that is, by using bilateral information, thereby improving the quality of the video content understanding service. A specific principle is as follows: since a natural sentence used for describing content of an original video can be generated by performing a series of processing on the content of the original video, conversely, the content of the original video can be restored by preforming a series of processing on the generated natural sentence. If a difference between the restored content and the content of the original video is relatively small (for example, less than a preset threshold), it indicates that the generated natural sentence is a relatively accurate description of the content of the original video. Otherwise, it indicates that the generated natural sentence is not an adequately accurate description of the content of the original video. Based on this principle, the video processing system provided in this embodiment of this application introduces a reconstructor configured to reconstruct and restore the video content based on the conventional solution. Referring to FIG. 2 together, the video processing system in an embodiment of this application includes an encoder, a decoder, and a reconstructor. The encoder, the decoder, and the reconstructor may be specifically devices formed by hardware, or may be implemented in the form of computer programs. The computer programs may be run on a server shown in FIG. 10 or may further be jointly implemented by combining software and hardware. In the subsequent embodiments of this application, the original video is a to-be-described video that is originally inputted into the encoder, and a target video is an inputted video that is reconstructed and restored by the reconstructor according to the natural sentence obtained through decoding. Based on the video processing system shown in FIG. 2, there are mainly four stages in a video processing procedure in this embodiment of this application, including an encoding stage, a decoding stage, a reconstruction stage, and an optimization stage. The stages are specifically as follows:
  • 1. Encoding Stage:
  • An original video is inputted into the encoder, and the encoder performs feature extraction on each frame of the original video, to obtain a frame feature sequence. The frame feature sequence may also be referred to as a video feature of the original video. Generally, the encoder may perform feature extraction based on a convolutional neural network (CNN).
  • In an embodiment, an example in which the encoder performs feature extraction based on a CNN Inception-V4 is used. For an original video including m (m is a positive integer) frames, the encoder may obtain a feature νi of each frame through extraction by using the CNN Inception-V4, and the feature νi is a feature vector of 1536 dimensions. Therefore, a frame feature sequence V={ν1, ν2 . . . νm} may be eventually obtained.
  • 2. Decoding Stage:
  • After the frame feature sequence V of the original video is obtained, the frame feature sequence may be transformed in a manner such as an average feature mechanism or an attention mechanism, and a video feature obtained through transformation is then inputted into the decoder. The decoder predicts words at a plurality of decoding moments according to the video feature, and combines the words at the decoding moments according to a time sequence to generate a natural sentence used for describing content of the original video.
  • The average feature mechanism is performing integration and transformation on the frame feature sequence according to a method of calculating an average feature. In this embodiment of this application, the frame feature sequence V is integrated based on the average feature mechanism, and the integrated video feature may be expressed by the following Formula (1):
  • C = 1 m i = 1 m v i ( 1 )
  • The attention mechanism, also referred to as an attention model, is widely applied to various types of deep learning tasks such as natural language processing, image recognition, and voice recognition, and greatly improves the deep learning tasks. The attention mechanism may include a spatial attention mechanism and a temporal attention mechanism. In an encoding and decoding processing framework of videos, the temporal attention mechanism is applied more widely. During specific implementation, the system performance in sequence-to-sequence natural language processing can be effectively improved either by introducing the attention mechanism into an encoder framework to perform weighted transformation on a source sequence or by introducing the attention mechanism into a decoder framework to perform weighted transformation on a target sequence. In this embodiment of this application, the frame feature sequence V is integrated based on the temporal attention mechanism, and the integrated video feature may be expressed by the following Formula (2):
  • C = i = 1 m α i v i i = 1 m α i = 1 ( 2 )
  • In the foregoing Formula (2), αi indicates a dynamic weight of the frame feature νi. It may be known from the foregoing Formula (2) that, the temporal attention mechanism allocates one weight to each frame feature, and an integrated feature is obtained by performing weighted addition on all frame features.
  • Generally, the decoder may predict the natural sentence by using a recursive neural network (RNN). In an embodiment, a recurrent neural network of a long short-term memory (LSTM) (referred to as an LSTM network for short below) and an example in which the frame feature sequence is transformed by using the temporal attention mechanism are used for description. Assuming that the natural sentence that is generated by the decoder and is used for describing the content of the original video is represented by S. The length of the natural sentence S is n (n is a positive integer), and the value of n may be set according to an actual requirement. For example, it is set that n=30, which indicates that the length of the natural sentence S is 30 words long. For another example, it is set that n=25, which indicates that the length of the natural sentence S is 25 words long. Because the length of the natural sentence S is n, it indicates that the decoder performs a total of n times of decoding processing in the decoding stage. Each time of decoding processing needs to predict one word. That is, the decoder obtains a word s1 through prediction at a decoding moment t1, and obtains a word s2 through prediction at a decoding moment t2. The rest is deduced by analogy, and a word sn is obtained through prediction at a decoding moment tn. In other words, in the decoding stage, the decoder obtains a word sk through prediction at any decoding moment tk (k is a positive integer, and 1≤k≤n). Therefore, the natural sentence obtained by the decoder through prediction is S={s1, s2, . . . sk, . . . , sn}. In this case, a specific processing procedure of the decoding stage in this embodiment of this application is as follows:
  • To capture global time information in the original video, every time the decoder predicts a word, the frame feature sequence V is integrated once by using the temporal attention mechanism. For specific integration processing, refer to the foregoing Formula (2). However, in the decoding stage in this embodiment of this application, when the time attention model allocates a weight to each frame at a current decoding moment, the factor of a hidden state of the LSTM network of the decoder at a previous decoding moment further needs to be considered. Therefore, integrated features obtained by performing integration at the decoding moments may be different. Therefore, the foregoing Formula (2) may be transformed into the following Formula (3):
  • C t k = i = 1 m α i t k v i i = 1 m α i t k = 1 ( 3 )
  • In the foregoing Formula (3), Ct k indicates an integrated feature obtained at any decoding moment tk, and αi t k indicates a dynamic weight allocated to a frame feature νi at a decoding moment tk. The integrated feature obtained at each decoding moment is inputted into the decoder, and the decoder predicts a word at each decoding moment according to the inputted integrated feature. For a process in which the decoder predicts a word, refer to the following Formula (4):

  • P(s k |s <k ,V,θ)∝exp(ƒ(s k-1 ,h k ,c t k ,θ))  (4)
  • sk∈S={s1, s2, . . . sk . . . , sn} indicates the kth word in the natural sentence S, s<k indicates some words that have been obtained through prediction in the natural sentence S, and θ indicates a processing parameter of the decoder. P( ) indicates a probability of the word sk obtained through prediction at a current decoding moment, exp( ) indicates an exponential function, and hk indicates the kth hidden state of the LSTM network of the decoder. ƒ( ) indicates an activation function of the LSTM network of the decoder. It may be known from the foregoing Formula (4) that, in the decoding stage, the decoder can predict a probability of the word sk at any decoding moment tk, at the same time obtain the hidden state hk of the LSTM network of the decoder at any decoding moment tk, and combine obtained hidden states at a plurality of decoding moments according to a time sequence of the decoding moments, to obtain a hidden state of the original video at the decoding stage, which is also referred to as a hidden state sequence H={h1, h2, . . . hk, . . . hn} of the original video at the decoding stage.
  • 3. Reconstruction Stage:
  • The hidden state sequence H of the original video at the decoding stage is transformed in a manner such as an average feature mechanism or an attention mechanism, the transformed hidden state is inputted into the reconstructor, and the reconstructor reconstructs a feature of a target video according to the transformed hidden state.
  • In an embodiment, the reconstructor may reconstruct a feature of an inputted video based on a deep neural network. The deep neural network herein may include, but is not limited to, a CNN and a recurrent neural network. An LSTM network is used as an example. The hidden state sequence H of the original video at the decoding stage is used as an input of an LSTM network of the reconstructor, and a global feature and/or local features of the target video may be reconstructed. The global feature herein is a feature jointly reflected by all video frames, and the local features are several frame features.
  • In an embodiment, the reconstructor may reconstruct a global feature of the target video.
  • First, to reconstruct the global feature of the target video, the reconstructor needs to fully consider hidden states the original video in the decoding stage at all decoding moments. Corresponding to the n times of decoding processing performed by the decoder in the decoding stage, in the reconstruction stage, the reconstructor needs to perform n times of reconstruction processing. It is assumed that a reconstruction moment is tj, where j is a positive integer, and 1≤j≤n. It may be seen that, the reconstruction moment tj corresponds to the decoding moment tk. A correspondence herein is that: a global feature of the target video at a reconstruction moment t1 may be reconstructed by using a hidden state h1 at a decoding moment t1; a global feature of the target video at a reconstruction moment t2 may be reconstructed by using a hidden state h2 at a decoding moment t2; similarly, a global feature of the target video at a reconstruction moment tn may be reconstructed by using a hidden state hn at a decoding moment tn. It may be known from the above, a global feature of the target video at the reconstruction moment tj may be reconstructed by using the hidden state hk at any decoding moment tk. In this case, j and k have the same value. In this embodiment of this application, the hidden state sequence H of the original video at the decoding stage may be integrated based on the average feature mechanism, and the global expression information of the natural sentence predicted by the decoder may be obtained, which is shown in the following Formula (5).
  • φ ( H ) = 1 n j = 1 n h j ( 5 )
  • In Formula (5), ϕ(H) indicates an average feature of the hidden states of the decoder at the decoding moments.
  • ϕ(H), the hidden state hj of the original video at the decoding stage corresponding to the current reconstruction moment tj, and a hidden state zj-1 of the reconstructor at a previous reconstruction moment tj-1 are then used as inputs of the LSTM network of the reconstructor, and a hidden state zj of the reconstructor at the current reconstruction moment tj is obtained. For this process, refer to the following Formula (6):
  • ( i t j f t j o t j g t j ) = ( σ σ σ tanh ) T ( h j z j - 1 φ ( H ) ) m t j = f t j m t j - 1 + i t j g t j z j = o t j •tanh ( m t j ) ( 6 )
  • In the foregoing Formula (6), it j , ƒt j , ot j and gt j are respectively referred to as an input gate, a forget gate, a memory gate, and an output gate. tanh( ) is a hyperbolic tangent function, and σ is a common activation function, such as the sigmoid function, in a neural network. zj not only indicates the hidden state of the reconstructor at the current reconstruction moment tj, but also indicates the global feature of the target video reconstructed by the reconstructor at the current reconstruction moment tj.
  • In an embodiment, the reconstructor may reconstruct local features of the target video.
  • First, the reconstructor needs to reconstruct a feature, that is, a frame feature, of each video frame in the target video including m (m is a positive integer) frames. The local features of the target video include the frame feature. In other words, when the local features of the target video are reconstructed, the reconstructor needs to perform m times of reconstruction processing. In this case, it is assumed that a reconstruction moment is tj, where j is a positive integer, and 1≤j≤m. It is assumed that the reconstructor obtains a frame feature z1 through reconstruction at a reconstruction moment t1, and obtains a frame feature z2 through reconstruction at a reconstruction moment t2. The rest is deduced by analogy, and the reconstructor obtains a frame feature zm through reconstruction at a reconstruction moment tm. The hidden state sequence of the original video at the decoding stage is transformed based on the temporal attention mechanism, and a process of the transformation is specifically: at each reconstruction moment, every time the reconstructor performs reconstruction processing of a frame feature, performing transformation once on the hidden state sequence of the decoder by using the temporal attention mechanism. In this process, local expression information of the natural sentence obtained by the decoder through prediction may be obtained, that is, text information μt j of the current reconstruction moment tj is obtained, where
  • μ t j = j = 1 m β j t j h j j = 1 m β j t j = 1 ( 7 )
  • μt j , the hidden state zj-1 of the reconstructor at the previous reconstruction moment tj-1 are then used as inputs of the LSTM network of the reconstructor, and a hidden state zj of the reconstructor at the current reconstruction moment tj is obtained. The process may be represented by the following Formula (8):
  • ( i t j f t j o t j g t j ) = ( σ σ σ tanh ) T ( μ t j z t j - 1 ) m t j = f t j m t j - 1 + i t j g t j z j = o t j •tanh ( m t j ) ( 8 )
  • In the foregoing Formula (8), zt j not only indicates the hidden state of the reconstructor at the current reconstruction moment tj, but also indicates one frame feature of the target video reconstructed by the reconstructor at the current reconstruction moment tj.
  • 4. Optimization Stage:
  • A feature of the target video is compared with a feature of the original video that is originally inputted. If a difference between the two features is relatively small (for example, less than a preset threshold), it indicates that the natural sentence generated by the decoder is a relatively accurate description of video content of the original video. Conversely, if the difference between the two features is relatively large (for example, greater than the preset threshold), it indicates that the natural sentence generated by the decoder is not an adequately accurate description of video content of the original video. In such a scenario, processing parameters of the decoder and/or the reconstructor may be optimized and trained based on the difference between the two parameters, so that the difference between the two parameters is gradually reduced. In this process, backward information from the natural sentence to the video content is used for constraining the generation of the natural sentence by the decoder. With continuous optimization, an entire framework network of the video processing system tends to be stable, and the generated natural sentence describes the video content more accurately.
  • In an embodiment, the server may construct a global loss function Lrec g of the reconstructor by using a Euclidean distance between the global feature of the original video and the global feature of the target video, which is represented by:

  • L rec g=φ(ϕ(V),ϕ(Z))  (9)
  • In the foregoing Formula (9), Z indicates a global feature sequence of an inputted video that is reconstructed, where Z={z1, z2, . . . zn}. φ( ) indicates calculating the Euclidean distance.
  • In an embodiment, the server may construct a local loss function Lrec l of the reconstructor by using an average Euclidean distance between video frame features of the constructed target video and frame features of the original video, which is represented by:
  • L rec l = 1 m i = 1 m ϕ ( z i , v i ) ( 10 )
  • Because a difference function of the entire video processing system is formed by a loss function of the decoder and a loss function of the reconstructor, the loss function of the decoder is combined with the loss function of the reconstructor, so that an expression of the difference function of the entire video processing system may be obtained as follows:
  • L ( θ , θ rec ) = i = 1 n ( - logP ( S i | V i ; θ ) ) + λ L rec ( V , Z ; θ rec ) ( 11 )
  • In the foregoing Formula (11), θrec indicates a processing parameter of the reconstructor. λ is an empirical parameter used for balancing the impact of a loss of the reconstructor on the entire video processing system, and the value of λ may be set according to actual experience. When the global feature of the target video is reconstructed according to experience, Lrec(V, Z; θrec) in the foregoing Formula (11) is replaced with Formula (9), and the value of λ may be set to 0.2. When the local features of the target video are reconstructed, Lrec(V, Z; θrec) in the foregoing Formula (11) is replaced with Formula (10), and the value of λ may be set to 0.1.
  • In conclusion, the foregoing Formula (11) reflects a difference between the feature of the original video and the feature of the target video. An effect of the optimization stage is to optimize and train the entire framework network of the video processing system, and the constantly reduced difference reflected in Formula (11), thereby constraining the generation of the natural sentence, to enable the description accuracy rate of the natural sentence to be higher. It may be known from Formula (11) that the difference is mainly affected by the processing parameter θ of the decoder and the processing parameter θrec of the reconstructor. A process of the optimization stage is training the processing parameter of the decoder and/or the processing parameter of the reconstructor based on the difference function in the foregoing Formula (11), so that a result of Formula (11) is less than a preset threshold, to reduce the difference.
  • It may be understood that, according to Formula (11), it may be known that an optimization target of the decoder in the optimization training process is
  • min θ i = 1 n ( - log P ( S i | V i ; θ ) ) .
  • In this embodiment of this application, forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain the natural sentence, backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video, and the framework of a video processing system is optimized based on a difference between the target video and the original video. In this way, a process of generating a natural sentence is constrained by obtaining bilateral information between video content and the natural sentence, so that a description accuracy rate of the natural sentence is improved, and the quality of the video content understanding service is optimized.
  • Based on the foregoing description, an embodiment of this application provides a video processing method. The method may be applied to the video processing system shown in FIG. 2. Referring to FIG. 3, the method may include the following steps S101 to S104.
  • S101. Perform encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage.
  • S102. Reconstruct a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage.
  • S103. Obtain a difference between the video feature of the target video and the video feature of the original video.
  • S104. Adjust a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • In this embodiment of this application, forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence, backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video, and the framework of a video processing system is optimized based on a difference between the target video and the original video. In this way, a process of generating a natural sentence is constrained by obtaining bilateral information between video content and the natural sentence, so that a description accuracy rate of the natural sentence is improved, and the quality of the video content understanding service is optimized.
  • An embodiment of this application provides another video processing method. The method may be applied to the video processing system shown in FIG. 2. Referring to FIG. 4, the method may include the following steps S201 to S211.
  • S201. Invoke an encoder to extract frame features of an original video.
  • S202. Combine the extracted frame features according to a time sequence of video frames of the original video, to generate a video feature of the original video.
  • S203. Obtain hidden states of a decoder at a plurality of decoding moments.
  • Step S203 may include the following steps s11 and s12.
  • s11. Integrate the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature.
  • s12. Invoke the decoder to perform decoding processing on the integrated feature, to obtain the hidden states of the decoder at the plurality of decoding moments.
  • S204. Combine the obtained hidden states at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain the hidden state of the original video at the decoding stage.
  • S205. Apply an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information.
  • S206. Invoke a reconstructor to reconstruct a global feature of a target video according to the global expression information and the hidden state of the original video at the decoding stage.
  • S207. Calculate a first Euclidean distance between the global feature of the target video and the video feature of the original video.
  • S208. Construct a global loss function of the reconstructor according to the first Euclidean distance.
  • S209. Obtain a loss function of the decoder.
  • S210. Construct a global difference function according to the loss function of the decoder and the global loss function of the reconstructor, and determine a difference between a video feature of the target video and the video feature of the original video according to the global difference function.
  • S211. Adjust a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • In this embodiment of this application, forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence, backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video, and the framework of a video processing system is optimized based on a difference between the target video and the original video. In this way, a process of generating a natural sentence is constrained by obtaining bilateral information between video content and the natural sentence, so that a description accuracy rate of the natural sentence is improved, and the quality of the video content understanding service is optimized.
  • An embodiment of this application provides still another video processing method. The method may be applied to the video processing system shown in FIG. 2. Referring to FIG. 5, the method may include the following steps S301 to S311.
  • S301. Invoke an encoder to extract frame features of an original video.
  • S302. Combine the extracted frame features according to a time sequence of video frames of the original video, to generate a video feature of the original video.
  • S303. Obtain hidden states of a decoder at a plurality of decoding moments.
  • S304. Combine the obtained hidden states at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain the hidden state of the original video at the decoding stage.
  • S305. Apply a temporal attention mechanism to a hidden state of the decoder at each decoding moment, to obtain corresponding local expression information.
  • S306. Invoke a reconstructor to reconstruct local features of a target video according to the local expression information and the hidden state of the decoder at each decoding moment.
  • S307. Calculate second Euclidean distances between the local features of the target video and the video feature of the original video.
  • S308. Construct a local loss function of the reconstructor according to the second Euclidean distances.
  • S309. Obtain a loss function of the decoder.
  • S310. Construct a local difference function according to the loss function of the decoder and the local loss function of the reconstructor, and determine a difference between a video feature of the target video and the video feature of the original video according to the local difference function.
  • S311. Adjust a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • In this embodiment of this application, forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence, backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video, and the framework of a video processing system is optimized based on a difference between the target video and the original video. In this way, a process of generating a natural sentence is constrained by obtaining bilateral information between video content and the natural sentence, so that a description accuracy rate of the natural sentence is improved, and the quality of the video content understanding service is optimized.
  • Although each step of the flowcharts in FIG. 3 to FIG. 5 is displayed sequentially according to arrows, the steps are not necessarily performed according to an order indicated by arrows. Unless explicitly specified in this application, the sequence of the steps is not strictly limited, and the steps may be performed in other sequences. In addition, at least some steps in FIG. 3 to FIG. 5 may include a plurality of substeps or a plurality of stages. The substeps or the stages are not necessarily performed at a same moment, and instead may be performed at different moments. A performing sequence of the substeps or the stages is not necessarily performing in sequence, and instead may be performing in turn or alternately with another step or at least some of substeps or stages of the another step.
  • Based on descriptions in the embodiments of the video processing system and the video processing method, an embodiment of this application further discloses a video processing apparatus. The video processing apparatus may be a computer program (including program code) run on a server. The video processing apparatus may be applied to the video processing methods in the embodiments shown in FIG. 3 to FIG. 5, so as to perform the steps in the video processing methods. Referring to FIG. 6, the video processing apparatus includes the following units:
  • a processing unit 101, configured to perform encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
  • a reconstruction unit 102, configured to reconstruct a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage;
  • a difference obtaining unit 103, configured to obtain a difference between the video feature of the target video and the video feature of the original video; and
  • an optimization unit 104, configured to adjust a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • In an embodiment, the processing unit 101 is specifically configured to: invoke the encoder to extract frame features of the original video; combine the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video; obtain hidden states of the decoder at a plurality of decoding moments; and combine the obtained hidden states at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain the hidden state of the original video at the decoding stage.
  • In an embodiment, the processing unit 101 is specifically configured to: integrate the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature; and invoke the decoder to perform decoding processing on the integrated feature, to obtain the hidden states of the decoder at the plurality of decoding moments.
  • In an embodiment, the video feature of the target video includes a global feature of the target video, and the reconstruction unit 102 is specifically configured to: apply an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and invoke the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
  • In an embodiment, the difference obtaining unit 103 is specifically configured to: calculate a first Euclidean distance between the global feature of the target video and the video feature of the original video; construct a global loss function of the reconstructor according to the first Euclidean distance; obtain a loss function of the decoder; construct a global difference function according to the loss function of the decoder and the global loss function of the reconstructor; and determine the difference between the video feature of the target video and the video feature of the original video according to the global difference function.
  • In an embodiment, the reconstruction unit 102 is specifically configured to: apply a temporal attention mechanism to a hidden state of the decoder at each decoding moment, to obtain corresponding local expression information; and invoke the reconstructor to reconstruct local features of the target video according to the local expression information and the hidden state of the decoder at each decoding moment.
  • In an embodiment, the difference obtaining unit 103 is specifically configured to: calculate second Euclidean distances between the local features of the target video and the video feature of the original video; construct a local loss function of the reconstructor according to the second Euclidean distances; obtain a loss function of the decoder; and determine the difference between the video feature of the target video and the video feature of the original video according to a local difference function.
  • In an embodiment, the optimization unit 104 is specifically configured to: optimize and update the processing parameter of the decoder according to the difference; and/or optimize and update the processing parameter of the reconstructor according to the difference.
  • In an embodiment, the processing unit is further configured to: determine words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and combine the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • According to an embodiment of this application, steps S101 to S104 involved in the video processing method shown in FIG. 3 may be performed by the units in the video processing apparatus shown in FIG. 6. For example, steps S101, S102, S103, and S104 shown in FIG. 3 may be respectively performed by the processing unit 101, the reconstruction unit 102, the difference obtaining unit 103, and the optimization unit 104 shown in FIG. 6.
  • According to an embodiment of this application, steps S201 to S211 involved in the video processing method shown in FIG. 4 may be performed by the units in the video processing apparatus shown in FIG. 6. For example, steps S201 to S204, S205 and S206, S207 to S210, and S211 shown in FIG. 4 may be respectively performed by the processing unit 101, the reconstruction unit 102, the difference obtaining unit 103, and the optimization unit 104 shown in FIG. 6.
  • According to an embodiment of this application, steps S201 to S211 involved in the video processing method shown in FIG. 5 may be performed by the units in the video processing apparatus shown in FIG. 6. For example, steps S301 to S304, S305 and S306, S307 to S310, and S311 shown in FIG. 5 may be respectively performed by the processing unit 101, the reconstruction unit 102, the difference obtaining unit 103, and the optimization unit 104 shown in FIG. 6.
  • In an embodiment, the units in the video processing apparatus shown in FIG. 6 may be separately or wholly combined into one or several other units, or one (or more) of the units herein may further be divided into multiple units of smaller functions. In this way, same operations can be implemented, and implementation of the technical effects of the embodiments of this application is not affected. The foregoing units are divided based on logical functions. During actual application, a function of one unit may be implemented by a plurality of units, or functions of a plurality of units are implemented by one unit. In other embodiments of this application, the video processing apparatus may also include other units. During actual application, the functions may also be cooperatively implemented by other units and may be cooperatively implemented by a plurality of units.
  • In this embodiment of this application, forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain a natural sentence, backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video, and the framework of a video processing system is optimized based on a difference between the target video and the original video. In this way, a process of generating a natural sentence is constrained by obtaining bilateral information between video content and the natural sentence, so that a description accuracy rate of the natural sentence is improved, and the quality of the video content understanding service is optimized.
  • Based on descriptions in the embodiments of the video processing system, the video processing method, and the video processing apparatus, an embodiment of this application further discloses a video retrieval method. Referring to FIG. 7, the method may include the following steps S401 to S404.
  • S401. Receive a video retrieval request, the video retrieval request carrying retrieval key information.
  • During actual application, the video processing system shown in FIG. 2 may be deployed on a backend server of a video website. The video processing system can predict and generate natural sentences with high description accuracy rates for all videos on the video website, thereby providing a high-quality video content understanding service (for example, a video retrieval service) for the video website. In an embodiment, the video website may provide a video retrieval entrance. Referring to FIG. 8a , the video website is provided with a video retrieval shortcut button (a dashed-line box part shown in FIG. 8a ). When the video retrieval shortcut button is triggered (for example, clicked or selected), a video retrieval interface shown in FIG. 8b is entered. The video retrieval interface includes an input interface, and a user may input retrieval key information into the input interface, and clicks a “Search” button to initiate a video retrieval request. The video retrieval request carries the retrieval key information inputted by the user, so that a front end (for example, a browser client) of the video website transmits the video retrieval request to the backend server, and the backend server provides a video retrieval service to the user based on the video processing system shown in FIG. 2. Referring to FIG. 8b again, the input interface in the video retrieval interface may include a text input interface and a voice input interface. Retrieval key information inputted through the text input interface is a retrieval text. For example, the retrieval text is characters such as a keyword “roast” or “running”. Retrieval key information inputted through the voice input interface is a retrieval audio. For example, the retrieval audio is voice appearing in a to-be-retrieved video uploaded by the user or an audio such as recorded voice of the user.
  • S402. Search a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing method for generating a natural sentence.
  • The video database includes all the videos on the video website. Specifically, the video database includes at least one video category, at least one video in each video category, and a natural sentence corresponding to each video. The natural sentence corresponding to each video is obtained through prediction by the video processing system. The natural sentence corresponding to each video is obtained through processing by using the video processing method for generating a natural sentence. The video database may be represented by the following table:
  • TABLE 1
    Video database
    Video Video category Natural sentence
    Video-1 TV shows Natural sentence 1
    Video-2 Movies Natural sentence 2
    Video-3 Variety shows Natural sentence 3
    . . . . . . . . .
  • Video categories may be set by the video website according to various attributes. For example, video categories shown in Table 1 may be set according to content attributes. Alternatively, video categories such as Chinese mainland, Hong Kong & Taiwan, Europe & US, and Japan & Korea may be set according to regional attributes. Each video category includes a tag set. The tag set may include a plurality of tags, and the tags may be content tags of videos in the video category, tags manually set on the backend, comment tags of users, or the like. In the video database, the videos may be categorized according to a natural sentence of each video. Specifically, a natural sentence of a video is sequentially formed by a plurality of words, so that the natural sentence of the video may be indicated by a word set. For example, the natural sentence 1 corresponding to the Video-1 may be represented by {word 1, word 2, . . . , word n}. Because each video category has a corresponding tag set, the videos may be categorized by calculating matching degrees between word sets corresponding to natural sentences of the videos and tag sets of the video categories.
  • As described above, the retrieval key information may include a retrieval text or a retrieval audio. In an embodiment, if the retrieval key information is a retrieval text, the retrieval text may be alternatively represented by a keyword set in practice, and may be represented by {keyword 1, keyword 2, . . . , and keyword n}. For example, the retrieval text includes the characters “roast” and “running”, and a keyword set corresponding to the retrieval text is {roast, running}. In this case, similarities between the keyword set and the word sets corresponding to the natural sentences of the videos shown in Table 1 may be separately calculated. If a similarity between the keyword set and a word set corresponding to a natural sentence is greater than a preset threshold, it indicates that the two sets match. Otherwise, the two sets do not match. In this way, one or more natural sentences matching the retrieval key information may be found from the video database.
  • In an embodiment, in a case that the retrieval key information is a retrieval audio, for convenience of subsequent processing, an audio-to-text technology may be first used, to convert the retrieval audio into a retrieval text. One or more natural sentences matching the retrieval key information may then be found from the video database according to a matching method in the foregoing implementation. This implementation may be used to help the visually impaired perform video retrieval, thereby improving the intelligence and practicality of a video retrieval function of the video website.
  • S403. Obtain a matching video corresponding to the natural sentence matching the retrieval key information.
  • S404. Output the matching video.
  • In steps S403 and S404, for example, assuming that a similarity between the retrieval key information and the natural sentence 1 is greater than the preset threshold, and a similarity between the retrieval key information and the natural sentence 2 is also greater than the preset threshold, the retrieval key information matches the natural sentence 1 and also matches the natural sentence 2. Therefore, it may be obtained according to Table 1 that matching videos include Video-1 and Video-2. Further, as shown in a retrieval result interface in FIG. 8c , the matching videos Video-1 and Video-2 are displayed in the retrieval result interface. It may be understood that, there may be one or more matching videos. When outputted, the matching videos may be outputted in descending order of similarities between natural sentences of the matching videos and the retrieval key information or may be outputted in random order.
  • In this embodiment of this application, a natural sentence with a higher accuracy rate can be predicted for a video based on an optimized framework of a video processing system, and a matching video meeting a video retrieval requirement is obtained according to the natural sentence, thereby providing a high-quality video retrieval service to a user, and improving the intelligence and practicality of the video processing system.
  • Based on the video retrieval method shown in the foregoing embodiment, an embodiment of this application further provides a video retrieval apparatus. The video retrieval apparatus may be a computer program (including program code) run on a server. The video retrieval apparatus may be applied to the video retrieval method in the embodiment shown in FIG. 7, so as to perform the steps in the video retrieval method. Referring to FIG. 9, the video retrieval apparatus runs the following units:
  • a receiving unit 201, configured to receive a video retrieval request, the video retrieval request carrying retrieval key information;
  • a retrieval unit 202, configured to search a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained through processing by using the video processing apparatus for generating a natural sentence;
  • an obtaining unit 203, configured to obtain a matching video corresponding to the natural sentence matching the retrieval key information; and
  • an output unit 204, configured to output the matching video.
  • According to an embodiment of this application, steps S401 to S404 involved in the video retrieval method shown in FIG. 7 may be performed by the units in the video retrieval apparatus shown in FIG. 9. For example, steps S401, S402, S403, and S404 shown in FIG. 7 may be respectively performed by the receiving unit 201, the retrieval unit 202, the obtaining unit 203, and the output unit 204 shown in FIG. 9.
  • According to another embodiment of this application, units in the video retrieval apparatus shown in FIG. 9 may be separately or wholly combined into one or several other units, or one (or more) of the units herein may further be divided into multiple units of smaller functions. In this way, same operations can be implemented, and implementation of the technical effects of the embodiments of this application is not affected. The foregoing units are divided based on logical functions. During actual application, a function of one unit may be implemented by a plurality of units, or functions of a plurality of units are implemented by one unit. In other embodiments of this application, the video retrieval apparatus may also include other units. During actual application, the functions may also be cooperatively implemented by other units and may be cooperatively implemented by a plurality of units.
  • In this embodiment of this application, a natural sentence with a higher accuracy rate can be predicted for a video based on an optimized framework of a video processing system, and a matching video meeting a video retrieval requirement is obtained according to the natural sentence, thereby providing a high-quality video retrieval service to a user, and improving the intelligence and practicality of the video processing system.
  • Based on the video processing system, the video processing method, and the video retrieval method shown in the foregoing embodiments, an embodiment of this application further provides a server, and the server may be a backend server of a video website. Referring to FIG. 10, an internal structure of the server at least includes the video processing system shown in FIG. 2, that is, includes an encoder, a decoder, and a reconstructor. Further, the interior of the server further includes a processor, a communications interface, and a computer storage medium. The processor, the communications interface, and the computer storage medium of the server may be connected by a bus or in other manners. In FIG. 10 in this embodiment of this application, a bus connection is used as an example.
  • The communications interface is a medium implementing interaction and information exchange between the server and an external device (for example, a terminal device). The processor (or referred to as a central processing unit (CPU)) is a computing core and a control core of the server, is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement a corresponding method procedure and a corresponding function. In an implementation of this embodiment of this application, the processor is configured to: control the video processing system to perform encoding and decoding processing on an original video, reconstruct a target video, obtain a difference between the target video and the original video, optimize the framework of the video processing system according to the difference, and the like. In another implementation of this embodiment of this application, the processor is configured to: search a video database for a matching natural sentence according to retrieval key information carried in a video retrieval request, obtain and output a matching video corresponding to the matching natural sentence, and the like. The non-transitory computer storage medium is a memory device in the server and is configured to store programs and data. The computer storage medium herein may include an internal storage medium of the server and may also include an expanded storage medium supported by the server. The computer storage medium provides a storage space, storing an operating system of the server. In addition, the storage space further stores one or more instructions are suitable for being loaded and executed by the processor, and the instructions may be one or more computer programs (including program code). The computer storage medium herein may be a high speed random access memory (RAM) or a non-transitory memory, for example, at least one magnetic disk memory. Optionally, the computer storage medium may further be at least one computer storage medium located away from the foregoing processor.
  • In an embodiment, the computer storage medium stores one or more first instructions. The processor loads and executes the one or more first instructions stored in the computer storage medium, to implement corresponding steps in the method procedures shown in FIG. 3 to FIG. 5. During specific implementation, the one or more first instructions in the computer storage medium are loaded and executed by the processor to perform the following steps: performing encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage; reconstructing a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage; obtaining a difference between the video feature of the target video and the video feature of the original video; and adjusting a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference.
  • In an embodiment, in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of performing encoding and decoding processing on an original video by using an encoder and a decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage, the processor specifically performs the following steps: invoking the encoder to extract frame features of the original video; combining the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video; obtaining hidden states of the decoder at a plurality of decoding moments; and combining the obtained hidden states at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain the hidden state of the original video at the decoding stage.
  • In an embodiment, in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of obtaining hidden states of the decoder at a plurality of decoding moments, the processor specifically performs the following steps: integrating the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature; and invoking the decoder to perform decoding processing on the integrated feature, to obtain the hidden states of the decoder at the plurality of decoding moments.
  • In an embodiment, the video feature of the target video includes a global feature of the target video. In a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of reconstructing a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage, the processor specifically performs the following steps: applying an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and invoking the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
  • In an embodiment, in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of obtaining a difference between the video feature of the target video and the video feature of the original video, the processor specifically performs the following steps: calculating a first Euclidean distance between the global feature of the target video and the video feature of the original video; constructing a global loss function of the reconstructor according to the first Euclidean distance; obtaining a loss function of the decoder; constructing a global difference function according to the loss function of the decoder and the global loss function of the reconstructor; and determining the difference between the video feature of the target video and the video feature of the original video according to the global difference function.
  • In an embodiment, the video feature of the target video includes local features of the target video. In a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of reconstructing a video feature of a target video by using a reconstructor according to the hidden state of the original video at the decoding stage, the processor specifically performs the following steps: applying a temporal attention mechanism to a hidden state of the decoder at each decoding moment, to obtain corresponding local expression information; and invoking the reconstructor to reconstruct the local features of the target video according to the local expression information and the hidden state of the decoder at each decoding moment.
  • In an embodiment, in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of obtaining a difference between the video feature of the target video and the video feature of the original video, the processor specifically performs the following steps: calculating second Euclidean distances between the local features of the target video and the video feature of the original video; constructing a local loss function of the reconstructor according to the second Euclidean distances; obtaining a loss function of the decoder; constructing a local difference function according to the loss function of the decoder and the local loss function of the reconstructor; and determining the difference between the video feature of the target video and the video feature of the original video according to the local difference function.
  • In an embodiment, in a process in which the processor loads the one or more first instructions in the computer storage medium to perform the step of adjusting a processing parameter of at least one of the decoder and the reconstructor according to the difference, to reduce the difference, the processor specifically performs the following steps: optimizing and updating the processing parameter of the decoder according to the difference; and/or optimizing and updating the processing parameter of the reconstructor according to the difference.
  • In an embodiment, the processor loads the one or more first instructions in the computer storage medium to perform the following steps: determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
  • In this embodiment, forward information from video content to a natural sentence is used to perform encoding and decoding processing on an original video to obtain the natural sentence, backward information from the natural sentence to the video content is used to obtain a video feature of the original video and a hidden state of the original video at a decoding stage to reconstruct a target video, and the framework of a video processing system is optimized based on a difference between the target video and the original video. In this way, a process of generating a natural sentence is constrained by obtaining bilateral information between video content and the natural sentence, so that a description accuracy rate of the natural sentence is improved, and the quality of the video content understanding service is optimized.
  • In an embodiment, the computer storage medium stores one or more second instructions. The processor loads and executes the one or more second instructions stored in the computer storage medium, to implement corresponding steps in the method procedure shown in FIG. 7. During specific implementation, the one or more second instructions in the computer storage medium are loaded and executed by the processor to perform the following steps: receiving a video retrieval request, the video retrieval request carrying retrieval key information; searching a video database for a natural sentence matching the retrieval key information, the video database including a video and a natural sentence corresponding to the video, and the natural sentence corresponding to the video being obtained by performing the video processing apparatus for generating a natural sentence; obtaining a matching video corresponding to the natural sentence matching the retrieval key information; and outputting the matching video.
  • In an embodiment, the retrieval key information includes a retrieval text or a retrieval audio. In a case that the retrieval key information is a retrieval audio, before the processor loads the one or more second instructions in the computer storage medium to perform the step of searching a video database for a natural sentence matching the retrieval key information, the processor further performs the following step: converting the retrieval audio into a retrieval text.
  • In an embodiment, this application provides a non-transitory computer-readable storage medium storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform operations in the foregoing video processing method and/or video retrieval method. The operations in the video processing method and the video retrieval method herein may be steps in the foregoing video processing method and/or video retrieval method in the embodiments.
  • In an embodiment, this application provides a server including a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform operations in the foregoing video processing method and/or video retrieval method. The operations in the video processing method and the video retrieval method herein may be steps in the foregoing video processing method and/or video retrieval method in the embodiments.
  • In this embodiment, a natural sentence with a higher accuracy rate can be predicted for a video based on an optimized framework of a video processing system, and a matching video meeting a video retrieval requirement is obtained according to the natural sentence, thereby providing a high-quality video retrieval service to a user, and improving the intelligence and practicality of the video processing system.
  • What is disclosed above is merely exemplary embodiments of this application, and certainly is not intended to limit the protection scope of this application. Therefore, equivalent variations made in accordance with the claims of this application shall fall within the scope of this application.

Claims (21)

What is claimed is:
1. A video processing method, applied to a video processing system, the video processing system comprising an encoder, a decoder, and a reconstructor, and the method comprising:
performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage;
obtaining a difference between the video feature of the target video and the video feature of the original video; and
adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
2. The method according to claim 1, wherein the performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage comprises:
invoking the encoder to extract frame features of the original video;
combining the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video;
obtaining from the decoder hidden states of the original video at a plurality of decoding moments; and
combining the obtained hidden states of the original video at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain a sequence of hidden states of the original video at the decoding stage.
3. The method according to claim 2, wherein the obtaining from the decoder hidden states of the original video at a plurality of decoding moments comprises:
integrating the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature; and
invoking the decoder to perform decoding on the integrated feature and obtain the hidden states of the original video at the plurality of decoding moments.
4. The method according to claim 1, wherein the video feature of the target video comprises a global feature of the target video, and the reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage comprises:
applying an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and
invoking the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
5. The method according to claim 4, wherein the obtaining a difference between the video feature of the target video and the video feature of the original video comprises:
calculating a first Euclidean distance between the global feature of the target video and the video feature of the original video;
constructing a global loss function of the reconstructor according to the first Euclidean distance;
obtaining a loss function of the decoder;
constructing a global difference function according to the loss function of the decoder and the global loss function of the reconstructor; and
determining the difference between the video feature of the target video and the video feature of the original video according to the global difference function.
6. The method according to claim 1, wherein the video feature of the target video comprises local features of the target video, and the reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage comprises:
applying a temporal attention mechanism to a hidden state of the original video at each decoding moment of the decoder stage, to obtain corresponding local expression information; and
invoking the reconstructor to reconstruct the local features of the target video according to the local expression information and the hidden state of the original video at each decoding moment of the decoder stage.
7. The method according to claim 6, wherein the obtaining a difference between the video feature of the target video and the video feature of the original video comprises:
calculating second Euclidean distances between the local features of the target video and the video feature of the original video;
constructing a local loss function of the reconstructor according to the second Euclidean distances;
obtaining a loss function of the decoder;
constructing a local difference function according to the loss function of the decoder and the local loss function of the reconstructor; and
determining the difference between the video feature of the target video and the video feature of the original video according to the local difference function.
8. The method according to claim 1, further comprising:
determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and
combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
9. A server, comprising a memory and a processor, the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, causing the processor to perform operations associated with a video processing system, the video processing system comprising an encoder, a decoder, and a reconstructor, the operations including:
performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage;
obtaining a difference between the video feature of the target video and the video feature of the original video; and
adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
10. The server according to claim 9, wherein the performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage comprises:
invoking the encoder to extract frame features of the original video;
combining the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video;
obtaining from the decoder hidden states of the original video at a plurality of decoding moments; and
combining the obtained hidden states of the original video at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain a sequence of hidden states of the original video at the decoding stage.
11. The server according to claim 10, wherein the obtaining from the decoder hidden states of the original video at a plurality of decoding moments comprises:
integrating the frame features in the video feature of the original video based on an average feature mechanism or a temporal attention mechanism at each decoding moment, to obtain an integrated feature; and
invoking the decoder to perform decoding on the integrated feature and obtain the hidden states of the original video at the plurality of decoding moments.
12. The server according to claim 9, wherein the video feature of the target video comprises a global feature of the target video, and the reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage comprises:
applying an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and
invoking the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
13. The server according to claim 12, wherein the obtaining a difference between the video feature of the target video and the video feature of the original video comprises:
calculating a first Euclidean distance between the global feature of the target video and the video feature of the original video;
constructing a global loss function of the reconstructor according to the first Euclidean distance;
obtaining a loss function of the decoder;
constructing a global difference function according to the loss function of the decoder and the global loss function of the reconstructor; and
determining the difference between the video feature of the target video and the video feature of the original video according to the global difference function.
14. The server according to claim 9, wherein the video feature of the target video comprises local features of the target video, and the reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage comprises:
applying a temporal attention mechanism to a hidden state of the original video at each decoding moment of the decoder stage, to obtain corresponding local expression information; and
invoking the reconstructor to reconstruct the local features of the target video according to the local expression information and the hidden state of the original video at each decoding moment of the decoder stage.
15. The server according to claim 14, wherein the obtaining a difference between the video feature of the target video and the video feature of the original video comprises:
calculating second Euclidean distances between the local features of the target video and the video feature of the original video;
constructing a local loss function of the reconstructor according to the second Euclidean distances;
obtaining a loss function of the decoder;
constructing a local difference function according to the loss function of the decoder and the local loss function of the reconstructor; and
determining the difference between the video feature of the target video and the video feature of the original video according to the local difference function.
16. The server according to claim 9, wherein the operations further comprise:
determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and
combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
17. A non-transitory computer-readable storage medium, storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform operations associated with a video processing system, the video processing system comprising an encoder, a decoder, and a reconstructor, the operations including:
performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage;
reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage;
obtaining a difference between the video feature of the target video and the video feature of the original video; and
adjusting a processing parameter of at least one of the decoder and the reconstructor to reduce the difference between the video feature of the target video and the video feature of the original video.
18. The non-transitory computer-readable storage medium according to claim 17, wherein the performing encoding and decoding on an original video by using the encoder and the decoder, to obtain a video feature of the original video and a hidden state of the original video at a decoding stage comprises:
invoking the encoder to extract frame features of the original video;
combining the extracted frame features according to a time sequence of video frames of the original video, to generate the video feature of the original video;
obtaining from the decoder hidden states of the original video at a plurality of decoding moments; and
combining the obtained hidden states of the original video at the plurality of decoding moments according to a time sequence of the decoding moments, to obtain a sequence of hidden states of the original video at the decoding stage.
19. The non-transitory computer-readable storage medium according to claim 17, wherein the video feature of the target video comprises a global feature of the target video, and the reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage comprises:
applying an average feature mechanism to the hidden state of the original video at the decoding stage, to obtain corresponding global expression information; and
invoking the reconstructor to reconstruct the global feature of the target video according to the global expression information and the hidden state of the original video at the decoding stage.
20. The non-transitory computer-readable storage medium according to claim 17, wherein the video feature of the target video comprises local features of the target video, and the reconstructing a video feature of a target video by using the reconstructor according to the hidden state of the original video at the decoding stage comprises:
applying a temporal attention mechanism to a hidden state of the original video at each decoding moment of the decoder stage, to obtain corresponding local expression information; and
invoking the reconstructor to reconstruct the local features of the target video according to the local expression information and the hidden state of the original video at each decoding moment of the decoder stage.
21. The non-transitory computer-readable storage medium according to claim 17, wherein the operations further comprise:
determining words corresponding to the original video by using the decoder according to the hidden state of the original video at the decoding stage; and
combining the words according to the time sequence of the decoding moments by using the decoder to form a natural sentence used for describing the original video.
US16/893,154 2018-03-05 2020-06-04 Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server Abandoned US20200304822A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201810179638.4A CN108419094B (en) 2018-03-05 2018-03-05 Video processing method, video retrieval method, device, medium and server
CN2018101796384 2018-03-05
PCT/CN2019/075534 WO2019169996A1 (en) 2018-03-05 2019-02-20 Video processing method and apparatus, video retrieval method and apparatus, storage medium and server

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075534 Continuation WO2019169996A1 (en) 2018-03-05 2019-02-20 Video processing method and apparatus, video retrieval method and apparatus, storage medium and server

Publications (1)

Publication Number Publication Date
US20200304822A1 true US20200304822A1 (en) 2020-09-24

Family

ID=63130125

Family Applications (3)

Application Number Title Priority Date Filing Date
US16/893,174 Active US11368705B2 (en) 2018-03-05 2020-06-04 Video feature extraction and video content understanding method, apparatus, storage medium and server
US16/893,154 Abandoned US20200304822A1 (en) 2018-03-05 2020-06-04 Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server
US17/746,763 Active 2039-05-11 US11934454B2 (en) 2018-03-05 2022-05-17 Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US16/893,174 Active US11368705B2 (en) 2018-03-05 2020-06-04 Video feature extraction and video content understanding method, apparatus, storage medium and server

Family Applications After (1)

Application Number Title Priority Date Filing Date
US17/746,763 Active 2039-05-11 US11934454B2 (en) 2018-03-05 2022-05-17 Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server

Country Status (4)

Country Link
US (3) US11368705B2 (en)
EP (1) EP3764276A4 (en)
CN (2) CN108419094B (en)
WO (1) WO2019169996A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528883A (en) * 2020-12-15 2021-03-19 杭州义顺科技有限公司 Teaching scene video description generation method based on backstepping network
US20220036174A1 (en) * 2020-07-30 2022-02-03 Dell Products L.P. Machine learning hyper tuning
CN114612826A (en) * 2022-03-09 2022-06-10 平安科技(深圳)有限公司 Video and text similarity determination method and device, electronic equipment and storage medium
WO2023197784A1 (en) * 2022-04-12 2023-10-19 中兴通讯股份有限公司 Image processing method and apparatus, device, storage medium, and program product

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108419094B (en) 2018-03-05 2021-01-29 腾讯科技(深圳)有限公司 Video processing method, video retrieval method, device, medium and server
CN109275027A (en) * 2018-09-26 2019-01-25 Tcl海外电子(惠州)有限公司 Speech output method, electronic playback devices and the storage medium of video
CN109711280B (en) * 2018-12-10 2020-10-16 北京工业大学 ST-Unet-based video anomaly detection method
CN109961041B (en) * 2019-03-21 2021-03-23 腾讯科技(深圳)有限公司 Video identification method and device and storage medium
CN109874029B (en) * 2019-04-22 2021-02-12 腾讯科技(深圳)有限公司 Video description generation method, device, equipment and storage medium
CN110826475B (en) * 2019-11-01 2022-10-04 北京齐尔布莱特科技有限公司 Method and device for detecting near-duplicate video and computing equipment
CN111198966B (en) * 2019-12-22 2023-09-26 同济大学 Natural language video clip retrieval method based on multi-agent boundary perception network
CN112738647B (en) * 2020-12-28 2022-04-01 中山大学 Video description method and system based on multi-level coder-decoder
CN113326739B (en) * 2021-05-07 2022-08-09 山东大学 Online learning participation degree evaluation method based on space-time attention network, evaluation system, equipment and storage medium

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO327155B1 (en) * 2005-10-19 2009-05-04 Fast Search & Transfer Asa Procedure for displaying video data within result presentations in systems for accessing and searching for information
US8781231B1 (en) * 2009-08-25 2014-07-15 Google Inc. Content-based image ranking
US8874584B1 (en) * 2010-02-24 2014-10-28 Hrl Laboratories, Llc Hierarchical video search and recognition system
US20140328570A1 (en) * 2013-01-09 2014-11-06 Sri International Identifying, describing, and sharing salient events in images and videos
US9251421B2 (en) * 2012-09-13 2016-02-02 General Electric Company System and method for generating semantic annotations
CN104185089B (en) * 2013-05-23 2018-02-16 三星电子(中国)研发中心 Video summary generation method and server, client
CN103473555B (en) * 2013-08-26 2016-09-21 中国科学院自动化研究所 Horrible video scene recognition method based on various visual angles multi-instance learning
CN104113789B (en) * 2014-07-10 2017-04-12 杭州电子科技大学 On-line video abstraction generation method based on depth learning
US10395118B2 (en) * 2015-10-29 2019-08-27 Baidu Usa Llc Systems and methods for video paragraph captioning using hierarchical recurrent neural networks
US9807473B2 (en) * 2015-11-20 2017-10-31 Microsoft Technology Licensing, Llc Jointly modeling embedding and translation to bridge video and language
CN105654054B (en) * 2015-12-30 2018-12-04 上海颐本信息科技有限公司 The intelligent video analysis method of study and more visual dictionary models is propagated based on semi-supervised neighbour
US11409791B2 (en) * 2016-06-10 2022-08-09 Disney Enterprises, Inc. Joint heterogeneous language-vision embeddings for video tagging and search
CN106331711B (en) * 2016-08-26 2019-07-05 北京工业大学 A kind of dynamic code rate control method based on network characterization and video features
CN106503055B (en) * 2016-09-27 2019-06-04 天津大学 A kind of generation method from structured text to iamge description
GB2555431A (en) * 2016-10-27 2018-05-02 Nokia Technologies Oy A method for analysing media content
US10198671B1 (en) * 2016-11-10 2019-02-05 Snap Inc. Dense captioning with joint interference and visual context
CN106845411B (en) * 2017-01-19 2020-06-30 清华大学 Video description generation method based on deep learning and probability map model
CN106934352A (en) * 2017-02-28 2017-07-07 华南理工大学 A kind of video presentation method based on two-way fractal net work and LSTM
CN107038221B (en) * 2017-03-22 2020-11-17 杭州电子科技大学 Video content description method based on semantic information guidance
CN107066973B (en) * 2017-04-17 2020-07-21 杭州电子科技大学 Video content description method using space-time attention model
KR102651878B1 (en) * 2017-07-06 2024-03-28 삼성전자주식회사 Method and device for encoding or decoding video
CN107391646B (en) * 2017-07-13 2020-04-10 清华大学 Semantic information extraction method and device for video image
CN107484017B (en) * 2017-07-25 2020-05-26 天津大学 Supervised video abstract generation method based on attention model
CN107609586A (en) * 2017-09-08 2018-01-19 深圳市唯特视科技有限公司 A kind of visual characteristic learning method based on self-supervision
US20190273510A1 (en) * 2018-03-01 2019-09-05 Crowdstrike, Inc. Classification of source data by neural network processing
CN108419094B (en) * 2018-03-05 2021-01-29 腾讯科技(深圳)有限公司 Video processing method, video retrieval method, device, medium and server
US11601644B2 (en) * 2018-12-11 2023-03-07 Google Llc Image and video coding using machine learning prediction coding models
US10999606B2 (en) * 2019-01-08 2021-05-04 Intel Corporation Method and system of neural network loop filtering for video coding

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220036174A1 (en) * 2020-07-30 2022-02-03 Dell Products L.P. Machine learning hyper tuning
CN112528883A (en) * 2020-12-15 2021-03-19 杭州义顺科技有限公司 Teaching scene video description generation method based on backstepping network
CN114612826A (en) * 2022-03-09 2022-06-10 平安科技(深圳)有限公司 Video and text similarity determination method and device, electronic equipment and storage medium
WO2023197784A1 (en) * 2022-04-12 2023-10-19 中兴通讯股份有限公司 Image processing method and apparatus, device, storage medium, and program product

Also Published As

Publication number Publication date
EP3764276A1 (en) 2021-01-13
EP3764276A4 (en) 2022-01-05
CN108419094B (en) 2021-01-29
US20200304796A1 (en) 2020-09-24
US20220279202A1 (en) 2022-09-01
CN110475129A (en) 2019-11-19
CN108419094A (en) 2018-08-17
US11368705B2 (en) 2022-06-21
WO2019169996A1 (en) 2019-09-12
US11934454B2 (en) 2024-03-19
CN110475129B (en) 2021-05-28

Similar Documents

Publication Publication Date Title
US11934454B2 (en) Video processing method and apparatus, video retrieval method and apparatus, storage medium, and server
US20220014807A1 (en) Method, apparatus, device and medium for generating captioning information of multimedia data
JP7179183B2 (en) VIDEO CAPTION GENERATION METHOD, APPARATUS, DEVICE AND COMPUTER PROGRAM
US10885344B2 (en) Method and apparatus for generating video
US11544474B2 (en) Generation of text from structured data
US10878247B2 (en) Method and apparatus for generating information
WO2018014835A1 (en) Dialog generating method, device, apparatus, and storage medium
US20210019599A1 (en) Adaptive neural architecture search
WO2022199504A1 (en) Content identification method and apparatus, computer device and storage medium
EP3885966B1 (en) Method and device for generating natural language description information
US11355097B2 (en) Sample-efficient adaptive text-to-speech
CN109558605B (en) Method and device for translating sentences
US20210256069A1 (en) Latent question reformulation and information accumulation for multi-hop machine reading
CN109582825B (en) Method and apparatus for generating information
US11687711B2 (en) Method and apparatus for generating commentary
JP2024512628A (en) Method and apparatus for generating a caption generator and method and apparatus for outputting a caption
US20220188636A1 (en) Meta pseudo-labels
US20220253713A1 (en) Training neural networks using layer-wise losses
US20220253695A1 (en) Parallel cascaded neural networks
CA3214170A1 (en) Adaptive visual speech recognition

Legal Events

Date Code Title Description
STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION