Image processing method, device, storage medium and terminal

By detecting and automatically adjusting the image sharpness on the terminal side of the OTT TV, the problem of poor image sharpness in OTT TV is solved, the image quality is improved, manpower and network bandwidth consumption is reduced, and it is suitable for image processing in various scenarios.

CN112489006BActive Publication Date: 2024-11-26TENCENT TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011349366.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-11-26
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

In the field of OTT TV, the image clarity is poor during the video service process, which affects the user experience, and the existing technology is difficult to effectively improve image clarity.

Method used

Provide an image processing method, by detecting the image clarity sent by the server, using image blur processing and low-pass filtering technology, the image clarity is automatically adjusted until the benchmark is reached, and the clarity enhancement processing is performed on the terminal side to reduce the server. Load and network bandwidth consumption.

Benefits of technology

It achieves improvement in image quality, meets user needs, reduces the workload and labor costs of UI developers, and reduces the pressure of servers to issue image data and network bandwidth loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112489006B_ABST
    Figure CN112489006B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method, device, storage medium and terminal, which belong to the field of Internet media. The method is applied to a terminal installed with an Internet TV application, and includes: displaying the original image sent by the server on a target page; performing image blurring processing on the original image to obtain a degraded image of the original image; obtaining first data and second data, the first data is used to characterize the grayscale value change of adjacent pixels of the original image, and the second data is used to characterize the grayscale value change of adjacent pixels of the degraded image; in response to the size relationship between the first data and the second data indicating that the clarity of the original image does not meet the standard, adjusting the clarity of the original image until a target image with a standard clarity is obtained; and displaying the target image on the target page in a manner of replacing the original image. The present application provides a solution for automatically adjusting the image clarity on the terminal side, which can significantly improve the image quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet media, and in particular to an image processing method, device, storage medium and terminal. Background Art

[0002] OTT (Over The Top) TV refers to video services based on the Internet. In the OTT field, the types of terminals that provide video services include but are not limited to TVs, computers, set-top boxes or smartphones.

[0003] In the process of providing video services on terminals, a common phenomenon is that the image clarity on some pages is poor, such as the poor image clarity on the video list page. Image clarity is an important indicator to measure the quality of the image. Poor image clarity is directly manifested as image blur, which will seriously affect the user experience. Therefore, an image processing method is urgently needed to improve the image clarity in the video service process. Summary of the invention

[0004] The embodiments of the present application provide an image processing method, device, storage medium and terminal. The technical solution is as follows:

[0005] On the one hand, an image processing method is provided, which is applied to a terminal installed with an Internet TV application, and the method includes:

[0006] Displaying the original image sent by the server on a target page, wherein the target page is a page provided by the Internet TV application;

[0007] Performing image blurring processing on the original image to obtain a degraded image of the original image;

[0008] Acquire first data and second data, wherein the first data is used to characterize the change of grayscale values ​​of adjacent pixels of the original image, and the second data is used to characterize the change of grayscale values ​​of adjacent pixels of the degraded image;

[0009] In response to the size relationship between the first data and the second data indicating that the definition of the original image does not meet the standard, adjusting the definition of the original image until a target image with a definition that meets the standard is obtained;

[0010] The target image is displayed on the target page in a manner of replacing the original image.

[0011] In another aspect, an image processing device is provided, the device comprising:

[0012] A first display module is configured to display the original image sent by the server on a target page, wherein the target page is a page provided by the Internet TV application;

[0013] A first processing module is configured to perform image blurring processing on the original image to obtain a degraded image of the original image;

[0014] a detection module configured to acquire first data and second data, wherein the first data is used to characterize the change of grayscale values ​​of adjacent pixels of the original image, and the second data is used to characterize the change of grayscale values ​​of adjacent pixels of the degraded image;

[0015] A second processing module is configured to adjust the clarity of the original image in response to the size relationship between the first data and the second data indicating that the clarity of the original image does not meet the standard, until a target image with a clarity that meets the standard is obtained;

[0016] The first display module is further configured to display the target image on the target page in a manner of replacing the original image.

[0017] In some embodiments, the first data is the square of the grayscale difference between adjacent pixels of the original image, and the second data is the square of the grayscale difference between adjacent pixels of the degraded image;

[0018] The detection module is further configured to determine that the clarity of the original image does not meet the standard in response to the first data being not greater than the second data.

[0019] In some embodiments, the second processing module is configured to:

[0020] Performing definition enhancement processing on the original image to obtain a first intermediate image;

[0021] In response to the clarity of the first intermediate image meeting the standard, obtaining the target image;

[0022] In response to the definition of the first intermediate image not meeting the standard, performing definition enhancement processing on the first intermediate image to obtain a second intermediate image;

[0023] By analogy, the definition enhancement process is repeatedly performed on the image obtained in the previous step until the target image with definition meeting the standard is obtained.

[0024] In some embodiments, the second processing module is configured to:

[0025] Determine a target area in the original image, wherein the target area is other areas except the image boundary;

[0026] For any pixel point in the target area, low-pass filtering is performed on the pixel point; in response to the low-pass filtering result of the pixel point being greater than a target threshold, the pixel point is determined to correspond to a high-frequency component of the original image, and definition enhancement is performed on the pixel point;

[0027] The value of the target threshold varies depending on the type of the target page.

[0028] In some embodiments, in response to the target page being the video navigation page of the Internet TV application, the target threshold is a first value; or, in response to the target page being the video details page of the Internet TV application, the target threshold is a second value; or, in response to the target page being the video list page or video search page of the Internet TV application, the target threshold is a third value; wherein the first value is greater than the second value, and the second value is greater than the third value.

