Feature sharing and multi-viewport adaptive panoramic image quality evaluation method and system

By using the ResNet50 backbone network and the Fibonacci sphere uniform sampling algorithm to extract features in panoramic image quality evaluation, global quality features are formed, which solves the problems of high model complexity and labeling errors in the existing technology, and achieves a more efficient panorama Image quality assessment.

CN118822980APending Publication Date: 2024-10-22COMMUNICATION UNIVERSITY OF CHINA +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing panoramic image quality evaluation algorithms do not deeply consider the differences between viewing behavior patterns of ordinary images and panoramic images, and do not analyze the potential impact of geometric distortion on deep learning models, resulting in high model complexity and the occurrence of labeling errors.

Method used

The pre-trained ResNet50 backbone network is used to extract multi-scale features, and the features are mapped to the same dimension through convolution kernels with different step sizes. It is combined with the Fibonacci sphere uniform sampling algorithm to obtain quality viewport features and semantic viewport features, and uses Transformer The encoder forms global quality features and is fed into the regression network to calculate the image quality score.

Benefits of technology

It achieves more lightweight computational complexity and flexible local feature division and aggregation, avoids multiple feedforward operations, maintains the consistency of pixel density in the observation space and representation space, and ensures that local features correspond to the same field of view. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822980A_ABST
    Figure CN118822980A_ABST
Patent Text Reader

Abstract

The invention provides a panoramic image quality evaluation method and system based on feature sharing and multi-viewport self-adaption, and the method comprises the steps: firstly mapping the features of each scale in multi-scale features to the same dimension, and splicing the mapped features to form multi-scale quality features; extracting feature information corresponding to each viewport based on the multi-scale quality features to obtain quality viewport features and semantic viewport features, and inputting global quality features formed based on the quality viewport features and the semantic viewport features into a preset regression network to obtain hidden layer output vectors; on the basis of the method, multiple feedforward operations in the model calculation process can be effectively avoided, the consistency of the pixel density of the observation space and the pixel density of the representation space can be maintained, and it is ensured that all the extracted local features correspond to the same view field angle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and more specifically to a method and system for evaluating the quality of panoramic images with feature sharing and multi-viewport adaptation. Background Art

[0002] Panoramic images will inevitably introduce various degradation problems such as blur, blockiness, overexposure / underexposure during the process of acquisition, encoding, and transmission, which will affect the user's viewing experience. In order to ensure the user's audio-visual experience and improve and optimize the service quality of the video platform, it is necessary to effectively evaluate the perceptual quality of panoramic images (Omnidirectional Image Quality Assessment, OIQA).

[0003] Existing panoramic image quality assessment algorithms can be divided into three categories according to the way they process the input data: projection-oriented, image block-oriented, and viewport-oriented.

[0004] Projection-oriented algorithms directly extract and fuse features from content mapped by equirectangular projection (ERP) and other methods, and can directly apply existing models for ordinary two-dimensional image quality evaluation to the field of panoramic image quality evaluation. Image block-oriented algorithms generally divide panoramic images into multiple local areas for separate training, with the goal of increasing the number of training samples to promote model convergence. Viewport-oriented algorithms first map ERP content to a sphere, then project the local viewport content to a two-dimensional plane to eliminate geometric distortion, and finally design an evaluation model by simulating the user's behavior when viewing panoramic content.

[0005] However, the projection-oriented algorithm does not deeply consider the difference between ordinary images and panoramic images in viewing behavior patterns. At the same time, since this type of algorithm directly feeds the projected image with geometric distortion into the deep learning model, it does not analyze the potential impact of this distortion on the existing deep learning model. The image block-oriented algorithm shares the average opinion score of the entire image for each local area, which will introduce obvious labeling errors for some distortion types with uneven spatial perceptual quality distribution. After the viewport-oriented evaluation model performs multi-viewport segmentation in the pixel domain, the content of each viewport needs to be extracted using a deep learning model separately, that is, the content of each viewport needs to be sent to the backbone network to extract local features, which makes it more complex; and since the content of each viewport has been determined before being sent to the backbone network, this framework is difficult to adapt to the end-to-end training process.

[0006] Therefore, there is an urgent need for a panoramic image quality evaluation method and system that can effectively reduce the complexity of the model while performing more comprehensive end-to-end training of the model, and can achieve more flexible local feature division and aggregation feature sharing and multi-viewport adaptation. Summary of the invention

[0007] In view of the above problems, the purpose of the present invention is to provide a feature sharing and multi-viewport adaptive panoramic image quality evaluation method and system to solve the problem that the prior art either does not deeply consider the difference between ordinary images and panoramic images in viewing behavior patterns, or does not analyze the potential impact of such distortion on existing deep learning models, or introduces obvious labeling errors for some distortion types with uneven spatial perceptual quality distribution.

[0008] The present invention provides a feature sharing and multi-viewport adaptive panoramic image quality evaluation method, which includes:

[0009] Input the target image into the pre-trained ResNet50 backbone network to extract the multi-scale features of the target image, and map the features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to splice the mapped features to form multi-scale quality features;

[0010] The target image is sampled and calculated using a Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and feature information corresponding to each viewport is extracted based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features;

