Image processing method and device, equipment and storage medium

By performing global and local saturation enhancement processing on image data from smart terminals, eye-protecting image data is generated, solving the problem that existing eye-protection processing methods affect display effects and improving visual comfort.

CN122048751APending Publication Date: 2026-05-15HUIZHOU TCL MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUIZHOU TCL MOBILE COMM CO LTD
Filing Date
2026-01-06
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing eye protection methods affect image display quality on smart terminal screens and are costly, resulting in poor image display quality.

Method used

By acquiring initial image data, determining the image enhancement coefficient using preset enhancement coefficients and quantization saturation, and performing global and local saturation enhancement processing on the image data, eye-protecting image data is generated.

Benefits of technology

Without affecting the image display effect, it improves the eye protection effect of image data and enhances visual comfort when watching smart terminals for a long time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122048751A_ABST
    Figure CN122048751A_ABST
Patent Text Reader

Abstract

The invention provides an image processing method and device, equipment and a storage medium, and the method comprises the steps: obtaining initial image data corresponding to an image processing request in response to the image processing request; determining a first image enhancement coefficient of the initial image data according to a preset enhancement coefficient and image saturation data; determining a second image enhancement coefficient of the initial image data according to the quantization saturation of the initial image data and a target enhancement model; and performing saturation enhancement processing on the initial image data according to the first image enhancement coefficient and the second image enhancement coefficient to obtain eye protection image data. The eye protection effect of the image data in the display process is improved, and the visual comfort degree when the display equipment is watched for a long time is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and specifically to an image processing method, apparatus, device, and storage medium. Background Technology

[0002] Currently, with the rapid development of smart terminals such as mobile phones, these terminals have become an indispensable part of daily life. However, prolonged use of mobile phones and other smart terminals can easily lead to eye fatigue and dry eye, which can adversely affect users' vision. Existing eye protection methods involve applying anti-reflective treatment to the display glass layer or screen surface to reduce reflections or glare, or performing image enhancement processing on the displayed image to achieve an eye protection effect. However, these methods significantly affect the image display effect and are costly, impacting the color, clarity, and contrast of the displayed image, and causing local over-enhancement or unnatural colors, resulting in poor image display quality. Summary of the Invention

[0003] This application provides an image processing method, apparatus, device, and storage medium, aiming to solve the technical problem in the prior art where performing eye protection processing results in poor image display effects.

[0004] On one hand, embodiments of this application provide an image processing method, which includes the following steps: In response to an image processing request, obtain the initial image data corresponding to the image processing request; The first image enhancement coefficient of the initial image data is determined based on the preset enhancement coefficient and image saturation data; The second image enhancement coefficient of the initial image data is determined based on the quantization saturation of the initial image data and the target enhancement model; The initial image data is subjected to saturation enhancement processing based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data.

[0005] In one possible implementation of this application, before determining the second image enhancement coefficient of the initial image data based on the quantization saturation and target enhancement model of the initial image data, the method further includes: The image pixel data of the initial image data is obtained, and the image pixel data includes pixel brightness data, a first pixel chromaticity component, and a second pixel chromaticity component; The image pixel data is subjected to chroma conversion processing to obtain converted pixel data, which includes a first converted chroma component and a second converted chroma component. Pixel saturation data are calculated based on the first converted chromaticity component and the second converted chromaticity component; The quantization saturation corresponding to the initial image data is determined using the pixel saturation data and the pixel brightness data.

[0006] In one possible implementation of this application, determining the quantization saturation corresponding to the initial image data using the pixel saturation data and the pixel brightness data includes: If the pixel brightness data meets the brightness evaluation conditions, the ratio of the pixel saturation data to the pixel brightness data is calculated to obtain the quantized saturation. If the pixel brightness data does not meet the brightness evaluation conditions, the preset saturation will be determined as the quantized saturation.

[0007] In one possible implementation of this application, determining the first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data includes: Calculate the image saturation data of the initial image data based on the pixel saturation data of each image pixel data in the initial image data; Calculate the initial saturation coefficient based on the image saturation data and the target saturation threshold; The first image enhancement coefficient of the initial image data is determined based on the initial saturation coefficient and the preset enhancement coefficient.

[0008] In one possible implementation of this application, the preset enhancement coefficient includes a first preset enhancement coefficient and a second preset enhancement coefficient; The step of determining the first image enhancement coefficient of the initial image data based on the initial saturation coefficient and the preset enhancement coefficient includes: When the initial saturation coefficient is greater than the first preset enhancement coefficient, the first preset enhancement coefficient is determined as the first image enhancement coefficient; When the initial saturation coefficient is less than the first preset enhancement coefficient and greater than the second preset enhancement coefficient, the initial saturation coefficient is determined as the first image enhancement coefficient; If the initial saturation coefficient is less than the second preset enhancement coefficient, then the second preset enhancement coefficient is determined as the first image enhancement coefficient.

[0009] In one possible implementation of this application, determining the second image enhancement coefficient of the initial image data based on the quantization saturation and the target enhancement model of the initial image data includes: The quantized saturation is normalized to obtain normalized saturation; The normalized saturation is input into the target enhancement model to obtain the second image enhancement coefficient of the initial image data.

[0010] In one possible implementation of this application, the saturation of the first pixel chroma data corresponding to the initial image data is enhanced using the first image enhancement coefficient and the second image enhancement coefficient to obtain the first enhanced chroma information; The saturation of the second pixel chromaticity data corresponding to the initial image data is enhanced using the first image enhancement coefficient and the second image enhancement coefficient to obtain the second enhanced chromaticity information. Eye-protection image data is generated based on the first enhanced chromaticity information and the second enhanced chromaticity information.

[0011] On the other hand, this application provides an image processing apparatus, the image processing apparatus comprising: The image acquisition module is configured to respond to an image processing request and acquire the initial image data corresponding to the image processing request. The global enhancement module is configured to determine a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data; The local enhancement module is configured to determine a second image enhancement coefficient of the initial image data based on the quantization saturation of the initial image data and the target enhancement model; The image processing module is configured to perform saturation enhancement processing on the initial image data based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protecting image data.