[0029] In some embodiments, the second processing module is configured to perform low-pass filtering on the pixel points through a low-pass filter, and the low-pass filter adopts an N*N Gaussian mask, where the value of N is a positive integer.

[0030] In some embodiments, the second processing module is configured to superimpose the pixel points corresponding to the high-frequency component onto the pixel points at the same position of the original image.

[0031] In some embodiments, the detection module is further configured to start multiple threads in response to the number of original images displayed on the target page being multiple, and call the multiple threads to detect whether the clarity of the multiple original images meets the standard.

[0032] On the other hand, a terminal is provided. The terminal includes a processor and a memory. The memory stores at least one program code. The at least one program code is loaded and executed by the processor to implement the above-mentioned image processing method.

[0033] On the other hand, a computer-readable storage medium is provided, wherein at least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to implement the above-mentioned image processing method.

[0034] On the other hand, a computer program product or a computer program is provided, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium. A processor of a terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal performs the above-mentioned image processing method.

[0035] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0036] The embodiment of the present application provides a solution for automatically adjusting the image clarity on the terminal side, which can automatically detect the clarity of the image sent by the server and automatically perform clarity improvement processing on the image that does not meet the clarity standard, which not only ensures the image quality and meets the user's needs, but also is more intelligent. In addition, since the work of improving the image clarity is performed by the terminal side, it not only reduces the workload of UI developers and reduces labor costs, but also reduces the pressure on the server to send image data (the clearer the image, the larger the volume), and reduces network bandwidth loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 is a schematic diagram of an implementation environment involved in an image processing method provided in an embodiment of the present application;

[0039] Figure 2 is a schematic diagram of a setting page of an Internet TV application provided in an embodiment of the present application;

[0040] Figure 3 is a schematic diagram of a setting page of another Internet TV application provided in an embodiment of the present application;

[0041] Figure 4 is a flow chart of an image processing method provided by an embodiment of the present application;

[0042] Figure 5 It is a schematic diagram of a possible display style of a video navigation page provided in an embodiment of the present application;

[0043] Figure 6 It is a schematic diagram of a possible display style of a video details page provided in an embodiment of the present application;

[0044] Figure 7 It is a schematic diagram of a possible display style of a video list page provided in an embodiment of the present application;

[0045] Figure 8 is a schematic diagram of a possible display style of a video search page provided in an embodiment of the present application;

[0046] Fig. 9It is a schematic diagram of a process for detecting image clarity provided in an embodiment of the present application;

[0047] Fig.10 is a flowchart of performing clarity enhancement processing provided by an embodiment of the present application;

[0048] Fig.11 It is an overall execution flow chart of an image processing method provided by an embodiment of the present application;

[0049] Fig.12 This is a schematic diagram of a video navigation page provided in an embodiment of the present application before image optimization;

[0050] Fig.13 This is a schematic diagram of a video navigation page after image optimization provided by an embodiment of the present application;

[0051] Fig.14 This is a schematic diagram of a video details page provided in an embodiment of the present application before image optimization;

[0052] Fig.15 This is a schematic diagram of a video details page after image optimization provided by an embodiment of the present application;

[0053] Fig.16 This is a schematic diagram of a video search page provided in an embodiment of the present application before image optimization;

[0054] Fig.17 is a schematic diagram of a video search page after image optimization provided by an embodiment of the present application;

[0055] Fig.18 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;

[0056] Fig.19 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0058] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on the quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms.

[0059] These terms are only used to distinguish one element from another. For example, a first image can be referred to as a second image, and similarly, a second image can be referred to as a first image without departing from the scope of the various examples. Both the first image and the second image can be images, and in some cases, can be separate and different images.

[0060] Here, at least one image refers to one or more images, for example, at least one image can be one image, two images, three images, or any other integer greater than or equal to one. And multiple images refers to two or more images, for example, multiple images can be two images, three images, or any other integer greater than or equal to two.

[0061] The image processing solution provided in the embodiment of the present application is used to adjust the clarity of an image. The solution involves artificial intelligence (AI) technology.

[0062] Among them, AI is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0063] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0064] Among them, Computer Vision (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing to make computer processing into images that are more suitable for human eye observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0065] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0066] The following is an explanation of some terms that may be involved in the embodiments of the present application.

[0067] OTT: In a broad sense, OTT refers to providing services to users through the Internet. Unlike the communication services currently provided by operators, it only uses the operator's network, and the service is provided by a third party outside the operator. In other words, OTT refers to Internet companies bypassing operators to develop various video and data services based on the open Internet. Among them, typical OTT services include Internet TV services.

[0068] Clarity: refers to the clarity of the details and their boundaries on the image. In the quality evaluation of non-reference images, image clarity is an important indicator to measure the quality of the image. It can correspond well to people's subjective feelings. Low image clarity is directly reflected as image blur. Among them, image clarity is affected by many factors, such as brightness, contrast, hue, boundary, noise, blur, etc.

[0069] In some embodiments, the present application assumes that noise and blur are the two most important factors affecting image quality. For simplicity, the present application only monitors blur and noise for color images.

[0070] Figure 1 It is a schematic diagram of an implementation environment involved in an image processing method provided in an embodiment of the present application.

[0071] See also Figure 1 , the implementation environment includes: a terminal 101 and a server 102.

[0072] In the embodiment of the present application, the types of terminal 101 include but are not limited to: mobile terminals and fixed terminals. In some embodiments, mobile terminals include but are not limited to: smart phones, tablet computers, laptop computers, e-readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, etc.; fixed terminals include but are not limited to desktop computers and smart TVs, which are not specifically limited in the embodiment of the present application.

