Method, device, electronic device and storage medium for detecting flower screen image

Through the analysis of edge ratio and fluctuation characteristic values, we can accurately detect and remove blurred images, solve the problem of blurry screens in startup screen advertisements, and improve the user experience.

CN114820527BActive Publication Date: 2024-09-27BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210459189.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-27
Publication Date
2024-09-27
Estimated Expiration
2042-04-27

AI Technical Summary

Technical Problem

A blurry picture may appear in the APP's startup screen advertisement, causing the picture to not be displayed properly and affecting the user experience.

Method used

By obtaining the edge image of the image to be detected, divide it into multiple sub-regions, calculate the edge proportion of edge pixels in each sub-region to all pixels, determine the average value and fluctuation characteristic value of the proportion set, and judge whether the image is based on these values. For the Huaping image.

Benefits of technology

It improves the accuracy of blurry screen image detection, ensures the normal display of boot screen advertisements, and improves user viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114820527B
    Figure CN114820527B
Patent Text Reader

Abstract

The present invention relates to a method, device, electronic device and storage medium for detecting a flower screen image, the method for detecting a flower screen image comprising: obtaining an edge image of an image to be detected, and dividing the edge image into a plurality of sub-regions; obtaining the edge ratio of edge pixels in each of the sub-regions to all pixels, and obtaining a ratio set, wherein the ratio set includes edge ratios corresponding to a plurality of the sub-regions; determining an average value and a fluctuation characteristic value of a plurality of the edge ratios in the ratio set, wherein the fluctuation characteristic value is used to represent the fluctuation of a plurality of the edge ratios relative to the average value; determining whether the image to be detected is a flower screen image according to the average value and the fluctuation characteristic value. The embodiment of the present application can make the detection of flower screen images more accurate, and thus can facilitate the deletion of flower screen images, ensure the normal display of boot screen advertisements, facilitate user viewing, and improve the viewing experience of boot screen advertisements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for detecting a flower screen image. Background Art

[0002] Startup screen ads refer to ads that last for a few seconds after a user opens an APP (Application). In order not to affect the startup speed of the APP, startup screen ads are usually sent to the APP in advance in advance by pre-delivery. That is, when the user starts the APP, the APP obtains the startup screen ads to be displayed the next time the APP is opened that day and in the following days from the server. When the APP is started next time, the cached startup screen ads are directly displayed.

[0003] At present, there may be distorted images in the startup screen ads of APPs. There are many reasons for distorted images, such as: distorted images when producing images, distorted images when distributing images on CDN, or distorted images during cube downloads, etc. The distorted images are displayed, which cannot achieve the purpose of normal display of ads and is not conducive to user viewing. Summary of the invention

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a method, device, electronic device and storage medium for detecting a flower screen image.

[0005] In a first aspect, the present application provides a method for detecting a distorted screen image, comprising:

[0006] Acquire an edge image of the image to be detected, and divide the edge image into a plurality of sub-areas;

[0007] Obtain an edge ratio of edge pixels in each of the sub-regions to all pixels to obtain a ratio set, wherein the ratio set includes edge ratios corresponding to a plurality of the sub-regions;

[0008] Determine an average value and a fluctuation characteristic value of a plurality of the edge proportions in the proportion set, wherein the fluctuation characteristic value is used to indicate fluctuations of the plurality of the edge proportions relative to the average value;

[0009] It is determined whether the image to be detected is a distorted screen image according to the average value and the fluctuation characteristic value.

[0010] Optionally, determining the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set includes:

[0011] Determine a variance of a plurality of edge proportions according to a plurality of edge proportions in the proportion set;

[0012] The fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set are determined according to the variance.

[0013] Optionally, determining the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set according to the variance includes:

[0014] Obtaining an average value of a plurality of edge proportions;

[0015] The fluctuation characteristic value is determined according to the variance and the average value.

[0016] Optionally, determining the fluctuation characteristic value according to the variance and the average value includes:

[0017] Calculate the fluctuation characteristic value by using the variance, the average value and the fluctuation characteristic calculation formula;

[0018] The fluctuation characteristic calculation formula is: fluctuation characteristic value=variance*100 / average value.

[0019] Optionally, determining whether the image to be detected is a distorted screen image according to the fluctuation characteristic value and the average value includes:

[0020] Acquire a first threshold range corresponding to the fluctuation characteristic value and a second threshold range corresponding to the average value;