[0012] On the other hand, this application also provides an image processing apparatus, the image processing apparatus comprising: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the image processing method.

[0013] On the other hand, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps in the image processing method.

[0014] This application obtains initial image data corresponding to an image processing request in response to the request; determines a first image enhancement coefficient for the initial image data based on a preset enhancement coefficient and image saturation data; determines a second image enhancement coefficient for the initial image data based on the quantized saturation and target enhancement model; and performs saturation enhancement processing on the initial image data based on the first and second image enhancement coefficients to obtain eye-friendly image data. This achieves the following: obtaining initial image data to be displayed, and using the image saturation data and quantized saturation data of the initial image data to determine a first and a second image enhancement coefficient for global and local saturation enhancement control processing of the initial image data, respectively; and using the first and second image enhancement coefficients to perform saturation enhancement processing on the initial image data. This achieves improved eye-friendly image data during display by adaptively adjusting the saturation of the image data without affecting the image display effect, effectively improving visual comfort during prolonged viewing of display devices. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a schematic diagram of a scene illustrating the image processing method according to an embodiment of this application; Figure 2 This is a flowchart illustrating one embodiment of the image processing method in this application. Figure 3 A flowchart illustrating one embodiment of the image processing method for calculating quantized saturation provided in this application; Figure 4 A flowchart illustrating an embodiment of the image processing method for determining a first image enhancement coefficient provided in this application; Figure 5 A schematic diagram of the structure of one embodiment of the image processing apparatus provided in this application; Figure 6 This is a schematic diagram of an embodiment of the image processing device provided in this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0019] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0020] Currently, with the rapid development of smart terminals such as mobile phones, these terminals have become an indispensable part of daily life. However, prolonged use of mobile phones and other smart terminals can easily lead to eye fatigue and dry eye, which can adversely affect users' vision. Existing eye protection methods involve applying anti-reflective treatment to the display glass layer or screen surface to reduce reflections or glare, or performing image enhancement processing on the displayed image to achieve an eye protection effect. However, these methods significantly affect the image display effect and are costly, impacting the color, clarity, and contrast of the displayed image, and causing local over-enhancement or unnatural colors, resulting in poor image display quality.

[0021] Based on this, this application proposes an image processing method, apparatus, device, and computer-readable storage medium to solve the technical problem that poor image display effect is caused by performing eye protection processing in the prior art.

[0022] The image processing method in this embodiment of the invention is applied to an image processing device, which is disposed in an image processing equipment. The image processing equipment includes one or more processors, a memory, and one or more application programs. The one or more application programs are stored in the memory and configured to be executed by the processor to implement the image processing method. The image processing equipment can be a smart display terminal, such as a mobile phone, tablet computer, smart TV, smart wearable device, and smart computer. Optionally, the image processing equipment can also be a server or a service cluster composed of multiple servers.

[0023] like Figure 1 As shown, Figure 1 This is a schematic diagram of a scenario for an image processing method according to an embodiment of this application. In this embodiment of the invention, the image processing scenario includes an image processing device 100 (the image processing device 100 integrates an image processing apparatus), and the image processing device 100 is equipped with a computer-readable storage medium corresponding to the image processing method to execute the steps of the image processing method.

[0024] Understandable, Figure 1 The image processing device in the image processing method scenario shown, or the device included in the image processing device, does not constitute a limitation on the embodiments of the present invention. That is, the number or type of the image processing device included in the image processing method scenario, or the number or type of the device included in each device, does not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.

[0025] In this embodiment of the invention, the image processing device 100 is mainly used for: responding to an image processing request and obtaining initial image data corresponding to the image processing request; determining a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data; determining a second image enhancement coefficient of the initial image data based on the quantized saturation of the initial image data and a target enhancement model; and performing saturation enhancement processing on the initial image data based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protecting image data.

[0026] The image processing device 100 in this embodiment of the invention can be an independent image processing device, such as a mobile phone, tablet computer, smart TV, smart wearable device and smart computer, or an image processing network or image processing cluster composed of multiple image processing devices.

[0027] This application provides an image processing method, apparatus, device, and computer-readable storage medium, which will be described in detail below.

[0028] It will be understood by those skilled in the art that Figure 1 The application environment shown is only one application scenario related to the solution of this application and does not constitute a limitation on the application scenario of this application. Other application environments may include more than one application scenario. Figure 1 The number of more or fewer image processing devices shown, or the image processing network connectivity relationships, for example Figure 1 Only one image processing device is shown in the image, but it is understood that the scenario of the image processing method may also include one or more image processing devices, which are not specifically limited here; the image processing device 100 may also include a memory for storing initial image data and other data.

[0029] It should be noted that, Figure 1 The schematic diagram of the image processing method shown is merely an example. The scenarios of the image processing method described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention and do not constitute a limitation on the technical solutions provided in the embodiments of the present invention.

[0030] Based on the scenarios described above for image processing methods, various embodiments of the image processing methods disclosed in this invention are proposed.

[0031] like Figure 2 As shown, Figure 2 This is a flowchart illustrating one embodiment of the image processing method in this application. The image processing method includes the following steps 201 to 204: 201. Respond to the image processing request and obtain the initial image data corresponding to the image processing request; The image processing method in this embodiment is applied to an image processing device. The type and number of image processing devices are not specifically limited. That is, the image processing device can be one or more smart display terminals. In a specific embodiment, the image processing device can be any one or more of smart display terminals such as mobile phones, tablets, smart TVs, smart wearable devices, and smart computers.

[0032] Optionally, the image processing request is an operation instruction that drives the image processing device to perform eye-protection image processing on the initial image data to be displayed, so as to improve the visual comfort and eye-protection effect of the image processing device's eye-protection display. The triggering method of the image processing request is not specifically limited here; that is, the image processing request can be actively triggered by the user. For example, if the image processing device has an eye-protection settings interface, the user can actively trigger the image processing request by clicking the eye-protection processing button (including a virtual button control or a physical button mapped to the virtual button control) in the eye-protection settings interface. Furthermore, the image processing request can also be automatically triggered by the image processing device. For example, in one specific embodiment, the image processing device is pre-set with a timed eye-protection process that can automatically trigger the image processing request when the system time reaches the start time of the timed eye-protection process.