[0073] Among them, the server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, and this application does not limit this. In addition, this application does not limit the number of terminals 101 and servers 102.

[0074] In some embodiments, the terminal 101 has an image processing function, and can process the image sent by the server 102, such as adjusting the clarity of the image sent by the server 102. In addition, the terminal 101 installs and runs an application that supports image processing. Exemplarily, the application refers to an Internet TV application (also referred to as an OTT client) in the embodiments of the present application. Among them, the Internet TV application can provide video services to users based on the operator's network.

[0075] The server 102 is used to provide background services for the Internet TV application installed on the terminal 101 , and the terminal 101 can download the installation package from the server 120 to update the Internet TV application.

[0076] In other embodiments, the image definition adjustment solution provided in the embodiments of the present application is applied to an OTT client. For example, the image definition adjustment of the OTT client may be initiated based on user needs. Figure 2 and Figure 3As shown in FIG. 1 , a switch option for turning on the image slice optimization function is newly added on the setting page of the Internet TV application. That is, an image optimization option 200 is displayed on the setting page of the Internet TV application, wherein the image optimization option 200 is used to turn on the image clarity optimization function; in response to the terminal 101 obtaining the user's triggering operation on the image optimization option 200, Figure 3 As shown, a prompt message 300 will be displayed; wherein, the prompt message 300 is used to prompt that the image clarity optimization function has been turned on.

[0077] Based on the above implementation environment, the solution provided in the embodiment of the present application can dynamically detect the clarity of the image presented on the display screen of the current terminal 101. For images with poor clarity, the clarity of the corresponding image can be dynamically improved, thereby improving the image quality and further improving the user experience.

[0078] In other embodiments, for OTT clients, the scenarios for loading images mainly include video navigation pages, video list pages, video search pages, and video details pages. Among them, the images on the video navigation page are the most directly presented to users, and the exposure is also the largest, so users have the highest requirements for the clarity of such images; the second is the video details page, which is also called the player page. The image display volume is not large, and it is mainly for video playback. Therefore, users have lower requirements for the clarity of such images than the video navigation page. Finally, there are the video list page and the video search page. The priority of the two is basically the same, and the exposure is not as high as the video navigation page and the video details page. In the user experience, what is more important is the content search results, the order of image arrangement, and the text content on the image. Therefore, users have the lowest requirements for the clarity of such images.

[0079] The embodiment of the present application provides an adaptive adjustment solution for image clarity based on an OTT client and involving multiple scenarios. The above solution is explained in detail below in conjunction with the following embodiments.

[0080] Figure 4 is a flow chart of an image processing method provided in an embodiment of the present application. For example, the present application embodiment is described by taking the method executed by a terminal as an example. Figure 4 , the method flow provided in the embodiment of the present application includes:

[0081] 401. The terminal displays the original image sent by the server on a target page, where the target page is a page provided by an Internet TV application.

[0082] This step is to load the original image provided by the server to the terminal. The target page refers to the page currently displayed by the OTT client running on the terminal. In addition, in order to facilitate subsequent distinction, the image sent by the server is referred to as the original image in the embodiment of the present application. Exemplarily, the original image refers to an image that has not been processed by the server for clarity enhancement.

[0083] In some embodiments, the process of loading the original image by the terminal includes but is not limited to:

[0084] 4011. The terminal requests image data from the server.

[0085] Exemplarily, the terminal obtains the image data configured by the server by sending a network request to the server. The network request is generated by the terminal based on the user input operation. For example, after the terminal obtains the user's click operation on the application icon of the OTT client, it generates a network request for obtaining the image data of the video navigation page. In addition, the image data sent by the server is usually in the form of a stream, such as a bit stream.

[0086] 4012. The terminal decodes the image data stream sent by the server.

[0087] Exemplarily, the terminal decodes the image data stream sent by the server through a custom image library.

[0088] 4013. After decoding the image data stream, the terminal generates an original image and displays it on a display screen.

[0089] This step is to convert the decoded image data stream into a bitmap or drawable (a graphic that can be drawn on the display screen) that can be loaded and displayed by the terminal.

[0090] In other embodiments, the image clarity adjustment solution provided in the embodiments of the present application can be applied in various scenarios of the OTT client, including but not limited to: the video navigation page, video details page, video list page and video search page of the OTT client. Accordingly, the types of target pages include but are not limited to: video navigation page, video details page, video list page and video search page.

[0091] Among them, the video navigation page is also called the video homepage or video homepage, which refers to the first page that the user sees after starting the Internet TV application. In other words, the video navigation page is the page that opens by default when the user starts the Internet TV application. Figure 5 The following figure shows a possible display style of the video navigation page. The video details page is also called the player page or the play page, which is mainly used by users to play videos. Figure 6A possible display style of the video details page is shown. The list page is one of the common page types in the application. It is an intermediate page between the navigation page and the details page. In the embodiment of the present application, the video list page is used to display columns of video content, such as columns of video covers and video names. Figure 7 A possible display style of the video list page is shown. The video search page is used to provide a video search entry and display video search results. Figure 8 A possible display style of a video search page is shown.

[0092] Accordingly, the original image sent by the server is displayed on the target page, including but not limited to:

[0093] Displaying the original image sent by the server on the video navigation page of the Internet TV application; or,

[0094] Display the original image sent by the server on the video details page of the Internet TV application; or,

[0095] Display the original image sent by the server on the video list page of the Internet TV application; or,

[0096] The original image sent by the server is displayed on the video search page of the Internet TV application.