[0021] If the fluctuation characteristic value is within the first threshold range and the average value is within the second threshold range, it is determined that the image to be detected is a flower screen image;

[0022] If the fluctuation characteristic value is outside the first threshold range and / or the average value is outside the second threshold range, it is determined that the image to be detected is not a flower screen image.

[0023] In a second aspect, the present application provides a device for detecting a distorted screen image, comprising:

[0024] A first acquisition module, used for acquiring an edge image of the image to be detected, and dividing the edge image into a plurality of sub-areas;

[0025] A second acquisition module is used to obtain the edge ratio of edge pixels in each of the sub-regions to all pixels, and obtain a ratio set, wherein the ratio set includes edge ratios corresponding to a plurality of the sub-regions;

[0026] A first determination module is used to determine an average value and a fluctuation characteristic value of a plurality of the edge proportions in the proportion set, wherein the fluctuation characteristic value is used to indicate fluctuations of the plurality of the edge proportions relative to the average value;

[0027] The second determination module is used to determine whether the image to be detected is a distorted screen image according to the average value and the fluctuation characteristic value.

[0028] Optionally, the first determining module includes:

[0029] A first determining unit, configured to determine a variance of a plurality of edge proportions according to a plurality of edge proportions in the proportion set;

[0030] A second determining unit is used to determine the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set according to the variance.

[0031] Optionally, the second determining unit includes:

[0032] An acquisition subunit, used to acquire an average value of a plurality of edge proportions;

[0033] A determination subunit is used to determine the fluctuation characteristic value according to the variance and the average value.

[0034] Optionally, the determining subunit is further used for:

[0035] Calculate the fluctuation characteristic value by using the variance, the average value and the fluctuation characteristic calculation formula;

[0036] The fluctuation characteristic calculation formula is: fluctuation characteristic value=variance*100 / average value.

[0037] Optionally, the second determining module includes:

[0038] an acquisition unit, configured to acquire a first threshold range corresponding to the fluctuation characteristic value and a second threshold range corresponding to the average value;

[0039] A third determining unit, configured to determine that the image to be detected is a distorted screen image if the fluctuation characteristic value is within the first threshold range and the average value is within the second threshold range;

[0040] The fourth determination unit is used to determine that the image to be detected is not a distorted screen image if the fluctuation characteristic value is outside the first threshold range and / or the average value is outside the second threshold range.

[0041] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0042] Memory, used to store computer programs;

[0043] The processor is used to implement any method for detecting a distorted screen image as described in the first aspect when executing a program stored in the memory.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium, on which is stored a program for a method for detecting a flower screen image. When the program for the method for detecting a flower screen image is executed by a processor, the steps of any of the methods for detecting a flower screen image described in the first aspect are implemented.

[0045] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:

[0046] In an embodiment of the present application, an edge image of an image to be detected is first obtained, and the edge image is divided into multiple sub-areas. Then, the edge ratio of edge pixels to all pixels in each sub-area is obtained to obtain a ratio set, wherein the ratio set includes edge ratios corresponding to multiple sub-areas. Then, an average value and a fluctuation characteristic value of multiple edge ratios in the ratio set are determined. The fluctuation characteristic value is used to represent the fluctuation of multiple edge ratios relative to the average value. Finally, whether the image to be detected is a flower screen image can be determined based on the average value and the fluctuation characteristic value.

[0047] The embodiment of the present application can determine the average value and the fluctuation characteristic value according to the edge proportion of the edge pixels in each sub-area based on the characteristics of the flower screen image, and then analyze whether the image to be detected is a flower screen image. By utilizing the characteristics of the flower screen image itself, the detection of the flower screen image is more accurate, and it is convenient to delete the flower screen image, ensure the normal display of the startup screen advertisement, facilitate user viewing, and improve the viewing experience of the startup screen advertisement. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] Figure 1 A flowchart of a method for detecting a flower screen image provided in an embodiment of the present application;

[0051] Figure 2 A flower screen image provided in an embodiment of the present application;

[0052] Figure 3 An edge image of a flower screen image provided in an embodiment of the present application;

[0053] Figure 4 for Figure 1 Flow chart of step S104;

[0054] Figure 5 A flow chart for practical application of the embodiment of the present application;

[0055] Figure 6 A structural diagram of a device for detecting a flower screen image provided in an embodiment of the present application;

