Picture quality determination method, device, equipment, medium and product for screenshot
By considering the influence factors of video frame quality and screenshot operation during the screenshot process, the problem of low accuracy in screenshot quality assessment is solved, and real-time and efficient screenshot quality evaluation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2022-09-08
- Publication Date
- 2026-06-09
AI Technical Summary
In existing technologies, screenshot quality assessment fails to fully consider the distortion and loss caused by the original image information and the screenshot operation, resulting in low assessment accuracy.
By obtaining the video frame parameters of the target video frame, the first influencing factor of video frame quality on screenshot quality is determined, and combined with the second influencing factor of screenshot operation on screenshot quality, the screenshot quality is comprehensively evaluated.
It improves the accuracy of screenshot quality evaluation, enabling real-time evaluation during the screenshot process, avoiding additional information calculation work and improving efficiency.
Smart Images

Figure CN116993652B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to a method, apparatus, device, medium and product for determining the image quality of a screenshot. Background Technology
[0002] In the video field, when users see memorable scenes, they may want to preserve them. Terminals typically offer screenshot functions, allowing users to extract specific frames from video clips and save them to the device. However, image information may change or become distorted during the screenshot process. Therefore, evaluating the quality of the screenshot is crucial for assessing the effectiveness of the screenshot function.
[0003] In related technologies, deep learning can be used to evaluate the image quality of screenshots. By pre-establishing the relationship between screenshots and image quality scores through an image quality evaluation model, screenshots can be input into the image quality evaluation model during application, and the image quality score output by the image quality evaluation model can be obtained to complete the screenshot quality assessment.
[0004] However, the use of deep learning to assess the quality of screenshots does not take into account the information of the original image, resulting in low accuracy in screenshot quality assessment. Summary of the Invention
[0005] This application provides a method, apparatus, device, medium, and product for determining the image quality of a screenshot, which can improve the accuracy of screenshot quality determination. The technical solution is as follows:
[0006] According to one aspect of this application, a method for determining the image quality of a screenshot is provided, the method comprising:
[0007] In response to a screenshot command, the video frame parameters of the target video frame are obtained. The screenshot command is triggered by a screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process.
[0008] Based on the video frame parameters, determine the first influencing factor of video frame quality on screenshot quality;
[0009] Determine the second influencing factor of the screenshot operation on the screenshot quality;
[0010] Based on the first influence factor and the second influence factor, the screenshot quality of the target screenshot obtained by the screenshot operation is determined.
[0011] According to another aspect of this application, a method for determining the image quality of a screenshot is provided, the apparatus comprising:
[0012] The acquisition module is used to acquire video frame parameters of the target video frame in response to a screenshot command. The screenshot command is triggered by a screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process.
[0013] The determination module is used to determine the first influence factor of video frame quality on screenshot quality based on the video frame parameters;
[0014] The determining module is further configured to determine a second influencing factor of the screenshot operation on the screenshot quality;
[0015] The determining module is further configured to determine the screenshot quality of the target screenshot obtained by the screenshot operation based on the first influence factor and the second influence factor.
[0016] According to another aspect of this application, a computer device is provided, comprising: a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the image quality determination method for screenshots as described above.
[0017] According to another aspect of this application, a computer-readable storage medium is provided, the storage medium storing a computer program, the computer program being loaded and executed by a processor to implement the image quality determination method for screenshots as described above.
[0018] According to another aspect of this application, a computer program product is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the image quality determination method described above.
[0019] The beneficial effects of the technical solutions provided in this application include at least the following:
[0020] This application provides a method for evaluating screenshot quality: Considering that the video frame quality of the target video frame and the distortion caused by the screenshot operation both affect the screenshot quality during the process of taking a screenshot of a video frame to generate a target screenshot, the method calculates the influence factors on screenshot quality in two dimensions: video frame quality and screenshot operation. Then, based on the first influence factor (the influence factor of video frame quality on screenshot quality) and the second influence factor (the influence factor of screenshot operation on screenshot quality), the screenshot quality of the target screenshot is determined. This method fully considers the impact of the original video frame information and the distortion caused by the screenshot operation on the screenshot quality, effectively improving the accuracy of the screenshot quality evaluation. Furthermore, the screenshot quality evaluation process can be performed in real-time during the screenshot operation, eliminating the need for comparison calculations between the original video frame and the screenshot after the operation is completed. This avoids additional information calculation work and improves the efficiency of the screenshot quality evaluation. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 A flowchart illustrating an exemplary embodiment of this application shows a method for determining the image quality of a screenshot;
[0023] Figure 2 A flowchart illustrating a method for determining the image quality of a screenshot provided in another exemplary embodiment of this application is shown;
[0024] Figure 3 This illustration shows a schematic diagram of the screenshot quality evaluation process, as illustrated in an exemplary embodiment of this application.
[0025] Figure 4 A flowchart illustrating a method for determining the image quality of a screenshot provided in another exemplary embodiment of this application is shown;
[0026] Figure 5 This illustration shows a schematic diagram of a screenshot quality evaluation process, as illustrated in another exemplary embodiment of this application.
[0027] Figure 6 A flowchart illustrating a method for determining the image quality of a screenshot provided in another exemplary embodiment of this application is shown;
[0028] Figure 7 This illustration shows a schematic diagram of a screenshot quality evaluation process, as illustrated in another exemplary embodiment of this application.
[0029] Figure 8 This is a structural block diagram of an image quality determination device for a screenshot provided in an exemplary embodiment of this application;
[0030] Figure 9 This is a schematic diagram of the structure of a computer device according to an exemplary embodiment. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0032] Please refer to Figure 1 The diagram illustrates a flowchart of a method for determining the image quality of a screenshot provided in an exemplary embodiment of this application. Taking the application of this method to a computer device as an example, the method includes:
[0033] Step 101: In response to the screenshot command, obtain the video frame parameters of the target video frame. The screenshot command is triggered by the screenshot operation of the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process.
[0034] In the video field, users can use the screenshot function to capture a specific frame of a video and obtain a screenshot image; the screenshot process is essentially a process of compressing video frames into images. In one possible implementation, when a computer device receives a screenshot request, it generates a screenshot command. The computer's backend can then determine the target video frame based on the screenshot command, compress the target video frame into an image, and generate the target screenshot.
[0035] Since the target screenshot is generated based on the target video frame, a higher video frame quality will obviously result in a higher screenshot quality, and vice versa. Therefore, when evaluating the image quality of the target screenshot, parameters related to the quality of the corresponding video frame can be introduced. In this embodiment, when the computer device receives a screenshot command and determines the target video frame corresponding to the video frame, it can obtain the video frame parameters that affect the video frame quality during video encoding and decoding. These parameters can then be used to evaluate the image quality of the screenshot.
[0036] For example, video frame parameters may include: number of encoded bits (the higher the number of encoded bits, the higher the video frame quality), video frame resolution (the higher the video resolution, the higher the video frame quality), average quantization parameter (the lower the average quantization parameter, the higher the video frame quality), and video encoding type (if the video encoding type is I-frame, the video frame quality is higher). This application does not limit the video frame parameters; any parameter that affects the video frame quality during the video encoding process can be used for subsequent screenshot quality evaluation.
[0037] Step 102: Based on the video frame parameters, determine the first influencing factor of video frame quality on screenshot quality.
[0038] Unlike related technologies that directly compare the differences between the original video frame and the screenshot image content, or directly analyze the screenshot image content to evaluate the screenshot quality, this application embodiment considers that both the video frame quality of the original video frame and the screenshot operation affect the generated screenshot quality during the screenshot generation process. Therefore, it analyzes the impact on screenshot quality from two dimensions: the video frame quality of the original video frame and the screenshot operation. Specifically, regarding the video frame quality dimension, the computer device can obtain video frame parameters that affect the video frame quality of the target video frame, so as to determine the first influencing factor of video frame quality on screenshot quality based on at least one video frame parameter.
[0039] Step 103: Determine the second influencing factor of screenshot operation on screenshot quality.
[0040] Optionally, in addition to the video frame quality of the target video frame affecting the screenshot quality, the screenshot operation essentially compresses the target video frame, which also reduces the screenshot quality. Therefore, in one possible implementation, it is also necessary to determine a second influencing factor on the screenshot quality from the perspective of the screenshot operation.
[0041] Step 104: Determine the screenshot quality of the target screenshot obtained by the screenshot operation based on the first influence factor and the second influence factor.
[0042] In one possible implementation, the impact of both the video frame quality dimension of the original video frame (target video frame) and the screenshot operation dimension on the screenshot quality is considered. Specifically, the screenshot quality of the target screenshot obtained from the screenshot operation is determined based on the product of a first influence factor and a second influence factor. This approach fully considers the impact of distortion and loss caused by the original video information and the screenshot operation on the screenshot quality, thereby improving the accuracy of screenshot quality evaluation.
[0043] It should be noted that the embodiments of this application can be applied not only to taking screenshots of videos and video clips and evaluating the quality of the screenshots, but also to taking screenshots of live broadcasts and evaluating the quality of the screenshots; that is, the video screen can be the video screen of a short video or the live broadcast screen.
[0044] In summary, this application provides a method for evaluating screenshot quality: considering that the video frame quality of the target video frame and the distortion caused by the screenshot operation both affect the screenshot quality during the process of taking a screenshot of a video screen to generate a target screenshot, the method calculates the influence factors on the screenshot quality in two dimensions: video frame quality and screenshot operation. Then, based on the first influence factor (the influence factor of video frame quality on screenshot quality) and the second influence factor (the influence factor of screenshot operation on screenshot quality), the screenshot quality of the target screenshot is determined. This method fully considers the impact of the original video frame information and the distortion caused by the screenshot operation on the screenshot quality, effectively improving the accuracy of the screenshot quality evaluation. Furthermore, the screenshot quality evaluation process can be performed in real time during the screenshot operation, eliminating the need for comparison calculations between the original video frame and the screenshot after the screenshot operation is completed, thus avoiding additional information calculation work and improving the efficiency of the screenshot quality evaluation.
[0045] To consider the impact of video frame quality on screenshot quality from multiple perspectives, one possible implementation introduces various video frame parameters of different dimensions, such as video encoding parameters, encoding bit count, video resolution, and average quantization parameters. This allows the first influencing factor to characterize the impact of video frame parameters of different dimensions on screenshot quality, thereby achieving a full evaluation of screenshot quality and improving the accuracy of screenshot quality evaluation.
[0046] Please refer to Figure 2 The diagram illustrates a flowchart of a method for determining the image quality of a screenshot provided in another exemplary embodiment of this application. Taking the application of this method to a computer device as an example, the method includes:
[0047] Step 201: In response to the screenshot command, determine the screenshot time that triggered the screenshot command.
[0048] Since the screenshot operation is triggered by the user and targets a video frame, the backend needs to determine the target video frame for displaying the video frame when generating the target screenshot. The backend plays the decoded video frame sequence in chronological order. Therefore, in one possible implementation, to obtain the target video frame of the video frame indicated by the screenshot operation, it is necessary to obtain the screenshot time corresponding to the screenshot operation, i.e., the screenshot time that triggered the screenshot quality, in order to determine the target video frame corresponding to the video frame based on that screenshot time.
[0049] Step 202: Based on the screenshot time and the duration of the source video, determine the target video frame corresponding to the video frame.
[0050] The display time of a video frame corresponds to the playback time of the video frame. Therefore, the target video frame corresponding to the video frame can be determined based on the relationship between the screenshot time and the duration of the source video. For example, if the screenshot time is 01:30, then the video frame located at 01:30 in the source video needs to be found as the target video frame.
[0051] The source video is the complete video corresponding to the currently playing video frame.
[0052] Step 203: Based on the target video frame, obtain the video frame parameters of the target video frame.
[0053] When a computer plays a video, it typically decodes the video stream into a sequence of video frames. The parameters of each video frame are also contained within the video stream and can be obtained during the video decoding process. These video frame parameters include at least one of the following: the number of encoded bits (bytes) of the target video frame, the video frame resolution (width + height), video encoding parameters (determined by the video encoding type), and average quantization parameters.
[0054] The number of encoded bits, video frame resolution, and video encoding parameters can all be obtained directly; however, the average quantization parameter needs to be calculated based on the actual quantization parameters of each macroblock into which the target video frame is divided.
[0055] In an exemplary example, the process of obtaining the average quantization parameter of the target video frame may include steps one and two.
[0056] Step 1: When the video frame parameters are average quantization parameters, obtain the total number of macroblocks in the target video frame during the video encoding process, as well as the actual quantization parameters of each macroblock.
[0057] During the video encoding process, video frames need to be divided into several macroblocks, and different actual quantization parameters are used for each macroblock. The larger the actual quantization parameter used for a macroblock, the lower the quality of the subsequently reconstructed target video frame. Therefore, in order to obtain the average quantization parameter of the target video frame during the video decoding process, it is necessary to first obtain the actual quantization parameters of each macroblock and the total number of macroblocks into which the target video frame is divided during the video encoding process, and then average the actual quantization parameters of multiple macroblocks to obtain the average quantization parameter of the entire target video frame.
[0058] Step 2: Determine the average quantization parameter of the target video frame based on the actual quantization parameters of each macroblock and the total number of macroblocks.
[0059] In an exemplary example, the formula for calculating the average quantization parameter can be:
[0060]
[0061] Among them, QP in This represents the average quantization parameter of the entire frame (target video frame), and M represents the total number of macroblocks in the current frame (total number of macroblocks in the target video frame). This represents the actual quantization parameter of each macroblock. As shown in formula (1), the average quantization parameter of the target video frame can be obtained by averaging the sum of the actual quantization parameters of each macroblock in the target video frame (dividing the sum of the actual quantization parameters of each macroblock in the target video frame by the total number of macroblocks).
[0062] Optionally, the video encoding parameters are determined by the video encoding type (FrameType) of the target video frame. During video encoding, there are three main types: I-frames, B-frames, and P-frames. I-frames compress and transmit the entire frame's image information; during decoding, the complete image can be reconstructed from the I-frame without referencing other frames. P-frames use motion compensation to transmit the difference and motion vector (prediction error) between themselves and the preceding I-frames or P-frames. During decoding, the predicted values and prediction errors in the I-frames must be summed to reconstruct the complete P-frame image. P-frames have a higher compression ratio. B-frames consider both the encoded frames preceding and following the source image sequence. The encoding image uses temporal redundancy information between frames to compress the amount of transmitted data. During decoding, it is necessary to refer to the preceding I or P frame and the following P frame to form a complete image. From the encoding and decoding process of the three encoding types, it can be seen that among the three encoding types, the image quality of I frames is higher than that of B frames, which is higher than that of P frames. Correspondingly, when determining the video encoding parameters based on the video encoding type, the video encoding parameter is determined as the first parameter when the video encoding type is I frame, as the second parameter when the video encoding type is B frame, and as the third parameter when the video encoding type is P frame. The first parameter is greater than the second parameter, and the second parameter is greater than the third parameter.
[0063] In an exemplary example, the relationship between video encoding type and video encoding parameters can be shown as in formula (2).
[0064]
[0065] From formula (2), we can see that ratio frametypeThis represents the video encoding parameters. When the video encoding type is I-frame, the corresponding video encoding parameter is 1, that is, the first parameter is 1; when the video encoding type is B-frame, the corresponding video encoding parameter is 0.9, that is, the second parameter is 0.9; when the video encoding type is P-frame, the corresponding video encoding parameter is 0.8, that is, the third parameter is 0.8.
[0066] Step 204: Based on at least one of the following: number of encoded bits, video frame resolution, video encoding parameters, and average quantization parameters, determine the first influencing factor of video frame quality on screenshot quality. The video encoding parameters are determined by the video encoding type of the target video frame.
[0067] In one possible implementation, when the computer device obtains at least one video frame parameter corresponding to the target video frame, it can determine the first influence factor of video frame quality on screenshot quality based on the at least one video frame parameter; when the video frame parameter includes at least one of the target video frame's encoded bit count, video frame resolution, video encoding parameters, and average quantization parameters, the first influence factor of video frame quality on screenshot quality can be determined based on at least one of the target video frame's encoded bit count, video frame resolution, video encoding parameters, and average quantization parameters.
[0068] Optionally, since the higher the number of encoded bits, the higher the quality of the target video frame, the higher the quality of the target screenshot is based on the relationship between the target video frame and the target screenshot. Therefore, the number of encoded bits is positively correlated with the first influence factor. That is, the higher the number of encoded bits of the target video frame, the higher the value of the first influence factor, and the lower the number of encoded bits of the target video frame, the lower the value of the first influence factor.
[0069] Optionally, since the higher the video frame resolution, the higher the video frame quality of the target video frame, the higher the quality of the corresponding target screenshot based on the relationship between the target video frame and the target screenshot. Therefore, the video frame resolution is positively correlated with the first influence factor. In other words, the higher the video frame resolution, the higher the value of the first influence factor, and the lower the video frame resolution, the lower the value of the first influence factor.
[0070] Optionally, since the larger the average quantization parameter, the lower the quality of the target video frame, the lower the quality of the target screenshot will be based on the relationship between the target video frame and the target screenshot. Therefore, the average quantization parameter is negatively correlated with the first influence factor. In other words, the larger the average quantization parameter, the smaller the value of the first influence factor, and the smaller the average quantization parameter, the larger the value of the first influence factor.
[0071] Optionally, the larger the video encoding parameters, the higher the quality of the target video frame. Based on the relationship between the target video frame and the target screenshot, the quality of the corresponding target screenshot is also higher. Therefore, the video encoding parameters and the first influence factor are positively correlated. That is to say, the larger the video encoding parameters, the larger the value of the first influence factor, and the smaller the video encoding parameters, the smaller the value of the first influence factor.
[0072] It should be noted that the more types of video coding parameters used in calculating the first influence factor, the more comprehensively the first influence factor can consider the impact of various video frame parameters on the screenshot quality, and the more accurate the determination of the first influence factor will be. In an exemplary example, step 204 may also include steps 204A and 204B.
[0073] Step 204A: Obtain the first weight of the number of encoded bits, the second weight of the video frame resolution, the third weight of the video encoding parameters, and the fourth weight of the average quantization parameters.
[0074] To calculate the first influencing factor by integrating various video frame parameters, the developers assigned a weight value to each video frame parameter to quantify the impact of different video frame parameters on screenshot quality. Specifically, the number of encoded bits corresponds to the first weight, video frame resolution to the second weight, video encoding parameters to the third weight, and the average quantization parameter to the fourth weight.
[0075] Step 204B: Based on the first weight and number of encoded bits, video frame resolution and second weight, video encoding parameters and third weight, and average quantization parameters and fourth weight, determine the first influencing factor of video frame quality on screenshot quality.
[0076] In an exemplary example, the calculation method for the first influence factor, which is calculated based on the number of encoded bits, video frame resolution, video encoding parameters, and average quantization parameters, can be shown in formula (3).
[0077]
[0078] Among them, Quality ori Indicates the first impact factor, in bytes in This represents the number of encoded bits, where 1 / B represents the first weight of the number of encoded bits, and B is a normalization parameter constant; QP in Width represents the average quantization parameter. in +Height in This represents the video frame resolution, 1 / (W+H) represents the second weight, W and H are constants, W=1920, H=1080, and ratio is... frametype This represents the video encoding parameters, with the third weight being 1.
[0079] As can be seen from formula (3), the first influence factor is obtained by multiplying the four components together, where, This reflects the impact of the current frame's encoding bit count on image quality; the higher the bit count, the better the quality. This reflects the impact of the quantization parameters of the current frame on image quality; a larger quantization parameter results in relatively lower image quality in the source video. The ratio reflects the impact of image resolution on image quality. frametype This is a parameter that indicates the impact of video encoding type on quality.
[0080] When calculating the first influencing factor of the target video frame quality on the screenshot quality, the number of encoded bits, video frame resolution, video encoding parameters and average quantization parameters can be substituted into formula (3) to obtain the product of the four sub-items, which is determined as the first influencing factor.
[0081] Step 205: Obtain the image compression rate during the screenshot process. The image compression rate is the image compression rate generated from the target video frame during the target screenshot process.
[0082] When calculating the second influencing factor of screenshot quality, since the screenshot operation is actually a JPEG image compression process, the higher the image compression rate, the lower the quality of the generated screenshot; conversely, the lower the image compression rate, the higher the quality of the generated screenshot. Therefore, in one possible implementation, the computer device can obtain the image compression rate during the process of generating the target screenshot from the target video frame to determine the second influencing factor of screenshot quality.
[0083] Image compression involves quantizing pixel values, and the image compression rate during the screenshot process can be determined based on the quantization parameter table. In an exemplary example, step 205 may include steps 205A and 205B.
[0084] Step 205A: Obtain the actual quantization parameter table corresponding to the target video frame during the screenshot operation. The actual quantization parameter table is obtained by performing discrete cosine transform on the pixel values in the target video frame.
[0085] In the JPEG compression process, the current macroblock pixel value is transformed by Discrete Cosine Transform (DCT), and then each macroblock is quantized based on the quantization coefficient matrix. Correspondingly, in one possible implementation, the image compression rate during the screenshot operation is determined by obtaining the actual quantization parameter table and the standard quantization parameter table corresponding to the target video frame during the screenshot operation.
[0086] The actual quantization parameter table is obtained by performing a discrete cosine transform (DCT) on the pixel values of the current macroblock in the target video frame. Each macroblock becomes an 8x8 matrix after the DCT transformation.
[0087] Step 205B: Based on the actual quantization parameter table and the standard quantization parameter table, determine the image compression rate during the screenshot operation. The standard quantization parameter table is the quantization parameter table used in the image compression process.
[0088] In an exemplary example, the image compression rate can be calculated as shown in formula (4).
[0089]
[0090] Where α represents the image compression ratio. This represents the parameter in the i-th row and j-th column of the actual quantization parameter table DQTin. DQT represents the standard quantization parameter table. anchor The parameter in the i-th row and j-th column.
[0091] The standard quantization parameter table is also an 8x8 matrix. In one possible implementation, the image compression rate can be obtained by substituting the parameters in the actual quantization parameter table and the parameters in the standard quantization parameter table into formula (4).
[0092] Step 206: Determine the reciprocal of the image compression rate as the second influencing factor of the screenshot operation on the screenshot quality.
[0093] Since there is a negative correlation between image compression ratio and screenshot quality—the lower the image compression ratio, the higher the screenshot quality, and vice versa—based on this relationship, the reciprocal of the image compression ratio (the higher the image compression ratio, the smaller the reciprocal, and vice versa) can be identified as the second influencing factor of screenshot operation on screenshot quality.
[0094] Step 207: Determine the screenshot quality of the target screenshot obtained by the screenshot operation based on the first influence factor and the second influence factor.
[0095] In an exemplary example, the formula for determining the screenshot quality of the target screenshot can be as shown in formula (5).
[0096] Quality1 = Quality ori *1 / α (5)
[0097] Where Quality1 represents the screenshot quality, Quality oriLet α represent the first influence factor, and 1 / α represent the reciprocal of the image compression rate. In one possible implementation, after the computer device obtains the first influence factor in the video frame quality dimension and the second influence factor in the screenshot operation dimension, the product of the first influence factor and the second influence factor can be determined as the screenshot quality of the target screenshot.
[0098] like Figure 3 The diagram illustrates a screenshot quality evaluation process according to an exemplary embodiment of this application. In the video frame quality dimension 301, a first influence factor 302 on screenshot quality is determined by acquiring video frame parameters including the number of encoded bits, video frame resolution, video encoding parameters, and average quantization parameters. Simultaneously, in the screenshot operation dimension 303, a second influence factor 304 on screenshot quality is determined by acquiring the actual quantization parameter table and the standard quantization parameter table of the current macroblock in the target video frame. The screenshot quality is then evaluated 305 based on the first influence factor 302 and the second influence factor 304.
[0099] In this embodiment, key parameters affecting video frame quality during video encoding and decoding can be obtained: the number of encoded bits, video frame resolution, video encoding parameters, and average quantization parameters. A first influence factor on screenshot quality is calculated, ensuring that this factor effectively characterizes the impact of different types of video frame parameters, thus improving the accuracy of its determination and further enhancing the accuracy of subsequent screenshot quality evaluation. Furthermore, considering that screenshotting is essentially an image compression process, a second influence factor on screenshot quality can be calculated by obtaining the image compression rate during compression. This second influence factor characterizes the image distortion loss during compression, further improving the accuracy of subsequent screenshot quality evaluation.
[0100] To further improve the accuracy of screenshot quality evaluation, considering that in addition to the impact of the original video frame quality and the screenshot operation on screenshot quality, the quality of the source video also affects the screenshot quality, in other possible implementations, the influence factor of the source video quality on screenshot quality can be introduced when evaluating the screenshot quality.
[0101] Please refer to Figure 4 The diagram illustrates a flowchart of a method for determining the image quality of a screenshot provided in another exemplary embodiment of this application. Taking the application of this method to a computer device as an example, the method includes:
[0102] Step 401: In response to the screenshot command, obtain the video frame parameters of the target video frame. The screenshot command is triggered by the screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process.
[0103] Step 402: Based on the video frame parameters, determine the first influencing factor of video frame quality on screenshot quality.
[0104] Step 403: Determine the second influencing factor of screenshot operation on screenshot quality.
[0105] The implementation methods for steps 401 to 403 can be referred to the above embodiments, and will not be repeated here.
[0106] Step 404: Determine the third influencing factor of the source video quality corresponding to the target video frame on the screenshot quality.
[0107] Considering that the quality of the source video also affects the quality of the screenshot, in order to further improve the accuracy of the screenshot quality evaluation, in one possible implementation, the computer device may also introduce a third influencing factor on the screenshot quality, which is the source video quality corresponding to the target video frame.
[0108] It should be noted that steps 402, 403 and 404 can be executed simultaneously, or in the order of steps 402 to 404, or in other orders. The implementation order of steps 402 to 404 is not limited in this application embodiment.
[0109] In an exemplary example, step 404 may also include steps 404A and 404B.
[0110] Step 404A: Obtain the video bitrate of the source video corresponding to the target video frame, and the video frame resolution of the target video frame.
[0111] The quality of the source video is related to the video bitrate and the video frame resolution. Therefore, in one possible implementation, the computer device can obtain the video bitrate of the source video and the video frame resolution of the target video frame before calculating the third influence factor.
[0112] Step 404B: Based on the video bitrate and video frame resolution, determine the third influencing factor of the source video quality corresponding to the target video frame on the screenshot quality.
[0113] In an exemplary example, the third impact factor can be calculated as shown in formula (6).
[0114]
[0115] Among them, bpp in This represents the third impact factor (pixel depth of the input video), in kbps. in Indicates video bitrate, width in *height in This indicates the video frame resolution. When calculating the third impact factor, X ma =8.0, X mi =1.0.
[0116] As can be seen from formula (6), the ratio of video bitrate to video frame resolution can be normalized to quantify the third influencing factor of source video quality on screenshot quality.
[0117] Step 405: Determine the screenshot quality of the target screenshot obtained by the screenshot operation based on the first impact factor, the second impact factor, and the third impact factor.
[0118] In an exemplary example, the screenshot quality can be calculated as shown in formula (7).
[0119] Quality2 = Quality ori *1 / α*bpp in (7)
[0120] Where Quality2 represents the screenshot quality, Quality ori α represents the first impact factor (the impact factor in the video frame quality dimension), 1 / α represents the second impact factor (the impact factor in the screenshot operation dimension), and bpp in This represents the third impact factor (the impact factor in terms of source video quality).
[0121] As can be seen from formula (7), when the computer device obtains the first influence factor of the video frame quality dimension on the screenshot quality, the second influence factor of the screenshot operation dimension on the screenshot quality, and the third influence factor of the source video quality dimension on the screenshot quality, the product of the first influence factor, the second influence factor and the third influence factor can be determined as the screenshot quality of the target screenshot obtained by the screenshot operation.
[0122] like Figure 5The diagram illustrates a screenshot quality evaluation process according to another exemplary embodiment of this application. In the video frame quality dimension 501, a first influence factor 502 on screenshot quality is determined by acquiring video frame parameters including the number of encoded bits, video frame resolution, video encoding parameters, and average quantization parameters. Simultaneously, in the screenshot operation dimension 503, a second influence factor 504 on screenshot quality is determined by acquiring the actual quantization parameter table and standard quantization parameter table of the current macroblock in the target video frame. In the source video quality dimension 505, a third influence factor 506 on screenshot quality is determined by acquiring the video bitrate and video frame resolution of the source video. The screenshot quality is then evaluated 507 based on the first influence factor 502, the second influence factor 504, and the third influence factor 506.
[0123] In this embodiment, the source video quality is introduced as an additional dimension parameter when evaluating screenshot quality. This allows for a comprehensive consideration of both the single video frame dimension (video frame quality dimension) and the overall video dimension (source video quality dimension) when considering the impact of the original video information on screenshot quality. This fully utilizes the original video information in the screenshot quality evaluation, enabling a more accurate assessment of screenshot quality.
[0124] In other possible implementations, screenshot resolution may also affect screenshot quality. Therefore, when evaluating screenshot quality, an influence factor on screenshot resolution may be introduced.
[0125] Please refer to Figure 6 The diagram illustrates a flowchart of a method for determining the image quality of a screenshot provided in another exemplary embodiment of this application. Taking the application of this method to a computer device as an example, the method includes:
[0126] Step 601: In response to the screenshot command, obtain the video frame parameters of the target video frame. The screenshot command is triggered by the screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process.
[0127] Step 602: Based on the video frame parameters, determine the first influencing factor of video frame quality on screenshot quality.
[0128] Step 603: Determine the second influencing factor of screenshot operation on screenshot quality.
[0129] Step 604: Determine the third influencing factor of the source video quality corresponding to the target video frame on the screenshot quality.
[0130] The implementation methods for steps 601 to 604 can be referred to the above embodiments, and will not be repeated here.
[0131] Step 605: Based on the screenshot resolution of the target screenshot, determine the fourth influencing factor of screenshot resolution on screenshot quality.
[0132] Considering that screenshot resolution also affects screenshot quality—for example, higher screenshot resolution results in higher screenshot quality, and lower screenshot resolution results in lower screenshot quality—in order to further improve the accuracy of screenshot quality evaluation, in one possible implementation, a fourth influencing factor on screenshot quality can be determined based on the screenshot resolution of the target screenshot.
[0133] In an exemplary example, the fourth influence factor can be calculated as shown in formula (8).
[0134]
[0135] Among them, R resout Width represents the fourth influencing factor in the screenshot resolution dimension. out *height out This indicates the screenshot resolution. W*H is a constant, where W = 1920 and H = 1080.
[0136] It should be noted that steps 602, 603, 604 and 605 can be executed simultaneously, or in the order of steps 602 to 605, or in other orders. The implementation order of steps 602 to 605 is not limited in this application embodiment.
[0137] Step 606: The product of the first impact factor, the second impact factor, the third impact factor, and the fourth impact factor is determined as the screenshot quality of the target screenshot obtained by the screenshot operation.
[0138] In an exemplary example, after introducing the fourth influence factor, the screenshot quality can be calculated as shown in formula (9).
[0139] Quality3 = Quality ori *1 / α*bpp in *R resout (9)
[0140] Among them, Quality3 represents the screenshot quality. ori α represents the first impact factor (impact factor in the video frame quality dimension), 1 / α represents the second impact factor (impact factor in the screenshot operation dimension), and bpp in R represents the third impact factor (the impact factor in terms of source video quality). resout This represents the fourth influencing factor in the screenshot resolution dimension.
[0141] As can be seen from formula (9), when the computer device obtains the first influencing factor of the video frame quality dimension on the screenshot quality, the second influencing factor of the screenshot operation dimension on the screenshot quality, the third influencing factor of the source video quality dimension on the screenshot quality, and the fourth influencing factor of the screenshot resolution dimension, the product of the first influencing factor, the second influencing factor, the third influencing factor and the fourth influencing factor can be determined as the screenshot quality of the target screenshot obtained by the screenshot operation.
[0142] like Figure 7 The diagram illustrates a screenshot quality evaluation process according to another exemplary embodiment of this application. In the video frame quality dimension 701, a first influence factor 702 on screenshot quality is determined by acquiring video frame parameters including the number of encoded bits, video frame resolution, video encoding parameters, and average quantization parameters. Simultaneously, in the screenshot operation dimension 703, a second influence factor 704 on screenshot quality is determined by acquiring the actual quantization parameter table and standard quantization parameter table of the current macroblock in the target video frame. In the source video quality dimension 705, a third influence factor 706 on screenshot quality is determined by acquiring the video bitrate and video frame resolution of the source video. In the screenshot resolution dimension 707, a fourth influence factor 708 on screenshot quality is determined based on the screenshot resolution. Finally, the screenshot quality is evaluated 709 based on the first influence factor 702, the second influence factor 704, the third influence factor 706, and the fourth influence factor 708.
[0143] Optionally, in other possible implementations, when business personnel measure screenshot quality during actual application, they can also set different influence weights for different influencing factors according to business needs. For example, a first influence weight can be set for the first influence factor, a second influence weight for the second influence factor, a third influence weight for the third influence factor, and a fourth influence weight for the fourth influence factor. Then, the screenshot quality can be determined based on the product of the first influence factor and its first influence weight, the second influence factor and its second influence weight, the third influence factor and its third influence weight, and the first influence factor and its fourth influence weight.
[0144] In this embodiment, an additional parameter, screenshot resolution, is introduced when evaluating screenshot quality. This allows for a comprehensive consideration of both the image compression rate during the screenshot operation and the corresponding screenshot resolution when evaluating the impact of the screenshot operation on the screenshot quality. By fully utilizing screenshot operation information, the screenshot quality can be assessed more accurately.
[0145] Since the screenshot quality determination method proposed in this application evaluates screenshot quality from two dimensions—the influence of the original video and the influence of the screenshot operation—and is unrelated to the image content of the screenshot itself, the screenshot quality calculated based on this method can serve as a standard parameter for evaluating the screenshot function. In one possible application scenario, during the use of the screenshot function, the real-time image quality of the generated screenshot can be obtained and compared with the screenshot quality (standard parameter). If the real-time image quality is lower than the screenshot quality, it indicates a possible anomaly in the screenshot function, requiring further investigation to determine the cause; conversely, if the real-time image quality is greater than or equal to the screenshot quality, it indicates that the screenshot function is functioning normally. This screenshot quality can be used to monitor whether the screenshot function is operating normally.
[0146] Optionally, when the image quality determination method shown in this embodiment is applied to the video screenshot process, it can determine the screenshot quality of the captured image. Optionally, when using video screenshots to generate video covers, it is also used to evaluate the screenshot quality of the video cover obtained from the screenshot. This allows the screenshot quality corresponding to the screenshot to be generated in real time after the screenshot operation is completed, and the screenshot quality is fed back to the user, so that the user can determine whether to retake the screenshot based on the screenshot quality.
[0147] In other possible application scenarios, the image quality determination method for screenshots in this embodiment can also be applied to the process of taking screenshots during live streaming to determine the screenshot quality of the captured image; optionally, when using a live stream screenshot as a live stream cover, it can be used to evaluate the screenshot quality of the live stream cover obtained from the screenshot. This allows the screenshot quality corresponding to the screenshot to be generated in real time after the screenshot operation is completed, and the screenshot quality is fed back to the user, so that the user can determine whether a new screenshot is needed based on the screenshot quality.
[0148] Figure 8 This is a structural block diagram of an image quality determination apparatus for screenshots provided in an exemplary embodiment of this application. The apparatus includes:
[0149] The acquisition module 801 is used to acquire video frame parameters of the target video frame in response to a screenshot command. The screenshot command is triggered by a screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process.
[0150] The determining module 802 is used to determine the first influence factor of video frame quality on screenshot quality based on the video frame parameters;
[0151] The determining module 802 is further configured to determine a second influencing factor of the screenshot operation on the screenshot quality;
[0152] The determining module 802 is further configured to determine the screenshot quality of the target screenshot obtained by the screenshot operation based on the first influence factor and the second influence factor.
[0153] Optionally, the determining module 802 is further configured to determine a third influence factor of the source video quality corresponding to the target video frame on the screenshot quality;
[0154] The determining module 802 is further configured to:
[0155] Based on the first influence factor, the second influence factor, and the third influence factor, the screenshot quality of the target screenshot obtained by the screenshot operation is determined.
[0156] Optionally, the determining module 802 is further configured to determine a fourth influencing factor of the screenshot resolution on the screenshot quality based on the screenshot resolution of the target screenshot;
[0157] The determining module 802 is further configured to:
[0158] The product of the first influence factor, the second influence factor, the third influence factor, and the fourth influence factor is determined as the screenshot quality of the target screenshot obtained by the screenshot operation.
[0159] Optionally, the determining module 802 is further configured to:
[0160] Obtain the video bitrate of the source video corresponding to the target video frame, and the video frame resolution of the target video frame;
[0161] Based on the video bitrate and the video frame resolution, the third influence factor of the source video quality on the screenshot quality corresponding to the target video frame is determined.
[0162] Optionally, the video frame parameters include at least one of the following: the number of encoded bits of the target video frame, the video frame resolution, the video encoding parameters, and the average quantization parameters.
[0163] The determining module 802 is further configured to:
[0164] Based on at least one of the encoded bit count, the video frame resolution, the video encoding parameters, and the average quantization parameters, a first influence factor of the video frame quality on the screenshot quality is determined, wherein the video encoding parameters are determined by the video encoding type of the target video frame.
[0165] Optionally, the number of encoded bits is positively correlated with the first influence factor;
[0166] The video frame resolution is positively correlated with the first influence factor;
[0167] The average quantification parameter is negatively correlated with the first influence factor;
[0168] When the video encoding type is I-frame, the video encoding parameter is determined as a first parameter; when the video encoding type is B-frame, the video encoding parameter is determined as a second parameter; when the video encoding type is P-frame, the video encoding parameter is determined as a third parameter, and the first parameter is greater than the second parameter, and the second parameter is greater than the third parameter.
[0169] Optionally, the determining module 802 is further configured to:
[0170] Obtain the first weight of the number of encoded bits, the second weight of the video frame resolution, the third weight of the video encoding parameters, and the fourth weight of the average quantization parameters;
[0171] Based on the first weight and the number of encoded bits, the video frame resolution and the second weight, the video encoding parameters and the third weight, and the average quantization parameters and the fourth weight, the first influence factor of the video frame quality on the screenshot quality is determined.
[0172] Optionally, the acquisition module 801 is further configured to:
[0173] When the video frame parameter is the average quantization parameter, obtain the total number of macroblocks into which the target video frame is divided during the video encoding process, and the actual quantization parameter of each macroblock;
[0174] The average quantization parameter of the target video frame is determined based on the actual quantization parameters of each macroblock and the total number of macroblocks.
[0175] Optionally, the determining module 802 is further configured to:
[0176] The image compression rate during the screenshot operation is obtained, and the image compression rate is the image compression rate generated from the target video frame during the target screenshot process;
[0177] The reciprocal of the image compression rate is determined as the second influencing factor of the screenshot operation on the screenshot quality.
[0178] Optionally, the determining module 802 is further configured to:
[0179] The actual quantization parameter table corresponding to the target video frame is obtained during the screenshot operation. The actual quantization parameter table is obtained by performing discrete cosine transform on the pixel values in the target video frame.
[0180] Based on the actual quantization parameter table and the standard quantization parameter table, the image compression rate is determined during the screenshot operation. The standard quantization parameter table is the quantization parameter table used in the image compression process.
[0181] Optionally, the acquisition module 801 is further configured to:
[0182] In response to the screenshot command, determine the screenshot time that triggered the screenshot command;
[0183] Based on the screenshot time and the duration of the source video, the target video frame corresponding to the video frame is determined;
[0184] Based on the target video frame, obtain the video frame parameters of the target video frame.
[0185] Optionally, the acquisition module 801 is further configured to acquire the real-time image quality of the screenshot generated in real time during the use of the screenshot function;
[0186] The determining module 802 is further configured to determine that the screenshot function is malfunctioning when the real-time image quality is lower than the screenshot quality.
[0187] In summary, this application provides a method for evaluating screenshot quality: considering that the video frame quality of the target video frame and the distortion caused by the screenshot operation both affect the screenshot quality during the process of taking a screenshot of a video screen to generate a target screenshot, the method calculates the influence factors on the screenshot quality in two dimensions: video frame quality and screenshot operation. Then, based on the first influence factor (the influence factor of video frame quality on screenshot quality) and the second influence factor (the influence factor of screenshot operation on screenshot quality), the screenshot quality of the target screenshot is determined. This method fully considers the impact of the original video frame information and the distortion caused by the screenshot operation on the screenshot quality, effectively improving the accuracy of the screenshot quality evaluation. Furthermore, the screenshot quality evaluation process can be performed in real time during the screenshot operation, eliminating the need for comparison calculations between the original video frame and the screenshot after the screenshot operation is completed, thus avoiding additional information calculation work and improving the efficiency of the screenshot quality evaluation.
[0188] Figure 9This is a schematic diagram illustrating the structure of a computer device according to an exemplary embodiment. The computer device 900 includes a Central Processing Unit (CPU) 901, a system memory 904 including Random Access Memory (RAM) 902 and Read-Only Memory (ROM) 903, and a system bus 905 connecting the system memory 904 and the CPU 901. The computer device 900 also includes a basic input / output system (I / O system) 906 that facilitates information transfer between various components within the computer device, and a mass storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.
[0189] The basic input / output system 906 includes a display 908 for displaying information and an input device 909 for user input, such as a mouse or keyboard. Both the display 908 and the input device 909 are connected to the central processing unit 901 via an input / output controller 910 connected to the system bus 905. The basic input / output system 906 may also include the input / output controller 910 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 910 also provides output to a display screen, printer, or other types of output devices.
[0190] The mass storage device 907 is connected to the central processing unit 901 via a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer device-readable media provide non-volatile storage for the computer device 900. That is, the mass storage device 907 may include computer device-readable media (not shown), such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0191] Without loss of generality, the computer device readable medium may include computer device storage media and communication media. Computer device storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer device readable instructions, data structures, program modules, or other data. Computer device storage media include RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), CD-ROM, digital video disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer device storage media are not limited to the above-mentioned types. The system memory 904 and mass storage device 907 described above can be collectively referred to as memory.
[0192] According to various embodiments of this disclosure, the computer device 900 can also be connected to a remote computer device on a network, such as the Internet. That is, the computer device 900 can be connected to a network 911 via a network interface unit 912 connected to the system bus 905, or it can use the network interface unit 912 to connect to other types of networks or remote computer device systems (not shown).
[0193] The memory also includes one or more programs stored in the memory, and the central processing unit 901 executes the one or more programs to implement all or part of the steps of the above-mentioned three-dimensional brain midline segmentation method.
[0194] This application also provides a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the image quality determination method for screenshots provided in the above method embodiments.
[0195] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the image quality determination method for screenshots provided in the above-described method embodiments.
[0196] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0197] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0198] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for determining the quality of a screenshot, characterized in that, The method includes: In response to a screenshot command, the video frame parameters of the target video frame are obtained. The screenshot command is triggered by a screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process. The video frame parameters include at least one of the following: the number of encoded bits of the target video frame, the video frame resolution, the video encoding parameters, and the average quantization parameters. Based on at least one of the encoded bit count, the video frame resolution, the video encoding parameters, and the average quantization parameters, a first influencing factor of video frame quality on screenshot quality is determined, wherein the video encoding parameters are determined by the video encoding type of the target video frame. A second influencing factor on the screenshot quality is determined, the second influencing factor being determined based on the image compression rate, which is the image compression rate during the process of generating the target screenshot from the target video frame; A third influencing factor on the screenshot quality is determined based on the video bitrate of the source video corresponding to the target video frame and the video frame resolution of the target video frame. Based on the first influence factor, the second influence factor, and the third influence factor, the screenshot quality of the target screenshot obtained by the screenshot operation is determined.
2. The method according to claim 1, characterized in that, The method further includes: Based on the screenshot resolution of the target screenshot, a fourth influencing factor on the screenshot quality is determined; The step of determining the screenshot quality of the target screenshot obtained by the screenshot operation based on the first influence factor, the second influence factor, and the third influence factor includes: The product of the first influence factor, the second influence factor, the third influence factor, and the fourth influence factor is determined as the screenshot quality of the target screenshot obtained by the screenshot operation.
3. The method according to claim 1, characterized in that, The determination of the third influencing factor on the screenshot quality corresponding to the target video frame includes: Obtain the video bitrate of the source video corresponding to the target video frame, and the video frame resolution of the target video frame; Based on the video bitrate and the video frame resolution, the third influence factor of the source video quality on the screenshot quality corresponding to the target video frame is determined.
4. The method according to claim 1, characterized in that, The number of encoded bits is positively correlated with the first influence factor; The video frame resolution is positively correlated with the first influence factor; The average quantification parameter is negatively correlated with the first influence factor; When the video encoding type is I-frame, the video encoding parameter is determined as a first parameter; when the video encoding type is B-frame, the video encoding parameter is determined as a second parameter; when the video encoding type is P-frame, the video encoding parameter is determined as a third parameter, and the first parameter is greater than the second parameter, and the second parameter is greater than the third parameter.
5. The method according to claim 1, characterized in that, The determination of the first influencing factor of video frame quality on screenshot quality based on at least one of the encoded bit count, the video frame resolution, the video encoding parameters, and the average quantization parameters includes: Obtain the first weight of the number of encoded bits, the second weight of the video frame resolution, the third weight of the video encoding parameters, and the fourth weight of the average quantization parameters; Based on the first weight and the number of encoded bits, the video frame resolution and the second weight, the video encoding parameters and the third weight, and the average quantization parameters and the fourth weight, the first influence factor of the video frame quality on the screenshot quality is determined.
6. The method according to claim 1, characterized in that, The video frame parameters for obtaining the target video frame include: When the video frame parameter is the average quantization parameter, obtain the total number of macroblocks into which the target video frame is divided during the video encoding process, and the actual quantization parameter of each macroblock; The average quantization parameter of the target video frame is determined based on the actual quantization parameters of each macroblock and the total number of macroblocks.
7. The method according to any one of claims 1 to 3, characterized in that, The determination of the second influencing factor on screenshot quality by the screenshot operation includes: Obtain the image compression rate during the screenshot operation; The reciprocal of the image compression rate is determined as the second influencing factor of the screenshot operation on the screenshot quality.
8. The method according to claim 7, characterized in that, The process of obtaining the image compression rate during the screenshot operation includes: The actual quantization parameter table corresponding to the target video frame is obtained during the screenshot operation. The actual quantization parameter table is obtained by performing discrete cosine transform on the pixel values in the target video frame. Based on the actual quantization parameter table and the standard quantization parameter table, the image compression rate is determined during the screenshot operation. The standard quantization parameter table is the quantization parameter table used in the image compression process.
9. The method according to any one of claims 1 to 3, characterized in that, The step of obtaining video frame parameters of the target video frame in response to a screenshot command includes: In response to the screenshot command, determine the screenshot time that triggered the screenshot command; Based on the screenshot time and the duration of the source video, the target video frame corresponding to the video frame is determined; Based on the target video frame, obtain the video frame parameters of the target video frame.
10. The method according to any one of claims 1 to 3, characterized in that, The method further includes: During the use of the screenshot function, obtain the real-time image quality of the generated screenshot; If the quality of the real-time image is lower than the quality of the screenshot, it is determined that the screenshot function is malfunctioning.
11. A device for determining the image quality of a screenshot, characterized in that, The device includes: The acquisition module is used to acquire video frame parameters of a target video frame in response to a screenshot command. The screenshot command is triggered by a screenshot operation on the video screen. The target video frame is the video frame corresponding to the video screen. The video frame parameters are parameters that affect the quality of the video frame during the video encoding and decoding process. The video frame parameters include at least one of the following: the number of encoded bits of the target video frame, the video frame resolution, the video encoding parameters, and the average quantization parameters. The determining module is configured to determine a first influence factor of video frame quality on screenshot quality based on at least one of the encoded bit count, the video frame resolution, the video encoding parameters, and the average quantization parameters, wherein the video encoding parameters are determined by the video encoding type of the target video frame. The determining module is further configured to determine a second influencing factor on the screenshot quality of the screenshot operation. The second influencing factor is determined based on the image compression rate, which is the image compression rate generated during the process of generating the target screenshot from the target video frame. The determining module is further configured to determine a third influence factor of the source video quality corresponding to the target video frame on the screenshot quality, wherein the third influence factor is determined based on the video bitrate of the source video corresponding to the target video frame and the video frame resolution of the target video frame; The determining module is further configured to determine the screenshot quality of the target screenshot obtained by the screenshot operation based on the first influence factor, the second influence factor, and the third influence factor.
12. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the image quality determination method for screenshots as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is loaded and executed by a processor to implement the image quality determination method for screenshots as described in any one of claims 1 to 10.
14. A computer program product, characterized in that, The computer program product stores a computer program that is loaded and executed by a processor to implement the image quality determination method for screenshots as described in any one of claims 1 to 10.