[0011] Adding an additional embedding vector and a position embedding vector to the quality viewport feature and the semantic viewport feature to form a quality viewport token and a semantic viewport token, and using the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to obtain a global quality feature of an Nth layer output of the Tansformer encoder;

[0012] The global quality feature is input into a preset regression network to obtain a hidden layer output vector, and a bias calculation is performed according to the hidden layer output vector to obtain an image quality score of the target image.

[0013] Preferably, the target image is input into a pre-trained ResNet50 backbone network to extract multi-scale features of the target image, and each scale feature in the multi-scale features is mapped to the same dimension through convolution kernels of different step sizes to form a multi-scale quality feature by splicing the mapped features, including:

[0014] The target image I∈RH×W×3 It is fed into the ResNet50 backbone network formed by pre-training with the ImageNet dataset. b Extract the multi-scale features of the target image L = {l i |i∈[1,m]}=f b (I; θ b ), wherein H and W represent the resolution of the height and width of the target image respectively; i represents the feature of the i-th scale among m scales, θ b Represents the pre-training parameters of the ResNet50 backbone network;

[0015] Based on the mapping function, the features of each scale are mapped to the same dimension through convolution kernels of different step lengths to obtain the mapping features. Among them, g i represents the mapping function on the i-th scale, Represented as the parameter of the mapping function, c i ∈R h×w×D represents the mapping feature at the i-th scale after mapping, h, w and D are the mapping features c i height resolution, width resolution and number of channels;

[0016] The m mapping features are concatenated to form a multi-scale quality feature, denoted as C = {c i |i∈[1,m]}.

[0017] Preferably, the steps of sampling and calculating the target image using a Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extracting feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features include:

[0018] The target image is sampled and calculated using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates;

[0019] Acquire viewport position information of each viewport according to the sampling point coordinates;

[0020] A quality viewport feature and a semantic viewport feature are formed according to the viewport position information and the multi-scale quality feature.

[0021] Preferably, the step of sampling and calculating the target image using the Fibonacci spherical uniform sampling algorithm to obtain the coordinates of the sampling points includes:

[0022] The multi-scale quality feature is sampled and calculated by the Fibonacci spherical uniform sampling algorithm to obtain the spatial rectangular coordinates (x k ,y k,z k );

[0023] Convert the spatial rectangular coordinates to spherical coordinates

[0024] Convert the spherical coordinates to planar pixel coordinates And the plane pixel coordinates are used as sampling point coordinates.

[0025] Preferably, the step of acquiring the viewport position information of each viewport according to the sampling point coordinates includes:

[0026] The viewport width W is set based on the sampling point coordinates according to the latitude of the sampling point. local , and set the viewport height H local Set to the same value; where the viewport width at sampling point k Wherein, a is a preset constant for controlling the scaling amount;

[0027] The vertex coordinates of the upper left corner and the lower right corner of the viewport are calculated according to the viewport width and the viewport height to obtain the viewport position information of each viewport.

[0028] Preferably, in the process of forming the quality viewport feature and the semantic viewport feature according to the viewport position information and the multi-scale quality feature,:

[0029] A quality viewport feature is formed according to the viewport position information and the multi-scale quality feature using a preset ROI_Align algorithm, and a semantic viewport feature is formed according to the viewport position information and the multi-scale quality feature of a fourth dimension; wherein the multi-scale quality feature of the fourth dimension is a feature at a semantic level.

[0030] Preferably, the process of using the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to obtain global quality features of an Nth layer output of the Tansformer encoder comprises:

[0031] The quality viewport token is used as the key vector and value vector of the first layer of the Tansformer encoder, denoted as k0 and v0 respectively; the semantic viewport token is used as the query vector of the first layer of the Tansformer encoder, denoted as q0;

[0032] Based on the pre-trained parameters of the Tansformer encoder, the key vector, the value vector and the query vector of the first layer of the Tansformer encoder are updated to obtain a first layer output key vector, a first layer output value vector and a first layer output query vector;

[0033] The first-layer output key vector, the first-layer output value vector and the first-layer output query vector are used as the key vector, value vector and query vector of the second layer of the Tansformer encoder for update processing to obtain the second-layer output key vector, the second-layer output value vector and the second-layer output query vector, which are updated in sequence until the N-1-th layer output key vector, the N-1-th layer output value vector and the N-1-th layer output query vector are used as the key vector, value vector and query vector of the Nth layer of the Tansformer encoder for update processing to obtain the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector.

[0034] Based on the multi-head attention mechanism, the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector are weighted and normalized to obtain the global quality features of the N-th layer output of the Tansformer encoder.

[0035] Preferably, the step of weighting and normalizing the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector based on a multi-head attention mechanism to obtain the global quality features of the N-th layer output of the Tansformer encoder includes:

[0036] The N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector are added as the input of the N-th layer of the Tansformer encoder and the quality viewport token to form a residual connection;

[0037] Normalizing the residual connection to obtain a normalized vector;

[0038] The normalized vector is transformed and nonlinearly mapped by a preset forward feedback neural network to obtain a feedforward neural network output vector; the forward feedback neural network includes two fully connected layers and a Relu activation function;

[0039] A residual connection is performed on the feedforward neural network output vector and the normalized vector, and layer normalization is performed to obtain global quality features of the Nth layer output Tansformer encoder.