[0056] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0058] At present, there may be distorted images in the startup screen advertisements of APPs. There are many reasons for the distorted images, such as: the distorted images are caused when the images are produced, the distorted images are caused when the images are distributed by CDN, or the distorted images are caused during cube downloads, etc. The distorted images are displayed, which cannot achieve the purpose of normal display of the advertisements and is not conducive to user viewing. To this end, the embodiments of the present application provide a method, device, electronic device and storage medium for detecting distorted images, which can automatically detect whether the image to be detected is a distorted image according to the characteristics of the distorted image, so as to make the detection of distorted images more accurate.

[0059] like Figure 1 As shown, the method for detecting a distorted screen image may include the following steps:

[0060] Step S101, obtaining an edge image of an image to be detected, and dividing the edge image into a plurality of sub-regions;

[0061] In an embodiment of the present application, the image to be detected can be a picture or a video frame in a video, such as: when the startup screen advertisement is a picture, the image to be detected is a picture; when the startup screen advertisement is a video, the image to be detected is a video frame in the video. The embodiment of the present application can also be applied to other non-startup screen advertisement scenarios, such as: it can also be applied to scenarios such as the server transmitting a video or a picture to the client, and the video frame or picture in the transmitted video is the image to be detected.

[0062] In this step, the image to be detected can be first acquired, and edge detection can be performed on the image to be detected to obtain an edge image of the image to be detected. The edge image can then be divided into multiple sub-regions to obtain images of the multiple sub-regions. For example, the edge image can be divided into 36 sub-regions of equal size.

[0063] In practical applications, in view of the fact that the distorted screen image is not the entire image, but the middle area is prone to distorted screen, the image to be detected can be cropped to retain only the middle area of ​​the image to be detected, such as: the middle 70% area, and at the same time, the image to be detected can be reduced to obtain the middle image. Compared with the original image to be detected, since only the middle area is captured and the image is reduced, the amount of calculation can be reduced.

[0064] When performing edge detection on the image to be detected, the canny edge detection algorithm can be used. To ensure robustness, the two thresholds of the canny edge detection algorithm can be determined as follows:

[0065] 1) Perform morphological gradient processing on the intermediate image to obtain a gradient image, scan the gradient image, obtain the maximum value and the minimum value of the gradient amplitude in the gradient image, and use the average value of the maximum value and the minimum value of the gradient amplitude as the high threshold of the canny edge detection algorithm;

[0066] 2) Perform maximum inter-class variance OTSU binarization on the gradient image to obtain the binarization threshold, and use the binarization threshold as the low threshold of the canny edge detection algorithm.

[0067] Step S102, obtaining the edge ratio of edge pixels to all pixels in each sub-region to obtain a ratio set.

[0068] In the embodiment of the present application, the proportion set includes edge proportions corresponding to a plurality of the sub-regions;

[0069] In this step, edge pixels can be extracted from each sub-region respectively, and a first number of edge pixels in the sub-region and a second number of pixels in the sub-region can be counted. The first number can be divided by the second number to obtain the edge proportion corresponding to the sub-region, and the set consisting of the edge proportions corresponding to multiple sub-regions can be taken as a proportion set.

[0070] Step S103, determining an average value and a fluctuation characteristic value of a plurality of the edge proportions in the proportion set;

[0071] In this step, the average value of the plurality of edge proportions in the proportion set may be calculated first. In the embodiment of the present application, the fluctuation characteristic value is used to indicate the fluctuation of the plurality of edge proportions relative to the average value.

[0072] In practical applications, we can Figure 2 The flower screen image and Figure 3 From the edge image obtained by edge detection processing of the flower screen image shown in the figure, it can be seen that the flower screen image has many fine textures and is evenly distributed. In other words, the edge image corresponding to the flower screen image has the characteristic of evenly distributed edge pixels. Therefore, it is necessary to design a fluctuation eigenvalue to measure whether the distribution of the edge ratio is even.

[0073] Step S104, determining whether the image to be detected is a distorted screen image according to the average value and the fluctuation characteristic value.

[0074] In this step, whether the image to be detected is a distorted screen image can be determined based on the relationship between the average value and the corresponding numerical range and the relationship between the fluctuation characteristic value and the corresponding numerical range.

[0075] When it is determined that the image to be detected is a distorted image, the image to be detected can be deleted to avoid displaying the distorted image, ensuring that the user can always see the non-distorted image / video, thereby improving the user's viewing experience and avoiding complaints from advertisers.

