Image processing method, device, computer equipment and readable storage medium

By calculating the difference information between multiple frames of images and clustering processing, the problem of low accuracy in detecting image anomalies in the existing technology is solved, and more accurate abnormal image analysis is achieved.

CN115082400BActive Publication Date: 2024-10-18BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 18 Cites 0 Cited by

Patent Information

Application Number
CN202210706865.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2024-10-18
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

The existing technology has low accuracy when detecting whether there is an abnormality in the picture displayed by the terminal device. In particular, the method of comparing pixels one by one can easily lead to false alarms, and the OpenCV calculation of image difference cannot accurately mark where the image is different, resulting in detection The results are less accurate.

Method used

By acquiring multiple frames of images to be detected, based on the preset pixel value difference threshold, the difference information between the images is calculated, the ratio of the area of ​​the difference area to the area of ​​the complete image is characterized, and the presence is determined through clustering and binarization processing Abnormal target images improve analysis accuracy.

Benefits of technology

It improves the accuracy of analyzing abnormal images, reduces the false alarm rate, and accurately marks abnormal areas of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082400B_ABST
    Figure CN115082400B_ABST
Patent Text Reader

Abstract

The present disclosure provides an image processing method, device, computer equipment and readable storage medium, wherein the method comprises: obtaining multiple frames of images to be detected; for each frame of the images to be detected, determining the difference information between the frame of the images to be detected and other images to be detected based on a preset pixel value difference threshold; the difference information is used to characterize the ratio of the difference area of ​​any two images to the area of ​​the complete image; based on the difference information corresponding to the multiple frames of the images to be detected, determining the target image with abnormalities from the multiple frames of images to be detected. The embodiment of the present disclosure improves the accuracy of analysis of abnormal images by utilizing the difference information between multiple frames of images to be detected with a preset pixel value difference threshold, and determining the target image with abnormalities based on the difference information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to an image processing method, apparatus, computer equipment, and readable storage medium. Background Art

[0002] In many scenarios, such as games and page rendering, it is necessary to detect display anomalies on the screen displayed by the terminal device and determine the cause of the display anomaly. In the related art, the method of determining whether there is an abnormality in the screen is usually to compare the pixel values ​​of the screen displayed by the terminal device with the standard screen one by one to determine whether there is an abnormality in the displayed screen. This method has the problem of low accuracy. Summary of the invention

[0003] The embodiments of the present disclosure at least provide an image processing method, apparatus, computer equipment, and readable storage medium.

[0004] In a first aspect, an embodiment of the present disclosure provides an image processing method, including:

[0005] Acquire multiple frames of images to be detected;

[0006] For each frame of the image to be detected, based on a preset pixel value difference threshold, determine the difference information between the frame of the image to be detected and other images to be detected; the difference information is used to characterize the ratio of the difference area of ​​any two images to the area of ​​the complete image;

[0007] Based on the difference information respectively corresponding to the multiple frames of the images to be detected, a target image with abnormality is determined from the multiple frames of the images to be detected.

[0008] In an optional implementation manner, the step of determining the target image with abnormality from the multiple frames of images to be detected based on the difference information respectively corresponding to the multiple frames of images to be detected includes:

[0009] Based on the difference between each frame of the image to be detected and other images to be detected, the difference is clustered to obtain multiple difference classifications; each difference classification includes: multiple differences;

[0010] Determine a target difference degree classification from a plurality of difference degree classifications; wherein the values ​​of each target difference degree included in the target difference degree classification are greater than the values ​​of the differences included in the non-target difference degree classification;

[0011] The target image is determined based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification.

[0012] In an optional implementation manner, the determining the target image based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification includes:

[0013] Determine the selectable image based on the first image to be detected and the second image to be detected corresponding to each difference in the target difference classification;

[0014] and counting the number of target differences corresponding to the optional images;

[0015] The target image is determined from the optional images based on the number of target difference degrees respectively corresponding to the optional images of each frame.

[0016] In an optional implementation manner, the acquiring of multiple frames of images to be detected includes:

[0017] Under the preset posture conditions in the target virtual scene, multiple frames of candidate images are obtained;

[0018] Based on attribute information corresponding to multiple frames of candidate images, the image to be detected is determined from the multiple frames of candidate images; wherein the attribute information includes at least one of the following: device configuration information of a terminal device for acquiring the candidate image, and resolution of the candidate image.

[0019] In an optional implementation manner, for each frame of the image to be detected, determining the difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold includes:

[0020] Determine a difference image based on the first pixel values ​​corresponding to the first pixel points in each frame of the image to be detected and the second pixel values ​​corresponding to the second pixel points in each frame of the other image to be detected; the third pixel value of any third pixel point in the difference image is the absolute value of the difference between the first pixel value of the first pixel point at the corresponding position and the second pixel value of the second pixel point at the corresponding position;

[0021] Based on the third pixel values ​​respectively corresponding to the third pixel points in the difference image and a preset pixel value difference threshold, the difference between each frame of the image to be detected and each frame of the other images to be detected is determined.

[0022] In an optional implementation, the determining the difference between each frame of the image to be detected and each frame of the other images to be detected based on the pixel values ​​corresponding to each third pixel point in the difference image and a preset pixel value difference threshold comprises:

[0023] Based on the third pixel values ​​respectively corresponding to each third pixel point in the difference image and the preset pixel value difference threshold, a difference image is generated; the fourth pixel value of each fourth pixel point in the difference image is used to characterize the magnitude relationship between the third pixel value of the third pixel point at the corresponding position and the preset pixel value difference threshold;

[0024] Convert the difference image into a grayscale image, and binarize the grayscale image to obtain a binary image;

[0025] The fifth pixel value of each fifth pixel point in the binary image represents whether there is a difference between a first pixel point and a second pixel point whose position corresponds to the fifth pixel point;

[0026] Based on the fifth pixel value of each fifth pixel point in the binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

[0027] In an optional implementation manner, the pixel value corresponding to each pixel point in the difference map includes: a pixel value corresponding to each data channel in a plurality of data channels;

[0028] The generating of the difference image based on the third pixel values ​​respectively corresponding to the third pixel points in the difference image and a preset pixel value difference threshold comprises:

[0029] For each pixel point in the difference image, compare the pixel point with the pixel values ​​respectively corresponding to the plurality of data channels and the preset pixel value difference threshold;

[0030] In response to a pixel value of any pixel point in any data channel being greater than the preset pixel value difference threshold, determining a difference value corresponding to the any pixel point in the any data channel as a first value;

[0031] In response to the pixel value of any pixel point in any data channel being less than or equal to the preset pixel value difference threshold, determining the difference value corresponding to any pixel point in the any data channel as a second value;