[0040] Preferably, the step of inputting the global quality feature into a preset regression network to obtain a hidden layer output vector, and performing bias calculation according to the hidden layer output vector to obtain the image quality score of the target image comprises:

[0041] The global quality feature F0′ of the d-dimensional vector is sent to a preset regression network, and the global quality feature F0′ passes through the first fully connected layer of the regression network to obtain a low-dimensional hidden layer output vector h; wherein h=W1·F′0+b1; W1 is the weight matrix of the first fully connected layer, and b1 is the preset first bias vector;

[0042] Activate the hidden layer output vector h by using the Relu activation function to obtain a hidden layer output h'=Relu(h);

[0043] The hidden layer output h' is passed through the second fully connected layer of the regression network to obtain the image quality score predicted for the target image: Q = W2·h'+b2, wherein W2 represents the weight matrix of the second fully connected layer, b2 represents the preset second bias vector, and Q represents the predicted image quality score.

[0044] The present invention also provides a feature sharing and multi-viewport adaptive panoramic image quality evaluation system, which includes:

[0045] A quality feature extraction unit, used for inputting a target image into a pre-trained ResNet50 backbone network to extract multi-scale features of the target image, and mapping features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to concatenate the mapped features to form multi-scale quality features;

[0046] a non-uniform viewport cutting unit, configured to perform sampling calculation on the target image by adopting a Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extract feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features;

[0047] A global quality feature acquisition unit, configured to add an additional embedding vector and a position embedding vector to the quality viewport feature and the semantic viewport feature to form a quality viewport token and a semantic viewport token, and use the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to acquire a global quality feature of an Nth layer output of the Tansformer encoder;

[0048] The quality score acquisition unit is used to input the global quality feature into a preset regression network to obtain a hidden layer output vector, and perform bias calculation according to the hidden layer output vector to obtain the image quality score of the target image.

[0049] It can be seen from the above technical scheme that the feature sharing and multi-viewport adaptive panoramic image quality evaluation method and system provided by the present invention first extract the multi-scale features of the target image, and map the features of each scale in the multi-scale features to the same dimension to splice the mapped features to form a multi-scale quality feature, then sample and calculate the target image to obtain the sampling point coordinates, and extract the feature information corresponding to each viewport to obtain the quality viewport feature and the semantic viewport feature. In this way, the global quality feature formed based on the quality viewport feature and the semantic viewport feature is input into a preset regression network to obtain a hidden layer output vector, and a bias calculation is performed according to the hidden layer output vector. The image quality score of the target image is obtained by calculation. Based on this, the method: 1) The computational complexity of the local feature extraction module is fixed, and a lighter calculation can be achieved when the number of viewports is large; 2) The sampling point coordinates are based on spherical uniform sampling. Sampling points evenly distributed on the sphere are selected in the observation space through spherical uniform sampling, and the viewport width centered on the sampling point is determined according to the latitude of each sampling point, so as to ensure that each local feature corresponds to the same field of view. This can effectively avoid multiple feedforward operations in the model calculation process, maintain the consistency of pixel density in the observation space and the representation space, and ensure that the extracted local features correspond to the same field of view. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] By referring to the following description in conjunction with the accompanying drawings, and with a more comprehensive understanding of the present invention, other objects and results of the present invention will become more clear and easy to understand. In the accompanying drawings:

[0051] Figure 1 A flowchart of a panoramic image quality assessment method for feature sharing and multi-viewport adaptation according to an embodiment of the present invention;

[0052] Figure 2 A schematic diagram of a feature fusion process of multi-scale quality features in a feature sharing and multi-viewport adaptive panoramic image quality assessment method according to an embodiment of the present invention;

[0053] Figure 3 A schematic diagram of non-uniform viewport cutting and acquisition in a panoramic image quality assessment method with feature sharing and multi-viewport adaptation according to an embodiment of the present invention;

[0054] Figure 4 Schematic diagram of a panoramic image quality assessment system with feature sharing and multi-viewport adaptation according to an embodiment of the present invention. DETAILED DESCRIPTION

[0055] Projection-oriented algorithms do not deeply consider the difference between ordinary images and panoramic images in viewing behavior patterns. At the same time, since this type of algorithm directly feeds the projected image with geometric distortion into the deep learning model, it does not analyze the potential impact of this distortion on the existing deep learning model. The image block-oriented algorithm shares the average opinion score of the entire image for each local area, which will introduce obvious labeling errors for some distortion types with uneven spatial perceptual quality distribution. After the viewport-oriented evaluation model performs multi-viewport segmentation in the pixel domain, the content of each viewport needs to be extracted using a deep learning model separately, that is, the content of each viewport needs to be sent to the backbone network to extract local features, which makes it more complex; and since the content of each viewport has been determined before being sent to the backbone network, this framework is difficult to adapt to the end-to-end training process.

[0056] In view of the above problems, the present invention provides a feature sharing and multi-viewport adaptive panoramic image quality evaluation method. The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0057] In order to illustrate the feature sharing and multi-viewport adaptive panoramic image quality evaluation method provided by the present invention, Figure 1 , Figure 2 ,as well as Figure 3 The embodiments of the present invention are exemplarily indicated.

[0058] The following description of exemplary embodiments is merely illustrative in nature and is not intended to limit the present invention and its application or use. Technologies and devices known to ordinary technicians in the relevant field may not be discussed in detail, but in appropriate cases, the technologies and devices should be considered as part of the specification.