[0076] In an embodiment of the present application, an edge image of an image to be detected is first obtained, and the edge image is divided into multiple sub-areas. Then, the edge ratio of edge pixels to all pixels in each sub-area is obtained to obtain a ratio set, wherein the ratio set includes edge ratios corresponding to multiple sub-areas. Then, an average value and a fluctuation characteristic value of multiple edge ratios in the ratio set are determined. The fluctuation characteristic value is used to represent the fluctuation of multiple edge ratios relative to the average value. Finally, whether the image to be detected is a flower screen image can be determined based on the average value and the fluctuation characteristic value.

[0077] The embodiment of the present application can determine the average value and the fluctuation characteristic value according to the edge proportion of the edge pixels in each sub-area based on the characteristics of the flower screen image, and then analyze whether the image to be detected is a flower screen image. By utilizing the characteristics of the flower screen image itself, the detection of the flower screen image is more accurate, and it is convenient to delete the flower screen image, ensure the normal display of the startup screen advertisement, facilitate user viewing, and improve the viewing experience of the startup screen advertisement.

[0078] In another embodiment of the present application, the step S103 determines the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set, including:

[0079] Step S201, determining the variance of a plurality of edge proportions according to a plurality of edge proportions in the proportion set;

[0080] In this step, the variance of multiple edge proportions may be calculated according to the variance calculation formula.

[0081] Step S202: determining the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set according to the variance.

[0082] In one implementation of the present application, the step S202 determines the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set according to the variance, including:

[0083] Step S301, obtaining an average value of a plurality of edge proportions;

[0084] Since the average value has been calculated in step S103, the average value of multiple edge proportions in the proportion set can be obtained.

[0085] Step S302: determining the fluctuation characteristic value according to the variance and the average value.

[0086] In one implementation of the present application, the step S302 determines the fluctuation characteristic value according to the variance and the average value, including:

[0087] Calculate the fluctuation characteristic value by using the variance, the average value and the fluctuation characteristic calculation formula;

[0088] The fluctuation characteristic calculation formula is: fluctuation characteristic value=variance*100 / average value.

[0089] The embodiment of the present application involves the fluctuation characteristic calculation formula based on the characteristics of the flower screen image. Through the fluctuation characteristic calculation formula, the fluctuation characteristic value can be calculated. The fluctuation characteristic value can represent the fluctuation of multiple edge proportions relative to the average value, so that according to the fluctuation characteristic value, it is possible to accurately analyze whether the image to be detected is a flower screen image.

[0090] In another embodiment of the present application, Figure 4 As shown, the step S104 determines whether the image to be detected is a distorted screen image according to the fluctuation characteristic value and the average value, including:

[0091] Step S401, obtaining a first threshold range corresponding to the fluctuation characteristic value and a second threshold range corresponding to the average value;

[0092] The fluctuation feature value and the average value can measure the uniform distribution of edge pixels in two dimensions, so different threshold ranges can be set for the sum of the fluctuation feature and the average value to obtain more accurate detection results.

[0093] In the embodiment of the present application, the first threshold range and the second threshold range can be obtained in advance based on a large number of sample experiments. For example, the first threshold range can be set to less than 20, and the second threshold range can be set to 25 to 35.

[0094] Step S402, if the fluctuation characteristic value is within the first threshold range and the average value is within the second threshold range, determining that the image to be detected is a distorted screen image;

[0095] Step S403: If the fluctuation characteristic value is outside the first threshold range and / or the average value is outside the second threshold range, it is determined that the image to be detected is not a distorted screen image.

[0096] The embodiment of the present application can accurately obtain the flower screen detection result of the image to be detected by comparing the fluctuation characteristic value with the first threshold range and comparing the average value with the second threshold range. It has been verified that the recall rate can reach 100%.

[0097] For ease of understanding, Figure 5 As shown, the present application also provides an embodiment of a practical application scenario, as follows:

[0098] First, the original image extracted from the startup screen advertisement is the image to be detected. When the startup screen advertisement is a picture, the picture is the image to be detected. When the startup screen advertisement is a video, the video frames in the video can be used as images to be detected one by one.

[0099] The image to be detected is reduced. For example, if the horizontal and vertical coordinates of the original image are 1, the horizontal and vertical coordinates can be set to 0.35 respectively. The image is reduced to reduce the amount of calculation.

[0100] The reduced image to be detected is converted into a grayscale image, and then the edge of the grayscale image is intercepted, retaining the middle 70% area of ​​the image to reduce the amount of calculation.