[0032] The difference image is constructed based on the difference values ​​of each pixel in the difference image under multiple data channels.

[0033] In an optional implementation, the generating, based on the fifth pixel value of each fifth pixel point in the binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected includes:

[0034] Based on the fifth pixel value of each fifth pixel point in the binary image, the binary image is corroded and expanded to obtain a target binary image;

[0035] Based on the sixth pixel value of each sixth pixel point in the target binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

[0036] In an optional implementation, the method further includes: determining abnormality cause information of the target image based on difference information corresponding to the target image.

[0037] In an optional implementation, determining the abnormality cause information of the target image based on the difference information corresponding to the target image includes:

[0038] Determine a mean value of the difference between the target image and multiple frames of other images to be detected;

[0039] Comparing the difference mean with a preset difference threshold;

[0040] Based on the comparison result of the difference mean and the preset difference threshold, the abnormal cause information is determined.

[0041] In an optional implementation, the difference mean value includes: a first difference mean value, and a second difference mean value determined for the target image under a condition where illumination is removed;

[0042] The determining the abnormal cause information based on the comparison result of the difference mean and the preset difference threshold includes:

[0043] In response to the first difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as a missing texture;

[0044] In response to the first difference mean being less than or equal to the difference threshold, and the second difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as model missing;

[0045] In response to the second difference mean being less than or equal to the difference threshold, the abnormality cause information corresponding to the target image is determined as abnormality in art resource performance.

[0046] In a second aspect, an embodiment of the present disclosure provides an image processing device, including:

[0047] An acquisition module, used for acquiring multiple frames of images to be detected;

[0048] A first determination module is used to determine, for each frame of the image to be detected, difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold; the difference information is used to characterize the ratio of the difference area of ​​any two images to the area of ​​the complete image;

[0049] The second determination module is used to determine the target image with abnormality from the multiple frames of images to be detected based on the difference information respectively corresponding to the multiple frames of images to be detected.

[0050] In an optional implementation manner, the acquisition module is specifically used to:

[0051] Under the preset posture conditions in the target virtual scene, multiple frames of candidate images are obtained;

[0052] Based on attribute information corresponding to multiple frames of candidate images, the image to be detected is determined from the multiple frames of candidate images; wherein the attribute information includes at least one of the following: device configuration information of a terminal device for acquiring the candidate image, and resolution of the candidate image.

[0053] In an optional implementation manner, the second determining module includes:

[0054] A clustering unit is used to cluster the difference between each frame of the image to be detected and other images to be detected to obtain a plurality of difference classifications based on the difference between the image to be detected and other images to be detected; each difference classification includes: a plurality of difference;

[0055] A third determining unit is used to determine a target difference degree classification from a plurality of difference degree classifications; wherein the values ​​of each target difference degree included in the target difference degree classification are greater than the values ​​of the differences included in the non-target difference degree classification;

[0056] The fourth determining unit is used to determine the target image based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification.

[0057] In an optional implementation manner, the fourth base determination unit is specifically configured to:

[0058] Determine the selectable image based on the first image to be detected and the second image to be detected corresponding to each difference in the target difference classification;

[0059] and counting the number of target differences corresponding to the optional images;

[0060] The target image is determined from the optional images based on the number of target difference degrees respectively corresponding to the optional images of each frame.

[0061] In an optional implementation manner, the first determining module includes:

[0062] A first determining unit is used to determine a difference image based on first pixel values ​​corresponding to each first pixel point in each frame of the image to be detected, and second pixel values ​​corresponding to each second pixel point in each frame of the other images to be detected; a third pixel value of any third pixel point in the difference image is an absolute value of a difference between a first pixel value of a first pixel point at a corresponding position and a second pixel value of a second pixel point at a corresponding position;

[0063] The second determination unit is used to determine the difference between each frame of the image to be detected and each frame of the other images to be detected based on the third pixel values ​​corresponding to each third pixel point in the difference image and a preset pixel value difference threshold.

[0064] In an optional implementation manner, the second determining unit includes:

[0065] A generating subunit, configured to generate a difference image based on the third pixel values ​​respectively corresponding to the respective third pixel points in the difference image and a preset pixel value difference threshold; the fourth pixel value of each fourth pixel point in the difference image is used to characterize the magnitude relationship between the third pixel value of the third pixel point at the corresponding position and the preset pixel value difference threshold;

[0066] a conversion subunit, configured to convert the difference image into a grayscale image, and binarize the grayscale image to obtain a binary image; a fifth pixel value of each fifth pixel point in the binary image represents whether there is a difference between a first pixel point corresponding to the fifth pixel point and a second pixel point;

[0067] A generating subunit is used to generate the difference between each frame of the image to be detected and each frame of the other images to be detected based on the fifth pixel value of each fifth pixel point in the binary image.

[0068] In an optional implementation manner, the pixel value corresponding to each pixel point in the difference map includes: a pixel value corresponding to each data channel in a plurality of data channels;

[0069] The generating subunit is specifically used for:

[0070] For each pixel point in the difference image, compare the pixel point with the pixel values ​​respectively corresponding to the plurality of data channels and the preset pixel value difference threshold;

[0071] In response to a pixel value of any pixel point in any data channel being greater than the preset pixel value difference threshold, determining a difference value corresponding to the any pixel point in the any data channel as a first value;

[0072] In response to the pixel value of any pixel point in any data channel being less than or equal to the preset pixel value difference threshold, determining the difference value corresponding to any pixel point in the any data channel as a second value;

[0073] The difference image is constructed based on the difference values ​​of each pixel in the difference image under multiple data channels.

[0074] In an optional implementation manner, the second determining unit is specifically configured to:

[0075] Based on the fifth pixel value of each fifth pixel point in the binary image, the binary image is corroded and expanded to obtain a target binary image;

[0076] Based on the sixth pixel value of each sixth pixel point in the target binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

[0077] In an optional implementation, the device further includes:

[0078] The third determination module is used to determine the abnormality cause information of the target image based on the difference information corresponding to the target image.

[0079] In an optional implementation, the third determining module includes:

[0080] A fifth determining unit, configured to determine a mean value of the degree of difference corresponding to the target image based on the degrees of difference respectively corresponding to the target image and a plurality of frames of other images to be detected;

[0081] A comparison unit, used for comparing the difference mean with a preset difference threshold;

[0082] The sixth determining unit is used to determine the abnormal cause information based on the comparison result of the difference mean and a preset difference threshold.

[0083] In an optional implementation, the difference mean value includes: a first difference mean value, and a second difference mean value determined for the target image under a condition where illumination is removed;

[0084] The sixth determining unit is specifically configured to:

[0085] In response to the first difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as a missing texture;