[0033] Optionally, the initial image data is image data to be displayed by the image processing device, used to show users display content such as photos, videos, and user interfaces. Optionally, the initial image data can be one or more frames of photo or video content to be displayed in a multimedia application within the image processing device. Furthermore, the initial image data can also be interface display images used to display application interfaces and interactive interface controls corresponding to different applications within the image processing device. That is, the initial image data can be any one or more of multimedia image data such as photos and interface display images.

[0034] Optionally, in one specific embodiment, the initial image data can be image data in any image format. For example, the initial image data can be any one of RGB format, YUV format, or HSV format. In one specific embodiment, the initial image data is RGB format image data.

[0035] Optionally, after receiving an image processing request, the image processing device determines the image data to be displayed as the initial image data corresponding to the image processing request, acquires the initial image data, and performs saturation enhancement processing on the initial image data in subsequent steps, thereby improving the visual comfort of the initial image data after display enhancement by the image processing device, so as to achieve the eye protection effect without adjusting the hardware.

[0036] Optionally, after acquiring the initial image data, the image processing device also acquires the image format of the initial image data. If the image format is determined to be another image format besides the target image format, the device performs image conversion on the initial image data to obtain the converted initial image data. Optionally, in one specific embodiment, since the luminance and chrominance components in the image data corresponding to the YUV image format are independent of each other, the image processing device can enhance the chrominance component independently without affecting the luminance information, thereby making the eye protection enhancement effect more stable. Therefore, the image processing device determines the target image format from the YUV image format.

[0037] In one specific embodiment, the image processing device pre-sets the target image format as YUV image format. After acquiring the initial image data, if it determines that the initial image data is RGB image data in RGB image format, the image processing device determines that the initial image data needs to be converted to obtain converted initial image data for display in YUV image format, in preparation for subsequent saturation processing of the initial image data. Optionally, the image processing device pre-sets an image conversion standard, and when it determines that the image format of the initial image data is another image format besides the target image format, it uses the image conversion standard to perform image conversion processing on the initial image data. The image conversion standard is a conversion standard based on the device's color space characteristics to perform image conversion on the initial image data. In one specific embodiment, the image conversion standard can be the BT.601 conversion standard or the BT.709 conversion standard.

[0038] In one specific embodiment, the image conversion process by which the image processing device converts initial image data in RGB image format to the image pixel data corresponding to the initial image data in YUV image format is as follows: Y = 0.2126 * R + 0.7152 * G + 0.0722 * B U = 0.5389 * (BY) + 128 V = 0.6350 * (RY) + 128 Where Y is the pixel brightness data of the image pixel data corresponding to the converted initial image data, U is the first pixel chromaticity component of the image pixel data corresponding to the converted initial image data, V is the second pixel chromaticity component of the image pixel data corresponding to the converted initial image data, R is the red pixel component corresponding to the initial image data, G is the green pixel component corresponding to the initial image data, and B is the blue pixel component corresponding to the initial image data.

[0039] Optionally, after acquiring the initial image data and / or the converted initial image data corresponding to the target image format, the image processing device performs saturation enhancement processing on the initial image data, thereby improving the visual comfort of the enhanced initial image data displayed by the image processing device, so as to achieve the eye protection effect without adjusting the hardware.

[0040] 202. Determine the first image enhancement coefficient of the initial image data based on the preset enhancement coefficient and image saturation data; Optionally, after acquiring the initial image data and / or converted initial image data corresponding to the target image format, the image processing device also calculates the image saturation data of the initial image data and / or converted initial image data, and determines the first image enhancement coefficient of the initial image data based on the preset enhancement coefficient and the image saturation data.

[0041] Optionally, the first image enhancement coefficient is an enhancement ratio coefficient for saturation enhancement of the initial image data from a global image perspective, used to avoid over-enhancement during the saturation enhancement of the initial image data.

[0042] Optionally, the preset enhancement coefficient is a control coefficient used to limit the global saturation enhancement level of the initial image data. Optionally, in one specific embodiment, the preset enhancement coefficient includes a first preset enhancement coefficient and a second preset enhancement coefficient. The first preset enhancement coefficient characterizes the maximum enhancement ratio allowed by the image processing device during the global saturation enhancement of the initial image data. The second preset enhancement coefficient characterizes the minimum enhancement ratio allowed by the image processing device during the global saturation enhancement of the initial image data. Optionally, in one specific embodiment, the value range of the first preset enhancement coefficient is [1.15, 1.35], and the value of the second preset enhancement coefficient is 1.

[0043] Optionally, the image saturation data is a saturation parameter characterizing the overall saturation of the initial image data. Optionally, in a specific embodiment, the image saturation data is the average image saturation of the initial image data.

[0044] Optionally, after acquiring the initial image data and / or the converted initial image data in the target image format, the image processing device calculates the average saturation of the initial image data, determines the average saturation of the image as the image saturation data of the initial image data, and uses the image saturation data and a preset enhancement coefficient to determine the first image enhancement coefficient corresponding to the global saturation enhancement processing of the initial image data.

[0045] Optionally, in one specific embodiment, the image processing device can calculate the pixel saturation data of each image pixel data of the initial image data, and add all the pixel saturation data together and divide by the total number of pixels in the initial image data to obtain the image saturation data.

[0046] Optionally, after acquiring the image saturation data, the image processing device also uses the image saturation data and a preset enhancement coefficient to determine a first image enhancement coefficient for global saturation enhancement of the initial image data.

[0047] Optionally, in one specific embodiment, the image processing device can calculate the initial saturation coefficient corresponding to the initial image data using image saturation data and a target saturation threshold, and determine the image saturation data of the initial image data by comparing the initial saturation coefficient with a preset enhancement coefficient. Optionally, the target saturation threshold is a saturation threshold parameter used to calculate the saturation enhancement ratio. In one specific embodiment, the value range of the saturation threshold parameter is [25, 35].