[0101] The grayscale image after the above processing is subjected to morphological gradient processing to obtain a gradient image, and the gradient image is scanned to obtain the maximum value and the minimum value of the gradient amplitude in the gradient image, and the average value of the maximum value and the minimum value of the gradient amplitude is used as the high threshold of the canny edge detection algorithm; the gradient image is subjected to maximum inter-class variance OTSU binarization processing to obtain the binarization threshold, and the binarization threshold is used as the low threshold of the canny edge detection algorithm.

[0102] The obtained high threshold and low threshold are used to perform edge detection on the grayscale image to obtain an edge image.

[0103] The edge image is divided into 36 sub-regions by 4*9 equal parts.

[0104] The edge ratio of edge pixels to all pixels in each sub-region is calculated to obtain an array of 36 edge ratios, i.e., a ratio set.

[0105] The variance and average of the 36 edge proportions in the proportion set are counted, and the fluctuation characteristic value is calculated based on the variance and the average value. If the fluctuation characteristic value is less than 20 and the average value is between 25 and 35, it is determined that the image to be detected is a flower screen picture.

[0106] In another embodiment of the present application, Figure 6 As shown, a device for detecting a flower screen image is also provided, comprising:

[0107] A first acquisition module 11 is used to acquire an edge image of the image to be detected and divide the edge image into a plurality of sub-areas;

[0108] The second acquisition module 12 is used to obtain the edge ratio of edge pixels in each of the sub-regions to all pixels, and obtain a ratio set, wherein the ratio set includes edge ratios corresponding to multiple sub-regions;

[0109] A first determination module 13 is used to determine an average value and a fluctuation characteristic value of a plurality of the edge proportions in the proportion set, wherein the fluctuation characteristic value is used to indicate fluctuations of the plurality of the edge proportions relative to the average value;

[0110] The second determination module 14 is used to determine whether the image to be detected is a distorted screen image according to the average value and the fluctuation characteristic value.

[0111] In another embodiment of the present application, the first determining module 13 includes:

[0112] A first determining unit, configured to determine a variance of a plurality of edge proportions according to a plurality of edge proportions in the proportion set;

[0113] A second determining unit is used to determine the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set according to the variance.

[0114] In yet another embodiment of the present application, the determining subunit is further configured to:

[0115] Calculate the fluctuation characteristic value by using the variance, the average value and the fluctuation characteristic calculation formula;

[0116] The fluctuation characteristic calculation formula is: fluctuation characteristic value=variance*100 / average value.

[0117] In yet another embodiment of the present application, the second determining module includes:

[0118] an acquisition unit, configured to acquire a first threshold range corresponding to the fluctuation characteristic value and a second threshold range corresponding to the average value;

[0119] A third determining unit, configured to determine that the image to be detected is a distorted screen image if the fluctuation characteristic value is within the first threshold range and the average value is within the second threshold range;

[0120] The fourth determination unit is used to determine that the image to be detected is not a distorted screen image if the fluctuation characteristic value is outside the first threshold range and / or the average value is outside the second threshold range.

[0121] In another embodiment of the present application, an electronic device is provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0122] Memory, used to store computer programs;

[0123] The processor is used to implement the method for detecting the distorted screen image described in any of the aforementioned method embodiments when executing the program stored in the memory.

[0124] In the electronic device provided by an embodiment of the present invention, the processor executes a program stored in the memory to first obtain an edge image of the image to be detected, and divides the edge image into multiple sub-areas, then obtains the edge ratio of edge pixels in each sub-area to all pixels, and obtains a ratio set, wherein the ratio set includes edge ratios corresponding to multiple sub-areas, and then determines an average value and a fluctuation characteristic value of multiple edge ratios in the ratio set, wherein the fluctuation characteristic value is used to represent the fluctuation of multiple edge ratios relative to the average value, and finally determines whether the image to be detected is a flower screen image based on the average value and the fluctuation characteristic value.

[0125] The embodiment of the present application can determine the average value and the fluctuation characteristic value according to the edge proportion of the edge pixels in each sub-area based on the characteristics of the flower screen image, and then analyze whether the image to be detected is a flower screen image. By utilizing the characteristics of the flower screen image itself, the detection of the flower screen image is more accurate, and it is convenient to delete the flower screen image, ensure the normal display of the startup screen advertisement, facilitate user viewing, and improve the viewing experience of the startup screen advertisement.