[0086] In response to the first difference mean being less than or equal to the difference threshold, and the second difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as model missing;

[0087] In response to the second difference mean being less than or equal to the difference threshold, the abnormality cause information corresponding to the target image is determined as abnormality in art resource performance.

[0088] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.

[0089] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.

[0090] An image processing method, apparatus, computer device and readable storage medium provided by the embodiments of the present disclosure utilize a preset pixel value difference threshold to obtain difference information between multiple frames of images to be detected. The difference is used to characterize the ratio of the area of ​​the difference region between any two images to the area of ​​the complete image, and to determine the target image with abnormalities based on the difference information, so as to improve the accuracy of analysis of abnormal images.

[0091] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0093] Figure 1 A flowchart of an image processing method provided by an embodiment of the present disclosure is shown;

[0094] Figure 2 A flowchart of another image processing method provided by an embodiment of the present disclosure is shown;

[0095] Figure 3A schematic diagram of an image processing device provided by an embodiment of the present disclosure is shown;

[0096] Figure 4 A specific schematic diagram of a first determination module in the image processing device provided by an embodiment of the present disclosure is shown;

[0097] Figure 5 A specific schematic diagram of a second determination unit in the first determination module provided in an embodiment of the present disclosure is shown;

[0098] Figure 6 A specific schematic diagram of a second determination module in the image processing device provided by an embodiment of the present disclosure is shown;

[0099] Figure 7 A schematic diagram showing another image processing device provided by an embodiment of the present disclosure;

[0100] Figure 8 A specific schematic diagram of a third determination module in another image processing device provided by an embodiment of the present disclosure is shown;

[0101] Fig. 9 A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0102] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0103] According to research, in order to detect whether an image has abnormal display, the image to be detected can be compared with the standard image, and based on the comparison results, it can be determined whether the image to be detected has abnormalities. For example, the method of comparing each pixel of the two images one by one, when the pixel value of the pixel in any color channel is inconsistent, this pixel is marked, and when all the pixels are compared, the differences can be obtained on the image; you can also use the method provided by the cross-platform computer vision library (Open Source Computer Vision Library, OpenCV) to compare images and calculate the difference, such as histogram comparison, hash algorithm, etc., to compare the standard image with the image obtained by automated testing. If the difference is too large, it is determined that the test image screen performance is abnormal. However, the above methods all have certain shortcomings. For the pixel-by-pixel comparison method, each different pixel will be marked, even if there is only a slight difference in the RGB value of the pixel. Because the test image cannot be guaranteed to be completely consistent with the standard Figure 1 Because the images are exactly the same, there are often many false positives, resulting in low accuracy of the detection results. In addition, using OpenCV to calculate the difference between images, on the one hand, it is not possible to accurately mark where the images are different, and on the other hand, many small differences will cause drastic fluctuations in the difference, affecting the judgment results and also resulting in low accuracy of the detection results. Therefore, the current detection methods for abnormal image display all have the problem of low accuracy.

[0104] Based on the above research, the present disclosure provides an image processing method, which utilizes the difference information between multiple frames of images to be detected with a preset pixel value difference threshold. The difference is used to characterize the ratio of the area of ​​the difference region between any two images to the area of ​​the complete image, and determines the target image with abnormalities based on the difference information to improve the analysis accuracy of abnormal images.

[0105] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0106] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0107] To facilitate understanding of this embodiment, an image processing method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the image processing method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities. In some possible implementations, the image processing method can be implemented by a processor.

[0108] The image processing method provided by the embodiment of the present disclosure is described below by taking the execution subject as a terminal device as an example.

[0109] See also Figure 1 FIG. 1 is a flowchart of an image processing method provided by an embodiment of the present disclosure, wherein the method comprises steps S101 to S103, wherein:

[0110] S101: Acquire multiple frames of images to be detected.

[0111] The image to be detected may be an image, a video frame capture, a game interface frame capture, etc.

[0112] Exemplarily, taking the application of the image processing method provided by the embodiment of the present disclosure in the game development process as an example, in order to detect whether there is any display abnormality in the game interface, the game interface can be captured for analysis to determine the display status of the game interface.

[0113] In a possible implementation, the method for acquiring multiple frames of images to be detected includes the following steps 1 to 1:

[0114] Step 11: Under preset pose conditions in the target virtual scene, obtain multiple frames of candidate images.

[0115] The candidate image is a captured image to be detected.

[0116] For example, taking the image detection during game development as an example, the same picture may show huge differences in artistic expression in different devices of the same grade. For example, in standard development equipment, the dark blue sky will be displayed as light blue or even gray in other devices; there may also be missing textures and models. At this time, under the preset posture conditions in the target virtual scene, multiple frames of alternative images are obtained through the virtual camera. For example, the virtual camera located in the game scene will be adjusted to the preset posture conditions as much as possible through the automated test script, so that the angles of the game characters, weather and other factors in the alternative images obtained in different terminal devices are adjusted to be consistent. Then, the image to be detected is determined from the multiple frames of alternative images.

[0117] Step 12: Based on the attribute information corresponding to multiple frames of alternative images, determine the image to be detected from the multiple frames of alternative images; wherein the attribute information includes at least one of the following: device configuration information of the terminal device for obtaining the alternative image, and the resolution of the alternative image.

[0118] Specifically, the candidate images may be grouped based on the configuration information of the device generating the candidate images and the resolution information of each frame of the candidate images to obtain a plurality of candidate image groups.

[0119] In the disclosed embodiment, before processing multiple frames of candidate images, the device configuration information of the terminal device of the candidate images is obtained. Specifically, the devices can be grouped according to different models and grades. The model grade is classified according to the game configuration. The grade of the current test device can be obtained from the game interface, for example, it is divided into seven grades: very high, high, medium-high, medium, medium-low, low, and very low. For each model grade of the candidate images, they are further divided into several groups according to the resolution of the candidate images.

[0120] When the candidate images are divided into several groups according to resolution, for example, they are divided into four groups according to the following rules, with similar resolutions forming one group: (1) resolution including 720; (2) resolution including 1080 and the sum of the length and width of the resolution is less than 3250; (3) resolution including 1080 and the sum of the length and width of the resolution is greater than 3250 (4) other resolutions. This is because when the resolution difference is too large, the comparison error caused by comparing images of different resolutions will be relatively large, so the candidate images should be grouped according to the resolution. The resolution of mobile terminal devices is roughly divided into xxxx*720, xxxx*1080, xxxx*1120 (1140\1200) and other resolutions. Among them, the mobile terminal devices with xxxx*1080 account for the largest proportion, and the width ranges from 1920 to 2400. Therefore, it can be divided into two groups with 2170 as the boundary, so that the number of mobile terminal devices in each group is roughly the same, so it can be divided into 4 groups. At the same time, too many groups may easily lead to too few mobile terminal devices in each group for comparison, and too few may lead to large errors.