[0059] like Figure 1 As shown, the present invention provides a feature sharing and multi-viewport adaptive panoramic image quality evaluation method, comprising:

[0060] S1: Input the target image into the pre-trained ResNet50 backbone network to extract the multi-scale features of the target image, and map the features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to splice the mapped features to form multi-scale quality features;

[0061] S2: using the Fibonacci spherical uniform sampling algorithm to perform sampling calculation on the target image to obtain sampling point coordinates, and extracting feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features;

[0062] S3: adding an additional embedding vector and a position embedding vector to the quality viewport feature and the semantic viewport feature to form a quality viewport token and a semantic viewport token, and using the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to obtain a global quality feature of an Nth layer output of the Tansformer encoder;

[0063] S4: Inputting the global quality feature into a preset regression network to obtain a hidden layer output vector, and performing a bias calculation according to the hidden layer output vector to obtain an image quality score of the target image.

[0064] exist Figure 1 , Figure 2 In the embodiment shown together, step S1 is to input the target image into a pre-trained ResNet50 backbone network to extract multi-scale features of the target image, and map the features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to splice the mapped features to form multi-scale quality features.

[0065] Specifically, the target image is input into a pre-trained ResNet50 backbone network to extract multi-scale features of the target image, and each scale feature in the multi-scale features is mapped to the same dimension through convolution kernels of different step sizes to concatenate the mapped features to form a multi-scale quality feature, including:

[0066] S11: The target image I∈R H×W×3 It is fed into the ResNet50 backbone network formed by pre-training with the ImageNet dataset. b Extract the multi-scale features of the target image L = {l i |i∈[1,m]}=f b (I; θ b ), wherein H and W represent the resolution of the height and width of the target image respectively; i represents the feature of the i-th scale among m scales, θ b Represents the pre-training parameters of the ResNet50 backbone network;

[0067] S12: Based on the mapping function, the features of each scale are mapped to the same dimension through convolution kernels of different step lengths to obtain the mapping features. Among them, g i represents the mapping function on the i-th scale, Represented as the parameter of the mapping function, c i ∈R h×w×Drepresents the mapping feature at the i-th scale after mapping, h, w and D are the mapping features c i height resolution, width resolution and number of channels;

[0068] S13: Concatenate the m mapping features to form a multi-scale quality feature, denoted by C = {c i |i∈[1,m]}.

[0069] In a more specific embodiment, firstly, the input image I∈R H×W×3 Feed it into the ResNet50 backbone network pre-trained on the ImageNet dataset b , H and W represent the height and width resolution of the image respectively. In order to avoid the influence of geometric distortion on the extracted feature representation ability, the resolution of the input image is set to H×W=1024×512. Figure 2 As shown, extract its multi-scale features L = {l i |i∈[1,m]}=f b (I; θ b ), l i is the feature of the i-th scale among m scales, θ b Represents the pre-trained parameters of the backbone network. The features of each scale are then mapped to the same dimension through convolution kernels of different step lengths: g i is the mapping function on the i-th scale, and its parameters are c i ∈R h×w×D is the feature at the i-th scale after mapping, h, w and D are the feature c i The height, width resolution and number of channels are recorded as C = {c i |i∈[1,m]}, and then concatenate the m mapped features on the channel to form a multi-scale quality feature f fusion ∈R h×w×4D =cat(C)=c1∪c2∪...∪c m .

[0070] exist Figure 1 , Figure 3 In the embodiment shown together, step S2 is a process of sampling and calculating the multi-scale quality features using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extracting feature information corresponding to each viewport based on the sampling point coordinates to obtain quality viewport features and semantic viewport features.

[0071] The steps of sampling and calculating the target image using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extracting feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features include:

[0072] S21: using the Fibonacci spherical uniform sampling algorithm to perform sampling calculation on the target image to obtain sampling point coordinates;

[0073] S22: Acquire viewport position information of each viewport according to the sampling point coordinates;

[0074] S23: forming a quality viewport feature and a semantic viewport feature according to the viewport position information and the multi-scale quality feature;

[0075] The step of sampling and calculating the multi-scale quality features using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates includes:

[0076] S211: Sampling the target image by using the Fibonacci spherical uniform sampling algorithm to obtain the spatial rectangular coordinates (x k ,y k ,z k );

[0077] S212: Convert the spatial rectangular coordinates into spherical coordinates

[0078] S213: Convert the spherical coordinates into plane pixel coordinates The plane pixel coordinates are used as sampling point coordinates. In a specific embodiment, the fused multi-scale quality features (multi-scale fusion features) are used as input, and the sampling point coordinates are calculated using the Fibonacci spherical uniform sampling algorithm. Assuming that the spherical radius r = 1 and the number of sampling points is K, the spatial rectangular coordinates (x k ,y k ,z k ), as shown in the following formula:

[0079] z k =(2k-1) / (K-1)

[0080]

[0081] Where φ is the Fibonacci sampling interval. After obtaining the spatial rectangular coordinates of the sampling point k, first convert them into spherical coordinates Then convert to plane pixel coordinates By uniformly sampling the spherical image of the observation space rather than the projected image of the representation space, oversampling of polar regions can be avoided.