[0048] That is, the image processing device calculates the ratio of the saturation threshold parameter to the image saturation data, determines the ratio of the saturation threshold parameter to the image saturation data as the initial saturation coefficient, compares the initial saturation coefficient with the preset enhancement coefficient, obtains the comparison result, updates the initial saturation coefficient based on the comparison result, and obtains the first image enhancement coefficient, thereby avoiding over-enhancing the initial image data.

[0049] 203. Determine the second image enhancement coefficient of the initial image data based on the quantization saturation and the target enhancement model; Optionally, in order to perform global smoothing during the saturation enhancement process of the initial image and to control the saturation enhancement process of low-saturation pixels and high-saturation pixels in the initial image data, the image processing device also determines a second image enhancement coefficient of the initial image data based on the quantized saturation and target enhancement model of the initial image data. The second image enhancement coefficient is then used to smooth and optimize the saturation enhancement process to avoid over-enhancement and unnatural colors of pixels with different saturations, which could lead to display abnormalities in the enhanced image data.

[0050] Optionally, the second image enhancement coefficient is a saturation enhancement ratio for local saturation enhancement and smoothing of the initial image data. It is used to perform global smoothing during the saturation enhancement process of the initial image and to control the saturation enhancement process of low-saturation pixels and high-saturation pixels in the initial image data.

[0051] Optionally, quantized saturation is quantized pixel saturation data obtained by quantizing pixel saturation data using pixel brightness data. It is used to reduce the influence of pixel brightness on pixel saturation data, avoid the saturation of high brightness areas in the initial image data being incorrectly calculated as high saturation values, and avoid the saturation of low brightness areas in the initial image data being incorrectly calculated as high saturation values, thereby making the subsequent image saturation processing effect more natural.

[0052] Optionally, the target enhancement model is a curve model used to smooth and optimize the saturation enhancement coefficients of the initial image data, and is used to generate a second image enhancement coefficient that performs global smoothing during the saturation enhancement process of the initial image and controls the saturation enhancement process of low-saturation pixels and high-saturation pixels in the initial image data.

[0053] Optionally, in one specific embodiment, the target enhancement model is a Bézier curve model generated based on low-saturation control points, high-saturation control points, and control cutoff points. The low-saturation control points are preset curve points used to protect low-saturation pixels in the initial image data, allowing these pixels to obtain larger values ​​and thus achieve a greater enhancement ratio in subsequent saturation enhancement processes. The high-saturation control points are preset curve points used to protect high-saturation pixels in the initial image data, reducing the saturation enhancement effect of high-saturation pixels and avoiding over-enhancement and unnatural color anomalies. The control cutoff point is a threshold point used to limit saturation adjustment in the initial image data; that is, when the pixel saturation data of an image pixel in the initial image data exceeds the control cutoff point, it is truncated to the value of this control stage point to avoid over-saturation enhancement. The value of the low-saturation control point is less than the value of the high-saturation control point, which is less than the value of the control stage point. Optionally, in one specific embodiment, the value range of the low saturation control point is [0.08, 0.15], the value range of the high saturation control point is [0.15, 0.22], and the value range of the control cutoff point is [0.20, 0.40]. Optionally, the values ​​of the low saturation control point, high saturation control point, and control cutoff point can be assigned corresponding values ​​according to different colors in the initial image data. For example, the human eye is more sensitive to blue and cyan, so for blue and cyan pixels where the first pixel chromaticity component is greater than 0 and the second pixel chromaticity component is less than 0, the value of the low saturation control point can be set to 0.10, the value of the high saturation control point can be set to 0.15, and the value of the control cutoff point can be set to 0.22.

[0054] Optionally, after determining the low-saturation control point, high-saturation control point, and control cutoff point, the image processing device generates a target enhancement model based on the low-saturation control point, high-saturation control point, and control cutoff point. Optionally, in a specific embodiment, the expression of the target enhancement model is as follows:

[0055] in, For the target enhancement model, t is the quantization saturation (within the range of [0,1]). The starting point of the curve is (0, 1). The low saturation control point is (lowProtect, 0.8). The high saturation control point is set at (highProtect, 0.25). To control the cutoff point (highCutoff, 0).

[0056] Optionally, after acquiring the initial image data, the image processing device calculates the quantization saturation of each image pixel in the initial image data using the image pixel data of each image pixel in the initial image data, and uses the quantization saturation and the target enhancement model to determine the second image enhancement coefficient of the initial image data.

[0057] Optionally, after obtaining the quantization saturation of each image pixel in the initial image data, the image processing device uses the quantization saturation as model input and inputs it into the target enhancement model to generate the second image enhancement coefficient.

[0058] Optionally, in one specific embodiment, after obtaining the quantized saturation of the initial image data, the image processing device further normalizes the quantized saturation to obtain normalized saturation, and uses the normalized saturation as model input to input into the target enhancement model to obtain the second image enhancement coefficient corresponding to the initial image data output by the target enhancement model.

[0059] Optionally, in one specific embodiment, the image processing device normalizes the quantized saturation by using the values ​​of the truncation control points corresponding to the target enhancement model to normalize the quantized saturation, thus obtaining normalized saturation. Optionally, in one specific embodiment, the normalized saturation is calculated as follows:

[0060] Where t is the normalized saturation. To quantify saturation, The values ​​of the control points are to be truncated.

[0061] 204. Perform saturation enhancement processing on the initial image data according to the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data.

[0062] Optionally, after obtaining the first image enhancement coefficient and the second image enhancement coefficient, the image processing device further performs saturation enhancement processing on the initial image data based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data.

[0063] Optionally, in one specific embodiment, the image processing device can use a first image enhancement coefficient to perform global saturation enhancement on the pixel chroma data in the initial image data, and use a second image enhancement coefficient to perform local saturation control on the pixel chroma data of the target pixel in the initial image data, to obtain eye-protecting image data.