[0097] In other embodiments, the OTT client adjusts the image clarity based on user needs. Figure 2 and Figure 3 As shown in FIG. 1 , a switch option for turning on the image slice optimization function is newly added on the setting page of the Internet TV application. That is, an image optimization option 200 is displayed on the setting page of the Internet TV application, wherein the image optimization option 200 is used to turn on the image clarity optimization function; in response to the terminal obtaining the user's triggering operation on the image optimization option 200, Figure 3 As shown, a prompt message 300 will be displayed; wherein, the prompt message 300 is used to remind the user that the image clarity optimization function is currently turned on.

[0098] After the terminal loads the original image from the server, it will detect the clarity of the original image and improve the clarity of the original image that does not meet the clarity standard until the clarity meets the standard.

[0099] The embodiment of the present application detects the clarity of an image based on the clarity detection method of image blur. In short, if an image is already blurred, then performing an image blur process on it will not change its high-frequency components much; however, if an image is clear, then performing an image blur process on it will change its high-frequency components greatly. Therefore, Fig. 9As shown, a degraded image of the image to be detected can be obtained by performing an image blurring process on the image to be detected.

[0100] Among them, the degraded image refers to the original image with reduced image quality. In addition, the high-frequency component corresponds to the part of the image that changes dramatically, such as the edge (contour) or detail part of the image. Correspondingly, the low-frequency component represents the area in the image where the brightness or grayscale changes slowly, such as a large flat area in the image.

[0101] Afterwards, the grayscale value changes of the adjacent pixels of the image to be detected and the degraded image are compared, and then a comparative analysis is performed based on the magnitude of the grayscale value changes to determine the clarity. For example, the clarity result may be a normalized result, and the smaller the calculation result, the clearer the image, and vice versa.

[0102] 402. The terminal performs image blurring processing on the original image to obtain a degraded image of the original image.

[0103] In an embodiment of the present application, if there are multiple original images displayed on the target page, the terminal will start multiple threads to poll and detect the image clarity. That is, the method provided in the embodiment of the present application also includes: in response to the fact that there are multiple original images displayed on the target page, starting multiple threads; calling multiple threads to detect whether the clarity of the multiple original images meets the standard. Exemplarily, the above-mentioned clarity detection method can be polling detection.

[0104] In some embodiments, the OTT client displays 4 images in a row in most scenarios, so the default upper limit of the number of threads in the thread pool is 4. Exemplarily, each thread polls to detect the clarity of a column of images visible on the current page (target page), which is not specifically limited in the embodiments of the present application.

[0105] Exemplarily, the image blurring process may be a Gaussian blurring process. Gaussian blurring is also called Gaussian smoothing, which uses normal distribution (also known as Gaussian distribution) for image processing. Gaussian blurring is to perform a weighted average of a specified pixel and its surrounding pixels to obtain a final result, using Gaussian distribution as a filter.

[0106] 403. Acquire first data and second data; in response to the size relationship between the first data and the second data indicating that the clarity of the original image does not meet the standard, adjust the clarity of the original image until a target image with a clarity that meets the standard is obtained; wherein the first data is used to characterize the change of grayscale values ​​of adjacent pixel points of the original image, and the second data is used to characterize the change of grayscale values ​​of adjacent pixel points of the degraded image.

[0107] In some embodiments, the first data is the square of the grayscale difference between adjacent pixels of the original image, and the second data is the square of the grayscale difference between adjacent pixels of the degraded image.

[0108] Exemplarily, the embodiment of the present application uses the Brenner gradient function to respectively calculate the square of the grayscale difference between adjacent pixels of the original image and the square of the grayscale difference between adjacent pixels of the degraded image.

[0109] Taking the symbol X1 (first data) representing the square of the grayscale difference between adjacent pixels of the original image and the symbol X2 (second data) representing the square of the grayscale difference between adjacent pixels of the degraded image as an example, the smaller the square value is, the clearer the corresponding image is, and vice versa.

[0110] In the embodiment of the present application, if X1 is less than X2, it means that the clarity of the original image meets the standard, that is, the clarity of this image is acceptable, and there is no need to perform clarity enhancement processing on this image; if X1 is not less than X2, for example, the second data is greater than the first data, it means that the clarity of the original image does not meet the standard, and image clarity enhancement processing needs to be performed on this image.

[0111] In the embodiment of the present application, the definition enhancement process may be a multi-step process, that is, an original image may reach the definition standard only after multiple definition enhancement processes. Accordingly, adjusting the definition of the original image until a target image with the definition standard is obtained includes:

[0112] 4031. Perform clarity enhancement processing on the original image to obtain a first intermediate image.

[0113] 4032. Detect whether the clarity of the first intermediate image meets the standard; in response to the clarity of the first intermediate image not meeting the standard, perform clarity enhancement processing on the first intermediate image to obtain a second intermediate image;

[0114] 4033. Detect whether the clarity of the second intermediate image meets the standard; in response to the clarity of the second intermediate image not meeting the standard, perform clarity enhancement processing on the second intermediate image to obtain a third intermediate image;

[0115] 4034. Similarly, the clarity enhancement process is repeatedly performed on the image obtained in the previous step until a target image with clarity that meets the standard is obtained.

[0116] It should be noted that the clarity enhancement processing in the above steps 4032 to 4034 is similar to the above step 4031. Taking the detection of whether the clarity of the first intermediate image meets the standard as an example, the detailed steps include: performing image blur processing on the first intermediate image to obtain a degraded image of the first intermediate image; obtaining third data and fourth data, the third data is used to characterize the grayscale value change of adjacent pixels of the first intermediate image, and the fourth data is used to characterize the grayscale value change of adjacent pixels of the degraded image of the first intermediate image; in response to the size relationship between the third data and the fourth data indicating that the clarity of the first intermediate image does not meet the standard, determining that the clarity of the first intermediate image does not meet the requirements.