[0082] The step of acquiring the viewport position information of each viewport according to the sampling point coordinates includes:

[0083] S221: Setting the viewport width W based on the sampling point coordinates and the latitude of the sampling point local , and set the viewport height H local Set to the same value; where the viewport width at sampling point k Wherein, a is a preset constant for controlling the scaling amount;

[0084] S222: Calculate the vertex coordinates of the upper left corner and the lower right corner of the viewport according to the viewport width and the viewport height to obtain viewport position information of each viewport.

[0085] In a specific embodiment, since the pixel density at different latitudes after ERP projection is different, if the same size of viewport is directly selected for all sampling points in the representation space, the field of view and pixel density of each local area and the viewer will be inconsistent, affecting the accuracy of the algorithm. Therefore, in this embodiment, different viewport widths W are set according to the latitudes where the sampling points are located. local , for the viewport height H local Then select Figure 3 The same value as shown. The viewport width at sampling point k Where a is a constant that controls the amount of zoom. The coordinates of the upper left and lower right corners of the viewport can be calculated based on the width and height of the viewport. The pixel coordinates of the upper left corner of the viewport are: The coordinates of the lower right vertex are: The coordinate set of the upper left corner and lower right corner vertices of all viewports is Thus forming the viewport position information.

[0086] In the process of forming the quality viewport feature and the semantic viewport feature according to the viewport position information and the multi-scale quality feature,:

[0087] S231: Using a preset ROI_Align algorithm, a quality viewport feature is formed according to the viewport position information and the multi-scale quality feature, and a semantic viewport feature is formed according to the viewport position information and the multi-scale quality feature of a fourth dimension; wherein the multi-scale quality feature of the fourth dimension is a feature at a semantic level.

[0088] In a specific embodiment, the ROI_Align method can be used to extract the feature information corresponding to each viewport, namely, the quality viewport feature, by combining the viewport position information V and the quality feature of the entire image layer extracted by the multi-scale quality feature (also known as multi-scale fusion feature or multi-scale feature fusion) obtained above: in is the multi-scale quality feature ffusion The quality viewport feature formed at the kth sampling point, d represents the dimension of the feature, F belongs to the quality viewport feature set, and f belongs to the quality viewport feature formed at a certain sampling point. In order to make the semantic and quality viewport feature dimensions consistent, the feature l4 (multi-scale quality features contain four dimensions, and the fourth dimension in this embodiment is semantic related) about the semantic feature is changed in dimension by a linear function after ROI_Align to obtain the semantic viewport feature in It is the viewport feature formed by the high-level semantic feature l4 at the kth sampling point.

[0089] In this embodiment, step S3 is a process of adding additional embedding vectors and position embedding vectors to the quality viewport features and the semantic viewport features to form quality viewport tokens and semantic viewport tokens, and using the quality viewport tokens and the semantic viewport tokens as inputs of a preset Tansformer encoder to obtain global quality features of the Nth layer output of the Tansformer encoder.

[0090] The process of using the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to obtain global quality features of an Nth layer output of the Tansformer encoder includes:

[0091] S31: using the quality viewport token as the key vector and value vector of the first layer of the Tansformer encoder, denoted as k0 and v0 respectively; using the semantic viewport token as the query vector of the first layer of the Tansformer encoder, denoted as q0;

[0092] S32: updating the key vector, value vector and query vector of the first layer of the Tansformer encoder based on the pre-trained parameters of the Tansformer encoder to obtain a first-layer output key vector, a first-layer output value vector and a first-layer output query vector;

[0093] S33; update the first-layer output key vector, the first-layer output value vector and the first-layer output query vector as the key vector, value vector and query vector of the second layer of the Tansformer encoder to obtain the second-layer output key vector, the second-layer output value vector and the second-layer output query vector, and update them in sequence until the N-1-th layer output key vector, the N-1-th layer output value vector and the N-1-th layer output query vector are used as the key vector, value vector and query vector of the Nth layer of the Tansformer encoder to obtain the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector.

[0094] S34: Based on the multi-head attention mechanism, the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector are weighted and normalized to obtain the global quality features of the N-th layer output of the Tansformer encoder.

[0095] More specifically, the step of weighting and normalizing the N-th layer output key vector, the N-th layer output value vector, and the N-th layer output query vector based on the multi-head attention mechanism to obtain the global quality features of the N-th layer output of the Tansformer encoder includes:

[0096] S341: adding the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector as the input of the N-th layer of the Tansformer encoder to the quality viewport token to form a residual connection;

[0097] S342: performing normalization processing on the residual connection to obtain a normalized vector;

[0098] S343: transforming and nonlinearly mapping the normalized vector through a preset forward feedback neural network to obtain a feedforward neural network output vector; the feedforward neural network includes two fully connected layers and a Relu activation function;

[0099] S344: Perform a residual connection on the feedforward neural network output vector and the normalized vector, and perform layer normalization to obtain the global quality features of the Nth layer output Tansformer encoder.

[0100] In a specific embodiment, first, the semantic viewport feature F output by viewport segmentation is s With the quality viewport feature F q As the input of Tansformer encoder. First, Fs With F q Append additional embedding vectors f0∈R 1×d To aggregate quality features, add a trainable position embedding P∈R (K+1)×d To describe the location information, we get (semantic viewport token) and (Quality viewport token) Both tokens are used as input to the first layer of the Transformer encoder;