[0064] Optionally, in another specific embodiment, the image processing device uses the first image enhancement coefficient and the second image enhancement coefficient to enhance the saturation of the first pixel chroma data corresponding to the initial image data to obtain first enhanced chroma information, and uses the first image enhancement coefficient and the second image enhancement coefficient to enhance the saturation of the second pixel chroma data corresponding to the initial image data to obtain second enhanced chroma information. That is, the image processing device determines the target adjustment coefficient of each pixel chroma data in the initial image data according to the first adjustment coefficient and the second adjustment coefficient, and adjusts the pixel chroma data in the initial image data using the target adjustment coefficient to obtain first enhanced chroma information and second enhanced chroma information. Optionally, in one specific embodiment, the calculation method of the first enhanced chroma information and the second enhanced chroma information is as follows:

[0065]

[0066] in, To enhance chromaticity information, For the second enhancement of chromaticity information, is the second image enhancement coefficient, and k is the first image enhancement coefficient.

[0067] Optionally, after acquiring the first enhanced chromaticity information and the second enhanced chromaticity information, the image processing device further generates eye-protection image data based on the first enhanced chromaticity information and the second enhanced chromaticity information. That is, the image processing device can summarize each piece of first enhanced chromaticity information and second enhanced chromaticity information, as well as the corresponding pixel brightness information, to generate eye-protection image data, thereby improving the eye-protection effect of the image data during the display process, effectively improving visual comfort when viewing the display device for a long time, and reducing display abnormalities caused by changes in brightness such as light intensity during display.

[0068] Optionally, after acquiring the first enhanced chromaticity information and the second enhanced chromaticity information, the image processing device can further perform inverse image processing based on the first enhanced chromaticity information, the second enhanced chromaticity information, and the corresponding pixel brightness data to convert the image data back to the original color space and generate eye-protection image data. Optionally, in a specific embodiment, the calculation formula for the inverse image processing of the eye-protection image data is as follows:

[0069]

[0070]

[0071] Where R, G, and B are the red, green, and blue color components of the eye-protection image data, respectively, and Y is the pixel brightness data. To enhance chromaticity information, This is for the second enhancement of chromaticity information.

[0072] Optionally, after acquiring eye-protection image data, the image processing device displays the eye-protection image data in the display area, thereby improving the visual comfort of the initial image data after display enhancement by the image processing device, so as to achieve the eye-protection effect without adjusting the hardware.

[0073] In this embodiment, the image processing device acquires initial image data corresponding to an image processing request in response to the request; determines a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data; determines a second image enhancement coefficient of the initial image data based on the quantized saturation and target enhancement model; and performs saturation enhancement processing on the initial image data based on the first and second image enhancement coefficients to obtain eye-friendly image data. This achieves the following: acquiring initial image data to be displayed, using the image saturation data and quantized saturation data of the initial image data to determine a first and a second image enhancement coefficient for global and local saturation enhancement control processing of the initial image data, and using the first and second image enhancement coefficients to perform saturation enhancement processing on the initial image data. This achieves improved eye-friendly image data during display by adaptively adjusting the saturation, without affecting the image display effect, effectively improving visual comfort during prolonged viewing of the display device.

[0074] like Figure 3 As shown, Figure 3 This is a flowchart illustrating one embodiment of the image processing method for calculating quantization saturation provided in this application. Figure 3In the illustrated embodiment, the image processing method further includes steps 301 to 304: 301. Obtain the image pixel data of the initial image data, wherein the image pixel data includes pixel brightness data, a first pixel chromaticity component, and a second pixel chromaticity component; 302. Perform chroma conversion on the image pixel data to obtain converted pixel data; 303. Calculate pixel saturation data based on the first converted chromaticity component and the second converted chromaticity component; 304. Determine the quantization saturation corresponding to the initial image data using the pixel saturation data and the pixel brightness data.

[0075] Based on the above embodiments, in this embodiment, after acquiring the initial image data, the image processing device can also use the image pixel data of each image pixel in the initial image data to calculate the quantization saturation of each image pixel in the initial image data, and use the quantization saturation and the target enhancement model to determine the second image enhancement coefficient of the initial image data.

[0076] Optionally, quantized saturation is quantized pixel saturation data obtained by quantizing pixel saturation data using pixel brightness data. It is used to reduce the influence of pixel brightness on pixel saturation data, avoid the saturation of high brightness areas in the initial image data being incorrectly calculated as high saturation values, and avoid the saturation of low brightness areas in the initial image data being incorrectly calculated as high saturation values, thereby making the subsequent image saturation processing effect more natural.

[0077] Optionally, the image pixel data is display parameter data representing the pixel display information of each image pixel in the initial image data. Optionally, in one specific embodiment, the image pixel data includes pixel brightness data, a first pixel chromaticity component, and a second pixel chromaticity component. Wherein, the pixel brightness data is display parameter data representing the brightness information of image pixels in the initial image data. The first pixel chromaticity component and the second pixel component are respectively display parameter data representing the brightness information of image pixels in the initial image data. Optionally, in one specific embodiment, the first pixel chromaticity component (U chromaticity component) is display parameter data representing the difference between blue and brightness. The second pixel chromaticity component (V chromaticity component) is display parameter data representing the difference between red and brightness.

[0078] Optionally, after acquiring the image pixel data corresponding to the initial image data, in order to make the subsequent saturation enhancement more natural, the image processing device also uses the image pixel data to determine the quantized saturation corresponding to each image pixel in the initial image data, and then uses the quantized saturation to determine a second image enhancement coefficient used to smooth the saturation enhancement ratio during the saturation enhancement process, thereby making the display of the saturated image data more natural.