[0117] In summary, when detecting whether the clarity of an image meets the standard, the image may be the original image mentioned above or an enhanced image, such as the first intermediate image, the second intermediate image and the third intermediate image mentioned above.

[0118] In other embodiments, performing clarity enhancement processing is to extract the high-frequency component of image A and then superimpose it on image A, so as to achieve detail enhancement and overall sharpening effects. Exemplarily, superimposing the high-frequency component on image A means: superimposing the pixel points corresponding to the high-frequency component on the pixel points at the same position of image A. Figuratively speaking, assuming that image B only includes the pixel points corresponding to the high-frequency component, where image B is the same size as image A, then superimposing image A and image B pixel by pixel at the same position completes the clarity enhancement processing.

[0119] Exemplarily, the embodiment of the present application uses the Laplcian operator to extract high-frequency components. The operator is the second-order derivative of the image, and the value is not 0 at the beginning and end of the image change, and the result is 0 when the image changes gradually.

[0120] In other embodiments, Fig.10 As shown, the "performing definition enhancement processing on the original image" in the above step 4031 includes but is not limited to:

[0121] 4031-1. Input an original image and determine a target area in the original image; wherein the target area is other areas except the image boundary.

[0122] 4031-2. For any pixel point in the target area, perform low-pass filtering on the pixel point.

[0123] In the embodiment of the present application, a low-pass filter is used to perform low-pass filtering on the pixel point, that is, an N*N low-pass filtering is performed on each pixel point except the image boundary.

[0124] Filtering is the convolution of a mask and an image. Usually, the filtering process is divided into two steps: the first step is to obtain the mask; the second step is to perform the convolution operation. The filtering result is the multiplication and addition of the value of each position on the mask and the pixel value at the corresponding position on the image.

[0125] Exemplarily, the low-pass filter uses an N*N Gaussian mask, where N is a positive integer. For example, the low-pass filter uses a 3*3 Gaussian mask of {{1,2,1}, {2,4,2}, {1,2,1}}, which is not specifically limited in the embodiment of the present application.

[0126] 4031-3. For each pixel point in the target area, obtain a low-pass filtering result of the pixel point.

[0127] 4031-4. In response to the low-pass filtering result of the pixel being greater than the target threshold, determine that the pixel corresponds to a high-frequency component of the original image, and perform clarity enhancement processing on the pixel.

[0128] The value of the target threshold varies depending on the type of the target page.

[0129] In an embodiment of the present application, in response to the target page being a video navigation page of an Internet TV application, the target threshold is a first value; or, in response to the target page being a video details page of an Internet TV application, the target threshold is a second value; or, in response to the target page being a video list page or a video search page of an Internet TV application, the target threshold is a third value;

[0130] Among them, in order to adapt to the multiple scenarios of the OTT client (video homepage, video details page, video list page, video search page, etc.), the embodiment of the present application sets a target threshold. Only when the low-pass filtering result of a certain pixel point is greater than the target threshold, the clarity enhancement processing is performed on the corresponding pixel point.

[0131] In the embodiment of the present application, since the user has the highest requirement for the clarity of the image included in the video homepage, the first value is the largest. For example, the first value is greater than the second value, and the second value is greater than the third value. For example, the first value is 15, the second value is 12, and the third value is 10. In general, the value interval of the above target threshold is (0,64).

[0132] In other embodiments, clarity enhancement processing is performed on the pixel point, including but not limited to: superimposing the pixel point corresponding to the high-frequency component onto the pixel point at the same position of the original image.

[0133] In addition, in response to the low-pass filtering result of the pixel being no greater than the target threshold, the pixel does not need to be processed.

[0134] 4031-5. After all pixels except the image boundary are executed, the first intermediate image is output.

[0135] 404. Display the target image on the target page by replacing the original image.

[0136] Since the clarity of the original image does not meet the standard, after improving the clarity of the original image to obtain the target image, it is necessary to refresh the image so that the target image with the standard clarity can be displayed on the target page.

[0137] The embodiment of the present application provides a solution for automatically adjusting the image clarity on the terminal side, which can automatically detect the clarity of the image sent by the server, and automatically perform clarity improvement processing on the image whose clarity does not meet the standard, which not only ensures the image quality and meets the user's needs, but also is more intelligent. In addition, since the work of improving the image clarity is performed by the terminal side, it not only reduces the workload of UI developers and reduces labor costs, but also reduces the pressure on the server to send image data (the clearer the image, the larger the volume), and reduces network bandwidth loss. In addition, the embodiment of the present application also supports adjusting the clarity of the image in a variety of scenarios, with a wider range of applications and better intelligence.

[0138] Fig.11 is an overall execution flow chart of an image processing method provided in an embodiment of the present application. For example, the present application embodiment is described by taking the method executed by a terminal as an example. Fig.11 , the method flow provided in the embodiment of the present application includes:

[0139] 1101. The terminal requests image data from the server.

[0140] 1102. The terminal decodes the image data stream sent by the server.

[0141] 1103. The terminal generates an image and displays it on a display screen.

[0142] 1104. The terminal starts multi-threading and polls to detect the clarity of the image.

[0143] 1105. The terminal performs image blurring processing on the current image (original image or enhanced image).

[0144] 1106. The terminal determines whether the clarity of the current image meets the standard; if not, execute the following step 1107; if yes, execute the following step 1108.