[0101] The quality convergence process of the encoder can be described as shown in the following formula 1. In the first layer of the encoder, As key and value vectors, denoted as k0 and v0 respectively, As the query vector, denoted as q0, the attention weight of each token is calculated through the multi-head self-attention mechanism (Multi-Head Attention) MHA, and then the output of the multi-head self-attention mechanism MHA (q0, k0, v0) is compared with the input Add to form a residual connection. Then, the result of the addition is layer normalized (LayerNormalization) LN to obtain the normalized vector y1′. Layer normalization is used to stabilize the training process and accelerate convergence. After that, y1′ is passed through the feed-forward neural network (Feed-Forward Neural Network) FF, which includes two fully connected layers and a Relu activation function, which is responsible for further transformation and nonlinear mapping of the representation of each position of the encoder. The output of the feed-forward neural network is again residually connected to the input y1′, and layer normalization is performed to obtain the output y1 of the first layer of the encoder.

[0102] Similarly, the encoder's 2nd to Nth layers will repeat the above operations. The difference from the first layer is that the query, key, and value vectors are the same, which is the output of the previous layer, i.e., q i =k i =v i =y i-1 ,i=2,...,N.

[0103]

[0104] Where N is the number of layers of the Transformer encoder, q i ,k i ,v i Represent the query, key and value vectors of the i-th layer respectively, which are used to calculate the attention of the quality features in the spatial domain. LN is layer normalization and MHA is the multi-head attention mechanism. i′ is the intermediate result after calculating multi-head attention, addition and normalization at the i-th layer, y i is the output of the i-th layer, y N =[F0′,F1′,...,F K ′]∈R (K+1)×d is the output of the encoder layer N, and have the same dimensions, where F0′∈R 1×d for y N The first vector of can be used as the global quality feature in this embodiment, which can effectively aggregate the perceptual quality features under the guidance of semantic information.

[0105] Step S4 is a process of inputting the global quality feature into a preset regression network to obtain a hidden layer output vector, and performing a bias calculation based on the hidden layer output vector to obtain an image quality score of the target image.

[0106] The step of inputting the global quality feature into a preset regression network to obtain a hidden layer output vector, and performing bias calculation according to the hidden layer output vector to obtain the image quality score of the target image comprises:

[0107] S41: sending the global quality feature F0′ of the d-dimensional vector to a preset regression network, so that the global quality feature F0′ passes through the first fully connected layer of the regression network to obtain a low-dimensional hidden layer output vector h; wherein h=W1·F′0+b1; W1 is the weight matrix of the first fully connected layer, and b1 is the preset first bias vector;

[0108] S42: Activate the hidden layer output vector h by using a Relu activation function to obtain a hidden layer output h'=Relu(h);

[0109] S43: Pass the hidden layer output h' through the second fully connected layer of the regression network to obtain the image quality score predicted for the target image: Q = W2·h'+b2, wherein W2 represents the weight matrix of the second fully connected layer, b2 represents the preset second bias vector, and Q represents the predicted image quality score.

[0110] In a specific embodiment, the global quality feature F0′ is first fed into the regression network, and the input d-dimensional vector F0′ is mapped to a lower-dimensional hidden layer through the first fully connected layer of the regression network. The process can be expressed as: h=W1·F′0+b1, where W1 is the weight matrix of the first fully connected layer, b1 is the bias vector, and h is the output of the hidden layer. Then, the Relu activation function is applied to the output of the hidden layer to obtain the activated hidden layer output h'=Relu(h). Finally, h' is mapped to a single output node through the second fully connected layer. The process can be expressed as: Q=W2·h'+b2, where W2 is the weight matrix of the second fully connected layer, b2 is the bias vector, and Q is the predicted image quality score, thereby obtaining the image quality score of the target image.

[0111] As described above, the feature sharing and multi-viewport adaptive panoramic image quality evaluation method provided by the present invention first extracts the multi-scale features of the target image, and maps the features of each scale in the multi-scale features to the same dimension to splice the mapped features to form a multi-scale quality feature, then performs sampling calculation on the multi-scale quality features to obtain sampling point coordinates, and extracts feature information corresponding to each viewport to obtain quality viewport features and semantic viewport features. In this way, the global quality features formed based on the quality viewport features and the semantic viewport features are input into a preset regression network to obtain a hidden layer output vector, and a bias calculation is performed according to the hidden layer output vector to obtain The image quality score of the target image is taken. Based on this, this method: 1) The computational complexity of the local feature extraction module is fixed, and a lighter calculation can be achieved when the number of viewports is large; 2) The sampling point coordinates are based on spherical uniform sampling. Sampling points evenly distributed on the sphere are selected in the observation space through spherical uniform sampling, and the viewport width centered on the sampling point is determined according to the latitude of each sampling point, so as to ensure that each local feature corresponds to the same field of view. This can effectively avoid multiple feedforward operations in the model calculation process, maintain the consistency of pixel density in the observation space and the representation space, and ensure that the extracted local features correspond to the same field of view.

[0112] In addition, if Figure 4 As shown, the present invention also provides a feature sharing and multi-viewport adaptive panoramic image quality assessment system 100, which includes:

[0113] The quality feature extraction unit 101 is used to input the target image into the pre-trained ResNet50 backbone network to extract the multi-scale features of the target image, and map the features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to form multi-scale quality features by splicing the mapped features;

[0114] The non-uniform viewport cutting unit 102 is used to perform sampling calculation on the target image by using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extract feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features;

[0115] A global quality feature acquisition unit 103, configured to add an additional embedding vector and a position embedding vector to the quality viewport feature and the semantic viewport feature to form a quality viewport token and a semantic viewport token, and use the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to acquire a global quality feature of an Nth layer output of the Tansformer encoder;

[0116] The quality score acquisition unit 104 is used to input the global quality feature into a preset regression network to obtain a hidden layer output vector, and perform bias calculation according to the hidden layer output vector to obtain the image quality score of the target image.

[0117] The specific implementation method refers to the specific embodiment of the above-mentioned feature sharing and multi-viewport adaptive panoramic image quality evaluation method, which will not be described in detail again.

[0118] As described above, through the feature sharing and multi-viewport adaptive panoramic image quality assessment system of this embodiment, firstly, based on the quality feature extraction unit 101, the multi-scale features of the target image are extracted, and the features of each scale in the multi-scale features are mapped to the same dimension to splice the mapped features to form a multi-scale quality feature, and then based on the non-uniform viewport cutting unit 102, the multi-scale quality features are sampled and calculated to obtain the sampling point coordinates, and the feature information corresponding to each viewport is extracted to obtain the quality viewport feature and the semantic viewport feature. In this way, the global quality feature formed based on the quality viewport feature and the semantic viewport feature is input into the preset regression network through the global quality feature acquisition unit 103 and the quality score acquisition unit 104 to obtain The hidden layer output vector is taken, and the bias calculation is performed according to the hidden layer output vector to obtain the image quality score of the target image. Based on this, this method: 1) The computational complexity of the local feature extraction module is fixed, and a lighter calculation can be achieved when the number of viewports is large; 2) The sampling point coordinates are based on spherical uniform sampling. Sampling points evenly distributed on the sphere are selected in the observation space through spherical uniform sampling, and the viewport width centered on the sampling point is determined according to the latitude of each sampling point, so as to ensure that each local feature corresponds to the same field of view. This can effectively avoid multiple feedforward operations in the model calculation process, maintain the consistency of pixel density in the observation space and the representation space, and ensure that the extracted local features correspond to the same field of view.

[0119] As described above with reference to the accompanying drawings, the feature sharing and multi-viewport adaptive panoramic image quality evaluation method and system proposed in the present invention are described by way of example. However, those skilled in the art should understand that various improvements can be made to the feature sharing and multi-viewport adaptive panoramic image quality evaluation method and system proposed in the present invention without departing from the content of the present invention. Therefore, the protection scope of the present invention should be determined by the content of the attached claims.

Claims

1. A feature sharing and multi-viewport adaptive panoramic image quality evaluation method, characterized in that: include: Input the target image into the pre-trained ResNet50 backbone network to extract the multi-scale features of the target image, and map the features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to splice the mapped features to form multi-scale quality features; The target image is sampled and calculated using a Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and feature information corresponding to each viewport is extracted based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features; Adding an additional embedding vector and a position embedding vector to the quality viewport feature and the semantic viewport feature to form a quality viewport token and a semantic viewport token, and using the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to obtain a global quality feature of an Nth layer output of the Tansformer encoder; The global quality feature is input into a preset regression network to obtain a hidden layer output vector, and a bias calculation is performed according to the hidden layer output vector to obtain an image quality score of the target image.

2. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 1, characterized in that: The target image is input into a pre-trained ResNet50 backbone network to extract multi-scale features of the target image, and each scale feature in the multi-scale features is mapped to the same dimension through convolution kernels of different step sizes to concatenate the mapped features to form a multi-scale quality feature, including: The target image I∈R H×W×3 It is fed into the ResNet50 backbone network formed by pre-training with the ImageNet dataset. b Extract the multi-scale features of the target image L = {l i |i∈[1,m]}=f b (I; θ b ), wherein H and W represent the resolution of the height and width of the target image respectively; i represents the feature of the i-th scale among m scales, θ b Represents the pre-training parameters of the ResNet50 backbone network; Based on the mapping function, the features of each scale are mapped to the same dimension through convolution kernels of different step lengths to obtain the mapping features. Among them, g i represents the mapping function on the i-th scale, Represented as the parameter of the mapping function, c i ∈R h×w×D represents the mapping feature at the i-th scale after mapping, h, w and D are the mapping features c i height resolution, width resolution and number of channels; The m mapping features are concatenated to form a multi-scale quality feature, denoted as C = {c i |i∈[1,m]}.

3. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 2, characterized in that: The steps of sampling and calculating the target image using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extracting feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features include: The target image is sampled and calculated using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates; Acquire viewport position information of each viewport according to the sampling point coordinates; A quality viewport feature and a semantic viewport feature are formed according to the viewport position information and the multi-scale quality feature.

4. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 3, characterized in that: The step of sampling and calculating the multi-scale quality features using the Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates includes: The target image is sampled and calculated by the Fibonacci spherical uniform sampling algorithm to obtain the spatial rectangular coordinates (x k ,y k ,z k ); Convert the spatial rectangular coordinates to spherical coordinates Convert the spherical coordinates to planar pixel coordinates And the plane pixel coordinates are used as sampling point coordinates.

5. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 4, characterized in that: The step of acquiring the viewport position information of each viewport according to the sampling point coordinates includes: The viewport width W is set based on the sampling point coordinates according to the latitude of the sampling point. local , and set the viewport height H local Set to the same value; where the viewport width at sampling point k Wherein, a is a preset constant for controlling the scaling amount; The vertex coordinates of the upper left corner and the lower right corner of the viewport are calculated according to the viewport width and the viewport height to obtain the viewport position information of each viewport.

6. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 5, characterized in that: In the process of forming the quality viewport feature and the semantic viewport feature according to the viewport position information and the multi-scale quality feature,: Using a preset ROI_Align algorithm to form a quality viewport feature according to the viewport position information and the multi-scale quality feature, and forming a semantic viewport feature according to the viewport position information and the multi-scale quality feature of the fourth dimension; The multi-scale quality features of the fourth dimension are features at the semantic level.

7. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 6, characterized in that: The process of using the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to obtain a global quality feature of an N-th layer output of the Tansformer encoder includes: The quality viewport token is used as the key vector and value vector of the first layer of the Tansformer encoder, denoted as k0 and v0 respectively; the semantic viewport token is used as the query vector of the first layer of the Tansformer encoder, denoted as q0; Based on the pre-trained parameters of the Tansformer encoder, the key vector, the value vector and the query vector of the first layer of the Tansformer encoder are updated to obtain a first layer output key vector, a first layer output value vector and a first layer output query vector; The first-layer output key vector, the first-layer output value vector and the first-layer output query vector are used as the key vector, value vector and query vector of the second layer of the Tansformer encoder for update processing to obtain the second-layer output key vector, the second-layer output value vector and the second-layer output query vector, which are updated in sequence until the N-1-th layer output key vector, the N-1-th layer output value vector and the N-1-th layer output query vector are used as the key vector, value vector and query vector of the Nth layer of the Tansformer encoder for update processing to obtain the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector. Based on the multi-head attention mechanism, the N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector are weighted and normalized to obtain the global quality features of the N-th layer output of the Tansformer encoder.

8. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 7, characterized in that: The step of weighting and normalizing the N-th layer output key vector, the N-th layer output value vector, and the N-th layer output query vector based on a multi-head attention mechanism to obtain a global quality feature of the N-th layer output of the Tansformer encoder includes: The N-th layer output key vector, the N-th layer output value vector and the N-th layer output query vector are added as the input of the N-th layer of the Tansformer encoder and the quality viewport token to form a residual connection; Normalizing the residual connection to obtain a normalized vector; The normalized vector is transformed and nonlinearly mapped by a preset forward feedback neural network to obtain a feedforward neural network output vector; the forward feedback neural network includes two fully connected layers and a Relu activation function; A residual connection is performed on the feedforward neural network output vector and the normalized vector, and layer normalization is performed to obtain global quality features of the Nth layer output Tansformer encoder.

9. The feature sharing and multi-viewport adaptive panoramic image quality assessment method according to claim 8, characterized in that: The step of inputting the global quality feature into a preset regression network to obtain a hidden layer output vector, and performing bias calculation according to the hidden layer output vector to obtain an image quality score of the target image comprises: The global quality feature F0′ of the d-dimensional vector is sent to a preset regression network, and the global quality feature F0′ passes through the first fully connected layer of the regression network to obtain a low-dimensional hidden layer output vector h; wherein h=W1·F'0+b1; W1 is the weight matrix of the first fully connected layer, and b1 is the preset first bias vector; Activate the hidden layer output vector h by using the Relu activation function to obtain a hidden layer output h'=Relu(h); The hidden layer output h' is passed through the second fully connected layer of the regression network to obtain the image quality score predicted for the target image: Q = W2·h'+b2, wherein W2 represents the weight matrix of the second fully connected layer, b2 represents the preset second bias vector, and Q represents the predicted image quality score.

10. A feature sharing and multi-viewport adaptive panoramic image quality assessment system, characterized in that: Based on the method according to any one of claims 1 to 9, comprising: A quality feature extraction unit, used for inputting a target image into a pre-trained ResNet50 backbone network to extract multi-scale features of the target image, and mapping features of each scale in the multi-scale features to the same dimension through convolution kernels of different step sizes to concatenate the mapped features to form multi-scale quality features; a non-uniform viewport cutting unit, configured to perform sampling calculation on the target image by adopting a Fibonacci spherical uniform sampling algorithm to obtain sampling point coordinates, and extract feature information corresponding to each viewport based on the sampling point coordinates and the multi-scale quality features to obtain quality viewport features and semantic viewport features; A global quality feature acquisition unit, configured to add an additional embedding vector and a position embedding vector to the quality viewport feature and the semantic viewport feature to form a quality viewport token and a semantic viewport token, and use the quality viewport token and the semantic viewport token as inputs of a preset Tansformer encoder to acquire a global quality feature of an Nth layer output of the Tansformer encoder; The quality score acquisition unit is used to input the global quality feature into a preset regression network to obtain a hidden layer output vector, and perform bias calculation according to the hidden layer output vector to obtain the image quality score of the target image.