Stereoscopic image quality evaluation method and device based on stereoscopic vision perception mechanism
Through a method based on the stereoscopic vision perception mechanism, combined with semantic enhancement and block processing, the disparity map is obtained and quality mapping is performed, which solves the shortcomings of stereoscopic image quality evaluation in the existing technology and achieves a more accurate image quality evaluation, which is suitable for Asymmetrically distorted image.
Patent Information
- Application Number
- CN202410725802.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-06
AI Technical Summary
Existing stereoscopic image quality evaluation methods cannot effectively consider binocular vision features and multi-score prediction, especially the quality evaluation performance of asymmetrically distorted stereoscopic images is poor, and traditional methods are prone to losing color information during the processing process, affecting image quality.
Using a method based on the stereoscopic vision perception mechanism, the disparity map is obtained through semantic enhancement and block processing, quality mapping is performed by combining monocular and binocular visual features, and the original color image is directly used for learning to avoid color information distortion, and through multi-score prediction Calculate the loss function for iterative training.
It improves the prediction accuracy of stereoscopic image quality evaluation, comprehensively considers the stereoscopic visual perception characteristics of the human eye, improves the overall performance of the method, can more accurately evaluate the quality of stereoscopic images, and is suitable for asymmetrically distorted images in the real world.
Smart Images