[0079] Optionally, in one specific embodiment, after acquiring the image pixel data, the image processing device further performs chroma conversion processing on the image pixel data to obtain converted pixel data. That is, the image processing device acquires a first pixel chroma component and a second pixel chroma component in the image pixel data whose values ​​fall within an asymmetric range (e.g., [0, 255]), and performs chroma bias processing on the first pixel chroma component and the second pixel chroma component respectively, converting the first pixel chroma component and the second pixel chroma component into a first converted chroma component and a second converted chroma component with symmetric values ​​(e.g., [-128, 127]). For example, in one specific embodiment, the image processing device acquires a first pixel chroma component and a second pixel chroma component in the image pixel data whose values ​​fall within an asymmetric range (e.g., [0, 255]), and subtracts a chroma conversion coefficient from the value of the first pixel chroma component to obtain a first converted chroma component, and subtracts a chroma conversion coefficient from the value of the second pixel chroma component to obtain a second converted chroma component. The chroma conversion coefficient is a coefficient used to perform numerical conversion on the pixel chroma components. Optionally, in one specific embodiment, the chromaticity conversion factor is 128.

[0080] Optionally, after acquiring the first converted chromaticity component and the second converted chromaticity component, the image processing device further calculates pixel saturation data of the image pixel based on the first converted chromaticity component and the second converted chromaticity component. The pixel saturation data is saturation data characterizing the color purity or intensity of the image pixel. Optionally, the image processing device can determine the pixel saturation data of the image pixel by calculating the modulus of the first converted chromaticity component and the second converted chromaticity component. Optionally, in a specific embodiment, the pixel saturation data is calculated as follows:

[0081] Where S is the pixel saturation data, U1 is the first converted chromaticity component, and V1 is the first converted chromaticity component.

[0082] Optionally, after acquiring the pixel saturation data of each image pixel, the image processing device further determines the quantized saturation corresponding to the initial image data based on the pixel saturation data and pixel brightness data. That is, the image processing device normalizes the pixel saturation data of each image pixel using the pixel brightness data to obtain the quantized saturation. This ensures that the saturation calculation result is inversely proportional to the brightness, avoiding the erroneous calculation of high-brightness areas as high saturation values ​​and low-brightness areas as low saturation values. Furthermore, it allows the image data after saturation enhancement to better conform to the visual perception rule that color saturation appears lower when brightness is high.

[0083] Optionally, the image processing device pre-sets brightness evaluation conditions and uses these conditions to quantize pixel saturation data to obtain quantized saturation. That is, if the pixel brightness data meets the brightness evaluation conditions, the image processing device calculates the ratio of the pixel saturation data to the pixel brightness data to obtain the quantized saturation. The brightness evaluation conditions are evaluation criteria for determining the quantized saturation based on the numerical value of the pixel brightness data. In one specific embodiment, the brightness evaluation condition is that the pixel brightness data is not equal to 0. That is, when the pixel brightness data is not equal to 0, the image processing device determines that the pixel brightness data meets the brightness evaluation conditions and calculates the ratio of the pixel saturation data to the pixel brightness data to obtain the quantized saturation.

[0084] Optionally, if the pixel brightness data does not meet the brightness evaluation conditions, the image processing device determines the preset saturation as the quantized saturation. Here, the preset saturation is a pre-set maximum saturation corresponding to the display terminal. Optionally, in other embodiments, the preset saturation can also be customized according to the actual scene requirements.

[0085] Optionally, after obtaining the quantization saturation of each image pixel in the initial image data, the image processing device uses the quantization saturation as model input and inputs it into the target enhancement model to generate the second image enhancement coefficient.

[0086] Optionally, in one specific embodiment, after obtaining the quantized saturation of the initial image data, the image processing device further normalizes the quantized saturation to obtain normalized saturation, and uses the normalized saturation as model input to input into the target enhancement model to obtain the second image enhancement coefficient corresponding to the initial image data output by the target enhancement model.

[0087] In this embodiment, the image processing device acquires image pixel data from the initial image data, the image pixel data including pixel brightness data, a first pixel chroma component, and a second pixel chroma component; performs chroma conversion processing on the image pixel data to obtain converted pixel data, the converted pixel data including a first converted chroma component and a second converted chroma component; calculates pixel saturation data based on the first converted chroma component and the second converted chroma component; and determines the quantized saturation corresponding to the initial image data using the pixel saturation data and the pixel brightness data. This achieves the calculation and quantization of pixel saturation data using pixel chroma components and pixel brightness components, thereby improving the accuracy of subsequent saturation enhancement and avoiding over-enhancement.

[0088] like Figure 4 As shown, Figure 4 This is a flowchart illustrating an embodiment of the image processing method for determining a first image enhancement coefficient provided in this application. Specifically, in this embodiment, the image processing method further includes steps 401 to 403: 401. When the initial saturation coefficient is greater than the first preset enhancement coefficient, the first preset enhancement coefficient is determined as the first image enhancement coefficient; 402. When the initial saturation coefficient is less than the first preset enhancement coefficient and greater than the second preset enhancement coefficient, the initial saturation coefficient is determined as the first image enhancement coefficient; 403. If the initial saturation coefficient is less than the second preset enhancement coefficient, then the second preset enhancement coefficient is determined as the first image enhancement coefficient.

[0089] Based on the above embodiments, in this embodiment, the image processing device calculates the ratio of the saturation threshold parameter to the image saturation data, determines the ratio of the saturation threshold parameter to the image saturation data as the initial saturation coefficient, compares the initial saturation coefficient with a preset enhancement coefficient, obtains the comparison result, updates the initial saturation coefficient based on the comparison result, and obtains the first image enhancement coefficient, thereby avoiding over-enhancing the initial image data.

[0090] Optionally, the preset enhancement coefficient is a control coefficient used to limit the global saturation enhancement level of the initial image data. Optionally, in one specific embodiment, the preset enhancement coefficient includes a first preset enhancement coefficient and a second preset enhancement coefficient. The first preset enhancement coefficient characterizes the maximum enhancement ratio allowed by the image processing device during the global saturation enhancement of the initial image data. The second preset enhancement coefficient characterizes the minimum enhancement ratio allowed by the image processing device during the global saturation enhancement of the initial image data. Optionally, in one specific embodiment, the value range of the first preset enhancement coefficient is [1.15, 1.35], and the value of the second preset enhancement coefficient is 1.