[0126] The communication bus 1140 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 1140 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0127] The communication interface 1120 is used for communication between the above electronic device and other devices.

[0128] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0129] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0130] In another embodiment of the present application, a computer-readable storage medium is further provided, on which a program of a method for detecting a flower screen image is stored. When the program of the method for detecting a flower screen image is executed by a processor, the steps of the method for detecting a flower screen image described in any of the aforementioned method embodiments are implemented.

[0131] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0132] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for detecting a distorted screen image, characterized in that: include: Acquire an edge image of the image to be detected, and divide the edge image into a plurality of sub-areas; Obtain an edge ratio of edge pixels in each of the sub-regions to all pixels to obtain a ratio set, wherein the ratio set includes edge ratios corresponding to a plurality of the sub-regions; Determine an average value and a fluctuation characteristic value of a plurality of the edge proportions in the proportion set, wherein the fluctuation characteristic value is used to represent the fluctuation of the plurality of the edge proportions relative to the average value, and the determining of the fluctuation characteristic values ​​of the plurality of the edge proportions in the proportion set comprises: determining the variance of the plurality of the edge proportions according to the plurality of the edge proportions in the proportion set; and determining the fluctuation characteristic value of the plurality of the edge proportions in the proportion set according to the variance; Determine whether the image to be detected is a flower screen image according to the average value and the fluctuation characteristic value, and determine whether the image to be detected is a flower screen image according to the average value and the fluctuation characteristic value, including: obtaining a first threshold range corresponding to the fluctuation characteristic value and a second threshold range corresponding to the average value; if the fluctuation characteristic value is within the first threshold range and the average value is within the second threshold range, determine that the image to be detected is a flower screen image; if the fluctuation characteristic value is outside the first threshold range and / or the average value is outside the second threshold range, determine that the image to be detected is not a flower screen image.

2. The method according to claim 1, characterized in that The step of determining the fluctuation characteristic values ​​of the plurality of edge proportions in the proportion set according to the variance includes: Obtaining an average value of a plurality of edge proportions; The fluctuation characteristic value is determined according to the variance and the average value.

3. The method according to claim 2, characterized in that The determining the fluctuation characteristic value according to the variance and the average value comprises: Calculate the fluctuation characteristic value by using the variance, the average value and the fluctuation characteristic calculation formula; The fluctuation characteristic calculation formula is: fluctuation characteristic value=variance*100 / average value.

4. A device for detecting a distorted screen image, characterized in that: include: A first acquisition module, used for acquiring an edge image of the image to be detected, and dividing the edge image into a plurality of sub-areas; A second acquisition module is used to obtain the edge ratio of edge pixels in each of the sub-regions to all pixels, and obtain a ratio set, wherein the ratio set includes edge ratios corresponding to a plurality of the sub-regions; A first determination module is used to determine an average value and a fluctuation characteristic value of a plurality of edge proportions in the proportion set, wherein the fluctuation characteristic value is used to indicate fluctuations of a plurality of edge proportions relative to the average value, and the first determination module includes: a first determination unit is used to determine a variance of a plurality of edge proportions according to a plurality of edge proportions in the proportion set; a second determination unit is used to determine the fluctuation characteristic value of a plurality of edge proportions in the proportion set according to the variance; A second determination module is used to determine whether the image to be detected is a flower screen image based on the average value and the fluctuation characteristic value, and the second determination module includes: an acquisition unit, used to acquire a first threshold range corresponding to the fluctuation characteristic value and a second threshold range corresponding to the average value; a third determination unit, used to determine that the image to be detected is a flower screen image if the fluctuation characteristic value is within the first threshold range and the average value is within the second threshold range; a fourth determination unit, used to determine that the image to be detected is not a flower screen image if the fluctuation characteristic value is outside the first threshold range and / or the average value is outside the second threshold range.

5. The device according to claim 4, characterized in that The second determining unit includes: An acquisition subunit, used to acquire an average value of a plurality of edge proportions; A determination subunit is used to determine the fluctuation characteristic value according to the variance and the average value.

6. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the method for detecting a distorted screen image as described in any one of claims 1 to 3 when executing a program stored in a memory.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program of a method for detecting a distorted screen image. When the program of the method for detecting a distorted screen image is executed by a processor, the steps of the method for detecting a distorted screen image described in any one of claims 1 to 3 are implemented.