[0145] 1107. The terminal performs image definition enhancement processing on the current image.

[0146] 1108. The terminal determines whether the current image has been subjected to definition enhancement processing; if not, execute the following step 1109; if yes, execute the following step 1110.

[0147] 1109. The terminal does not need to replace the image on the display screen.

[0148] 1110. The terminal needs to perform image replacement on the display screen, replacing the original image whose definition does not meet the definition standard with an image whose definition meets the definition standard after performing definition enhancement processing.

[0149] 1111. The terminal continues to detect the next image.

[0150] The embodiment of the present application provides a solution for automatically adjusting the image clarity on the terminal side, which can automatically detect the clarity of the image sent by the server, and automatically perform clarity improvement processing on the image whose clarity does not meet the standard, which not only ensures the image quality and meets the user's needs, but also is more intelligent. In addition, since the work of improving the image clarity is performed by the terminal side, it not only reduces the workload of UI developers and reduces labor costs, but also reduces the pressure on the server to send image data (the clearer the image, the larger the volume), and reduces network bandwidth loss. In addition, the embodiment of the present application also supports adjusting the clarity of the image in a variety of scenarios, with a wider range of applications and better intelligence.

[0151] In other embodiments, Figures 12 to 17 A set of comparison pictures before and after image quality optimization are shown. Fig.12 , Fig.14 and Fig.16 It refers to the original image (for example, the server and UI developers have not done any clarity enhancement processing). Fig.13 , Fig.15 and Fig.17 Refers to the target image (the terminal has performed clarity enhancement processing). Fig.12 and Fig.13 It can be concluded that the images included in the optimized video navigation page (the two large poster images at the top) are clearer; Fig.14 and Fig.15 It can be concluded that the images (a horizontal column of images) included in the optimized video details page are clearer; Fig.16 and Fig.17 It can be concluded that the optimized video search page includes clearer images.

[0152] Fig.18 is a structural diagram of an image processing device provided in an embodiment of the present application. Fig.18 , the device comprises:

[0153] The first display module 1801 is configured to display the original image sent by the server on a target page, where the target page is a page provided by the Internet TV application;

[0154] A first processing module 1802 is configured to perform image blurring processing on the original image to obtain a degraded image of the original image;

[0155] The detection module 1803 is configured to obtain first data and second data, wherein the first data is used to characterize the grayscale value change of adjacent pixels of the original image, and the second data is used to characterize the grayscale value change of adjacent pixels of the degraded image;

[0156] The second processing module 1804 is configured to adjust the clarity of the original image in response to the size relationship between the first data and the second data indicating that the clarity of the original image does not meet the standard, until a target image with a clarity that meets the standard is obtained;

[0157] The first display module 1801 is further configured to display the target image on the target page in a manner of replacing the original image.

[0158] The embodiment of the present application provides a solution for automatically adjusting the image clarity on the terminal side, which can automatically detect the clarity of the image sent by the server and automatically perform clarity improvement processing on the image that does not meet the clarity standard, which not only ensures the image quality and meets the user's needs, but also is more intelligent. In addition, since the work of improving the image clarity is performed by the terminal side, it not only reduces the workload of UI developers and reduces labor costs, but also reduces the pressure on the server to send image data (the clearer the image, the larger the volume), and reduces network bandwidth loss.

[0159] In some embodiments, the apparatus further comprises:

[0160] The second display module is configured to display an image optimization option on the setting page of the Internet TV application, and the image optimization option is used to turn on the image clarity optimization function; in response to a trigger operation on the image optimization option, a prompt message is displayed, and the prompt message is used to prompt that the image clarity optimization function has been turned on.

[0161] In some embodiments, the first display module is configured to display the original image sent by the server on the video navigation page of the Internet TV application; or, to display the original image sent by the server on the video details page of the Internet TV application; or, to display the original image sent by the server on the video list page of the Internet TV application; or, to display the original image sent by the server on the video search page of the Internet TV application.

[0162] In some embodiments, the first data is the square of the grayscale difference between adjacent pixels of the original image, and the second data is the square of the grayscale difference between adjacent pixels of the degraded image;

[0163] The detection module is further configured to determine that the clarity of the original image does not meet the standard in response to the first data being not greater than the second data.

[0164] In some embodiments, the second processing module is configured to:

[0165] Performing definition enhancement processing on the original image to obtain a first intermediate image;

[0166] In response to the clarity of the first intermediate image meeting the standard, obtaining the target image;

[0167] In response to the definition of the first intermediate image not meeting the standard, performing definition enhancement processing on the first intermediate image to obtain a second intermediate image;

[0168] By analogy, the definition enhancement process is repeatedly performed on the image obtained in the previous step until the target image with definition meeting the standard is obtained.

[0169] In some embodiments, the second processing module is configured to:

[0170] Determine a target area in the original image, wherein the target area is other areas except the image boundary;

[0171] For any pixel point in the target area, low-pass filtering is performed on the pixel point; in response to the low-pass filtering result of the pixel point being greater than a target threshold, the pixel point is determined to correspond to a high-frequency component of the original image, and definition enhancement is performed on the pixel point;

[0172] The value of the target threshold varies depending on the type of the target page.

[0173] In some embodiments, in response to the target page being the video navigation page of the Internet TV application, the target threshold is a first value; or, in response to the target page being the video details page of the Internet TV application, the target threshold is a second value; or, in response to the target page being the video list page or video search page of the Internet TV application, the target threshold is a third value; wherein the first value is greater than the second value, and the second value is greater than the third value.

[0174] In some embodiments, the second processing module is configured to perform low-pass filtering on the pixel points through a low-pass filter, and the low-pass filter adopts an N*N Gaussian mask, where the value of N is a positive integer.