[0121] In another possible embodiment, according to the prior condition that "abnormal images are in the minority", the candidate images corresponding to the mobile terminal devices of the same grade and similar resolution are grouped into one group, and the candidate images in the same group are determined as the images to be detected, so that the images to be detected in the same group are compared two by two. Before this, the candidate images with obvious differences can be screened out, and the candidate images are judged to have obvious abnormalities in the screen performance and deleted, so as to reduce the number of comparisons and save processing resources.

[0122] In another embodiment, for each group obtained, the number of alternative images in the group can also be detected; if the number of alternative images is less than a preset number threshold, the alternative images in the group will not be detected; if the number of alternative images in a group is greater than or equal to the preset number threshold, the alternative images in the group are all determined as images to be detected, and the image processing process described in the embodiment of the present disclosure is performed on each image to be detected in the group.

[0123] In addition, the number of devices to which the candidate images in each group belong may also be determined; based on the number of devices, it is determined whether to use the candidate images in the corresponding group as the images to be detected.

[0124] Exemplary, only the groupings with the number of devices greater than 4 can be compared in pairs. Since the image detection strategy in the present embodiment is to compare the images to be detected in pairs in the grouping, and then analyze the images to be detected for the difference information, when the number of devices is 3 (a, b, c), there are only three comparison results of ab, ac, and bc, and the significance of the analysis result is not great. When the number of devices is 4, there are 6 comparison results, which can be analyzed and judged in theory, but in fact the effect is not good, and only when the difference is very obvious can it be identified and screened out, and there is a situation of underreporting. So in general, if it is found that there is a grouping of 4 devices, another device of the grouping can be added during the test to obtain the images to be detected corresponding to 5 devices respectively, and then compared to ensure the accuracy of the test result.

[0125] Following the above S101, the image processing method provided in the embodiment of the present disclosure further includes:

[0126] S102: For each frame of the image to be detected, based on a preset pixel value difference threshold, determining difference information between the frame of the image to be detected and other images to be detected.

[0127] The difference information includes: the difference between the frame of the image to be detected and other images to be detected; the difference is used to represent the ratio of the difference area between any two images to be detected to the area of ​​the complete image.

[0128] In the embodiments of the present disclosure, for example, a pairwise comparison detection method may be used. Specifically, any image to be detected may be compared with all other images to be detected one by one to determine multiple difference information, which are the difference information corresponding to the image to be detected.

[0129] In one possible implementation, before comparing the images to be detected, the two frames of the images to be detected can be cropped to ensure that the width and height of the two frames of the images to be detected are consistent, which is convenient for the subsequent comparison process. Specifically, the two frames of the images to be detected are scaled so that the resolutions of the two frames of the images to be detected are basically consistent, and then the two images to be detected after the scaling are center-aligned, and the redundant parts around the image to be detected with a larger resolution are cropped, so that the resolutions of the two frames of the images to be detected are consistent, and there is no large deviation in the displayed image.

[0130] In the embodiment of the present disclosure, determining the difference information between each frame of the image to be detected and other images to be detected includes:

[0131] Determine a difference image based on the first pixel values ​​corresponding to the first pixel points in each frame of the image to be detected and the second pixel values ​​corresponding to the second pixel points in each frame of the other image to be detected; the third pixel value of any third pixel point in the difference image is the absolute value of the difference between the first pixel value of the first pixel point at the corresponding position and the second pixel value of the second pixel point at the corresponding position;

[0132] Based on the third pixel values ​​respectively corresponding to the third pixel points in the difference image and a preset pixel value difference threshold, the difference between each frame of the image to be detected and each frame of the other images to be detected is determined.

[0133] Among them, taking the image to be detected as an RGB image as an example, the first pixel value corresponding to the first pixel point and the second pixel value corresponding to the second pixel point refer to the RGB value of the image. RGB is the three primary colors of light, namely red, green and blue, and their maximum value is 255. The RGB value of white is expressed as rgb (255, 255, 255), and the RGB value of black is expressed as rgb (0, 0, 0). By adjusting the relevant numbers, various colors of different shades can be obtained. By subtracting the RGB matrices of the two frames of images and taking their absolute values, a difference image can be obtained.

[0134] In the embodiment of the present disclosure, after the difference image is obtained, the following method can be used to determine the difference between each frame of the image to be detected and each frame of the other image to be detected based on the pixel values ​​corresponding to each third pixel point in the difference image and the preset pixel value difference threshold:

[0135] Based on the third pixel values ​​respectively corresponding to each third pixel point in the difference image and the preset pixel value difference threshold, a difference image is generated; the fourth pixel value of each fourth pixel point in the difference image is used to characterize the magnitude relationship between the third pixel value of the third pixel point at the corresponding position and the preset pixel value difference threshold;

[0136] Convert the difference image into a grayscale image, and binarize the grayscale image to obtain a binary image;

[0137] The fifth pixel value of each fifth pixel point in the binary image represents whether there is a difference between a first pixel point and a second pixel point whose position corresponds to the fifth pixel point;

[0138] Based on the fifth pixel value of each fifth pixel point in the binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

[0139] The pixel values ​​corresponding to each pixel point in the difference image include: the pixel values ​​corresponding to each data channel in the multiple data channels. In this embodiment, the multiple data channels can be RGB channels of the image, and the pixel values ​​corresponding to each data channel are RGB values ​​of the image.

[0140] The generating of the difference image based on the third pixel values ​​respectively corresponding to the third pixel points in the difference image and a preset pixel value difference threshold comprises:

[0141] For each pixel point in the difference image, compare the pixel point with the pixel values ​​respectively corresponding to the plurality of data channels and the preset pixel value difference threshold;

[0142] In response to a pixel value of any pixel point in any data channel being greater than the preset pixel value difference threshold, determining a difference value corresponding to the any pixel point in the any data channel as a first value;

[0143] In response to the pixel value of any pixel point in any data channel being less than or equal to the preset pixel value difference threshold, determining the difference value corresponding to any pixel point in the any data channel as a second value;

[0144] The difference image is constructed based on the difference values ​​of each pixel in the difference image under multiple data channels.

[0145] For example, assuming that the preset pixel value difference threshold is 25, when the RGB matrices of the two frames of images are subtracted and their absolute values ​​are taken, the absolute value is compared with the preset pixel value difference threshold 25, and a first value and a second value are determined. For example, when the absolute value data is less than or equal to 25, the first value is determined to be 0, and when the absolute value data is greater than 25, the second value is determined to be 255, thereby obtaining a difference image with only two values. After obtaining the difference image, the difference image can be converted into a grayscale image, and then the grayscale image is binarized to obtain a binary image.