Figure CN118297950B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of stereoscopic image quality assessment, and more specifically, to a method and device for stereoscopic image quality assessment based on a stereoscopic vision perception mechanism. Background Art
[0002] With the continuous development of information science and technology, ultra-high-definition stereo images and stereo videos are emerging in the market and are slowly being applied to portable devices. However, it is a huge challenge to reduce the energy consumption of processing these images while having lightweight hardware. Compression can reduce the size of data during transmission and solve the above problems, but stereo images will inevitably introduce noise during the compression process, which will damage the quality of stereo images. On the other hand, stereo images may also introduce noise during the acquisition and transmission process. Therefore, it is necessary to design a reasonable stereo image quality evaluation method to ensure its application quality.
[0003] So far, there are many quality evaluation methods based on planar images. Since stereo images are composed of two left and right sub-images, which are different from the visual characteristics of a single planar image, the quality evaluation index of planar images is not suitable for the actual application scenarios of stereo images. Although some stereo image quality evaluation models have been proposed, the accuracy of traditional manual feature extraction methods is limited, and deep learning methods have become a research hotspot for researchers. Therefore, it is necessary to combine the current deep learning model to establish an effective stereo image quality evaluation method.
[0004] Since the stereoscopic visual perception characteristics of the human eye are the key physiological factors for human perception of the visual effects of stereoscopic images, most of the stereoscopic image quality evaluation methods are based on the human stereo physiological vision model. However, the existing models either ignore the influence of binocular visual characteristics, or are time-consuming and laborious in the disparity information extraction stage, or do not consider the role of multi-score prediction. In particular, for asymmetric distorted stereo images that are widely present in the real world, simply relying on a single score to predict the overall quality score cannot achieve better performance. Therefore, it is necessary to establish a stereoscopic image quality evaluation method that effectively combines the visual perception characteristics of the human eye. Summary of the invention
[0005] According to an embodiment of the present invention, a stereoscopic image quality evaluation scheme based on a stereoscopic visual perception mechanism is provided. This scheme can effectively integrate semantic information, improve the overall performance of the method, directly use the original image for learning, and will not lose color information, because color information distortion will also affect image quality, so directly using the original image for learning can provide more information, comprehensively consider monocular vision features and binocular vision features, more in line with the stereoscopic visual perception mechanism of the human eye, and can improve the prediction accuracy of the method.
[0006] In a first aspect of the present invention, a method for evaluating the quality of a stereoscopic image based on a stereoscopic visual perception mechanism is provided. The method comprises:
[0007] Acquire a target stereoscopic image, wherein the target stereoscopic image includes a right sub-image and a left sub-image of the target stereoscopic image;
[0008] Performing semantic enhancement on the right sub-image of the target stereoscopic image to obtain an enhanced right sub-image of the target stereoscopic image;
[0009] Subtracting a left sub-image of the target stereoscopic image from an enhanced right sub-image of the target stereoscopic image to obtain a disparity map of the target stereoscopic image;
[0010] The left sub-image, the enhanced right sub-image and the disparity map of the target stereoscopic image are processed in blocks, and the obtained image blocks are input into a feature learning network to output left sub-image visual features, enhanced right sub-image visual features and binocular visual features;
[0011] splicing the left sub-image visual features, the enhanced right sub-image visual features, and the binocular visual features, and inputting the features into a third fully connected module for quality mapping to obtain a quality mapping result;
[0012] The quality mapping result is input into a fourth fully connected module, a predicted quality score of the target stereoscopic image is output, and an average value of the predicted quality scores of the target stereoscopic image is used as a quality evaluation result of the target stereoscopic image.
[0013] The feature learning network, the third fully connected module and the fourth fully connected module constitute a stereoscopic image quality assessment network.
[0014] The training process of the stereoscopic image quality evaluation network includes:
[0015] A stereoscopic image dataset is used as a training set, wherein the stereoscopic image dataset includes stereoscopic images, and a left sub-image subjective score, a right sub-image subjective score, and an overall subjective score of the stereoscopic images;
[0016] Performing semantic enhancement on the right sub-image of the stereoscopic image to obtain an enhanced right sub-image of the stereoscopic image;
[0017] Subtracting a left sub-image of a stereoscopic image from an enhanced right sub-image of the stereoscopic image to obtain a disparity map of the stereoscopic image;
[0018] Inputting the left sub-image of the stereo image, the enhanced right sub-image of the stereo image, and the disparity map into the feature learning network, outputting the visual features of the left sub-image of the stereo image, the enhanced right sub-image visual features, and the binocular visual features, respectively sending the visual features of the left sub-image of the stereo image and the enhanced right sub-image visual features of the stereo image into the fourth fully connected module, and mapping them into the predicted quality score of the left sub-image of the stereo image, the predicted quality score of the right sub-image of the stereo image, and the predicted quality score of the disparity map of the stereo image, respectively;
[0019] The left sub-image visual features, enhanced right sub-image visual features and binocular visual features of the stereoscopic image are spliced and input into the third fully connected module, and the output result is then input into the fourth fully connected layer to be mapped into the overall prediction quality score of the stereoscopic image;
[0020] Calculate a loss function based on the subjective score of the left sub-image, the subjective score of the right sub-image, the overall subjective score of the stereoscopic image, the predicted quality score of the left sub-image of the stereoscopic image, the predicted quality score of the right sub-image of the stereoscopic image, the predicted quality score of the disparity map of the stereoscopic image, and the overall predicted quality score of the stereoscopic image;
[0021] The stochastic gradient descent algorithm is used for iterative training until the training is completed.
[0022] Furthermore, the loss function is: in, is the overall predicted quality score for the stereo image; Predicting quality scores for disparity maps of stereo images; Predict the quality score for the left sub-image of the stereo image; Predict the quality score for the right sub-image of the stereo image; is the overall subjective score of the stereo image; is the subjective score of the left sub-image of the stereo image; is the subjective score of the right sub-image of the stereo image; is the loss function.
[0023] Furthermore, the feature learning network sequentially comprises a first convolution block, a second convolution block, a convolution layer module, a third convolution block, a first fully connected module and a second fully connected module;
[0024] The first convolution block, the second convolution block, and the third convolution block are each composed of a convolution layer, a ReLU function layer, a maximum pooling layer, and a BN layer;
[0025] The convolutional layer module consists of two convolutional layers;
[0026] The first fully connected module consists of a 1*1024 fully connected layer;
[0027] The second fully connected module consists of a 1*512 fully connected layer and a ReLU function layer.
[0028] Furthermore, the third fully connected module consists of a 1*512 fully connected layer and a ReLU function layer.
[0029] Furthermore, the fourth fully connected module consists of a 1*1 fully connected layer.
[0030] In a second aspect of the present invention, a stereoscopic image quality evaluation device based on a stereoscopic visual perception mechanism is provided. The device comprises:
[0031] An acquisition module, used for acquiring a target stereoscopic image, wherein the target stereoscopic image includes a right sub-image and a left sub-image of the target stereoscopic image;
[0032] A semantic enhancement module, used for performing semantic enhancement on the right sub-image of the target stereoscopic image to obtain an enhanced right sub-image of the target stereoscopic image;
[0033] A disparity module, used for performing a difference between a left sub-image of the target stereoscopic image and an enhanced right sub-image of the target stereoscopic image to obtain a disparity map of the target stereoscopic image;
[0034] A block processing module is used to perform block processing on the left sub-image, enhanced right sub-image and disparity map of the target stereo image, and the obtained image blocks are input into a feature learning network to output left sub-image visual features, enhanced right sub-image visual features and binocular visual features;
[0035] A splicing module, used for splicing the left sub-image visual features, the enhanced right sub-image visual features, and the binocular visual features, and inputting them into the third fully connected module for quality mapping to obtain a quality mapping result;
[0036] A prediction module, configured to input the quality mapping result into a fourth fully connected module, output a predicted quality score of the target stereoscopic image, and take an average value of the predicted quality scores of the target stereoscopic image as a quality evaluation result of the target stereoscopic image;
[0037] The feature learning network, the third fully connected module and the fourth fully connected module constitute a stereoscopic image quality assessment network;
[0038] The training process of the stereoscopic image quality evaluation network includes:
[0039] A stereoscopic image dataset is used as a training set, wherein the stereoscopic image dataset includes stereoscopic images, and a left sub-image subjective score, a right sub-image subjective score, and an overall subjective score of the stereoscopic images;
[0040] Performing semantic enhancement on the right sub-image of the stereoscopic image to obtain an enhanced right sub-image of the stereoscopic image;
[0041] Subtracting a left sub-image of a stereoscopic image from an enhanced right sub-image of the stereoscopic image to obtain a disparity map of the stereoscopic image;
[0042] Inputting the left sub-image of the stereo image, the enhanced right sub-image of the stereo image, and the disparity map into the feature learning network, outputting the visual features of the left sub-image of the stereo image, the enhanced right sub-image visual features, and the binocular visual features, respectively sending the visual features of the left sub-image of the stereo image and the enhanced right sub-image visual features of the stereo image into the fourth fully connected module, and mapping them into the predicted quality score of the left sub-image of the stereo image, the predicted quality score of the right sub-image of the stereo image, and the predicted quality score of the disparity map of the stereo image, respectively;
[0043] The left sub-image visual features, enhanced right sub-image visual features and binocular visual features of the stereoscopic image are spliced and input into the third fully connected module, and the output result is then input into the fourth fully connected layer to be mapped into the overall prediction quality score of the stereoscopic image;
[0044] Calculate a loss function based on the subjective score of the left sub-image, the subjective score of the right sub-image, the overall subjective score of the stereoscopic image, the predicted quality score of the left sub-image of the stereoscopic image, the predicted quality score of the right sub-image of the stereoscopic image, the predicted quality score of the disparity map of the stereoscopic image, and the overall predicted quality score of the stereoscopic image;
[0045] The stochastic gradient descent algorithm is used for iterative training until the training is completed.
[0046] In a third aspect of the present invention, an electronic device is provided. The electronic device has at least one processor; and a memory connected to the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method of the first aspect of the present invention.
[0047] In a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method of the first aspect of the present invention.
[0048] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0050] Figure 1 A flow chart of a method for evaluating stereoscopic image quality based on a stereoscopic visual perception mechanism according to an embodiment of the present invention is shown;
[0051] Figure 2 A flowchart showing a training process of a stereoscopic image quality assessment network according to an embodiment of the present invention is shown;
[0052] Figure 3 A block diagram of a stereoscopic image quality evaluation device based on a stereoscopic visual perception mechanism according to an embodiment of the present invention is shown;
[0053] Figure 4 A block diagram of an exemplary electronic device capable of implementing embodiments of the present invention is shown;
[0054] Figure 5 A schematic diagram of the structure of a stereoscopic image quality evaluation network according to an embodiment of the present invention is shown;
[0055] Among them, 400 is an electronic device, 401 is a computing unit, 402 is a ROM, 403 is a RAM, 404 is a bus, 405 is an I / O interface, 406 is an input unit, 407 is an output unit, 408 is a storage unit, and 409 is a communication unit; 501 is a left sub-image, 502 is a right sub-image, 503 is a disparity map, 504 is a first convolution block, 505 is a second convolution block, 506 is a third convolution block, 507 is a convolution layer module, 508 is a first fully connected module, 509 is a second fully connected module, 510 is a third fully connected module, and 511 is a fourth fully connected module. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0058] In the present invention, the right sub-image is enhanced by using a semantic saliency map; the left sub-image is subtracted from the enhanced right sub-image to obtain a disparity map; the left sub-image, the enhanced right sub-image and the disparity map are processed and input into a feature learning network to obtain the visual features of the left sub-image, the visual features of the enhanced right sub-image and the binocular visual features; the above three visual features are spliced and then quality mapped to obtain a quality mapping result; the quality evaluation score is obtained through the quality mapping result, and the average value of the quality evaluation score is the quality evaluation result. Through the above method, semantic information can be effectively integrated, and the original image can be directly used for learning without losing color information, because color information distortion can also affect image quality, so directly using the original image for learning can provide more information, which is more in line with the stereoscopic visual perception mechanism of the human eye and can improve the prediction accuracy of the method.
[0059] Figure 1 A flow chart of a stereoscopic image quality evaluation method based on a stereoscopic visual perception mechanism according to an embodiment of the present invention is shown.
[0060] The method includes:
[0061] S101 : Acquire a target stereoscopic image, where the target stereoscopic image includes a right sub-image and a left sub-image of the target stereoscopic image.
[0062] S102: semantically enhance the right sub-image of the target stereoscopic image to obtain an enhanced right sub-image of the target stereoscopic image.
[0063] The semantic extraction network CAM (Class Activation Mapping) is used to extract the semantic saliency map of the right sub-image of the stereo image pair, and multiply it with the right sub-image to obtain the enhanced right sub-image. .
[0064] Using the semantic saliency map to enhance the right sub-image can effectively incorporate semantic information and improve the overall performance of the method.
[0065] S103 . Subtract the left sub-image of the target stereoscopic image from the enhanced right sub-image of the target stereoscopic image to obtain a disparity map of the target stereoscopic image.
[0066] For the left subgraph , the enhanced right sub-image is made worse , get the disparity map D , the calculation formula is as follows: Different from the traditional way of calculating disparity, the disparity map is obtained by directly performing difference, which can not only greatly reduce the computational complexity of calculating disparity information, but also effectively obtain disparity information with color information, thereby improving the overall performance of the model. Compared with the traditional learning method of using pre-processed grayscale images, directly using the original color stereo images for learning will not lose color information.
[0067] S104, performing block processing on the left sub-image, enhanced right sub-image and disparity map of the target stereoscopic image, inputting the obtained image blocks into a feature learning network, and outputting left sub-image visual features, enhanced right sub-image visual features and binocular visual features.
[0068] Specifically, the block processing is to segment the image according to a window size of 32*32, with 32 pixels as a step, and without overlapping.
[0069] In this embodiment, the feature learning network includes a first convolution block, a second convolution block, a convolution layer module, a third convolution block, a first fully connected module and a second fully connected module in sequence.
[0070] The first convolution block, the second convolution block, and the third convolution block are each composed of a convolution layer, a ReLU function layer, a maximum pooling layer, and a BN layer.
[0071] Specifically, the size of the first convolution block is 32*16*16, the size of the second convolution block is 32*8*8; the size of the third convolution block is 128*4*4.
[0072] The convolutional layer module consists of two convolutional layers.
[0073] Specifically, the size of the convolutional layer module is 64*8*8.
[0074] The first fully connected module consists of a 1*1024 fully connected layer.
[0075] The second fully connected module consists of a 1*512 fully connected layer and a ReLU function layer.
[0076] On the one hand, by using multiple convolutional blocks and convolutional layers, we can obtain the deep visual information and high-level semantic information contained in the image, and provide representative visual features for the model; on the other hand, the convolutional blocks and convolutional layers have simple structures and small computational complexity, which can reduce the computational complexity of the model and improve computational efficiency.
[0077] S105 , concatenating the left sub-image visual features, the enhanced right sub-image visual features, and the binocular visual features, and inputting the concatenated features into the third fully connected module for quality mapping to obtain a quality mapping result.
[0078] In this embodiment, the third fully connected module consists of a 1*512 fully connected layer and a ReLU function layer, and the size is 1*512.
[0079] Using this module to reduce feature dimensions can speed up network convergence and prepare for quality prediction.
[0080] S106: Input the quality mapping result into a fourth fully connected module, output the predicted quality score of the target stereoscopic image, and take the average value of the predicted quality scores of the target stereoscopic image as the quality evaluation result of the target stereoscopic image.
[0081] In this embodiment, the fourth fully connected module consists of a 1*1 fully connected layer.
[0082] The predicted quality score of the target stereoscopic image includes multiple predicted quality scores of multiple image blocks, and the average value obtained by averaging the multiple predicted quality scores of the multiple image blocks is used as the quality evaluation result of the target stereoscopic image. It can be seen that using this module can reduce feature dimensions, predict quality scores, and accelerate network convergence speed.
[0083] Figure 2 A flow chart showing a training process of a stereoscopic image quality assessment network according to an embodiment of the present invention is shown.
[0084] In this embodiment, the feature learning network, the third fully connected module and the fourth fully connected module constitute a stereoscopic image quality evaluation network. The structure of the stereoscopic image quality evaluation network is as follows: Figure 5 shown.
[0085] Specifically, the training process of the stereoscopic image quality evaluation network includes:
[0086] S201. Using a stereoscopic image dataset as a training set, the stereoscopic image dataset includes stereoscopic images, and left sub-image subjective scores, right sub-image subjective scores, and overall subjective scores of the stereoscopic images.
[0087] Specifically, the network is trained using the internationally accepted and openly published stereoscopic image dataset Waterloo IVC 3D I constructed by the Image and Visual Computing Laboratory of the University of Waterloo. The dataset includes several second images and comes with left sub-image subjective scores. , Subjective score of right sub-graph and overall subjective score .
[0088] S202: semantically enhance the right sub-image of the stereoscopic image to obtain an enhanced right sub-image of the stereoscopic image.
[0089] S203 , subtracting the left sub-image of the stereoscopic image from the enhanced right sub-image of the stereoscopic image to obtain a disparity map of the stereoscopic image.
[0090] S204, inputting the left sub-image of the stereoscopic image, the enhanced right sub-image of the stereoscopic image, and the disparity map into the feature learning network, outputting the visual features of the left sub-image of the stereoscopic image, the enhanced right sub-image visual features, and the binocular visual features, respectively sending the visual features of the left sub-image of the stereoscopic image and the enhanced right sub-image visual features into the fourth fully connected module, and mapping them into the predicted quality score of the left sub-image of the stereoscopic image, the predicted quality score of the right sub-image of the stereoscopic image, and the predicted quality score of the disparity map of the stereoscopic image, respectively.
[0091] S205, the left sub-image visual features, the enhanced right sub-image visual features and the binocular visual features of the stereoscopic image are spliced and input into the third fully connected module, and the output result is then input into the fourth fully connected layer to be mapped into the overall prediction quality score of the stereoscopic image.
[0092] S206. Calculate a loss function based on the subjective score of the left sub-image, the subjective score of the right sub-image, the overall subjective score of the stereoscopic image, the predicted quality score of the left sub-image of the stereoscopic image, the predicted quality score of the right sub-image of the stereoscopic image, the predicted quality score of the disparity map of the stereoscopic image, and the overall predicted quality score of the stereoscopic image.
[0093] Specifically, the loss function is: in, is the overall predicted quality score for the stereo image; Predicting quality scores for disparity maps of stereo images; Predict the quality score for the left sub-image of the stereo image; Predict the quality score for the right sub-image of the stereo image; is the overall subjective score of the stereo image; is the subjective score of the left sub-image of the stereo image; is the subjective score of the right sub-image of the stereo image; is the loss function.
[0094] By constructing the loss function with multiple scores, the model convergence can be constrained from multiple angles, especially for asymmetric distorted stereo images. The distortion features of asymmetric distorted stereo images can be effectively obtained to provide more accurate prediction results.
[0095] S207. Perform iterative training using a stochastic gradient descent algorithm until the training is completed.
[0096] Specifically, in order to update the weights of the entire network, the present invention uses the stochastic gradient descent (SGD) algorithm with a momentum factor of 0.9 for iterative training, the weight decay factor is set to 0.0001, the batch size is equal to 128, and the learning rate is initialized to 10 -3 Finally, through multiple iterative processing of the training data, the loss function value of the network prediction quality score is reduced, so that the network predicted image quality score is close to the subjective quality score, so as to obtain the accurate predicted quality score of the stereo image block and complete the model training.
[0097] On the one hand, by semantically enhancing the right sub-image, the monocular visual features of the stereo image can be further strengthened; on the other hand, simple difference processing to obtain the disparity map of the stereo image can not only provide binocular visual features, but also reduce the complexity of calculating the disparity information of the stereo image; in addition, multi-score prediction can further improve the prediction accuracy of the model, making the model more suitable for practical application scenarios.
[0098] According to an embodiment of the present invention, the right sub-image is enhanced by using a semantic saliency map, which can effectively integrate semantic information and improve the overall performance of the method. Unlike traditional deep learning methods, the present invention no longer preprocesses the stereoscopic image, but directly uses the original color stereoscopic image for learning. Compared with the traditional learning method using a preprocessed grayscale image, directly using the original image for learning will not lose color information. Because color information distortion will also affect image quality, directly using the original image for learning can provide more information, thereby helping to further improve the performance of the method. Comprehensive consideration of monocular vision features and binocular vision features is more in line with the stereoscopic vision perception mechanism of the human eye, which can improve the prediction accuracy of the method.
[0099] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0100] The above is an introduction to a method embodiment. The following is a further explanation of the scheme of the present invention through a device embodiment having the same inventive concept as the method in the aforementioned embodiment.
[0101] like Figure 3 As shown, the device 300 includes:
[0102] The acquisition module 310 is configured to acquire a target stereoscopic image, where the target stereoscopic image includes a right sub-image and a left sub-image of the target stereoscopic image.
[0103] The semantic enhancement module 320 is used to perform semantic enhancement on the right sub-image of the target stereoscopic image to obtain an enhanced right sub-image of the target stereoscopic image.
[0104] The disparity module 330 is configured to perform a subtraction operation on the left sub-image of the target stereoscopic image and the enhanced right sub-image of the target stereoscopic image to obtain a disparity map of the target stereoscopic image.
[0105] The block processing module 340 is used to perform block processing on the left sub-image, enhanced right sub-image and disparity map of the target stereo image, and the obtained image blocks are input into the feature learning network to output the left sub-image visual features, enhanced right sub-image visual features and binocular visual features.
[0106] The stitching module 350 is used to stitch the left sub-image visual features, the enhanced right sub-image visual features, and the binocular visual features, and input them into the third fully connected module for quality mapping to obtain a quality mapping result.
[0107] The prediction module 360 is configured to input the quality mapping result into a fourth fully connected module, output the predicted quality score of the target stereoscopic image, and take the average value of the predicted quality score of the target stereoscopic image as the quality evaluation result of the target stereoscopic image.
[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0109] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0110] According to an embodiment of the present invention, the present invention further provides an electronic device and a readable storage medium.
[0111] Figure 4A schematic block diagram of an electronic device 400 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0112] The electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0113] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0114] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as methods S101 to S106. For example, in some embodiments, methods S101 to S106 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the methods S101 to S106 described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute methods S101 - S106 in any other appropriate manner (eg, by means of firmware).
[0115] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0117] In the context of the present invention, 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 device, 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), 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.
[0118] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0119] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by 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), and the Internet.
[0120] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for evaluating the quality of a stereoscopic image based on a stereoscopic visual perception mechanism, characterized in that: include: Acquire a target stereoscopic image, wherein the target stereoscopic image includes a right sub-image and a left sub-image of the target stereoscopic image; Performing semantic enhancement on the right sub-image of the target stereo image to obtain an enhanced right sub-image of the target stereo image, wherein the performing semantic enhancement on the right sub-image of the target stereo image to obtain the enhanced right sub-image of the target stereo image comprises: extracting a semantic saliency map of the right sub-image of the stereo image pair using a semantic extraction network category activation map, and multiplying the map with the right sub-image to obtain an enhanced right sub-image; The left sub-image of the target stereo image is subtracted from the enhanced right sub-image of the target stereo image to obtain a disparity map of the target stereo image; the calculation formula is as follows: in, is the left subgraph; To enhance the right sub-image; D is the disparity map; The left sub-image, the enhanced right sub-image and the disparity map of the target stereoscopic image are processed in blocks, and the obtained image blocks are input into a feature learning network to output left sub-image visual features, enhanced right sub-image visual features and binocular visual features; splicing the left sub-image visual features, the enhanced right sub-image visual features, and the binocular visual features, and inputting the features into a third fully connected module for quality mapping to obtain a quality mapping result; Inputting the quality mapping result into a fourth fully connected module, outputting the predicted quality score of the target stereoscopic image, and taking the average value of the predicted quality scores of the target stereoscopic image as the quality evaluation result of the target stereoscopic image; The feature learning network, the third fully connected module and the fourth fully connected module constitute a stereoscopic image quality assessment network; The training process of the stereoscopic image quality evaluation network includes: A stereoscopic image dataset is used as a training set, wherein the stereoscopic image dataset includes stereoscopic images, and a left sub-image subjective score, a right sub-image subjective score, and an overall subjective score of the stereoscopic images; Performing semantic enhancement on the right sub-image of the stereoscopic image to obtain an enhanced right sub-image of the stereoscopic image; Subtracting a left sub-image of a stereoscopic image from an enhanced right sub-image of the stereoscopic image to obtain a disparity map of the stereoscopic image; Inputting the left sub-image of the stereo image, the enhanced right sub-image of the stereo image, and the disparity map into the feature learning network, outputting the visual features of the left sub-image of the stereo image, the enhanced right sub-image visual features, and the binocular visual features, respectively sending the visual features of the left sub-image of the stereo image and the enhanced right sub-image visual features of the stereo image into the fourth fully connected module, and mapping them into the predicted quality score of the left sub-image of the stereo image, the predicted quality score of the right sub-image of the stereo image, and the predicted quality score of the disparity map of the stereo image, respectively; The left sub-image visual features, enhanced right sub-image visual features and binocular visual features of the stereoscopic image are spliced and input into the third fully connected module, and the output result is then input into the fourth fully connected layer to be mapped into the overall prediction quality score of the stereoscopic image; Calculate a loss function based on the subjective score of the left sub-image, the subjective score of the right sub-image, the overall subjective score of the stereoscopic image, the predicted quality score of the left sub-image of the stereoscopic image, the predicted quality score of the right sub-image of the stereoscopic image, the predicted quality score of the disparity map of the stereoscopic image, and the overall predicted quality score of the stereoscopic image; Use the stochastic gradient descent algorithm for iterative training until the training is completed; The loss function is: in, is the overall predicted quality score for the stereo image; Predicting quality scores for disparity maps of stereo images; Predict the quality score for the left sub-image of the stereo image; Predict the quality score for the right sub-image of the stereo image; is the overall subjective score of the stereo image; is the subjective score of the left sub-image of the stereo image; is the subjective score of the right sub-image of the stereo image; is the loss function; The feature learning network sequentially comprises a first convolution block, a second convolution block, a convolution layer module, a third convolution block, a first fully connected module, and a second fully connected module; The first convolution block, the second convolution block, and the third convolution block are each composed of a convolution layer, a ReLU function layer, a maximum pooling layer, and a BN layer; The convolutional layer module consists of two convolutional layers; The first fully connected module consists of a 1*1024 fully connected layer; The second fully connected module consists of a 1*512 fully connected layer and a ReLU function layer.
2. The method according to claim 1, characterized in that: The third fully connected module consists of a 1*512 fully connected layer and a ReLU function layer.
3. The method according to claim 1, characterized in that The fourth fully connected module consists of a 1*1 fully connected layer.
4. A stereoscopic image quality evaluation device based on stereoscopic visual perception mechanism, characterized in that: include: An acquisition module, used for acquiring a target stereoscopic image, wherein the target stereoscopic image includes a right sub-image and a left sub-image of the target stereoscopic image; A semantic enhancement module, configured to perform semantic enhancement on the right sub-image of the target stereo image to obtain an enhanced right sub-image of the target stereo image, wherein the semantic enhancement on the right sub-image of the target stereo image to obtain the enhanced right sub-image of the target stereo image comprises: extracting a semantic saliency map of the right sub-image of the stereo image by using a semantic extraction network category activation map, and multiplying the map with the right sub-image to obtain an enhanced right sub-image; The disparity module is used to perform a difference between the left sub-image of the target stereoscopic image and the enhanced right sub-image of the target stereoscopic image to obtain a disparity map of the target stereoscopic image; the calculation formula is as follows: in, is the left subgraph; To enhance the right sub-image; D is the disparity map; A block processing module is used to perform block processing on the left sub-image, enhanced right sub-image and disparity map of the target stereo image, and the obtained image blocks are input into a feature learning network to output left sub-image visual features, enhanced right sub-image visual features and binocular visual features; A splicing module, used for splicing the left sub-image visual features, the enhanced right sub-image visual features, and the binocular visual features, and inputting them into a third fully connected module for quality mapping to obtain a quality mapping result; A prediction module, configured to input the quality mapping result into a fourth fully connected module, output a predicted quality score of the target stereoscopic image, and take an average value of the predicted quality scores of the target stereoscopic image as a quality evaluation result of the target stereoscopic image; The feature learning network, the third fully connected module and the fourth fully connected module constitute a stereoscopic image quality assessment network; The training process of the stereoscopic image quality evaluation network includes: A stereoscopic image dataset is used as a training set, wherein the stereoscopic image dataset includes stereoscopic images, and a left sub-image subjective score, a right sub-image subjective score, and an overall subjective score of the stereoscopic images; Performing semantic enhancement on the right sub-image of the stereoscopic image to obtain an enhanced right sub-image of the stereoscopic image; Subtracting a left sub-image of a stereoscopic image from an enhanced right sub-image of the stereoscopic image to obtain a disparity map of the stereoscopic image; Inputting the left sub-image of the stereo image, the enhanced right sub-image of the stereo image, and the disparity map into the feature learning network, outputting the visual features of the left sub-image of the stereo image, the enhanced right sub-image visual features, and the binocular visual features, respectively sending the visual features of the left sub-image of the stereo image and the enhanced right sub-image visual features of the stereo image into the fourth fully connected module, and mapping them into the predicted quality score of the left sub-image of the stereo image, the predicted quality score of the right sub-image of the stereo image, and the predicted quality score of the disparity map of the stereo image, respectively; The left sub-image visual features, enhanced right sub-image visual features and binocular visual features of the stereoscopic image are spliced and input into the third fully connected module, and the output result is then input into the fourth fully connected layer to be mapped into the overall prediction quality score of the stereoscopic image; Calculate a loss function based on the subjective score of the left sub-image, the subjective score of the right sub-image, the overall subjective score of the stereoscopic image, the predicted quality score of the left sub-image of the stereoscopic image, the predicted quality score of the right sub-image of the stereoscopic image, the predicted quality score of the disparity map of the stereoscopic image, and the overall predicted quality score of the stereoscopic image; Use the stochastic gradient descent algorithm for iterative training until the training is completed; The loss function is: in, is the overall predicted quality score for the stereo image; Predicting quality scores for disparity maps of stereo images; Predict the quality score for the left sub-image of the stereo image; Predict the quality score for the right sub-image of the stereo image; is the overall subjective score of the stereo image; is the subjective score of the left sub-image of the stereo image; is the subjective score of the right sub-image of the stereo image; is the loss function; The feature learning network sequentially comprises a first convolution block, a second convolution block, a convolution layer module, a third convolution block, a first fully connected module, and a second fully connected module; The first convolution block, the second convolution block, and the third convolution block are each composed of a convolution layer, a ReLU function layer, a maximum pooling layer, and a BN layer; The convolutional layer module consists of two convolutional layers; The first fully connected module consists of a 1*1024 fully connected layer; The second fully connected module consists of a 1*512 fully connected layer and a ReLU function layer.
5. An electronic device comprising at least one processor; and a memory connected to the at least one processor in communication; characterized in that: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.
6. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-3.