[0175] In some embodiments, the second processing module is configured to superimpose the pixel points corresponding to the high-frequency component onto the pixel points at the same position of the original image.

[0176] In some embodiments, the detection module is further configured to start multiple threads in response to the number of original images displayed on the target page being multiple; and call the multiple threads to detect whether the clarity of the multiple original images meets the standard.

[0177] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0178] It should be noted that: when the image processing device provided in the above embodiment performs image processing, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the image processing device provided in the above embodiment and the image processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0179] In an exemplary embodiment, a computer device is also provided. Taking the computer device as a terminal as an example, see Fig.19 , which shows a structural block diagram of a terminal 1900 provided by an exemplary embodiment of the present application.

[0180] Typically, the terminal 1900 includes: a processor 1901 and a memory 1902 .

[0181] The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0182] The memory 1902 may include one or more computer-readable storage media, which may be non-transitory. The memory 1902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1902 is used to store at least one program code, which is used to be executed by the processor 1901 to implement the image processing method provided in the method embodiment of the present application.

[0183] In some embodiments, the terminal 1900 may also optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902 and the peripheral device interface 1903 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1903 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1904, a display screen 1905, a camera assembly 1906, an audio circuit 1907 and a power supply 1909.

[0184] The peripheral device interface 1903 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, the memory 1902, and the peripheral device interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral device interface 1903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0185] The radio frequency circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1904 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1904 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1904 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1904 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0186] The display screen 1905 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1905 is a touch display screen, the display screen 1905 also has the ability to collect touch signals on the surface or above the surface of the display screen 1905. The touch signal can be input to the processor 1901 as a control signal for processing. At this time, the display screen 1905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1905 can be one, set on the front panel of the terminal 1900; in other embodiments, the display screen 1905 can be at least two, respectively set on different surfaces of the terminal 1900 or in a folding design; in other embodiments, the display screen 1905 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 1900. Even, the display screen 1905 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1905 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0187] The camera assembly 1906 is used to capture images or videos. Optionally, the camera assembly 1906 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1906 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0188] The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1901 for processing, or input them into the radio frequency circuit 1904 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1900. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1907 may also include a headphone jack.

[0189] The power supply 1909 is used to power various components in the terminal 1900. The power supply 1909 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1909 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0190] In some embodiments, the terminal 1900 further includes one or more sensors 1910 . The one or more sensors 1910 include, but are not limited to: an acceleration sensor 1911 , a gyroscope sensor 1912 , a pressure sensor 1913 , an optical sensor 1915 , and a proximity sensor 1916 .

[0191] The acceleration sensor 1911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1900. For example, the acceleration sensor 1911 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1901 can control the display screen 1905 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1911. The acceleration sensor 1911 can also be used to collect motion data of games or users.

[0192] The gyro sensor 1912 can detect the body direction and rotation angle of the terminal 1900, and the gyro sensor 1912 can cooperate with the acceleration sensor 1911 to collect the user's 3D actions on the terminal 1900. The processor 1901 can implement the following functions based on the data collected by the gyro sensor 1912: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0193] The pressure sensor 1913 can be set on the side frame of the terminal 1900 and / or the lower layer of the display screen 1905. When the pressure sensor 1913 is set on the side frame of the terminal 1900, it can detect the user's holding signal of the terminal 1900, and the processor 1901 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1913. When the pressure sensor 1913 is set on the lower layer of the display screen 1905, the processor 1901 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0194] The optical sensor 1915 is used to collect the ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the display screen 1905 according to the ambient light intensity collected by the optical sensor 1915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the display screen 1905 is reduced. In other embodiments, the processor 1901 can also dynamically adjust the shooting parameters of the camera component 1906 according to the ambient light intensity collected by the optical sensor 1915.

[0195] The proximity sensor 1916, also called a distance sensor, is usually arranged on the front panel of the terminal 1900. The proximity sensor 1916 is used to collect the distance between the user and the front of the terminal 1900. In one embodiment, when the proximity sensor 1916 detects that the distance between the user and the front of the terminal 1900 is gradually decreasing, the processor 1901 controls the display screen 1905 to switch from the screen-on state to the screen-off state; when the proximity sensor 1916 detects that the distance between the user and the front of the terminal 1900 is gradually increasing, the processor 1901 controls the display screen 1905 to switch from the screen-off state to the screen-on state.

[0196] Those skilled in the art will understand that Fig.19 The structure shown in the figure does not constitute a limitation on the terminal 1900, and the terminal 1900 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0197] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a program code, and the program code can be executed by a processor in a terminal to complete the image processing method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0198] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal performs the above-mentioned image processing method.

[0199] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0200] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An image processing method, characterized in that: Applied to a terminal installed with an Internet TV application, the method comprises: Displaying the original image sent by the server on a target page, wherein the target page is a page provided by the Internet TV application; the types of the target page include a video navigation page, a video details page, a video list page, and a video search page; Performing image blurring processing on the original image to obtain a degraded image of the original image; Acquire first data and second data, wherein the first data is the square of the grayscale difference between adjacent pixels of the original image, and the second data is the square of the grayscale difference between adjacent pixels of the degraded image; In response to the first data being not greater than the second data, it is determined that the clarity of the original image does not meet the standard, and a target area is determined in the original image; for any pixel point in the target area, a low-pass filtering process is performed on the pixel point; in response to the low-pass filtering result of the pixel point being greater than a target threshold, it is determined that the pixel point corresponds to a high-frequency component of the original image, and a clarity enhancement process is performed on the pixel point to obtain a first intermediate image; wherein the target area is other areas except the image boundary, and the value of the target threshold value varies according to the type of the target page; In response to the definition of the first intermediate image not meeting the standard, performing definition enhancement processing on the first intermediate image to obtain a second intermediate image; and so on, repeatedly performing definition enhancement processing on the image obtained in the previous step until a target image meeting the standard definition is obtained; The target image is displayed on the target page in a manner of replacing the original image.

