A Deep Learning-Based Panoramic Effect Evaluation System and Method
Through the panoramic effect evaluation system based on deep learning, panoramic image features are extracted and reconstructed, which solves the problem of stitching distortion in panoramic image splicing, realizes automatic recognition and image quality assessment, and ensures the natural smoothness and visual consistency of the image.
Patent Information
- Application Number
- CN202410777796.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Stitching distortion often occurs during the panoramic image stitching process, which affects the visual effect of the image and the efficiency and accuracy of the application field.
A panoramic effect evaluation system based on deep learning is used to obtain the panoramic image to be evaluated, extract panoramic image features, use the regional migration network of the focus area map to highlight the foreground, reconstruct the image, and determine whether there is stitching distortion through pixel differences.
Automatically identify stitching distortion in panoramic images, provide a basis for subsequent image repair and optimization, and ensure the natural smoothness and visual consistency of the image.
Smart Images

Figure CN118485813B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of panoramic image technology, and in particular, to a panoramic effect evaluation system and method based on deep learning. Background Art
[0002] With the development of digital photography technology, panoramic images have attracted widespread attention due to their ability to provide a wide field of view and immersive experience. Panoramic images are usually synthesized from multiple separate images through stitching technology, which involves steps such as geometric correction, color balance and edge stitching of the image.
[0003] In the field of virtual reality, high quality of panoramic effects is the key to providing an immersive experience; in driverless technology, accurate panoramic image stitching is essential for safe navigation of vehicles; similarly, in the field of security monitoring, high-quality panoramic images can help improve monitoring efficiency and accuracy.
[0004] However, due to technical limitations in the stitching process, panoramic images often have stitching distortion, which not only affects the visual effect of the image, but also limits the application of panoramic images in virtual reality, monitoring systems and other fields. Therefore, a panoramic effect evaluation system is expected to automatically analyze the quality of panoramic images and identify whether there is stitching distortion. Summary of the invention
[0005] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0006] In a first aspect, the present disclosure provides a panoramic effect evaluation system based on deep learning, the system comprising:
[0007] An evaluation image acquisition module, used to acquire a panoramic image to be evaluated;
[0008] A panoramic image feature extraction module, used to extract panoramic image features from the panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map;
[0009] A focus refocusing module, used for passing the panoramic image residual aggregation feature map through a region migration network based on a focus region map to obtain a foreground-highlighted panoramic image residual aggregation feature map;
[0010] A panoramic image reconstruction module, used for reconstructing the panoramic image based on the foreground-highlighted panoramic image residual aggregation feature map to obtain a reconstructed panoramic image;
[0011] The distortion determination module is used to determine whether the panoramic image to be evaluated has stitching distortion based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated.
[0012] Optionally, the panoramic image feature extraction module is used to: pass the panoramic image to be evaluated through a panoramic image feature extractor based on a ResNet model to obtain the panoramic image residual aggregation feature map.
[0013] Optionally, the focus refocusing module includes: a spatial focus information extraction unit, used to extract spatial focus information from the panoramic image residual aggregation feature map to obtain a panoramic image spatial focus area representation matrix; a foreground information explicit screening unit, used to perform foreground information explicit screening on the panoramic image spatial focus area representation matrix to obtain a dimensionally aligned panoramic image spatial focus area representation matrix; and a synchronized migration marking unit, used to perform synchronized migration marking on the panoramic image residual aggregation feature map based on the dimensionally aligned panoramic image spatial focus area representation matrix to obtain the foreground-highlighted panoramic image residual aggregation feature map.
[0014] Optionally, the spatial focus information extraction unit is used to: perform convolution encoding and nonlinear activation processing on the panoramic image residual aggregation feature map to obtain a panoramic spatial weight information feature map; along the channel dimension of the panoramic spatial weight information feature map, calculate the cross-channel global mean of each pixel position in the panoramic spatial weight information feature map to obtain the panoramic image spatial focus area representation matrix.
[0015] Optionally, the foreground information explicit screening unit includes: a mask screening subunit, used to perform masking processing on the panoramic image spatial focus area representation matrix based on a predetermined threshold to obtain a masked panoramic image spatial focus area representation matrix; an upsampling subunit, used to upsample the masked panoramic image spatial focus area representation matrix to obtain the dimensionally aligned panoramic image spatial focus area representation matrix; wherein the mask screening subunit is used to: set the eigenvalues in the panoramic image spatial focus area representation matrix that are less than or equal to the predetermined threshold to zero.
[0016] Optionally, the synchronized migration marking unit is used to: use the dimensionally aligned panoramic image spatial focus area representation matrix as a weight matrix, and respectively calculate the product between it and each feature matrix along the channel dimension of the panoramic image residual aggregation feature map to obtain the foreground highlighted panoramic image residual aggregation feature map.
[0017] Optionally, the panoramic image reconstruction module is used to: pass the foreground-highlighted panoramic image residual aggregation feature map through a decoder-based panoramic image reconstruction generator to obtain the reconstructed panoramic image.
[0018] Optionally, the distortion discrimination module is used to: calculate a pixel-by-pixel position difference image between the reconstructed panoramic image and the panoramic image to be evaluated; and pass the pixel-by-pixel position difference image through a classifier based on an SVM model to obtain a classification result, wherein the classification result is used to indicate whether stitching distortion exists.
[0019] Optionally, it also includes a training step: training the panoramic image feature extractor based on the ResNet model, the region migration network based on the focus region map, the panoramic image reconstruction generator based on the decoder and the classifier based on the SVM model; wherein the training step includes: acquiring training data, the training data including the training panoramic image to be evaluated and the true value of whether there is stitching distortion; passing the training panoramic image to be evaluated through the panoramic image feature extractor based on the ResNet model to obtain a training panoramic image residual aggregation feature map; passing the training panoramic image residual aggregation feature map through the region migration network based on the focus region map to obtain a training foreground highlighting panoramic image residual aggregation feature map; The panoramic image residual aggregation feature map is passed through the decoder-based panoramic image reconstruction generator to obtain a training reconstructed panoramic image; a training pixel-by-pixel position difference image between the training reconstructed panoramic image and the training panoramic image to be evaluated is calculated; the training pixel-by-pixel position difference image is passed through the SVM model-based classifier to obtain a probability score and a classification loss function value; a class probability-related loss function value is calculated based on the probability score; and the weighted sum of the classification loss function value and the class probability-related loss function value is used as the loss function value to train the ResNet model-based panoramic image feature extractor, the focus area map-based region migration network, the decoder-based panoramic image reconstruction generator, and the SVM model-based classifier.
[0020] In a second aspect, the present disclosure provides a panoramic effect evaluation method based on deep learning, the method comprising:
[0021] Acquire a panoramic image to be evaluated;
[0022] Performing panoramic image feature extraction on the panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map;
[0023] The panoramic image residual aggregation feature map is passed through a region migration network based on a focus region map to obtain a foreground-highlighted panoramic image residual aggregation feature map;
[0024] Reconstructing the panoramic image based on the foreground-highlighted panoramic image residual aggregation feature map to obtain a reconstructed panoramic image;
[0025] It is determined whether the panoramic image to be evaluated has stitching distortion based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated.
[0026] The above technical solution is adopted to extract panoramic image features from the acquired panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map; the panoramic image residual aggregation feature map is passed through a region migration network based on a focus region map to obtain a foreground highlight panoramic image residual aggregation feature map; the panoramic image is reconstructed based on the foreground highlight panoramic image residual aggregation feature map to obtain a reconstructed panoramic image; and based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated, it is determined whether the panoramic image to be evaluated has stitching distortion. In this way, stitching distortion in the panoramic image can be automatically identified, providing a basis for subsequent image restoration or optimization, thereby ensuring the natural fluency and visual consistency of the panoramic image.
[0027] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0029] Figure 1 It is a block diagram of a panoramic effect evaluation system based on deep learning according to an exemplary embodiment.
[0030] Figure 2 The present invention is a flowchart of a method for evaluating panoramic effects based on deep learning according to an exemplary embodiment.
[0031] Figure 3 It is a block diagram of an electronic device according to an exemplary embodiment.
[0032] Figure 4 This is an application scenario diagram of a panoramic effect evaluation system based on deep learning according to an exemplary embodiment. DETAILED DESCRIPTION
[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0034] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0035] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0036] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0037] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0038] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0039] The Panoramic Effect Evaluation System (PEES) is a comprehensive performance and effect evaluation framework designed to provide in-depth analysis and evaluation of the ability of a model or system to perform specific tasks. PEES integrates multi-dimensional evaluation indicators (such as performance evaluators, efficiency evaluators, reliability evaluators, fairness evaluators, etc.) and machine learning algorithms to achieve comprehensive monitoring and feedback of model performance, support manual intervention and automatic calibration based on deep learning, and ensure the efficiency and accuracy of system output.
[0040] The deep learning-based Panoramic Effect Evaluation System (PEES) is a complex and comprehensive framework that involves multiple steps and components to achieve in-depth analysis and evaluation of model or system performance.
[0041] 1. Requirements analysis and goal setting: Determine the specific requirements that the evaluation system needs to meet; set evaluation goals, such as performance, efficiency, reliability, and fairness.
[0042] 2. Data collection and preprocessing: Collect data sets for evaluation, which may include historical data, real-time data, or simulated data; perform preprocessing steps such as cleaning, normalization, and feature engineering on the data.
[0043] 3. Definition of multi-dimensional evaluation indicators: Define performance evaluator: evaluate the accuracy, recall rate, F1 score, etc. of the model; define efficiency evaluator: evaluate the computing speed, resource consumption, etc. of the model; define reliability evaluator: evaluate the stability and fault tolerance of the model; define fairness evaluator: evaluate the fairness of the model to different groups.
[0044] 4. Model selection and training: Select a suitable deep learning model, such as convolutional neural network (CNN), recurrent neural network (RNN) or transformer; use the preprocessed data to train the model.
[0045] 5. Evaluate model performance: Use defined evaluation indicators to evaluate the performance of the model; use methods such as cross-validation to ensure the reliability of the evaluation results.
[0046] 6. Feedback and manual intervention: Provide feedback based on the evaluation results, pointing out the strengths and weaknesses of the model; perform manual intervention when necessary, such as adjusting the model structure or parameters.
[0047] 7. Automatic calibration and optimization: Use deep learning-based automatic calibration algorithms to optimize the model; this may include hyperparameter adjustment, model structure optimization, etc.
[0048] 8. Continuous monitoring and updating: Implement a continuous monitoring mechanism to track model performance in real time; regularly update the model to adapt to new data and scenarios.
[0049] 9. Reporting and Documentation: Generate detailed evaluation reports, including key indicators, performance charts, and improvement suggestions; write technical documents to record the evaluation process and results.
[0050] 10. Application scenario integration: Integrate the evaluation system with specific application scenarios, such as autonomous driving, medical diagnosis, financial risk control, etc.; ensure that the evaluation system can adapt to the needs of specific scenarios.
[0051] 11. User training and support: Train users to understand how to use the evaluation system; provide necessary technical support and consulting services.
[0052] 12. Iteration and improvement of the evaluation system: Continuously iterate and improve the evaluation system based on user feedback and new research results.
[0053] This process is highly iterative and dynamic, and needs to be constantly adjusted and optimized based on new data, technological advances, and user needs. In actual applications, each step may involve more detailed sub-steps and technical details.
[0054] The deep learning-based panoramic effect evaluation system is a cutting-edge technology that uses convolutional neural networks (CNNs) and other advanced machine learning algorithms to analyze and evaluate the quality of panoramic images. This system can automatically identify stitching distortion and projection distortion in images, which are common problems in the process of panoramic image stitching. Through the training of deep learning models, the system can learn how to extract key features from a large amount of image data and use these features to evaluate the overall quality of the image. In addition, this evaluation system can also use the attention mechanism to more accurately locate the problem areas in the image, thereby providing more detailed and accurate quality feedback.
[0055] In practical applications, this evaluation system can be used in multiple fields, such as virtual reality, environmental perception of unmanned vehicles, and intelligent monitoring systems. In the field of virtual reality, high quality of panoramic effects is the key to providing an immersive experience; while in unmanned driving technology, accurate panoramic image stitching is essential for safe navigation of vehicles. Similarly, in the field of security monitoring, high-quality panoramic images can help improve monitoring efficiency and accuracy.
[0056] Currently, the research on panoramic image quality assessment methods is developing rapidly, and new algorithms and technologies are constantly being proposed. For example, some studies focus on improving the assessment methods based on peak signal-to-noise ratio and structural similarity to better reflect the subjective perception of image quality by the human eye. At the same time, there are also studies exploring how to use deep learning to evaluate the unique types of distortion in panoramic images, such as stitching distortion and projection distortion. In addition, in order to improve the generalization ability and performance of the evaluation system, researchers are also actively building proprietary panoramic image datasets and using various performance indicators to evaluate the effectiveness of the algorithm.
[0057] In order to solve the above problems, the present disclosure provides a panoramic effect evaluation system and method based on deep learning, which extracts panoramic image features from the acquired panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map; passes the panoramic image residual aggregation feature map through a region migration network based on a focus region map to obtain a foreground highlight panoramic image residual aggregation feature map; reconstructs the panoramic image based on the foreground highlight panoramic image residual aggregation feature map to obtain a reconstructed panoramic image; and determines whether the panoramic image to be evaluated has stitching distortion based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated. In this way, stitching distortion in the panoramic image can be automatically identified, providing a basis for subsequent image restoration or optimization, thereby ensuring the natural fluency and visual consistency of the panoramic image.
[0058] The specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0059] Figure 1 FIG. 1 is a block diagram of a panoramic effect evaluation system based on deep learning according to an exemplary embodiment. Figure 1 As shown, the system 100 includes:
[0060] An evaluation image acquisition module 101 is used to acquire a panoramic image to be evaluated;
[0061] A panoramic image feature extraction module 102 is used to extract panoramic image features from the panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map;
[0062] A focus refocusing module 103, configured to obtain a foreground-highlighted panoramic image residual aggregation feature map by passing the panoramic image residual aggregation feature map through a region migration network based on a focus region map;
[0063] A panoramic image reconstruction module 104, configured to reconstruct the panoramic image based on the foreground-highlighted panoramic image residual aggregation feature map to obtain a reconstructed panoramic image;
[0064] The distortion determination module 105 is configured to determine whether the panoramic image to be evaluated has stitching distortion based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated.
[0065] In response to the above technical problems, the technical concept of the present disclosure is to use deep learning-based artificial intelligence technology and image processing technology to capture the image features of the panoramic image to be evaluated, and introduce an attention mechanism to explicitly migrate the foreground information in the image features, and then reconstruct the image based on the image features after the foreground information is visualized, and then identify the stitching distortion based on the pixel-by-pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated. In this way, stitching distortion in the panoramic image is automatically identified, providing a basis for subsequent image restoration or optimization, thereby ensuring the natural fluency and visual consistency of the panoramic image.
[0066] Based on this, in the technical solution disclosed in the present invention, first, a panoramic image to be evaluated is obtained; and the panoramic image to be evaluated is passed through a panoramic image feature extractor based on a ResNet model to obtain a panoramic image residual aggregation feature map. Among them, ResNet (residual network) introduces a residual learning framework to solve the gradient vanishing problem in deep network training, so that the network can learn deeper feature representations to capture the complex and advanced features in the panoramic image to be evaluated. These image features are crucial for understanding the image content and structure.
[0067] In one embodiment of the present disclosure, the panoramic image feature extraction module is used to: pass the panoramic image to be evaluated through a panoramic image feature extractor based on a ResNet model to obtain the panoramic image residual aggregation feature map.
[0068] Considering that in a panoramic image, the joints between the various regions are the most likely to produce stitching distortion. Obviously, these joints are the focus for identifying stitching distortion and can be regarded as important foreground information. However, since the panoramic image to be evaluated also includes other image content such as buildings that can be regarded as background information, these background information may be retained when extracting features from the panoramic image to be evaluated, and amplified as the network level deepens. In other words, there may be a large amount of noise interference feature information in the panoramic image residual aggregation feature map, and this noise interference feature information is not important for identifying stitching distortion and may even interfere with the recognition task. Therefore, in the technical solution disclosed in the present invention, it is expected that the panoramic image residual aggregation feature map is passed through a regional migration network based on a focus area map to obtain a foreground-highlighting panoramic image residual aggregation feature map.
[0069] In an embodiment of the present disclosure, the specific process of passing the panoramic image residual aggregation feature map through a region migration network based on a focus area map to obtain a foreground-highlighted panoramic image residual aggregation feature map includes: firstly extracting spatial focus information from the panoramic image residual aggregation feature map to obtain a panoramic image spatial focus area representation matrix, then performing foreground information explicit screening on the panoramic image spatial focus area representation matrix to obtain a dimensionally aligned panoramic image spatial focus area representation matrix; and then performing synchronous migration marking on the panoramic image residual aggregation feature map based on the dimensionally aligned panoramic image spatial focus area representation matrix to obtain the foreground-highlighted panoramic image residual aggregation feature map.
[0070] Here, the region migration network based on the focus region map highlights the importance of foreground information in the residual aggregation feature map of the panoramic image by introducing a focus focusing mechanism and an information screening mechanism. Specifically, convolutional coding and nonlinear activation processing of the residual aggregation feature map of the panoramic image can capture the correlation pattern of the local neighborhood space, thereby learning the spatial information in the panoramic image, and condensing and extracting the global channel information at each spatial pixel position in the panoramic spatial weight information feature map by calculating the cross-channel global mean, which ignores the specific information representation of each channel to a certain extent and forms a global comprehensive spatial distribution pattern expression. In this way, this global comprehensive spatial distribution pattern expression is used to visualize and screen the feature information of the foreground target of interest, and the feature information of the foreground target of interest is marked and purified through mask processing, and then the network module can focus on the important foreground area in the residual aggregation feature map of the panoramic image by synchronous migration marking.
[0071] In one embodiment of the present disclosure, the focus refocusing module includes: a spatial focus information extraction unit, used to extract spatial focus information from the panoramic image residual aggregation feature map to obtain a panoramic image spatial focus area representation matrix; a foreground information explicit screening unit, used to perform foreground information explicit screening on the panoramic image spatial focus area representation matrix to obtain a dimensionally aligned panoramic image spatial focus area representation matrix; a synchronized migration marking unit, used to perform synchronized migration marking on the panoramic image residual aggregation feature map based on the dimensionally aligned panoramic image spatial focus area representation matrix to obtain the foreground-highlighted panoramic image residual aggregation feature map.
[0072] Furthermore, in one embodiment of the present disclosure, the spatial focus information extraction unit is used to: perform convolution encoding and nonlinear activation processing on the panoramic image residual aggregation feature map to obtain a panoramic spatial weight information feature map; along the channel dimension of the panoramic spatial weight information feature map, calculate the cross-channel global mean of each pixel position in the panoramic spatial weight information feature map to obtain the panoramic image spatial focus area representation matrix.
[0073] Furthermore, in one embodiment of the present disclosure, the foreground information explicit screening unit includes: a mask screening subunit, used to perform masking processing on the panoramic image spatial focus area representation matrix based on a predetermined threshold to obtain a masked panoramic image spatial focus area representation matrix; an upsampling subunit, used to upsample the masked panoramic image spatial focus area representation matrix to obtain the dimensionally aligned panoramic image spatial focus area representation matrix; wherein the mask screening subunit is used to: set the eigenvalues in the panoramic image spatial focus area representation matrix that are less than or equal to the predetermined threshold to zero.
[0074] Furthermore, in one embodiment of the present disclosure, the synchronized migration marking unit is used to: use the dimensionally aligned panoramic image spatial focus area representation matrix as a weight matrix, and respectively calculate the product between it and each feature matrix along the channel dimension of the panoramic image residual aggregation feature map to obtain the foreground highlighted panoramic image residual aggregation feature map.
[0075] Specifically, the panoramic image residual aggregation feature map is passed through a region migration network based on a focus region map using the following migration formula to obtain a foreground-highlighted panoramic image residual aggregation feature map; wherein the migration formula is: ;in, is the panoramic image residual aggregation feature map, Indicates based on Convolution processing of convolution kernel, express Activation function, is the panoramic spatial weight information feature map, Indicates the panoramic spatial weight information feature map The channel vector at position, is the number of channels of the panoramic spatial weight information feature map, is the panoramic image spatial focus area representation matrix, Indicates masking processing. represents upsampling, is the predetermined threshold, The value of , is the spatial focus area representation matrix of the panoramic image The eigenvalue at position, Align the panoramic image spatial focus region representation matrix for the dimension, represents multiplying the dimensionally aligned panoramic image spatial focus area representation matrix with each feature matrix along the channel dimension of the panoramic image residual aggregation feature map, A residual aggregation feature map of the panoramic image is used to highlight the foreground.
[0076] Subsequently, the residual aggregation feature map of the foreground-highlighted panoramic image is passed through a decoder-based panoramic image reconstruction generator to obtain a reconstructed panoramic image. Here, the input of the decoder-based panoramic image reconstruction generator during the entire training process is a panoramic image without stitching distortion. In this way, during the inference process of the decoder-based panoramic image reconstruction generator, if there is stitching distortion in the panoramic image to be evaluated, the decoder-based panoramic image reconstruction generator will lose the information of the stitching distortion part in the panoramic image to be evaluated when generating the reconstructed panoramic image (this is abnormal information for the decoder-based panoramic image reconstruction generator). In other words, the decoder-based panoramic image reconstruction generator does not have the ability to reconstruct panoramic images with stitching distortion.
[0077] In one embodiment of the present disclosure, the panoramic image reconstruction module is used to: pass the foreground-highlighted panoramic image residual aggregation feature map through a decoder-based panoramic image reconstruction generator to obtain the reconstructed panoramic image.
[0078] It should be understood that if there is stitching distortion in the panoramic image to be evaluated, there will be a huge feature difference between the reconstructed panoramic image and the panoramic image to be evaluated. In the technical solution of the present disclosure, it is expected to use this feature to identify stitching distortion. Further, a pixel-by-pixel position difference image between the reconstructed panoramic image and the panoramic image to be evaluated is calculated; and the pixel-by-pixel position difference image is passed through a classifier based on an SVM model to obtain a classification result, and the classification result is used to indicate whether there is stitching distortion.
[0079] In one embodiment of the present disclosure, the distortion discrimination module is used to: calculate a pixel-by-pixel position difference image between the reconstructed panoramic image and the panoramic image to be evaluated; and pass the pixel-by-pixel position difference image through a classifier based on an SVM model to obtain a classification result, wherein the classification result is used to indicate whether there is stitching distortion.
[0080] Furthermore, in one embodiment of the present disclosure, the panoramic effect evaluation system based on deep learning also includes a training step: training the panoramic image feature extractor based on the ResNet model, the region migration network based on the focus region map, the panoramic image reconstruction generator based on the decoder and the classifier based on the SVM model; wherein the training step includes: acquiring training data, the training data including the training panoramic image to be evaluated and the true value of whether there is stitching distortion; passing the training panoramic image to be evaluated through the panoramic image feature extractor based on the ResNet model to obtain a training panoramic image residual aggregation feature map; passing the training panoramic image residual aggregation feature map through the region migration network based on the focus region map to obtain a training foreground highlighting panoramic image residual. Aggregate feature map; pass the training foreground-highlighted panoramic image residual aggregate feature map through the decoder-based panoramic image reconstruction generator to obtain a training reconstructed panoramic image; calculate a training pixel-by-pixel position difference image between the training reconstructed panoramic image and the training panoramic image to be evaluated; pass the training pixel-by-pixel position difference image through the SVM model-based classifier to obtain a probability score and a classification loss function value; calculate a class probability-related loss function value based on the probability score; use the weighted sum of the classification loss function value and the class probability-related loss function value as the loss function value to train the ResNet model-based panoramic image feature extractor, the focus area map-based region migration network, the decoder-based panoramic image reconstruction generator, and the SVM model-based classifier.
[0081] In addition, in an optimized embodiment, during the model training process, for each iteration, the probability score obtained by passing the training pixel-by-pixel position difference image through a classifier based on the SVM model is introduced into a class probability related loss function, and the calculation of the class probability related loss function is specifically as follows:
[0082] Obtain the probability score obtained by the classifier of the training pixel-by-pixel position difference image at each iteration, and subtract the probability score from one to obtain a score difference;
[0083] Determine the mean and variance of a set of pixel values of the training pixel-by-pixel position difference image;
[0084] Calculate the class cross entropy difference obtained by multiplying each pixel value of the training pixel-by-pixel position difference image by the probability score and then subtracting the product of the score difference and the mean in the form of class cross entropy;
[0085] summing the squares of the class cross entropy differences corresponding to each pixel value in the training pixel-by-pixel position difference image and dividing the sum by the image size of the training pixel-by-pixel position difference image to obtain a first loss term, wherein the image size of the training pixel-by-pixel position difference image is the width multiplied by the height of the training pixel-by-pixel position difference image;
[0086] Multiplying the square sum of the probability score and the score difference by the variance to obtain a second loss term;
[0087] The second loss term is subtracted from the first loss term to obtain the class probability related loss function.
[0088] Here, after the image semantic features of the training panoramic image to be evaluated are subjected to spatial distribution migration of local image semantic features in the focal area, the training reconstructed panoramic image obtained by reconstructing based on the decoder may have a difference in pixel semantic distribution pattern from the source semantic distribution, resulting in the presence of out-of-class distribution noise in the pixel-by-pixel position difference image between the training reconstructed panoramic image and the training panoramic image to be evaluated, affecting the accuracy of the classification result of the training pixel-by-pixel position difference image obtained by a classifier based on the SVM model.
[0089] Therefore, the above-mentioned class probability related loss function sets the approximate expected variance characteristics of the out-of-distribution noise of the training pixel-by-pixel position difference image relative to the Bernoulli sampling instance of the pixel semantic set based on the class probability distribution characteristics expressed by the probability score and the score difference of the training pixel-by-pixel position difference image through the classifier. Thus, the class probability related loss function is used to measure the distribution feature noise based on the class probability distribution characteristics expressed by the probability score and the score difference of the training pixel-by-pixel position difference image. Based on the class probability distribution of each pixel value of the training pixel-by-pixel position difference image during the classification process, the probability cross random selection characteristics of the expected variance of the training pixel-by-pixel position difference image, which includes the class cross entropy compound difference calculation, can be used to degrade possible sampling noise features, thereby realizing the class distribution noise reduction of self-supervised learning in the process of updating model parameters, so as to improve the accuracy of the classification results obtained by the training pixel-by-pixel position difference image through the classifier based on the SVM model.
[0090] In summary, the above scheme is adopted to capture the image features of the panoramic image to be evaluated by using artificial intelligence technology and image processing technology based on deep learning, and introduce the attention mechanism to explicitly transfer the foreground information in the image features, and then reconstruct the image based on the image features after the foreground information is visualized, and then identify the stitching distortion based on the pixel-by-pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated. In this way, stitching distortion in the panoramic image is automatically identified, providing a basis for subsequent image restoration or optimization, thereby ensuring the natural fluency and visual consistency of the panoramic image.
[0091] Figure 2 is a flowchart of a method for evaluating panoramic effects based on deep learning according to an exemplary embodiment. Figure 2 As shown, the method includes:
[0092] Step 201: Obtain a panoramic image to be evaluated;
[0093] Step 202: extract panoramic image features from the panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map;
[0094] Step 203: Pass the panoramic image residual aggregation feature map through a region migration network based on a focus region map to obtain a foreground-highlighted panoramic image residual aggregation feature map;
[0095] Step 204, reconstructing the panoramic image based on the foreground-highlighted panoramic image residual aggregation feature map to obtain a reconstructed panoramic image;
[0096] Step 205: Determine whether the panoramic image to be evaluated has stitching distortion based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated.
[0097] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0098] like Figure 3As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0099] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0100] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0101] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0102] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0103] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0104] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0105] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0106] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, a test parameter acquisition module may also be described as a "module for acquiring device test parameters corresponding to a target device".
[0107] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0108] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0109] Figure 4 FIG. 1 is an application scenario diagram of a panoramic effect evaluation system based on deep learning according to an exemplary embodiment. Figure 4 As shown, in this application scenario, first, a panoramic image to be evaluated is obtained (for example, Figure 4 Then, the acquired panoramic image to be evaluated is input to a server (for example, Figure 4 In S) as shown in , the server is capable of processing the panoramic image to be evaluated based on a panoramic effect evaluation algorithm based on deep learning to determine whether the panoramic image to be evaluated has stitching distortion.
[0110] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0111] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0112] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A panoramic effect evaluation system based on deep learning, characterized in that: include: An evaluation image acquisition module is used to acquire a panoramic image to be evaluated; A panoramic image feature extraction module, used to extract panoramic image features from the panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map; A focus refocusing module, used for passing the panoramic image residual aggregation feature map through a region migration network based on a focus region map to obtain a foreground-highlighted panoramic image residual aggregation feature map; A panoramic image reconstruction module, used for reconstructing the panoramic image based on the foreground-highlighted panoramic image residual aggregation feature map to obtain a reconstructed panoramic image; a distortion determination module, configured to determine whether the panoramic image to be evaluated has stitching distortion based on pixel differences between the reconstructed panoramic image and the panoramic image to be evaluated; Wherein, the focus refocusing module comprises: A spatial focus information extraction unit, configured to extract spatial focus information from the panoramic image residual aggregation feature map to obtain a panoramic image spatial focus region representation matrix; a foreground information explicit screening unit, configured to perform foreground information explicit screening on the panoramic image spatial focus area representation matrix to obtain a dimensionally aligned panoramic image spatial focus area representation matrix; A synchronous migration marking unit, configured to perform synchronous migration marking on the panoramic image residual aggregation feature map based on the dimensionally aligned panoramic image spatial focus area representation matrix to obtain the foreground-highlighted panoramic image residual aggregation feature map; Wherein, the spatial focus information extraction unit is used to: Performing convolution coding and nonlinear activation processing on the panoramic image residual aggregation feature map to obtain a panoramic spatial weight information feature map; Along the channel dimension of the panoramic spatial weight information feature map, calculating the cross-channel global mean of each pixel position in the panoramic spatial weight information feature map to obtain the panoramic image spatial focus area representation matrix; Wherein, the foreground information explicit screening unit includes: a mask screening subunit, configured to perform masking processing on the panoramic image spatial focus area representation matrix based on a predetermined threshold value to obtain a masked panoramic image spatial focus area representation matrix; an upsampling subunit, configured to upsample the masked panoramic image spatial focus region representation matrix to obtain the dimensionally aligned panoramic image spatial focus region representation matrix; Wherein, the mask screening unit is used for: Setting the eigenvalues in the panoramic image spatial focus area representation matrix that are less than or equal to the predetermined threshold to zero; Wherein, the synchronized migration labeling unit is used for: The dimensionally aligned panoramic image spatial focus area representation matrix is used as a weight matrix, and the product between the weight matrix and each feature matrix along the channel dimension of the panoramic image residual aggregation feature map is calculated respectively to obtain the foreground highlighted panoramic image residual aggregation feature map.
2. The panoramic effect evaluation system based on deep learning according to claim 1, characterized in that: The panoramic image feature extraction module is used to: The panoramic image to be evaluated is passed through a panoramic image feature extractor based on a ResNet model to obtain the panoramic image residual aggregation feature map.
3. The panoramic effect evaluation system based on deep learning according to claim 2, characterized in that: The panoramic image reconstruction module is used to: The foreground-highlighted panoramic image residual aggregation feature map is passed through a decoder-based panoramic image reconstruction generator to obtain the reconstructed panoramic image.
4. The panoramic effect evaluation system based on deep learning according to claim 3 is characterized in that: The distortion determination module is used for: Calculating a pixel-by-pixel position difference image between the reconstructed panoramic image and the panoramic image to be evaluated; The pixel-by-pixel position difference image is passed through a classifier based on an SVM model to obtain a classification result, and the classification result is used to indicate whether there is stitching distortion.
5. The panoramic effect evaluation system based on deep learning according to claim 4 is characterized in that: The method further includes a training step of: training the panoramic image feature extractor based on the ResNet model, the region migration network based on the focus region map, the decoder-based panoramic image reconstruction generator, and the classifier based on the SVM model; Wherein, the training step includes: Acquire training data, wherein the training data includes a training panoramic image to be evaluated and a true value of whether there is stitching distortion; Passing the training panoramic image to be evaluated through the panoramic image feature extractor based on the ResNet model to obtain a training panoramic image residual aggregation feature map; Passing the training panoramic image residual aggregation feature map through the region migration network based on the focus region map to obtain a training foreground highlighted panoramic image residual aggregation feature map; Passing the training foreground-highlighted panoramic image residual aggregate feature map through the decoder-based panoramic image reconstruction generator to obtain a training reconstructed panoramic image; Calculating a training pixel-by-pixel position difference image between the training reconstructed panoramic image and the training to-be-evaluated panoramic image; Passing the training pixel-by-pixel position difference image through the SVM model-based classifier to obtain a probability score and a classification loss function value; Calculating a class probability-related loss function value based on the probability score; The weighted sum of the classification loss function value and the class probability related loss function value is used as the loss function value to train the panoramic image feature extractor based on the ResNet model, the region migration network based on the focus area map, the decoder-based panoramic image reconstruction generator and the classifier based on the SVM model.
6. A method for evaluating panoramic effects based on deep learning, using the panoramic effect evaluation system based on deep learning according to claim 1, characterized in that: include: Acquire a panoramic image to be evaluated; Performing panoramic image feature extraction on the panoramic image to be evaluated to obtain a panoramic image residual aggregation feature map; The panoramic image residual aggregation feature map is passed through a region migration network based on a focus region map to obtain a foreground-highlighted panoramic image residual aggregation feature map; Reconstructing the panoramic image based on the foreground-highlighted panoramic image residual aggregation feature map to obtain a reconstructed panoramic image; It is determined whether the panoramic image to be evaluated has stitching distortion based on the pixel difference between the reconstructed panoramic image and the panoramic image to be evaluated.
Citation Information
Patent Citations
Evaluation method for non-reference comprehensive perception of panoramic image quality
CN115205658A
No-reference image quality evaluation method based on deep learning
CN115272203A