[0146] Specifically, the method for comparing two images to be detected may include: subtracting the RGB values ​​of the RGB three channels corresponding to each pixel and taking the absolute value, that is, subtracting the RGB matrices corresponding to the two images to be detected and taking the absolute value, and obtaining the processed RGB difference matrix (i.e., difference image). Here, it is considered that the values ​​less than 25 in the difference matrix are no difference, which is determined to be 0, and the values ​​greater than 25 in the matrix are considered to be different, which is determined to be 255, thereby converting into a difference image including only two values. When the RGB difference of each channel of the RGB three channels of a certain pixel is less than 25, that is, the pixel finally becomes black, and it can be considered that there is no difference between the two images to be detected.

[0147] For example, the RGB values ​​of the two images to be detected are (145, 123, 156) and (145, 120, 100), respectively. The absolute value of the difference is (0, 3, 56). If the difference is less than 25, it is 0, and if it is greater than 25, it is 255, and finally (0, 0, 255). According to the calculation formula Gray = R*0.3+G*0.59+B*0.11, it is converted into a grayscale image, and the grayscale value of the point is 8. After that, it is binarized, and all grayscale values ​​greater than 0 are changed to 255. The screen effect is that all non-black points are turned white, and white represents the position where the two frames of the images to be detected have differences. Therefore, the difference information refers to the proportion of white pixels in the image.

[0148] In another possible embodiment, the invention further includes: converting the grayscale image into a black-and-white image through binarization processing, and performing image comparison, which can be achieved by calling corresponding image conversion functions and image comparison functions.

[0149] In a possible implementation, generating the difference between each frame of the image to be detected and each frame of the other images to be detected based on the fifth pixel value of each fifth pixel point in the binary image includes:

[0150] Based on the fifth pixel value of each fifth pixel point in the binary image, the binary image is corroded and expanded to obtain a target binary image;

[0151] Based on the sixth pixel value of each sixth pixel point in the target binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

[0152] Among them, the row erosion and expansion can turn some free scattered white points into black points, which means ignoring these scattered differences. This step can ignore the influence of some scattered points on the abnormal detection results and reduce errors.

[0153] Following the above S102, the image processing method provided in the embodiment of the present disclosure further includes:

[0154] S103: Based on the difference information respectively corresponding to the multiple frames of the images to be detected, determine the target image with abnormality from the multiple frames of the images to be detected.

[0155] In the disclosed embodiment, in order to detect whether the image has abnormal display, the image comparison can be used as a basis to perform operations of different dimensions on the image to be detected. For example, the two python libraries of the cross-platform computer vision library (OpenSource Computer Vision Library, OpenCV) and the extension library (Numerical Python, NumPy) can be used for image processing. On the other hand, the clustering (KMeans) algorithm in the free software machine learning library (Scikit-learn, sklearn) can be used to compare image classification, so as to screen and mark abnormal images. Among them, the contour detection (find Contours) algorithm of OpenCV can be used for contour extraction and contour area calculation, and the color space conversion (cvt Color) algorithm can be used for color space conversion, such as converting the image format from RGB color mode to GRAY color mode or YCrCb color mode. NumPy supports a large number of high-order dimensional arrays and matrix operations, and also provides a large number of mathematical function libraries for array operations. In the disclosed embodiment, NumPy is mainly used to calculate and transform the image matrix, ignoring the subtle differences between the two comparison pictures. Sklearn is a free software machine learning library for Python language, which has a rich set of machine learning algorithms, such as various classification, regression and clustering algorithms. The disclosed embodiment mainly uses the KMeans algorithm in sklearn to classify comparative images, classify images that are obviously different from other images into one category, and judge them as abnormal images.

[0156] In the embodiment of the present disclosure, for example, the following method can be used to determine the target image with abnormality from the multiple frames of images to be detected based on the difference information corresponding to the multiple frames of images to be detected respectively:

[0157] Based on the difference between each frame of the image to be detected and other images to be detected, the difference is clustered to obtain multiple difference classifications; each difference classification includes: multiple differences;

[0158] Determine a target difference degree classification from a plurality of difference degree classifications; wherein the values ​​of each target difference degree included in the target difference degree classification are greater than the values ​​of the differences included in the non-target difference degree classification;

[0159] The target image is determined based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification.

[0160] Clustering the differences refers to analyzing the multiple differences to determine a difference classification whose values ​​of the differences meet a preset standard.

[0161] Specifically, cluster analysis may be performed on the multiple differences according to the values ​​of the differences to obtain multiple categories; and a difference set with the largest value among the multiple difference sets is selected as the difference category.

[0162] Exemplarily, the difference information can be divided into three categories, namely: no difference, slight difference due to objective factors, and significant difference. Suppose there are N images to be detected, and they are compared pairwise, M = N*(N-1) / 2 difference results will be obtained. The difference classification is performed using OpenCV's Kmeans algorithm: the difference is divided into three difference classifications, ABC, from small to large. Class A has the smallest difference, which means that there is no difference between the two frames of images to be detected. Class B means that there is a certain difference between the two frames of images to be detected, but it is within an acceptable range. Class C has the largest difference, which means that the two frames of images to be detected are very different, and one of the frames of images to be detected has an abnormal picture performance. At this time, Class C can be used as the target difference classification.

[0163] In another embodiment, when the difference between the differences of categories A and B is larger than the difference between categories B and C, the M difference results can be re-divided into two difference categories, D and E, where the difference of category D is smaller, indicating that there is no difference or very small difference between the two frames of images to be detected; the difference of category E is larger, and one of the frames of images to be detected has abnormal picture performance. At this time, category E can be used as the target difference classification.

[0164] The difference degree corresponding to each difference degree category is, for example, the mean value of all the differences under the difference degree category.

[0165] In the embodiment of the present disclosure, after the target difference classification is determined, two frames of images to be detected corresponding to each difference in the target difference classification, namely, the first image to be detected and the second image to be detected, can be determined.

[0166] The embodiment of the present disclosure may, for example, determine the target image in the following manner based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification:

[0167] Determine the selectable image based on the first image to be detected and the second image to be detected corresponding to each difference in the target difference classification;

[0168] and counting the number of target differences corresponding to the optional images;

[0169] The target image is determined from the optional images based on the number of target difference degrees respectively corresponding to the optional images of each frame.