[0091] Optionally, if the initial saturation coefficient is greater than the first preset enhancement coefficient, the image processing device determines that the initial saturation coefficient is too large. In order to avoid over-enhancement, the image processing device will determine the first preset enhancement coefficient as the first image enhancement coefficient.

[0092] Optionally, if the initial saturation coefficient is less than the first preset enhancement coefficient but greater than the second preset enhancement coefficient, the image processing device determines that the enhancement ratio of the initial saturation coefficient is within a reasonable range and determines the initial saturation coefficient as the first image enhancement coefficient.

[0093] Optionally, when the initial saturation coefficient is less than the second preset enhancement coefficient, the image processing device determines that the enhancement ratio of the initial saturation coefficient is too small, and determines the second preset enhancement coefficient as the first image enhancement coefficient.

[0094] In this embodiment, the image processing device compares the initial saturation coefficient with a preset enhancement coefficient to obtain a comparison result. Based on the comparison result, the initial saturation coefficient is updated. When the initial saturation coefficient is greater than a first preset enhancement coefficient, the first preset enhancement coefficient is determined as the first image enhancement coefficient; when the initial saturation coefficient is less than the first preset enhancement coefficient but greater than a second preset enhancement coefficient, the initial saturation coefficient is determined as the first image enhancement coefficient; when the initial saturation coefficient is less than the second preset enhancement coefficient, the second preset enhancement coefficient is determined as the first image enhancement coefficient. This avoids over-enhancing the initial image data.

[0095] To better implement the image processing method in the embodiments of this application, an image processing apparatus is also provided in the embodiments of this application, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of one embodiment of the image processing apparatus provided in this application. Specifically, the image processing apparatus 500 includes: The image acquisition module 501 is configured to respond to an image processing request and acquire the initial image data corresponding to the image processing request. The global enhancement module 502 is configured to determine a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data; Local enhancement module 503 is configured to determine a second image enhancement coefficient of the initial image data based on the quantization saturation of the initial image data and the target enhancement model; The image processing module 504 is configured to perform saturation enhancement processing on the initial image data according to the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protecting image data.

[0096] In one possible implementation of this embodiment, before the image processing device determines the second image enhancement coefficient of the initial image data based on the quantization saturation and target enhancement model of the initial image data, it further includes: The image pixel data of the initial image data is obtained, and the image pixel data includes pixel brightness data, a first pixel chromaticity component, and a second pixel chromaticity component; The image pixel data is subjected to chroma conversion processing to obtain converted pixel data, which includes a first converted chroma component and a second converted chroma component. Pixel saturation data are calculated based on the first converted chromaticity component and the second converted chromaticity component; The quantization saturation corresponding to the initial image data is determined using the pixel saturation data and the pixel brightness data.

[0097] In one possible implementation of this embodiment, the image processing device determines the quantization saturation corresponding to the initial image data using the pixel saturation data and the pixel brightness data, including: If the pixel brightness data meets the brightness evaluation conditions, the ratio of the pixel saturation data to the pixel brightness data is calculated to obtain the quantized saturation. If the pixel brightness data does not meet the brightness evaluation conditions, the preset saturation will be determined as the quantized saturation.

[0098] In one possible implementation of this embodiment, the image processing device determines a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data, including: Calculate the image saturation data of the initial image data based on the pixel saturation data of each image pixel data in the initial image data; Calculate the initial saturation coefficient based on the image saturation data and the target saturation threshold; The first image enhancement coefficient of the initial image data is determined based on the initial saturation coefficient and the preset enhancement coefficient.

[0099] In one possible implementation of this embodiment, the preset enhancement coefficient in the image processing device includes a first preset enhancement coefficient and a second preset enhancement coefficient; The image processing device determines a first image enhancement coefficient for the initial image data based on the initial saturation coefficient and a preset enhancement coefficient, including: When the initial saturation coefficient is greater than the first preset enhancement coefficient, the first preset enhancement coefficient is determined as the first image enhancement coefficient; When the initial saturation coefficient is less than the first preset enhancement coefficient and greater than the second preset enhancement coefficient, the initial saturation coefficient is determined as the first image enhancement coefficient; If the initial saturation coefficient is less than the second preset enhancement coefficient, then the second preset enhancement coefficient is determined as the first image enhancement coefficient.

[0100] In one possible implementation of this embodiment, the image processing device determines a second image enhancement coefficient for the initial image data based on the quantization saturation and the target enhancement model, including: The quantized saturation is normalized to obtain normalized saturation; The normalized saturation is input into the target enhancement model to obtain the second image enhancement coefficient of the initial image data.

[0101] In one possible implementation of this embodiment, the image processing device performs saturation enhancement processing on the initial image data based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data, including: The saturation of the first pixel chromaticity data corresponding to the initial image data is enhanced using the first image enhancement coefficient and the second image enhancement coefficient to obtain the first enhanced chromaticity information. The saturation of the second pixel chromaticity data corresponding to the initial image data is enhanced using the first image enhancement coefficient and the second image enhancement coefficient to obtain the second enhanced chromaticity information. Eye-protection image data is generated based on the first enhanced chromaticity information and the second enhanced chromaticity information.

[0102] In this embodiment, the image processing device acquires initial image data corresponding to an image processing request in response to the request; determines a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data; determines a second image enhancement coefficient of the initial image data based on the quantized saturation and target enhancement model; and performs saturation enhancement processing on the initial image data based on the first and second image enhancement coefficients to obtain eye-friendly image data. This achieves the following: acquiring initial image data to be displayed, determining a first and a second image enhancement coefficient for global and local saturation enhancement control processing of the initial image data using the image saturation data and quantized saturation data, and performing saturation enhancement processing on the initial image data using the first and second image enhancement coefficients. This improves the eye-friendly effect of the image data during display by adaptively adjusting the saturation, effectively enhancing visual comfort during prolonged viewing of the display device, without affecting the image display effect.

[0103] This invention also provides an image processing device, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of an embodiment of the image processing device provided in this application.

