Video processing method and device, equipment, storage medium and computer program product
Acquire video and event data through event cameras, extract and fuse features, and use implicit neural representation for video reconstruction, which solves the problem of insufficient video resolution and frame rate in the existing technology and achieves efficient video processing effects.
Patent Information
- Application Number
- CN202410692343.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-30
AI Technical Summary
Existing continuous spatial-temporal video super-resolution methods based on implicit neural representations have insufficient capabilities to capture fast and nonlinear motion and long-term dependencies in complex dynamic scenes, resulting in reduced video resolution and frame rate.
Acquire video and event data through event cameras, extract motion region features and overall motion features, perform feature fusion, perform video reconstruction based on fused features, use implicit neural representations for space-time decoding, and capture nonlinear motion and long-term dependencies.
It significantly improves the resolution and frame rate of the video, can clearly capture the motion details and dynamic changes in the video, and improves the efficiency and accuracy of video reconstruction.
Smart Images

Figure CN118674643A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision, and in particular to a video processing method, apparatus, device, storage medium and computer program product. Background Art
[0002] Implicit Neural Representation (INR) is a method that represents input information such as images, audio, and point clouds as functions through a neural network. It can be used in scenarios such as video restoration by representing images or videos as implicit fields for decoding at any resolution.
[0003] However, in the related art, the INR-based C-STVSR (Continuous Space-Time Video Super-Resolution) method usually assumes that there is linear motion between frames, and uses interpolation or feature warping to generate features at any spatial and temporal position between two frames. This approach limits the ability of C-STVSR to capture fast and nonlinear motion and long-term dependencies in complex dynamic scenes, thereby reducing the resolution and frame rate of the video. Summary of the invention
[0004] The embodiments of the present application provide a video processing method, apparatus, device, storage medium and computer program product, which can improve the resolution and frame rate of processed videos and improve the video quality.
[0005] In a first aspect, an embodiment of the present application provides a video processing method, the method comprising: obtaining a video to be processed captured by an event camera and event data corresponding to the video to be processed; performing event feature extraction on the event data to obtain motion area features corresponding to the video to be processed; performing frame feature extraction on the video to be processed and the event data to obtain overall motion features corresponding to the video to be processed, wherein the overall motion features are used to characterize the dependency between time and space of the video to be processed; performing feature fusion on the motion area features and the overall motion features to obtain fused features; and performing video reconstruction based on the fused features to obtain a target video.
[0006] In the second aspect, an embodiment of the present application provides a video processing device, which includes: a data acquisition module, which is used to acquire the video to be processed captured by an event camera and the event data corresponding to the video to be processed; a first feature extraction module, which is used to extract event features from the event data to obtain motion area features corresponding to the video to be processed; a second feature extraction module, which is used to extract frame features from the video to be processed and the event data to obtain overall motion features corresponding to the video to be processed, wherein the overall motion features are used to characterize the dependency between time and space of the video to be processed; a feature fusion module, which is used to fuse the motion area features and the overall motion features to obtain fused features; a video reconstruction module, which is used to reconstruct the video based on the fused features to obtain the target video.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the video processing method described in the first aspect is implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the video processing method as described in the first aspect is implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the video processing method described in the first aspect.
[0010] It can be seen from the above content that in the embodiment of the present application, the event data corresponding to the video to be processed contains rich event information. By performing event feature extraction on the event data in the video to be processed, the nonlinear motion and long-term dependency of the moving object in the video to be processed can be captured, providing a basis for improving the resolution and frame rate of the video to be processed. In addition, in the embodiment of the present application, by performing feature extraction on the event data, the dynamic motion and edge details in the video to be processed can be captured, and by extracting the overall motion features of the video to be processed and the event data, long-term motion dependencies can be modeled. Combining the features extracted by the above two feature extraction methods, the dynamic changes of the video content can be fully understood, thereby improving the resolution and frame rate of the reconstructed target video.
[0011] It can be seen that the method proposed in the embodiment of the present application can obtain a target video with higher resolution and frame rate by processing the video to be processed. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0013] Figure 1 is a flowchart of a video processing method provided by an embodiment of the present application;
[0014] Figure 2 is a schematic diagram of the architecture of a video processing model provided by an embodiment of the present application;
[0015] Figure 3 It is a structural schematic diagram of a pyramid model provided by an embodiment of the present application;
[0016] Figure 4 is a schematic diagram of experimental visualization results on the Adobe dataset provided by an embodiment of the present application;
[0017] Figure 5 This is a schematic diagram of the experimental visualization results on the TimeLens++ dataset provided by an embodiment of the present application;
[0018] Figure 6 is a schematic diagram of the experimental visualization results on the CED dataset provided by an embodiment of the present application;
[0019] Figure 7 This is a schematic diagram of the experimental visualization results on the TimeLens++ dataset provided by an embodiment of the present application;
[0020] Figure 8 is a structural schematic diagram of a video processing device provided by another embodiment of the present application;
[0021] Fig. 9 It is a structural schematic diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0022] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0023] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0024] For ease of understanding, before explaining the solution provided in the present application, the background of the solution provided in the present application is first explained.
[0025] In the related art, due to the limitations of I / O (Input / Output) bandwidth and sensor size, the camera system can only record videos at fixed resolution and frame rate, which has an impact on the application of computer vision, such as immersive experience in virtual reality, traffic analysis in autonomous driving, etc. To overcome this limitation, in the related art, continuous space-time video super-resolution (C-STVSR) can be used to simultaneously improve the resolution and frame rate of the video.
[0026] In recent years, implicit neural representations have been applied to video restoration, by representing images or videos as implicit fields that can be decoded at arbitrary resolutions. However, existing INR-based C-STVSR methods have limitations, which usually assume linear motion between frames and use interpolation or feature warping to generate features at arbitrary spatial and temporal positions between two frames, which limits the ability of C-STVSR to capture fast and nonlinear motion and long-term dependencies (involving more than two frames) in complex dynamic scenes.
[0027] In order to solve the problems in the prior art, the embodiments of the present application provide a video processing method, device, equipment, storage medium and computer program product. The video processing method provided by the embodiments of the present application is first introduced below.
[0028] The method proposed in the embodiment of the present application aims to capture overall dependency and regional motion based on INR, assisted by an event camera with high temporal resolution and low latency. By designing a feature extraction framework, the rich temporal information provided by event data is fully utilized to capture regional nonlinear motion and long-term dependency, and the capture of long-term dependency is achieved through spatial-temporal embedding.
[0029] Figure 1 FIG. 1 is a flow chart of a video processing method provided by an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0030] Step S101, obtaining the video to be processed captured by the event camera and the event data corresponding to the video to be processed.
[0031] In step S101, an event camera is a camera that captures images through a dynamic visual sensor, wherein the event camera can capture "events" (i.e., event data) during the image generation process, for example, changes in pixel brightness. In the embodiment of the present application, each event data is used to characterize pixel intensity change information at a specific time and position in the video.
[0032] In step S101, the video to be processed may be a video to be restored, for example, a blurred video captured by an event camera. In an embodiment of the present application, the video to be processed includes multiple RGB frames.
[0033] It should be noted that in the embodiment of the present application, the event camera has high temporal resolution and low latency characteristics. Based on this, the event camera is used to collect the video to be processed and the event data of the video to be processed, so as to obtain subtle motion changes in the video to be processed, thereby providing a basis for the restoration of the video to be processed.
[0034] Step S102, extracting event features from the event data to obtain motion region features corresponding to the video to be processed.
[0035] In step S102, a regional event feature extractor can be used to extract features from the event data, and motion region features containing dynamic motion and edge details can be obtained. That is, by extracting features from the event data in step S102, detailed information about the motion in the video to be processed can be obtained, and the detailed information can improve the accuracy and precision of video restoration and ensure the resolution and frame rate of the video.
[0036] Step S103, extracting frame features from the video to be processed and the event data to obtain overall motion features corresponding to the video to be processed.
[0037] In step S103, the overall motion feature is used to characterize the dependency between time and space of the video to be processed.
[0038] As an example, a global event feature extractor may be used to extract the global motion features corresponding to the video to be processed, wherein the global event feature extractor may be a feature extractor based on Swin Transformer, which is capable of modeling long-term dependencies in time and space over a large range.
[0039] Step S104, performing feature fusion on the motion region feature and the motion overall feature to obtain a fused feature.
[0040] It should be noted that the motion area features and the overall motion features can reflect the dynamic change information of the content of the video to be processed. Therefore, after extracting the motion area features and the overall motion features, the above two features are fused, and the video is reconstructed based on the fused features. This can make the reconstructed video clearly show the motion details in the video and improve the resolution and frame rate of the video.
[0041] Step S105, reconstructing the video based on the fusion features to obtain the target video.
[0042] In step S105, video reconstruction can be achieved by using INR technology to perform space-time decoding on the fusion features. In the process of video reconstruction, the learned time embedding can be introduced as an attention vector, as well as spatial embedding and decoding technology, so that the video frame can be effectively reconstructed without estimating the optical flow, thereby improving the efficiency and accuracy of video reconstruction, and improving the resolution and frame rate of the reconstructed video.
[0043] Based on the scheme defined by the above steps S101 to S105, it can be known that in the embodiment of the present application, the event data corresponding to the video to be processed contains rich event information. By performing event feature extraction on the event data in the video to be processed, the nonlinear motion and long-term dependency of the moving object in the video to be processed can be captured, providing a basis for improving the resolution and frame rate of the video to be processed. In addition, in the embodiment of the present application, by performing feature extraction on the event data, the dynamic motion and edge details in the video to be processed can be captured, and by extracting the overall motion features of the video to be processed and the event data, long-term motion dependencies can be modeled. Combining the features extracted by the above two feature extraction methods, the dynamic changes of the video content can be fully understood, thereby improving the resolution and frame rate of the reconstructed target video.
[0044] It can be seen that the method proposed in the embodiment of the present application can obtain a target video with higher resolution and frame rate by processing the video to be processed.
[0045] In one embodiment, Figure 2The architecture diagram of the video processing model for implementing the method proposed in the embodiment of the present application is shown. Figure 2 It can be seen that the video processing model mainly includes a data representation unit, a regional event feature extractor, an overall event feature extractor, and a decoding unit. Among them, the data representation unit is used to represent the event data to more accurately capture the motion changes in the video; the regional event feature extractor is used to extract local dynamic change information and edge information in the event data; the overall event feature extractor is used to model long-term dependencies in time and space; and the decoding unit is used to decode the data to achieve video reconstruction.
[0046] The following combination Figure 2 The implementation steps of the method proposed in the embodiment of the present application are explained.
[0047] First, after obtaining the video to be processed and event data captured by the event camera, event features can be extracted from the event data to obtain motion feature information corresponding to the video to be processed; then, regional event features can be extracted from the motion feature information to obtain motion region features corresponding to the video to be processed.
[0048] In one embodiment, the data representation unit may extract event features from the event data to obtain motion feature information corresponding to the video to be processed. Specifically, the data representation unit uses a time granularity corresponding to each pyramid level in the time pyramid model to perform a multi-level time pyramid representation on the event data to obtain motion feature information corresponding to the video to be processed.
[0049] For example, in Figure 2 In the present invention, after collecting the video to be processed and the event data, the event features are represented by a time pyramid through the data representation unit. The pyramid model includes multiple pyramid levels, and the duration of each pyramid level is a part of the previous pyramid level. For example, Figure 3 In the structural diagram of the pyramid model shown in FIG. 1 , the duration of the first pyramid level is The duration of the second pyramid level is is the duration of the first pyramid level The duration of the third pyramid level is is the duration of the second pyramid level Wherein, r is a positive integer.
[0050] In the embodiment of the present application, the pyramid model may have a structure of 7 pyramid levels. In this scenario, the pyramid model can most effectively capture fast and small dynamic changes. Each pyramid level represents a different time granularity, thereby ensuring that the motion information in the video can be comprehensively understood.
[0051] In addition, for each pyramid level, a dynamically adjusted resolution (based on 1 / 2, 1 / 4, 1 / 8 of the original video resolution, etc.) can be used to reduce the computational burden while retaining sufficient motion details.
[0052] It should be noted that, in the embodiment of the present application, a pyramid model is used to perform a time pyramid representation of event data, which can achieve a finer time granularity, effectively reduce the computational complexity, and retain important motion information.
[0053] In order to further improve the accuracy of the pyramid model's temporal pyramid representation of event data, in practical applications, the pyramid model can also be dynamically adjusted according to the video content of the video to be processed.
[0054] In one embodiment, dynamic characteristic data in the video to be processed is obtained, and then the level parameters corresponding to each pyramid level in the time pyramid model are adjusted according to the dynamic characteristic data.
[0055] In the above embodiment, the dynamic characteristic data is used to characterize the motion data of the moving object in the video to be processed, such as motion duration, motion area, motion speed, etc. The parameters of the pyramid level include at least one of the following: time span, time granularity.
[0056] As an example, the time span and / or time granularity of each pyramid level may be adaptively adjusted according to dynamic characteristic data in the video to be processed, so as to more accurately capture the motion changes in the video.
[0057] In another embodiment, a multi-scale time window may be used to extract event features from event data to obtain motion feature information corresponding to the video to be processed.
[0058] Specifically, the dynamic characteristic data of at least one moving object in the video to be processed is obtained, and then, based on the relationship between the dynamic characteristic data and the time window, the time window corresponding to the dynamic characteristic data of the at least one moving object is determined; then, the event data is encoded through the time window corresponding to the dynamic characteristic data of the at least one moving object to obtain the motion feature information corresponding to the video to be processed.
[0059] In the above embodiment, the dynamic characteristic data is used to characterize the motion data of the moving object in the video to be processed. In this embodiment, the event data can be encoded simultaneously using time windows of different sizes to capture various motion speeds from fast to slow, thereby enhancing the adaptability of the video processing model to different motion patterns. Furthermore, in practical applications, after obtaining the event data, the video processing model can obtain a target time window that matches the event data from multiple time windows, and then use the target time window to encode the event data, thereby obtaining the motion characteristic information corresponding to the video to be processed.
[0060] Further, such as Figure 2 As shown in the figure, after obtaining the motion feature information corresponding to the video to be processed, the regional event feature extractor extracts the regional event feature from the motion feature information. Specifically, the regional event feature extractor extracts the local dynamic change information and edge information in the motion feature information through the convolution layer of the neural network and the multi-head self-attention mechanism, and obtains the motion region feature corresponding to the video to be processed.
[0061] It should be noted that since the regional event feature extractor adopts convolutional layers and multi-head attention mechanism, it can capture local dynamic change information and edge information, providing a basis for improving the resolution and frame rate of restored video.
[0062] In addition, it should be noted that in practical applications, the regional event feature extractor can also be a hybrid feature extraction network or a modular feature extractor. The hybrid feature extraction network combines different types of network structures such as convolutional neural networks and graph neural networks to fully utilize their advantages in processing spatial information and modeling long-distance dependencies; the modular feature extractor, through modular design, allows different feature extraction modules to be dynamically combined and selected according to the characteristics of the input data to adapt to diverse video content and scenes.
[0063] In one embodiment, Figure 2 As shown, the overall event feature extractor extracts the long-term dependency between time and space in the video to be processed from the video to be processed and the event data to determine the overall motion trend of the moving object in the video to be processed. After obtaining the motion region feature and the overall motion feature, the two are fused to obtain the fused feature, which is then input into the decoding unit to achieve video reconstruction.
[0064] Specifically, the decoding unit obtains the target frame rate and target resolution corresponding to the input target video, and determines the display time corresponding to each frame image in the target video according to the target frame rate; then, the fusion feature is temporally embedded to obtain the first fusion feature corresponding to the display time; then, the first fusion feature is spatially embedded to obtain the second fusion feature corresponding to the target resolution; finally, the second fusion feature is decoded to obtain the target video with the target frame rate and target resolution.
[0065] In the above embodiment, the target frame rate and the target resolution can be input by the user according to actual needs. The target frame rate and the target resolution are the frame rate and the resolution of the target video after the video to be processed is reconstructed.
[0066] by Figure 2 For example, after obtaining the fusion feature R t After that, the fused feature is temporally embedded, that is, the timestamp corresponding to the target frame rate is embedded into the fused feature to capture the features at the time point at the above timestamp; then, the target resolution is embedded into the first fused feature R ts In the process, the spatial embedding operation is realized to obtain the second fusion feature; and then the second fusion feature is obtained through a multi-layer MLP (Multilayer Perceptron) (for example, Figure 2 A four-layer perceptron is used in the process to decode the second fusion feature to obtain the target video.
[0067] It should be noted that, in practical applications, an iterative refinement method can be used for decoding, that is, based on the initial space-time decoding, an iterative refinement mechanism is introduced, that is, the decoding process is repeated multiple times using the above method, and the quality and accuracy of the reconstructed video frames are gradually improved through multiple rounds of refinement processing.
[0068] In another embodiment, a decoding strategy based on image segmentation can also be used to perform a decoding operation on the second fusion feature. Specifically, firstly, the video to be processed is segmented to obtain multiple regional videos; then, according to the association relationship between the regional video and the second fusion feature, the second fusion feature corresponding to each regional video is determined; then, according to the association relationship between the decoding strategy and the second fusion feature, the corresponding decoding strategy is used to perform a decoding operation on the second fusion feature of the corresponding regional video, and the target regional video corresponding to each regional video is obtained; finally, the target regional videos corresponding to the multiple regional videos are combined to obtain the target video.
[0069] It should be noted that the decoding strategy based on image segmentation first segments the video frame, and adopts different decoding strategies for different areas, especially different processing for dynamic background and static background, so as to achieve higher quality video reconstruction.
[0070] The method proposed in the embodiment of the present application can be applied to, but not limited to, urban traffic monitoring video enhancement scenarios, sports event live video processing scenarios, and virtual reality content generation scenarios. The following three scenarios are used as examples to illustrate the method proposed in the embodiment of the present application.
[0071] In the urban traffic surveillance video enhancement scenario, low-resolution, low-frame-rate urban traffic surveillance videos and related event data captured by event cameras are obtained, the event data is processed using a temporal pyramid representation, and features are extracted from the video and event data through a hybrid feature extraction network. Finally, a high-resolution, high-frame-rate video output is generated through an iterative refinement decoding strategy, thereby obtaining a traffic surveillance video with significantly improved clarity, which can clearly identify license plates and pedestrian facial features, and help improve the accuracy and efficiency of traffic accident analysis.
[0072] In the live sports event video processing scenario, the live sports event video and its event stream captured by the high-speed event camera are obtained, the input video is processed using the dynamic time pyramid and modular feature extractor, the athletes and background are processed separately using the image segmentation-based decoding strategy, and high-quality video is output through INR-based space-time decoding. Through the above method, while maintaining the real-time nature of the live sports event video, the quality of the live sports event video is improved in real time, the action (including enhanced resolution and smooth action) is smoother, the picture is clearer, and the audience's viewing experience is greatly enhanced.
[0073] In the virtual reality content generation scenario, the video data captured by the event camera is obtained, and the 3D rendering content is processed using the time pyramid representation and hybrid feature extraction network. The resolution and smoothness are enhanced using the INR-based space-time decoding technology. The generated VR (Virtual Reality) content has high definition and smooth movements, which significantly improves the user's immersion and experience quality.
[0074] In the examples of the present application, verification experiments are also performed to verify the performance of the method proposed in the examples of the present application.
[0075] In this verification experiment, a diverse dataset is used as the training dataset for the video processing model. This diverse dataset contains rich dynamic scenes and different lighting conditions, such as Adobe240fps, GoPro and other datasets, to enhance the generalization and adaptability of the model. In addition, in this verification experiment, data enhancement techniques such as random cropping, rotation and flipping can also be used to increase the diversity of training data, thereby improving the model's ability to process complex scenes.
[0076] In the process of training the video processing model, a phased training method can be used. First, pre-training is performed at a lower resolution, and then the resolution is gradually increased for fine-tuning. This phased training method can effectively accelerate the training process and improve the accuracy of the model. For the loss function, a combination of Charbonnier loss and perceptual loss can be used. Not only the reconstruction accuracy at the pixel level is considered, but also the perceptual quality of the image is paid attention to, so as to achieve a better visual effect.
[0077] For the hardware and software environment, choose high-performance computing resources and use a computing platform with high-speed memory and multi-core processors, such as a workstation equipped with NVIDIA RTX 3090 or higher-performance GPUs to ensure the efficiency of training and reasoning. For the software environment, it can be developed under a deep learning framework such as PyTorch or TensorFlow, which provides a wealth of APIs and optimization tools to facilitate model design and experimental verification.
[0078] In the verification experiments, experiments were conducted using the Adobe dataset, GoPro dataset, TimeLens++ dataset, and CED dataset respectively.
[0079] The results of super-resolution and interpolation experiments on the Adobe dataset and GoPro dataset are shown in Table 1:
[0080] Table 1
[0081]
[0082]
[0083] In Table 1, M is the number of parameters; HR-INR is the video processing method proposed in the embodiment of the present application.
[0084] The results of super-resolution and interpolation experiments at different magnifications on the Adobe dataset are shown in Table 2:
[0085] Table 2
[0086]
[0087] The results of the interpolation experiments with different multiples on the TimeLens++ dataset are shown in Table 3:
[0088] Table 3
[0089]
[0090] The results of super-resolution experiments at different magnifications on the CED dataset are shown in Table 4:
[0091] Table 4
[0092]
[0093] Figures 4 to 7 The experimental visualization results corresponding to different data sets are shown, where Figure 4 The experimental visualization results on the Adobe dataset are shown. Figure 5 The experimental visualization results on the TimeLens++ dataset are shown. Figure 6 The experimental visualization results on the CED dataset are shown. Figure 7 Shows the experimental visualization results on the TimeLens++ dataset.
[0094] From the above Tables 1 to 4 and Figures 5 to 7 From the experimental results presented, it can be seen that the method proposed in this application captures the dynamics of rotating tires more effectively than VideoINR, demonstrating the advantages of the HR-INR framework in handling fast movements and restoring details.
[0095] Through the above verification experiments and experimental results, it can be seen that the method proposed in the embodiment of the present application has achieved significant progress and effects in many aspects of technology, economy and society, as follows:
[0096] The method proposed in the embodiment of the present application significantly improves the resolution and frame rate of the video, while solving the challenges of fast and nonlinear motion capture. Compared with the prior art, the method proposed in the embodiment of the present application can achieve arbitrary scale decoding of video resolution while maintaining high temporal resolution and low latency. Moreover, it can be seen from the experimental results of the verification experiment that the performance of the method proposed in the embodiment of the present application on four data sets exceeds the traditional INR-based method, especially when processing fast motion and complex scenes, PSNR (Peak Signa-to-Noise Ratio, Peak Signal-to-Noise Ratio) is improved by 35dB, SSIM (Structural Similarity, Structural Similarity Index) is improved by 0.050.1, proving the video processing capability and generalization of the method proposed in the embodiment of the present application.
[0097] In terms of economy, by improving the efficiency and quality of video processing technology, the method proposed in the embodiment of the present application can bring significant economic benefits to video content providers, security monitoring systems, self-driving cars and other fields. For example, in the field of security monitoring, the method proposed in the embodiment of the present application can provide clearer video images without increasing additional hardware costs, thereby improving the accuracy and efficiency of event detection and reducing economic losses caused by poor monitoring quality.
[0098] In terms of society, the method proposed in the embodiment of the present application is of great significance for promoting the development of virtual reality and augmented reality technology while improving video quality. High-quality video input is the key to improving the realism of virtual reality / augmented reality experience. The method proposed in the embodiment of the present application can provide users with a more immersive and realistic virtual experience, and promote the progress of social applications in education, entertainment, medical care and other fields.
[0099] In the test on the Adobe240 dataset, the method proposed in the embodiment of the present application has a significant improvement over the prior art when performing 4x spatial upsampling and 8x video frame interpolation (as shown in the data in Tables 1-4). The method proposed in the embodiment of the present application is significantly superior to traditional video super-resolution and frame rate improvement technologies. In addition, in the application test on the actual surveillance video dataset, the method proposed in the embodiment of the present application can restore clear and recognizable face and license plate information under extremely low light and high-speed motion conditions, confirming its effectiveness and reliability in practical applications.
[0100] The present application also provides a video processing device, such as Figure 8 As shown, the device 800 includes: a data acquisition module 801, a first feature extraction module 802, a second feature extraction module 803, a feature fusion module 804 and a video reconstruction module 803.
[0101] The data acquisition module 801 is used to acquire the video to be processed collected by the event camera and the event data corresponding to the video to be processed;
[0102] The first feature extraction module 802 is used to extract event features from event data to obtain motion region features corresponding to the video to be processed;
[0103] The second feature extraction module 803 is used to extract frame features from the video to be processed and the event data to obtain the overall motion features corresponding to the video to be processed, wherein the overall motion features are used to characterize the dependency between time and space of the video to be processed;
[0104] A feature fusion module 804 is used to fuse the motion region feature and the motion overall feature to obtain a fusion feature;
[0105] The video reconstruction module 805 is used to reconstruct the video based on the fusion features to obtain the target video.
[0106] In one example, the first feature extraction module includes: a third feature extraction module and a fourth feature extraction module. The third feature extraction module is used to extract event features from event data to obtain motion feature information corresponding to the video to be processed; the fourth feature extraction module is used to extract regional event features from the motion feature information to obtain motion region features corresponding to the video to be processed.
[0107] In one example, the third feature extraction module is specifically used to use the time granularity corresponding to each pyramid level in the time pyramid model to perform a multi-level time pyramid representation on the event data to obtain motion feature information corresponding to the video to be processed.
[0108] In one example, the video processing device also includes: a parameter adjustment module, which is used to obtain dynamic characteristic data in the video to be processed, wherein the dynamic characteristic data is used to characterize the motion data of the moving objects in the video to be processed; and adjust the level parameters corresponding to each pyramid level in the time pyramid model according to the dynamic characteristic data.
[0109] In one example, the third feature extraction module is specifically used to obtain dynamic characteristic data of at least one moving object in the video to be processed, wherein the dynamic characteristic data is used to characterize the motion data of the moving object in the video to be processed; according to the relationship between the dynamic characteristic data and the time window, the time window corresponding to the dynamic characteristic data of at least one moving object is determined; through the time window corresponding to the dynamic characteristic data of at least one moving object, the event data is encoded to obtain the motion characteristic information corresponding to the video to be processed.
[0110] In one example, the fourth feature extraction module is specifically used to extract local dynamic change information and edge information in the motion feature information through the convolution layer and multi-head self-attention mechanism of the neural network, so as to obtain the motion area features corresponding to the video to be processed.
[0111] In one example, the video reconstruction module includes: an information acquisition module, a time determination module, a first embedding module, a second embedding module, and a decoding module. The information acquisition module is used to acquire the target frame rate and target resolution corresponding to the target video; the time determination module is used to determine the display time corresponding to each frame image in the target video according to the target frame rate; the first embedding module is used to perform a time embedding operation on the fusion feature to obtain the first fusion feature corresponding to the display time; the second embedding module is used to perform a spatial embedding operation on the first fusion feature to obtain the second fusion feature corresponding to the target resolution; the decoding module is used to perform a decoding operation on the second fusion feature to obtain the target video with the target frame rate and target resolution.
[0112] In one example, the decoding module is specifically used to segment the video to be processed to obtain multiple regional videos; determine the second fusion feature corresponding to each regional video based on the correlation between the regional video and the second fusion feature; according to the correlation between the decoding strategy and the second fusion feature, use the corresponding decoding strategy to decode the second fusion feature of the corresponding regional video, and obtain the target regional video corresponding to each regional video; combine the target regional videos corresponding to multiple regional videos to obtain the target video.
[0113] The video processing device provided in the embodiment of the present application can implement each process implemented in the aforementioned method embodiment, and will not be described again here to avoid repetition.
[0114] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0115] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0116] The electronic device may include a processor 901 and a memory 902 storing computer program instructions.
[0117] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0118] The memory 902 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory.
[0119] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0120] The processor 901 implements any one of the video processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .
[0121] In one example, the electronic device may further include a communication interface 903 and a bus 910. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 and communicate with each other.
[0122] The communication interface 903 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0123] Bus 910 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 910 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0124] In addition, in combination with the video processing method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the video processing methods in the above embodiment is implemented.
[0125] In addition, in combination with the video processing method in the above embodiment, the embodiment of the present application can provide a computer program product to implement. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device executes and implements any one of the video processing methods in the above embodiment.
[0126] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0127] The functional modules shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0128] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0129] The above reference to the video processing method, device, equipment, storage medium and computer program product according to the embodiment of the present disclosure of the flowchart and / or block diagram describes various aspects of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0130] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A video processing method, characterized in that: include: Acquire the video to be processed captured by the event camera and the event data corresponding to the video to be processed; Extracting event features from the event data to obtain motion region features corresponding to the video to be processed; Extracting frame features from the video to be processed and the event data to obtain overall motion features corresponding to the video to be processed, wherein the overall motion features are used to characterize the dependency between time and space of the video to be processed; Performing feature fusion on the motion region feature and the motion overall feature to obtain a fusion feature; Video reconstruction is performed based on the fusion features to obtain a target video.
2. The method according to claim 1, characterized in that Extracting event features from the event data to obtain motion region features corresponding to the video to be processed includes: Extracting event features from the event data to obtain motion feature information corresponding to the video to be processed; Performing regional event feature extraction on the motion feature information to obtain motion region features corresponding to the video to be processed.
3. The method according to claim 2, characterized in that Extracting event features from the event data to obtain motion feature information corresponding to the video to be processed includes: The event data is represented by a multi-level time pyramid using a time granularity corresponding to each pyramid level in the time pyramid model to obtain motion feature information corresponding to the video to be processed.
4. The method according to claim 3, characterized in that Before performing a multi-level time pyramid representation on the event data using a time granularity corresponding to each pyramid level in the time pyramid model to obtain motion feature information corresponding to the video to be processed, the method further includes: Acquire dynamic characteristic data in the video to be processed, wherein the dynamic characteristic data is used to characterize motion data of a moving object in the video to be processed; The level parameters corresponding to each pyramid level in the time pyramid model are adjusted according to the dynamic characteristic data.
5. The method according to claim 2, characterized in that: Extracting event features from the event data to obtain motion feature information corresponding to the video to be processed includes: Acquire dynamic characteristic data of at least one moving object in the video to be processed, wherein the dynamic characteristic data is used to characterize motion data of the moving object in the video to be processed; Determining a time window corresponding to the dynamic characteristic data of the at least one moving object according to a relationship between the dynamic characteristic data and the time window; The event data is encoded through a time window corresponding to the dynamic characteristic data of the at least one moving object to obtain motion feature information corresponding to the video to be processed.
6. The method according to claim 2, characterized in that Extracting regional event features from the motion feature information to obtain motion region features corresponding to the video to be processed includes: Through the convolutional layer and multi-head self-attention mechanism of the neural network, the local dynamic change information and edge information in the motion feature information are extracted to obtain the motion area features corresponding to the video to be processed.
7. The method according to claim 1, characterized in that Performing video reconstruction based on the fusion features to obtain a target video includes: Obtaining a target frame rate and a target resolution corresponding to the target video; Determining the display time corresponding to each frame image in the target video according to the target frame rate; Performing a time embedding operation on the fused feature to obtain a first fused feature corresponding to the display time; Performing a spatial embedding operation on the first fused features to obtain a second fused feature corresponding to the target resolution; A decoding operation is performed on the second fusion feature to obtain a target video with the target frame rate and the target resolution.
8. The method according to claim 7, characterized in that Performing a decoding operation on the second fusion feature to obtain a target video with the target frame rate and the target resolution includes: Segmenting the video to be processed to obtain multiple regional videos; Determining the second fusion feature corresponding to each regional video according to the association relationship between the regional video and the second fusion feature; According to the correlation between the decoding strategy and the second fusion feature, a decoding operation is performed on the second fusion feature of the corresponding regional video using the corresponding decoding strategy, and the target regional video corresponding to each regional video; The target area videos corresponding to the multiple area videos are combined to obtain the target video.
9. A video processing device, characterized in that: include: A data acquisition module is used to acquire the video to be processed collected by the event camera and the event data corresponding to the video to be processed; A first feature extraction module, configured to extract event features from the event data to obtain motion region features corresponding to the video to be processed; A second feature extraction module is used to extract frame features from the video to be processed and the event data to obtain overall motion features corresponding to the video to be processed, wherein the overall motion features are used to characterize the dependency between time and space of the video to be processed; A feature fusion module, used for fusing the motion region feature and the motion overall feature to obtain a fusion feature; The video reconstruction module is used to reconstruct the video based on the fusion features to obtain the target video.
10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the video processing method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: Computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by the processor, the video processing method according to any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the video processing method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Video processing method and device, electronic equipment and readable storage medium
CN113286194A
Video frame insertion method and device, electronic equipment and storage medium
CN113837136A
Video saliency object detection method and system based on bimodal cross fusion and multi-graph interactive learning
CN116363388A
Video synthesis method, model training method, device, and storage medium
US20210243383A1
Improved face liveness detection using background / foreground motion analysis
WO2021112849A1
Cited By
Video processing method and apparatus, device, storage medium, and computer program product
WO2025247404A1