[0170] Exemplarily, the classification with the largest difference can be analyzed. If a certain optional image has been compared with more than a certain proportion of the total number of optional images in the difference classification, that is, in the difference classification, more than a certain proportion of the difference information corresponds to the optional image, then it is considered that the optional image is different from most of the optional images and is an abnormal image with abnormal screen performance. For example, if a certain frame of optional image has been compared with more than two-thirds of the total number of optional images in the difference classification, then it is considered that the optional image is different from most of the optional images. The above method can be used to determine abnormal images with abnormalities, and this determination method does not limit the cause of the abnormality, and can analyze and judge a variety of abnormal causes to improve the accuracy of the analysis of abnormal images.

[0171] See also Figure 2 FIG. 2 is a flowchart of another image processing method provided by an embodiment of the present disclosure, wherein the method includes steps S201 to S204, wherein:

[0172] S201: Acquire multiple frames of images to be detected;

[0173] S202: for each frame of the image to be detected, determining difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold; the difference information is used to characterize the ratio of the difference area between any two images to the area of ​​the complete image;

[0174] S203: Based on the difference information respectively corresponding to the multiple frames of the images to be detected, determine the target image with abnormality from the multiple frames of the images to be detected.

[0175] Among them, the description of step S201 to step S203 can refer to the description of step S101 to step S103, and can achieve the same technical effect, which will not be repeated here.

[0176] S204: Determine abnormality cause information of the target image based on the difference information corresponding to the target image.

[0177] The abnormal reason information includes one or more of the following: texture missing abnormality, model missing abnormality, and art resource performance abnormality.

[0178] In the embodiment of the present disclosure, for example, the abnormality cause information of the target image may be determined based on the difference information corresponding to the target image in the following manner:

[0179] Determine a mean value of the difference between the target image and multiple frames of other images to be detected;

[0180] Comparing the difference mean with a preset difference threshold;

[0181] Based on the comparison result of the difference mean and the preset difference threshold, the abnormal cause information is determined.

[0182] Exemplarily, since the target image is different from other images in multiple frames, and the degree of difference varies, in order to reduce individual differences, multiple difference information can be averaged, and compared with the difference threshold based on the difference mean to determine the cause of the difference information.

[0183] Specifically, the difference mean value includes: a first difference mean value, and a second difference mean value determined for the target image under the condition of removing illumination;

[0184] The determining the abnormal cause information based on the comparison result of the difference mean and the preset difference threshold includes:

[0185] In response to the first difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as a missing texture;

[0186] In response to the first difference mean being less than or equal to the difference threshold, and the second difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as model missing;

[0187] In response to the second difference mean being less than or equal to the difference threshold, the abnormality cause information corresponding to the target image is determined as abnormality in art resource performance.

[0188] Exemplarily, a black outline of the abnormal image may be extracted; and a contour ratio of a contour area of ​​the black outline to an image area is determined;

[0189] If the contour ratio is greater than a preset contour ratio threshold, it is determined that the abnormality type corresponding to the abnormal image is a texture missing abnormality.

[0190] In addition, the illumination channel intensities of the abnormal image and the reference image may be adjusted to be consistent;

[0191] If the difference between the abnormal image and the reference image exceeds a preset difference threshold, determining that the abnormality type corresponding to the abnormal image is a model missing abnormality;

[0192] If the difference between the abnormal image and the reference image does not exceed a preset difference threshold, it is determined that the abnormal type corresponding to the abnormal image is an abnormal performance of an art resource.

[0193] Exemplarily, OpenCV can be used to extract pure black from abnormal images, that is, convert the RGB value to (0,0,0,), so as to determine whether the black block abnormality is caused by the mapping. If it is determined that the non-mapping abnormality is present, the abnormal image is converted to the YCrCb color mode, where the Y channel is the illumination channel, and the Y channel adjustment value can be kept consistent with the Y channel of the non-abnormal image, and then the abnormal image after adjusting the Y channel is converted back to the RGB mode, and the abnormal image and other non-abnormal images are re-compared, and then it can be determined whether the model is missing. When the Y channel is consistent, the illumination of the abnormal image and the non-abnormal image will become the same. If there are other differences at this time, it means that the model is missing. Here, keeping the Y channel consistent means adjusting the brightness of the abnormal image and the non-abnormal image to be consistent, converting the abnormal image and the non-abnormal image to the YCrCb color mode, and determining the brighter image, that is, the image with a larger Y channel mean, and replacing the Y channel of the other darker image with the Y channel of the brighter image, so that the illumination of the two images is the same, and then converting back to the RGB mode for comparison to obtain the difference information.

[0194] In the disclosed embodiment, the above method can be used to mark the specific reasons for abnormality in the image, which include, for example, missing models, missing textures, or abnormal image performance; abnormal image performance includes, for example, abnormal color performance, abnormal lighting performance, etc.

[0195] The disclosed embodiment utilizes the difference information between multiple frames of images to be detected based on a preset pixel value difference threshold. The difference is used to characterize the ratio of the area of ​​the difference region between any two images to the area of ​​the complete image, and determines the target image with abnormalities based on the difference information to improve the accuracy of analysis of abnormal images.

[0196] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0197] Based on the same inventive concept, an image processing device corresponding to the image processing method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned image processing method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0198] Reference Figure 3 As shown, Figure 3 The schematic diagram of the architecture of an image processing device provided by an embodiment of the present disclosure includes: an acquisition module 3100, a first determination module 3200, and a second determination module 3300; wherein:

[0199] An acquisition module 3100 is used to acquire multiple frames of images to be detected;

[0200] The first determination module 3200 is used to determine, for each frame of the image to be detected, difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold; the difference information is used to characterize the ratio of the difference area of ​​any two images to the area of ​​the complete image;

[0201] The second determination module 3300 is used to determine the target image with abnormality from the multiple frames of images to be detected based on the difference information respectively corresponding to the multiple frames of images to be detected.

[0202] In an optional embodiment, referring to Figure 6 As shown, Figure 6 A specific schematic diagram of a second determination module in the image processing device provided by an embodiment of the present disclosure; the second determination module 3300 includes:

[0203] The clustering unit 3310 is used to cluster the difference between each frame of the image to be detected and other images to be detected to obtain multiple difference classifications; each difference classification includes: multiple differences;

[0204] The third determining unit 3320 is configured to determine a target difference degree classification from the plurality of difference degree classifications; wherein the values ​​of each target difference degree included in the target difference degree classification are greater than the values ​​of the differences included in the non-target difference degree classification;

[0205] The fourth determining unit 3330 is configured to determine the target image based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification.

[0206] In an optional implementation manner, the fourth base determining unit 3330 is specifically configured to:

[0207] Determine the selectable image based on the first image to be detected and the second image to be detected corresponding to each difference in the target difference classification;

[0208] and counting the number of target differences corresponding to the optional images;