[0104] The image processing device integrates any one of the image processing apparatuses provided in the embodiments of the present invention, and the image processing device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor of the steps in the image processing method described in any of the above-described image processing method embodiments.

[0105] Specifically, an image processing device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The image processing device structure shown does not constitute a limitation on the image processing device. It may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 601 is the control center of the image processing device. It connects various parts of the device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, thereby providing overall monitoring of the image processing device. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.

[0106] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the image processing device, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0107] The image processing device also includes a power supply 603 that supplies power to the various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0108] The image processing device may also include an input unit 604, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0109] Although not shown, the image processing device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the image processing device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602 to realize various functions, as follows: In response to an image processing request, obtain the initial image data corresponding to the image processing request; The first image enhancement coefficient of the initial image data is determined based on the preset enhancement coefficient and image saturation data; The second image enhancement coefficient of the initial image data is determined based on the quantization saturation of the initial image data and the target enhancement model; The initial image data is subjected to saturation enhancement processing based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data.

[0110] Therefore, embodiments of the present invention provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk, etc. A computer program is stored thereon, which is loaded by a processor to execute the steps of any of the image processing methods provided in the embodiments of the present invention. For example, the computer program loaded by the processor can execute the following steps: In response to an image processing request, obtain the initial image data corresponding to the image processing request; The first image enhancement coefficient of the initial image data is determined based on the preset enhancement coefficient and image saturation data; The second image enhancement coefficient of the initial image data is determined based on the quantization saturation of the initial image data and the target enhancement model; The initial image data is subjected to saturation enhancement processing based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data.

[0111] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.

[0112] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.

[0113] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0114] The above provides a detailed description of an image processing method provided by the embodiments of this application. Specific embodiments have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. An image processing method, characterized in that, The image processing method includes: In response to an image processing request, obtain the initial image data corresponding to the image processing request; The first image enhancement coefficient of the initial image data is determined based on the preset enhancement coefficient and image saturation data; The second image enhancement coefficient of the initial image data is determined based on the quantization saturation of the initial image data and the target enhancement model; The initial image data is subjected to saturation enhancement processing based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data.

2. The image processing method according to claim 1, characterized in that, Before determining the second image enhancement coefficient of the initial image data based on the quantization saturation and target enhancement model of the initial image data, the method further includes: The image pixel data of the initial image data is obtained, and the image pixel data includes pixel brightness data, a first pixel chromaticity component, and a second pixel chromaticity component; The image pixel data is subjected to chroma conversion processing to obtain converted pixel data, which includes a first converted chroma component and a second converted chroma component. Pixel saturation data are calculated based on the first converted chromaticity component and the second converted chromaticity component; The quantization saturation corresponding to the initial image data is determined using the pixel saturation data and the pixel brightness data.

3. The image processing method according to claim 2, characterized in that, The step of determining the quantization saturation corresponding to the initial image data using the pixel saturation data and the pixel brightness data includes: If the pixel brightness data meets the brightness evaluation conditions, the ratio of the pixel saturation data to the pixel brightness data is calculated to obtain the quantized saturation. If the pixel brightness data does not meet the brightness evaluation conditions, the preset saturation will be determined as the quantized saturation.

4. The image processing method according to claim 1, characterized in that, The step of determining the second image enhancement coefficient of the initial image data based on the quantization saturation and the target enhancement model of the initial image data includes: The quantized saturation is normalized to obtain normalized saturation; The normalized saturation is input into the target enhancement model to obtain the second image enhancement coefficient of the initial image data.

5. The image processing method according to claim 1, characterized in that, The step of determining the first image enhancement coefficient of the initial image data based on the preset enhancement coefficient and image saturation data includes: Calculate the image saturation data of the initial image data based on the pixel saturation data of each image pixel data in the initial image data; Calculate the initial saturation coefficient based on the image saturation data and the target saturation threshold; The first image enhancement coefficient of the initial image data is determined based on the initial saturation coefficient and the preset enhancement coefficient.

6. The image processing method according to claim 5, characterized in that, The preset enhancement coefficient includes a first preset enhancement coefficient and a second preset enhancement coefficient; The step of determining the first image enhancement coefficient of the initial image data based on the initial saturation coefficient and the preset enhancement coefficient includes: When the initial saturation coefficient is greater than the first preset enhancement coefficient, the first preset enhancement coefficient is determined as the first image enhancement coefficient; When the initial saturation coefficient is less than the first preset enhancement coefficient and greater than the second preset enhancement coefficient, the initial saturation coefficient is determined as the first image enhancement coefficient; When the initial saturation coefficient is less than the second preset enhancement coefficient, the second preset enhancement coefficient is determined as the first image enhancement coefficient.

7. The image processing method according to any one of claims 1-6, characterized in that, The step of performing saturation enhancement processing on the initial image data based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protection image data includes: The saturation of the first pixel chromaticity data corresponding to the initial image data is enhanced using the first image enhancement coefficient and the second image enhancement coefficient to obtain the first enhanced chromaticity information. The saturation of the second pixel chromaticity data corresponding to the initial image data is enhanced using the first image enhancement coefficient and the second image enhancement coefficient to obtain the second enhanced chromaticity information. Eye-protection image data is generated based on the first enhanced chromaticity information and the second enhanced chromaticity information.

8. An image processing apparatus, characterized in that, The image processing device includes: The image acquisition module is configured to respond to an image processing request and acquire the initial image data corresponding to the image processing request. The global enhancement module is configured to determine a first image enhancement coefficient of the initial image data based on a preset enhancement coefficient and image saturation data; The local enhancement module is configured to determine a second image enhancement coefficient of the initial image data based on the quantization saturation of the initial image data and the target enhancement model; The image processing module is configured to perform saturation enhancement processing on the initial image data based on the first image enhancement coefficient and the second image enhancement coefficient to obtain eye-protecting image data.

9. An image processing device, characterized in that, The image processing device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the image processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to execute the steps of the image processing method according to any one of claims 1 to 7.