2. The method according to claim 1, characterized in that The method further comprises: Displaying an image optimization option on the settings page of the Internet TV application, wherein the image optimization option is used to enable a clarity optimization function of the image; In response to a triggering operation for the image optimization option, a prompt message is displayed, wherein the prompt message is used to prompt that the image clarity optimization function has been turned on.

3. The method according to claim 1, characterized in that The displaying of the original image sent by the server on the target page includes: Displaying the original image sent by the server on the video navigation page of the Internet TV application; or, Displaying the original image sent by the server on the video details page of the Internet TV application; or, Displaying the original image sent by the server on the video list page of the Internet TV application; or, The original image sent by the server is displayed on the video search page of the Internet TV application.

4. The method according to claim 1, characterized in that: In response to the first intermediate image meeting the definition standard, the target image is obtained.

5. The method according to claim 1, characterized in that In response to the target page being the video navigation page of the Internet TV application, the target threshold is a first value; or, In response to the target page being the video details page of the Internet TV application, the target threshold is a second value; or, In response to the target page being a video list page or a video search page of the Internet TV application, the target threshold is a third value; Among them, the first value is greater than the second value, and the second value is greater than the third value.

6. The method according to claim 1, characterized in that The performing low-pass filtering on the pixel points comprises: A low-pass filtering process is performed on the pixel point through a low-pass filter, and the low-pass filter adopts an N*N Gaussian mask, where the value of N is a positive integer.

7. The method according to claim 1, characterized in that The performing definition enhancement processing on the pixel points includes: superimposing the pixel points corresponding to the high-frequency components onto the pixel points at the same position of the original image.

8. The method according to claim 1, characterized in that The method further comprises: In response to the target page displaying a plurality of original images, a plurality of threads are started; and the plurality of threads are called to detect whether the clarity of the plurality of original images meets the standard.

9. An image processing device, characterized in that: The device comprises: A first display module is configured to display the original image sent by the server on a target page, wherein the target page is a page provided by the Internet TV application; the types of the target page include a video navigation page, a video details page, a video list page, and a video search page; A first processing module is configured to perform image blurring processing on the original image to obtain a degraded image of the original image; a detection module configured to acquire first data and second data, wherein the first data is the square of the grayscale difference between adjacent pixels of the original image, and the second data is the square of the grayscale difference between adjacent pixels of the degraded image; The second processing module is configured to, in response to the first data being not greater than the second data, determine that the clarity of the original image does not meet the standard, determine a target area in the original image; for any pixel in the target area, perform low-pass filtering on the pixel; in response to the low-pass filtering result of the pixel being greater than a target threshold, determine that the pixel corresponds to a high-frequency component of the original image, perform clarity enhancement processing on the pixel, and obtain a first intermediate image; wherein the target area is other areas except the image boundary, and the value of the target threshold varies depending on the type of the target page; in response to the clarity of the first intermediate image not meeting the standard, perform clarity enhancement processing on the first intermediate image to obtain a second intermediate image; and so on, repeatedly perform clarity enhancement processing on the image obtained in the previous step until a target image with standard clarity is obtained; The first display module is further configured to display the target image on the target page in a manner of replacing the original image.

10. The device according to claim 9, characterized in that The device also includes: The second display module is configured to display an image optimization option on the setting page of the Internet TV application, and the image optimization option is used to turn on the image clarity optimization function; in response to a trigger operation on the image optimization option, a prompt message is displayed, and the prompt message is used to prompt that the image clarity optimization function has been turned on.

11. The device according to claim 9, characterized in that The first display module is configured to display the original image sent by the server on the video navigation page of the Internet TV application; or, to display the original image sent by the server on the video details page of the Internet TV application; or, to display the original image sent by the server on the video list page of the Internet TV application; or, to display the original image sent by the server on the video search page of the Internet TV application.

12. The device according to claim 9, characterized in that In response to the first intermediate image meeting the definition standard, the target image is obtained.

13. The device according to claim 9, characterized in that In response to the target page being the video navigation page of the Internet TV application, the target threshold is a first value; or, In response to the target page being the video details page of the Internet TV application, the target threshold is a second value; or, In response to the target page being a video list page or a video search page of the Internet TV application, the target threshold is a third value; Among them, the first value is greater than the second value, and the second value is greater than the third value.

14. The device according to claim 9, characterized in that The second processing module is configured to perform low-pass filtering on the pixel points through a low-pass filter, and the low-pass filter adopts an N*N Gaussian mask, where the value of N is a positive integer.

15. The device according to claim 9, characterized in that The second processing module is configured to superimpose the pixel points corresponding to the high-frequency component onto the pixel points at the same position of the original image.

16. The device according to claim 9, characterized in that The detection module is further configured to start multiple threads in response to the number of original images displayed on the target page being multiple; and call the multiple threads to detect whether the clarity of the multiple original images meets the standard.

17. A terminal, characterized in that: The terminal includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the image processing method according to any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that: At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by the processor to implement the image processing method according to any one of claims 1 to 8.

19. A computer program product, characterized in that The computer program product includes a computer program code, which is stored in a computer-readable storage medium. A processor of a terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal executes the image processing method according to any one of claims 1 to 8.