[0209] The target image is determined from the optional images based on the number of target difference degrees respectively corresponding to the optional images of each frame.

[0210] In an optional implementation manner, the acquisition module 3100 is specifically used to:

[0211] Under the preset posture conditions in the target virtual scene, multiple frames of candidate images are obtained;

[0212] Based on attribute information corresponding to multiple frames of candidate images, the image to be detected is determined from the multiple frames of candidate images; wherein the attribute information includes at least one of the following: device configuration information of a terminal device for acquiring the candidate image, and resolution of the candidate image.

[0213] In an optional embodiment, referring to Figure 4 As shown, Figure 4 This is a specific schematic diagram of a first determination module in the image processing device provided by an embodiment of the present disclosure. The first determination module 3200 includes:

[0214] The first determining unit 3210 is used to determine a difference image based on the first pixel values ​​corresponding to the first pixel points in each frame of the image to be detected and the second pixel values ​​corresponding to the second pixel points in each frame of the other images to be detected; the third pixel value of any third pixel point in the difference image is the absolute value of the difference between the first pixel value of the first pixel point at the corresponding position and the second pixel value of the second pixel point at the corresponding position;

[0215] The second determination unit 3220 is used to determine the difference between each frame of the image to be detected and each frame of the other images to be detected based on the third pixel values ​​corresponding to each third pixel point in the difference image and a preset pixel value difference threshold.

[0216] In an optional embodiment, referring to Figure 5 As shown, Figure 5A specific schematic diagram of a second determination unit in the first determination module provided in an embodiment of the present disclosure; the second determination unit 3220 includes:

[0217] The generating subunit 3221 is used to generate a difference image based on the third pixel values ​​respectively corresponding to each third pixel point in the difference image and the preset pixel value difference threshold; the fourth pixel value of each fourth pixel point in the difference image is used to represent the magnitude relationship between the third pixel value of the third pixel point at the corresponding position and the preset pixel value difference threshold;

[0218] The conversion subunit 3222 is used to convert the difference image into a grayscale image, and binarize the grayscale image to obtain a binary image; the fifth pixel value of each fifth pixel point in the binary image represents whether there is a difference between the first pixel point corresponding to the fifth pixel point and the second pixel point;

[0219] The generating subunit 3223 is used to generate the difference between each frame of the image to be detected and each frame of the other images to be detected based on the fifth pixel value of each fifth pixel point in the binary image.

[0220] In an optional implementation manner, the pixel value corresponding to each pixel point in the difference map includes: a pixel value corresponding to each data channel in a plurality of data channels;

[0221] The generating subunit 3223 is specifically used for:

[0222] For each pixel point in the difference image, compare the pixel point with the pixel values ​​respectively corresponding to the plurality of data channels and the preset pixel value difference threshold;

[0223] In response to a pixel value of any pixel point in any data channel being greater than the preset pixel value difference threshold, determining a difference value corresponding to the any pixel point in the any data channel as a first value;

[0224] In response to the pixel value of any pixel point in any data channel being less than or equal to the preset pixel value difference threshold, determining the difference value corresponding to any pixel point in the any data channel as a second value;

[0225] The difference image is constructed based on the difference values ​​of each pixel in the difference image under multiple data channels.

[0226] In an optional implementation manner, the second determining unit 3220 is specifically configured to:

[0227] Based on the fifth pixel value of each fifth pixel point in the binary image, the binary image is corroded and expanded to obtain a target binary image;

[0228] Based on the sixth pixel value of each sixth pixel point in the target binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

[0229] In an optional embodiment, referring to Figure 7 As shown, Figure 7 A schematic diagram of another image processing device provided by an embodiment of the present disclosure; the device further includes:

[0230] The third determination module 3400 is used to determine the abnormality cause information of the target image based on the difference information corresponding to the target image.

[0231] In an optional embodiment, referring to Figure 8 As shown, Figure 8 A specific schematic diagram of a third determination module in another image processing device provided by an embodiment of the present disclosure; the third determination module 3400 includes:

[0232] A fifth determining unit 3410 is configured to determine a mean value of the degree of difference corresponding to the target image based on the degrees of difference respectively corresponding to the target image and a plurality of frames of other images to be detected;

[0233] A comparing unit 3420, configured to compare the difference mean with a preset difference threshold;

[0234] The sixth determining unit 3430 is configured to determine the abnormality cause information based on a comparison result between the difference mean and a preset difference threshold.

[0235] In an optional implementation, the difference mean value includes: a first difference mean value, and a second difference mean value determined for the target image under a condition where illumination is removed;

[0236] The sixth determining unit 3430 is specifically configured to:

[0237] In response to the first difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as a missing texture;

[0238] In response to the first difference mean being less than or equal to the difference threshold, and the second difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as model missing;

[0239] In response to the second difference mean being less than or equal to the difference threshold, the abnormality cause information corresponding to the target image is determined as abnormality in art resource performance.

[0240] The disclosed embodiment utilizes the difference information between multiple frames of images to be detected based on a preset pixel value difference threshold. The difference is used to characterize the ratio of the area of ​​the difference region between any two images to the area of ​​the complete image, and determines the target image with abnormalities based on the difference information to improve the accuracy of analysis of abnormal images.

[0241] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0242] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Fig. 9 As shown, it is a schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure, including a processor 901, a memory 902, and a bus 903. Among them, the memory 902 is used to store execution instructions, including a memory 9021 and an external memory 9022; the memory 9021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 901, and the data exchanged with the external memory 9022 such as a hard disk. The processor 901 exchanges data with the external memory 9022 through the memory 9021. When the computer device is running, the processor 901 communicates with the memory 902 through the bus 903, so that the processor 901 executes the following instructions:

[0243] Acquire multiple frames of images to be detected;

[0244] For each frame of the image to be detected, based on a preset pixel value difference threshold, determine the difference information between the frame of the image to be detected and other images to be detected; the difference information is used to characterize the ratio of the difference area of ​​any two images to the area of ​​the complete image;

[0245] Based on the difference information respectively corresponding to the multiple frames of the images to be detected, a target image with abnormality is determined from the multiple frames of the images to be detected.

[0246] The present disclosure also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the image processing method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0247] The computer program product of the image processing method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the image processing method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.

[0248] The present disclosure also provides a computer program that implements any of the methods of the aforementioned embodiments when the computer program is executed by a processor. The computer program product can be implemented in hardware, software, or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc.

[0249] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0250] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0251] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0252] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0253] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. An image processing method, characterized in that: include: Acquire multiple frames of images to be detected; For each frame of the image to be detected, determining the difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold; The difference information is used to characterize the ratio of the difference area between any two images to the area of ​​the complete image; Based on the difference information respectively corresponding to the multiple frames of the images to be detected, determining the target image with abnormality from the multiple frames of the images to be detected; Based on the differences respectively corresponding to the target image and multiple frames of other images to be detected, determine a difference mean corresponding to the target image, wherein the difference mean includes: a first difference mean and a second difference mean determined for the target image under the condition of removing illumination; Comparing the difference mean with a preset difference threshold; In response to the first difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as a missing texture; In response to the first difference mean being less than or equal to the difference threshold and the second difference mean being greater than the difference threshold, determining the abnormal cause information corresponding to the target image as model missing; In response to the second difference mean being less than or equal to the difference threshold, the abnormality cause information corresponding to the target image is determined as abnormality in art resource performance.

2. The image processing method according to claim 1, characterized in that: The step of determining an abnormal target image from the multiple frames of images to be detected based on the difference information respectively corresponding to the multiple frames of images to be detected includes: Based on the difference between each frame of the image to be detected and other images to be detected, the difference is clustered to obtain multiple difference classifications; each difference classification includes: multiple differences; Determining a target difference degree classification from a plurality of difference degree classifications; wherein the values ​​of each target difference degree included in the target difference degree classification are greater than the values ​​of the differences included in the non-target difference degree classification; The target image is determined based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification.

3. The image processing method according to claim 2, characterized in that: The determining of the target image based on the first image to be detected and the second image to be detected corresponding to each target difference in the target difference classification includes: Determine the selectable image based on the first image to be detected and the second image to be detected corresponding to each difference in the target difference classification; and counting the number of target differences corresponding to the optional images; The target image is determined from the optional images based on the number of target difference degrees respectively corresponding to the optional images of each frame.

4. The image processing method according to any one of claims 1 to 3, characterized in that: The step of acquiring multiple frames of images to be detected includes: Under the preset posture conditions in the target virtual scene, multiple frames of candidate images are obtained; Based on attribute information corresponding to multiple frames of candidate images, the image to be detected is determined from the multiple frames of candidate images; wherein the attribute information includes at least one of the following: device configuration information of a terminal device for acquiring the candidate image, and resolution of the candidate image.

5. The image processing method according to claim 4, characterized in that: The step of determining, for each frame of the image to be detected, the difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold, includes: Determine a difference image based on the first pixel values ​​corresponding to each first pixel point in each frame of the image to be detected and the second pixel values ​​corresponding to each second pixel point in each frame of the other image to be detected; the third pixel value of any third pixel point in the difference image is the absolute value of the difference between the first pixel value of the first pixel point at the corresponding position and the second pixel value of the second pixel point at the corresponding position; Based on the third pixel values ​​respectively corresponding to the third pixel points in the difference image and the preset pixel value difference threshold, the difference between each frame of the image to be detected and each frame of the other images to be detected is determined.

6. The image processing method according to claim 5, characterized in that: The determining the difference between each frame of the image to be detected and each frame of the other images to be detected based on the pixel values ​​respectively corresponding to each third pixel point in the difference image and a preset pixel value difference threshold comprises: Based on the third pixel values ​​respectively corresponding to each third pixel point in the difference image and the preset pixel value difference threshold, a difference image is generated; the fourth pixel value of each fourth pixel point in the difference image is used to characterize the magnitude relationship between the third pixel value of the third pixel point at the corresponding position and the preset pixel value difference threshold; Convert the difference image into a grayscale image, and binarize the grayscale image to obtain a binary image; The fifth pixel value of each fifth pixel point in the binary image represents whether there is a difference between the first pixel point and the second pixel point whose positions correspond to the fifth pixel point; Based on the fifth pixel value of each fifth pixel point in the binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

7. The image processing method according to claim 6, characterized in that: The pixel value corresponding to each pixel point in the difference map includes: the pixel value corresponding to each data channel in the multiple data channels; The generating of the difference image based on the third pixel values ​​respectively corresponding to the third pixel points in the difference image and the preset pixel value difference threshold comprises: For each pixel point in the difference image, compare the pixel point with the pixel values ​​respectively corresponding to the plurality of data channels and the preset pixel value difference threshold; In response to a pixel value of any pixel point in any data channel being greater than the preset pixel value difference threshold, determining a difference value corresponding to the any pixel point in the any data channel as a first value; In response to the pixel value of any pixel point in any data channel being less than or equal to the preset pixel value difference threshold, determining the difference value corresponding to any pixel point in the any data channel as a second value; The difference image is constructed based on the difference values ​​of each pixel in the difference image under multiple data channels.

8. The image processing method according to claim 6, characterized in that: The step of generating the difference between each frame of the image to be detected and each frame of the other images to be detected based on the fifth pixel value of each fifth pixel point in the binary image comprises: Based on the fifth pixel value of each fifth pixel point in the binary image, the binary image is corroded and expanded to obtain a target binary image; Based on the sixth pixel value of each sixth pixel point in the target binary image, the difference between each frame of the image to be detected and each frame of the other images to be detected is generated.

9. An image processing device, characterized in that: include: An acquisition module, used for acquiring multiple frames of images to be detected; A first determination module is used to determine, for each frame of the image to be detected, difference information between the frame of the image to be detected and other images to be detected based on a preset pixel value difference threshold; The difference information is used to characterize the ratio of the difference area between any two images to the area of ​​the complete image; A second determination module is used to determine the target image with abnormality from the multiple frames of images to be detected based on the difference information respectively corresponding to the multiple frames of images to be detected; A fifth determination module is used to determine a difference degree mean corresponding to the target image based on the difference degrees respectively corresponding to the target image and multiple frames of other images to be detected, wherein the difference degree mean includes: a first difference degree mean and a second difference degree mean determined for the target image under the condition of removing illumination; A comparison unit, used for comparing the difference mean with a preset difference threshold; The sixth determination unit is used to determine the abnormal cause information corresponding to the target image as map missing in response to the first difference mean being greater than the difference threshold; determine the abnormal cause information corresponding to the target image as model missing in response to the first difference mean being less than or equal to the difference threshold and the second difference mean being greater than the difference threshold; and determine the abnormal cause information corresponding to the target image as abnormal performance of art resources in response to the second difference mean being less than or equal to the difference threshold.

10. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the image processing method according to any one of claims 1 to 8 are performed.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image processing method according to any one of claims 1 to 8 are executed.

Citation Information

Patent Citations

  • Image anomaly detection device and method

    CN104243978A

  • Game testing method and system for mobile devices

    CN104536888A

  • Video signal monitoring method and video signal monitoring system

    CN106028147A

  • Identification method and system of abnormal display of display screen

    CN107888912A

  • Page detection method, computer-readable storage medium and terminal device

    CN109446061A