Display screen image enhancement processing method and system
By preprocessing the image, converting the HSV color space, using the k-means clustering and edge fusion algorithms, the problem of poor color enhancement processing in traditional methods is solved, and targeted enhancement and natural transition of image colors are achieved, thereby improving the visual effect and image quality.
Patent Information
- Application Number
- CN202510833385.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-09-19
AI Technical Summary
Traditional color enhancement processing methods cannot adapt to different types of images and color characteristics, resulting in unsatisfactory processing results and difficulty in accurately capturing and processing subtle color changes and detail information in images.
The original image is obtained for preprocessing and converted into the HSV color space. The k-means clustering algorithm is used to determine the area to be enhanced, the color characteristics and status evaluation values are calculated, the color enhancement coefficient is set, and the edge fusion algorithm is used for seamless splicing.
It achieves targeted enhancement of image colors, improves visual effects and image quality, makes colors more saturated and vivid, avoids discontinuity, and ensures a natural transition between the enhanced area and the surrounding area.
Smart Images

Figure CN120672636A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a display screen image enhancement processing method and system. Background Art
[0002] In today's digital world, displays have become an integral part of our daily lives, serving as a platform for displaying images, videos, and a variety of information. However, raw images can sometimes suffer from issues like lack of vibrant colors and unclear details. This necessitates color enhancement of the displayed image to improve its visual quality. Color enhancement is a common image processing technique designed to enhance the color representation of an image, making it more vivid, rich, and eye-catching.
[0003] However, traditional color enhancement processing methods are limited by the limitations of the algorithm and cannot adapt well to different types of images and color characteristics, resulting in unsatisfactory processing results and failure to achieve the expected color enhancement effect. In addition, some traditional methods have limited ability to process color changes and details in complex scenes, making it difficult to accurately capture and process subtle color changes and detail information in images. Summary of the Invention
[0004] In order to solve the above technical problems, the present invention provides a display screen image enhancement processing method and system, comprising: Obtaining an original image to be displayed on the display screen, and preprocessing the original image to obtain an initial image; Determining color data of each pixel in the initial image in a preset color space, and analyzing the initial image based on the color data to determine a color enhancement area in the initial image; Determining color features of the area to be enhanced, and evaluating the color state of the area to be enhanced based on the color features to obtain a color state evaluation value of the area to be enhanced; Determining a color enhancement coefficient according to the color evaluation value, and performing enhancement processing on the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain a color-enhanced region; Based on the edge fusion algorithm, the color to-be-enhanced area is seamlessly spliced with the color enhancement area to obtain an enhanced processed image of the display screen image.
[0005] Furthermore, the obtaining of the original image to be displayed on the display screen and preprocessing the original image to obtain the initial image includes: The original image to be displayed on the display screen is obtained and preprocessed to obtain an initial image. The preprocessing includes denoising, contrast enhancement and edge enhancement.
[0006] Furthermore, determining color data of each pixel in the initial image in a preset color space, and analyzing the initial image based on the color data to determine the area in the initial image to be enhanced in color, includes: Convert the original image to the HSV color space and determine the components of each pixel in the original image in the HSV color space, including hue, saturation and brightness; Determine the preset weight and value of each component, and perform weighted addition calculation on the preset weight of each component and the value of each component to obtain the color comprehensive value of each pixel; The color comprehensive value of each pixel is clustered and analyzed based on the k-means clustering algorithm, and the color enhancement area in the initial image is determined according to the cluster analysis results.
[0007] Furthermore, the k-means clustering algorithm is used to perform cluster analysis on the color comprehensive value of each pixel, and the color enhancement area to be enhanced in the initial image is determined according to the cluster analysis result, including: Determine the color comprehensive value of each pixel point, and construct a data set based on the color comprehensive value of each pixel point; Randomly select k cluster centers of the data set and calculate the Euclidean distance from the color comprehensive value of each pixel in the data set to the initial cluster center; Each pixel in the data set is divided into corresponding clusters according to the Euclidean distance from the color comprehensive value of each pixel in the data set to the initial cluster center; Calculate the average color comprehensive value of all pixels in each cluster, and update the cluster center according to the average color comprehensive value of all pixels in each cluster; Repeat the above steps until the cluster center no longer changes, and obtain k final clusters; Calculate the average color value of all pixels in each cluster, and select the cluster with the average value lower than the preset threshold; The area formed by the pixels in these clusters is determined as the color enhancement area in the initial image.
[0008] Furthermore, the step of determining the color characteristics of the area to be enhanced includes: Divide each pixel in the initial image into several pixel groups according to color type, and determine the numerical mean and numerical variance of each component of each pixel group in the HSV color space; The numerical mean and numerical variance of each component of each pixel group in the HSV color space are determined as the color features of the area to be enhanced.
[0009] Furthermore, the step of evaluating the color state of the area to be enhanced based on the color feature to obtain a color state evaluation value of the area to be enhanced includes: Determine the pre-set standard numerical mean and standard numerical variance of each component, and calculate the difference between the numerical mean and the standard numerical mean, as well as the numerical variance and the standard numerical variance of each component of each pixel group in the HSV color space, to obtain the numerical mean difference and numerical variance difference of each component of each pixel group; The numerical mean difference and the numerical variance difference of each component of each pixel group are evaluated and valued to obtain a numerical mean difference evaluation value and a numerical variance difference evaluation value, and the numerical mean difference evaluation value and the numerical variance difference evaluation value are added together to obtain a comprehensive evaluation value of each component of each pixel group; Perform weighted addition calculation on the preset weights of each component of each pixel group and the comprehensive evaluation value of each component to obtain the sub-color state evaluation value of each pixel group; Determining the number of pixels in each pixel group and the total number of pixels in the area to be enhanced, and calculating the ratio of the number of pixels in each pixel group to the total number of pixels in the area to be enhanced, using the ratio as a weight coefficient for each pixel group; Determine the color type corresponding to each pixel group and set the weight of each pixel group according to the color type; A calculation is performed based on the weight coefficient, weight and sub-color state evaluation value of each pixel group to obtain the color state evaluation value of the area to be enhanced.
[0010] Furthermore, the calculation formula of the color state evaluation value of the color to be enhanced area is: , Wherein, L is the color state evaluation value of the area to be enhanced, ki is the weight coefficient of the i-th pixel group, αi is the weight of the i-th pixel group, Pi is the sub-color state evaluation value of the i-th pixel group, and n is the number of pixel groups.
[0011] Furthermore, the method of determining a color enhancement coefficient according to the color evaluation value and performing enhancement processing on the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain the color-enhanced region includes: A color enhancement coefficient-color evaluation value interval correspondence relationship is preset, and the color enhancement coefficient-color evaluation value interval correspondence relationship is associated with a corresponding color enhancement coefficient for each color evaluation value interval; Obtaining a color evaluation value of the area to be enhanced, and based on a mapping relationship between a color evaluation value interval to which the color evaluation value belongs and a color enhancement coefficient corresponding to the color evaluation value interval, determining the color enhancement coefficient corresponding to the area to be enhanced; The hue, saturation and brightness of each pixel in the color-to-be-enhanced area of the initial image are enhanced according to the color enhancement coefficient to obtain a color-enhanced area.
[0012] Furthermore, the method of seamlessly splicing the color-to-be-enhanced area with the color-enhanced area based on the edge fusion algorithm to obtain an enhanced image of the display screen image includes: Determine the edges of the non-enhanced area and the color-enhanced area surrounding the area to be enhanced in the original image based on an edge detection algorithm, and determine edge information of the non-enhanced area and the color-enhanced area; The color-enhanced area in the original image is replaced with the color-enhanced area, and the edge fusion algorithm and edge information are used to perform edge fusion on the surrounding unenhanced area and the color-enhanced area in the original image to obtain an enhanced processed image of the display screen image.
[0013] The present invention also provides a display screen image enhancement processing system, comprising: An acquisition module is used to acquire the original image to be displayed on the display screen and preprocess the original image to obtain an initial image; A determination module, configured to determine color data of each pixel in the initial image in a preset color space, and analyze the initial image based on the color data to determine a color enhancement area in the initial image; An evaluation module, configured to determine color features of the area to be enhanced, and evaluate the color state of the area to be enhanced based on the color features to obtain a color state evaluation value of the area to be enhanced; an enhancement module, configured to determine a color enhancement coefficient according to the color evaluation value, and perform enhancement processing on the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain a color-enhanced region; The processing module is used to seamlessly splice the color-to-be-enhanced area with the color-enhanced area based on an edge fusion algorithm to obtain an enhanced processed image of the display screen image.
[0014] Compared with the prior art, the display screen image enhancement processing method and system according to the embodiment of the present invention have the following advantages: By analyzing the color data in the image, the present invention can better understand the color characteristics in the image, thereby helping to determine the areas that need to be enhanced and improving processing efficiency and accuracy; The present invention analyzes and evaluates the color enhancement area to determine the color features that need to be enhanced, and adjusts the color enhancement coefficient according to the evaluation results, thereby achieving color enhancement processing, which can make the colors in the image more saturated and vivid, and improve the visual effect; The present invention uses an edge fusion algorithm to seamlessly splice the color-to-be-enhanced area with the color-enhanced area, ensuring a natural transition between the enhanced area and the surrounding area, avoiding obvious discontinuities, and making the enhanced image appear more unified and smooth. The present invention organically combines technologies such as color enhancement, edge fusion and color analysis to achieve comprehensive image processing and enhance the overall visual effect. This comprehensive processing method can effectively improve the color performance and detail display of the image, making the image on the display screen present a higher quality effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 1 is a schematic diagram of the flow structure of a display screen image enhancement processing method according to an embodiment of the present invention; Figure 2 Schematic diagram of the composition of the display screen image enhancement processing system in an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The following embodiments are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0017] In the description of this application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the platform or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on this application.
[0018] 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 the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0019] In the description of this application, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood broadly. For example, they can refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediate medium; and internal communication between two components. Persons of ordinary skill in the art will understand the specific meanings of the above terms in this application based on specific circumstances.
[0020] like Figure 1 As shown, in an embodiment of the present application, a display screen image enhancement processing method is provided, including: S100: acquiring an original image to be displayed on a display screen, and preprocessing the original image to obtain an initial image; S200: determining color data of each pixel in the initial image in a preset color space, and analyzing the initial image based on the color data to determine a color area to be enhanced in the initial image; S300: determining color features of the color area to be enhanced, and evaluating the color state of the color area to be enhanced based on the color features to obtain a color state evaluation value of the color area to be enhanced; S400: determining a color enhancement coefficient according to the color evaluation value, and enhancing the color area to be enhanced in the initial image based on the color enhancement coefficient to obtain a color enhanced area; S500: seamlessly splicing the color area to be enhanced with the color enhancement area based on an edge fusion algorithm to obtain an enhanced processed image of the display screen image.
[0021] Furthermore, the present invention can better understand the color features in the image by analyzing the color data in the image, which helps to determine the area that needs to be enhanced and improve processing efficiency and accuracy; the present invention determines the color features that need to be enhanced by analyzing and evaluating the color area to be enhanced, and adjusts the color enhancement coefficient according to the evaluation result, thereby realizing color enhancement processing, which can make the colors in the image more saturated and vivid, and improve the visual effect; the present invention uses an edge fusion algorithm to seamlessly splice the color area to be enhanced with the color enhancement area, ensuring a natural transition between the enhanced area and the surrounding area, avoiding obvious discontinuities, and making the enhanced image look more unified and smooth; the present invention can realize comprehensive processing of the image and improve the overall visual effect by organically combining technologies such as color enhancement, edge fusion and color analysis. This comprehensive processing method can effectively improve the color performance and detail display of the image, so that the image on the display screen presents a better quality effect.
[0022] In an embodiment of the present application, a display screen image enhancement processing method is provided, wherein the method acquires an original image to be displayed on the display screen and preprocesses the original image to obtain an initial image, including: acquiring an original image to be displayed on the display screen and preprocessing the original image to obtain an initial image, wherein the preprocessing includes denoising, contrast enhancement, and edge enhancement.
[0023] Specifically, the original image to be displayed on the display screen is preprocessed to optimize the image quality and make it more suitable for display on the display screen. The original image is preprocessed, including denoising, contrast enhancement and edge enhancement; denoising is to reduce the noise in the image by applying filters and other technologies. Common denoising methods include Gaussian filtering, median filtering, etc., which can make the image clearer, reduce noise interference, improve image quality and visual effects, and the image after noise removal is easier to process and analyze, and can better display details and features; contrast enhancement is to adjust the pixel value range of the image to make the colors in the image more saturated and the contrast more obvious, which can make the image more vivid and eye-catching, enhance the details and color layering in the image, and make the image with enhanced contrast more attractive and visually impactful on the display screen; edge enhancement is to highlight the edge information in the image to make the image more contoured and detailed, which can make the contours in the image clearer and the details more prominent, improve the visual quality and recognition accuracy of the image, and the image with enhanced edges is displayed more clearly and three-dimensionally on the display screen. In summary, the combination of denoising, contrast enhancement and edge enhancement in this step can effectively optimize the original image, improve the quality and visual effect of the image, and make the processed image more suitable for display on the display screen, presenting a more vivid, clear and eye-catching effect.
[0024] In an embodiment of the present application, a display screen image enhancement processing method is provided, which determines the color data of each pixel in an initial image in a preset color space, analyzes the initial image based on the color data, and determines the color area to be enhanced in the initial image, including: converting the initial image into an HSV color space, and determining each component of each pixel in the initial image in the HSV color space, each component including hue, saturation, and brightness; determining a preset weight and value of each component, and performing weighted addition calculation on the preset weight of each component and the value of each component to obtain a color comprehensive value of each pixel; performing cluster analysis on the color comprehensive value of each pixel based on a k-means clustering algorithm, and determining the color area to be enhanced in the initial image according to the cluster analysis result.
[0025] Specifically, the initial image is converted to the HSV color space, which includes hue, saturation, and brightness. For each pixel, the values of its hue, saturation, and brightness components in the HSV color space are determined, and a preset weight is assigned to each component. The values of each component are multiplied by the corresponding weight, and then added together to obtain the color comprehensive value of each pixel. This value comprehensively considers the influence of hue, saturation, and brightness on the image color. The k-means clustering algorithm is used to perform cluster analysis on the color comprehensive values, and the pixels are divided into different clusters. Based on the results of the cluster analysis, the color areas to be enhanced in the initial image are determined. These areas can be enhanced to improve the visual effect of the overall image. This step combines color space conversion, weight distribution, comprehensive calculation and cluster analysis techniques, which can help determine the color areas in the image that need to be enhanced and improve the visual quality and attractiveness of the image; converting the image to the HSV color space helps to better understand and process the color information of the image, while weight distribution and comprehensive calculation can comprehensively consider the impact of different components on the image color; by determining the color areas to be enhanced through cluster analysis, the color of these areas can be enhanced in a targeted manner, making the important colors in the image more prominent, improving the visual effect and image quality.
[0026] In an embodiment of the present application, a display screen image enhancement processing method is provided, which performs cluster analysis on the color comprehensive value of each pixel point based on the k-means clustering algorithm, and determines the color-to-be-enhanced area in the initial image based on the cluster analysis results, including: determining the color comprehensive value of each pixel point, and constructing a data set based on the color comprehensive value of each pixel point; randomly selecting k cluster centers of the data set, and calculating the Euclidean distance from the color comprehensive value of each pixel point in the data set to the initial cluster center; dividing each pixel point in the data set into a corresponding cluster according to the Euclidean distance from the color comprehensive value of each pixel point in the data set to the initial cluster center; calculating the average color comprehensive value of all pixels in each cluster, and updating the cluster center according to the average color comprehensive value of all pixels in each cluster; repeating the above steps until the cluster center no longer changes, thereby obtaining k final clusters; calculating the average color comprehensive value of all pixels in each cluster, and selecting clusters with an average value lower than a preset threshold; and determining the area composed of the pixels in these clusters as the color-to-be-enhanced area in the initial image.
[0027] Specifically, determine the color comprehensive value of each pixel point and construct these values into a data set, where each data point contains the color comprehensive value of the pixel point; randomly select k data points as the initial cluster centers, and these center points will represent the location of the cluster clusters; calculate the Euclidean distance of each data point to each cluster center, and assign each data point to the cluster represented by the nearest cluster center; calculate the average value of all data points in each cluster, and use these average values as new cluster centers; repeat the above steps until the cluster center no longer changes, that is, the clustering is stable, and the final k clusters are obtained; calculate the average value of the color comprehensive value of all pixels in each cluster, and identify the clusters with an average value lower than the preset threshold as the area to be enhanced. This step uses the k-means clustering algorithm to divide the pixels in the image into different clusters according to color similarity; iteratively updating the cluster center can effectively adjust the position of the cluster, making the clustering more accurate and stable, and improving the efficiency and accuracy of clustering; by identifying clusters with color comprehensive values below the threshold as areas to be enhanced, the color areas in the image that need to be enhanced can be processed in a targeted manner, improving the visual effect and quality of the image.
[0028] In an embodiment of the present application, a method for display screen image enhancement processing is provided, wherein determining the color characteristics of a region to be enhanced includes: dividing each pixel in an initial image into a plurality of pixel groups according to color type, and determining the numerical mean and numerical variance of each component of each pixel group in the HSV color space; and determining the numerical mean and numerical variance of each component of each pixel group in the HSV color space as the color characteristics of the region to be enhanced.
[0029] Specifically, the pixels in the image are clustered or grouped according to their color features to form several pixel groups. These groups may represent clusters of pixels with similar color features. For each pixel group, the numerical mean and variance of its hue, saturation, and brightness components in the HSV color space are calculated. The numerical mean and variance of each pixel group in the HSV color space are determined as the color features of the group, which serve as the feature representation of the area to be enhanced. This step can more finely identify the clusters of pixels with similar color features in the image by dividing the pixel groups by color type, which helps to perform targeted color enhancement. Determining the numerical mean and variance of each pixel group in the HSV color space as color features can more comprehensively describe the color distribution of the group, providing a basis for subsequent enhancement operations. Using these color features as selection criteria for the area to be enhanced can make the enhancement operation more accurate and effective, making the enhanced image colors more vivid and attractive.
[0030] In an embodiment of the present application, a display screen image enhancement processing method is provided, wherein the color state of the color-to-be-enhanced area is evaluated based on the color feature to obtain a color state evaluation value of the color-to-be-enhanced area, including: determining a preset standard numerical mean value and a standard numerical variance value of each component, and calculating the difference between the numerical mean value of each component of each pixel point group in the HSV color space and the standard numerical mean value, as well as the numerical variance value and the standard numerical variance value, to obtain a numerical mean difference value and a numerical variance difference value of each component of each pixel point group; evaluating and taking values of the numerical mean difference and the numerical variance difference value of each component of each pixel point group to obtain a numerical mean difference evaluation value and a numerical variance difference evaluation value, and summing the numerical mean difference evaluation value and the numerical variance evaluation value. The difference evaluation values are added to obtain the comprehensive evaluation value of each component of each pixel group; the preset weights of each component of each pixel group and the comprehensive evaluation value of each component are weighted added to obtain the sub-color state evaluation value of each pixel group; the number of pixels in each pixel group and the total number of pixels in the area to be enhanced are determined, and the ratio of the number of pixels in each pixel group to the total number of pixels in the area to be enhanced is calculated, and the ratio is used as the weight coefficient of each pixel group; the color type corresponding to each pixel group is determined, and the weight of each pixel group is set according to the color type; the color state evaluation value of the area to be enhanced is obtained by calculation based on the weight coefficient, weight and sub-color state evaluation value of each pixel group.
[0031] Specifically, a standard numerical mean value and a standard numerical variance value of each component are pre-set as reference standards; the difference between the numerical mean value and the standard numerical mean value, as well as the difference between the numerical variance value and the standard numerical variance value of each pixel group in the HSV color space are calculated; these differences are evaluated and valued to obtain a numerical mean difference evaluation value and a numerical variance difference evaluation value; the numerical mean difference evaluation value and the numerical variance difference evaluation value are added together to obtain a comprehensive evaluation value of each component of each pixel group; according to the preset weight of each component, the comprehensive evaluation value of each component is weightedly added to obtain a sub-color state evaluation value of each pixel group; the ratio of the number of pixels in each pixel group to the total number of pixels in the color-to-be-enhanced area is determined as a weight coefficient; the weight of each pixel group is set according to the color type; and the color state evaluation value of the color-to-be-enhanced area is calculated based on the weight coefficient, weight and sub-color state evaluation value of each pixel group. This step compares the color characteristics of each pixel group with the preset standard values, and combines the weights and evaluation values to more comprehensively evaluate the color status of each pixel group, which helps to determine the areas that need to be enhanced; taking into account the weight coefficients and color type weights of the pixel groups, different color areas can be evaluated and weighted more accurately, improving the accuracy and personalization of color enhancement; the color status evaluation value obtained by comprehensive evaluation value and weight calculation can provide guidance for subsequent color enhancement operations, ensuring that the enhancement effect is more in line with expectations and more targeted.
[0032] In an embodiment of the present application, a method for display screen image enhancement processing is provided, wherein the calculation formula for the color state evaluation value of the color to be enhanced area is: , Wherein, L is the color state evaluation value of the area to be enhanced, ki is the weight coefficient of the i-th pixel group, αi is the weight of the i-th pixel group, Pi is the sub-color state evaluation value of the i-th pixel group, and n is the number of pixel groups.
[0033] In an embodiment of the present application, a method for display screen image enhancement processing is provided, wherein a color enhancement coefficient is determined based on a color evaluation value, and a color enhancement processing is performed on a color-to-be-enhanced region in an initial image based on the color enhancement coefficient to obtain a color-enhanced region. The method includes: presetting a color enhancement coefficient-color evaluation value interval correspondence relationship, wherein the color enhancement coefficient-color evaluation value interval correspondence relationship is associated with a corresponding color enhancement coefficient for each color evaluation value interval; obtaining a color evaluation value of the color-to-be-enhanced region, and based on a mapping relationship between the color evaluation value interval to which the color evaluation value belongs within the color enhancement coefficient-color evaluation value interval correspondence relationship, selecting a color enhancement coefficient corresponding to the color evaluation value interval as the color enhancement coefficient corresponding to the color-to-be-enhanced region; and enhancing the hue, saturation, and brightness of each pixel in the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain the color-enhanced region.
[0034] Specifically, the color enhancement coefficients corresponding to different color evaluation value intervals are pre-set to establish a mapping relationship. Each evaluation value interval has a corresponding color enhancement coefficient for guiding the enhancement process; the color evaluation value of the color to be enhanced area is obtained, and the corresponding color enhancement coefficient is selected according to the mapping relationship between the evaluation value interval to which the value belongs and the color enhancement coefficient-color evaluation value interval correspondence relationship, and determined as the color enhancement coefficient of the area; according to the determined color enhancement coefficient, the hue, saturation and brightness of each pixel in the color to be enhanced area are enhanced; after the color enhancement process, a color enhancement area is obtained, in which the color is adjusted and optimized according to the preset color enhancement coefficient. By setting the color enhancement coefficient-color evaluation value correspondence relationship, this step can select a suitable color enhancement coefficient for each area according to the different ranges of the color evaluation value, thereby realizing personalized color enhancement processing; after determining the color enhancement coefficient, the hue, saturation and brightness of each pixel are enhanced, which can effectively adjust the color performance of the image, making the color more vivid and bright; through this processing method based on the evaluation value and the enhancement coefficient, targeted adjustment of the color to be enhanced area can be achieved, improving the color quality and visual effect of the image, making the image more attractive and artistic.
[0035] In an embodiment of the present application, a method for display screen image enhancement processing is provided, wherein a color to-be-enhanced region is seamlessly spliced with a color-enhanced region based on an edge fusion algorithm to obtain an enhanced processed image of the display screen image, comprising: determining edges of a peripheral unenhanced region and a color-enhanced region of the color to-be-enhanced region in an original image based on an edge detection algorithm, and determining edge information of the peripheral unenhanced region and the color-enhanced region; replacing the color to-be-enhanced region in the original image with the color-enhanced region for splicing, and edge-fusion of the peripheral unenhanced region and the color-enhanced region in the original image using the edge fusion algorithm and the edge information to obtain an enhanced processed image of the display screen image.
[0036] Specifically, edge detection algorithms (such as Sobel and Canny) are used to detect the color enhancement area in the original image to obtain edge information. At the same time, edge information of the surrounding unenhanced and color-enhanced areas is determined. The color-enhanced area and the surrounding unenhanced areas are then spliced together in an alternative manner, allowing the enhanced area to merge with the original image. Using the edge fusion algorithm and the extracted edge information, the surrounding unenhanced and color-enhanced areas in the original image are then blended together to achieve a more natural and smooth transition between the enhanced and surrounding areas. After this edge fusion process, an enhanced image of the display screen image is obtained, in which the transition between the color-enhanced and surrounding unenhanced areas is smoother, resulting in a more natural overall effect. This step uses the edge detection algorithm to extract edge information, accurately determining the edges of the color enhancement area, providing a basis for subsequent fusion processing. Through the alternative splicing and edge fusion algorithms, the color-enhanced area and the surrounding unenhanced areas are effectively blended, resulting in a more natural color and edge transition in the enhanced image. Edge fusion avoids noticeable color transition edges, improving the overall consistency and visual quality of the image, and making the enhanced image appear smoother and more uniform.
[0037] like Figure 2As shown, in an embodiment of the present application, a display screen image enhancement processing system is provided, including: an acquisition module, used to acquire an original image to be displayed in a display screen, and pre-process the original image to obtain an initial image; a determination module, used to determine the color data of each pixel point in the initial image in a preset color space, and analyze the initial image based on the color data to determine the color area to be enhanced in the initial image; an evaluation module, used to determine the color characteristics of the color area to be enhanced, and evaluate the color status of the color area to be enhanced based on the color characteristics to obtain a color status evaluation value of the color area to be enhanced; an enhancement module, used to determine a color enhancement coefficient according to the color evaluation value, and enhance the color area to be enhanced in the initial image based on the color enhancement coefficient to obtain a color enhanced area; a processing module, used to seamlessly splice the color area to be enhanced with the color enhancement area based on an edge fusion algorithm to obtain an enhanced processed image of the display screen image.
[0038] In summary, an embodiment of the present invention provides a display screen image enhancement processing method and system, which includes: acquiring and preprocessing an original image to be displayed on a display screen to obtain an initial image, determining the color data of each pixel in a preset color space, and analyzing and determining the color area to be enhanced therein; determining the color characteristics of the color area to be enhanced, and evaluating the color state of the color area to be enhanced based on the color characteristics to obtain a color state evaluation value; determining a color enhancement coefficient based on the color evaluation value, and enhancing the color area to be enhanced in the initial image based on the color enhancement coefficient to obtain a color enhanced area; and seamlessly splicing the color area to be enhanced with the color enhancement area based on an edge fusion algorithm to obtain an enhanced image of the display screen image. The present invention can improve the quality and visual effect of the display screen image, so that the image presents a more vivid and clear color performance, meeting the image quality requirements of different application scenarios.
[0039] Finally, it should be noted that it is apparent that various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the present invention. Thus, the present invention is intended to include such modifications and variations as long as they fall within the scope of the present invention and its equivalents.
[0040] The above description is only an example of an embodiment of the present invention, but it does not limit the scope of the present invention. Any structural changes made according to the present invention, as long as they do not lose the essence of the present invention, should be considered to fall within the scope of protection of the present invention and be subject to restrictions. Technical personnel in the relevant technical field can clearly understand that for the convenience and simplicity of description, the specific working process and related instructions of the platform described above can refer to the corresponding process in the aforementioned platform embodiment, and will not be repeated here.
[0041] The term "comprise," "comprising," or any other similar term is intended to cover a non-exclusive inclusion such that a process, platform, article, or apparatus / platform that comprises a list of elements includes not only those elements but also other elements not expressly listed or inherent to such process, platform, article, or apparatus / platform.
[0042] Thus far, the technical solutions of the present invention have been described in conjunction with the further embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art may make equivalent changes or substitutions to closely related technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present invention.
[0043] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention.
Claims
1. A display screen image enhancement processing method, characterized in that: include: Obtaining an original image to be displayed on the display screen, and preprocessing the original image to obtain an initial image; Determining color data of each pixel in the initial image in a preset color space, and analyzing the initial image based on the color data to determine a region in the initial image to be enhanced in color; Determining color features of the area to be enhanced, and evaluating the color state of the area to be enhanced based on the color features to obtain a color state evaluation value of the area to be enhanced; Determining a color enhancement coefficient according to the color evaluation value, and performing enhancement processing on the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain a color-enhanced region; Based on the edge fusion algorithm, the color to-be-enhanced area is seamlessly spliced with the color enhancement area to obtain an enhanced processed image of the display screen image.
2. A display screen image enhancement processing method according to claim 1, characterized in that: The step of obtaining an original image to be displayed on the display screen and preprocessing the original image to obtain an initial image includes: The original image to be displayed on the display screen is obtained and preprocessed to obtain an initial image. The preprocessing includes denoising, contrast enhancement and edge enhancement.
3. A display screen image enhancement processing method according to claim 2, characterized in that: The step of determining color data of each pixel in the initial image in a preset color space, and analyzing the initial image based on the color data to determine a color enhancement area in the initial image includes: Convert the original image to the HSV color space and determine the components of each pixel in the original image in the HSV color space, including hue, saturation and brightness; Determine the preset weight and value of each component, and perform weighted addition calculation on the preset weight of each component and the value of each component to obtain the color comprehensive value of each pixel; The color comprehensive value of each pixel is clustered and analyzed based on the k-means clustering algorithm, and the color enhancement area in the initial image is determined according to the cluster analysis results.
4. A display screen image enhancement processing method according to claim 3, characterized in that: The method of performing cluster analysis on the color comprehensive value of each pixel based on the k-means clustering algorithm and determining the color enhancement area in the initial image according to the cluster analysis result includes: Determine the color comprehensive value of each pixel point, and construct a data set based on the color comprehensive value of each pixel point; Randomly select k cluster centers of the data set and calculate the Euclidean distance from the color comprehensive value of each pixel in the data set to the initial cluster center; Each pixel in the data set is divided into corresponding clusters according to the Euclidean distance from the color comprehensive value of each pixel in the data set to the initial cluster center; Calculate the average color comprehensive value of all pixels in each cluster, and update the cluster center according to the average color comprehensive value of all pixels in each cluster; Repeat the above steps until the cluster center no longer changes, and obtain k final clusters; Calculate the average color value of all pixels in each cluster, and select the cluster with the average value lower than the preset threshold; The area formed by the pixels in these clusters is determined as the color enhancement area in the initial image.
5. A display screen image enhancement processing method according to claim 3, characterized in that: Determining the color characteristics of the area to be enhanced includes: Divide each pixel in the initial image into several pixel groups according to color type, and determine the numerical mean and numerical variance of each component of each pixel group in the HSV color space; The numerical mean and numerical variance of each component of each pixel group in the HSV color space are determined as the color features of the area to be enhanced.
6. A display screen image enhancement processing method according to claim 5, characterized in that: The step of evaluating the color state of the area to be enhanced based on the color feature to obtain a color state evaluation value of the area to be enhanced includes: Determine the pre-set standard numerical mean and standard numerical variance of each component, and calculate the difference between the numerical mean and the standard numerical mean, as well as the numerical variance and the standard numerical variance of each component of each pixel group in the HSV color space, to obtain the numerical mean difference and numerical variance difference of each component of each pixel group; The numerical mean difference and the numerical variance difference of each component of each pixel group are evaluated and valued to obtain a numerical mean difference evaluation value and a numerical variance difference evaluation value, and the numerical mean difference evaluation value and the numerical variance difference evaluation value are added together to obtain a comprehensive evaluation value of each component of each pixel group; Perform weighted addition calculation on the preset weights of each component of each pixel group and the comprehensive evaluation value of each component to obtain the sub-color state evaluation value of each pixel group; Determining the number of pixels in each pixel group and the total number of pixels in the area to be enhanced, and calculating the ratio of the number of pixels in each pixel group to the total number of pixels in the area to be enhanced, using the ratio as a weight coefficient for each pixel group; Determine the color type corresponding to each pixel group and set the weight of each pixel group according to the color type; A calculation is performed based on the weight coefficient, weight and sub-color state evaluation value of each pixel group to obtain the color state evaluation value of the area to be enhanced.
7. A display screen image enhancement processing method according to claim 6, characterized in that: The calculation formula of the color state evaluation value of the color to be enhanced area is: , Wherein, L is the color state evaluation value of the area to be enhanced, ki is the weight coefficient of the i-th pixel group, αi is the weight of the i-th pixel group, Pi is the sub-color state evaluation value of the i-th pixel group, and n is the number of pixel groups.
8. A display screen image enhancement processing method according to claim 5, characterized in that: The step of determining a color enhancement coefficient according to the color evaluation value and performing enhancement processing on the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain the color-enhanced region includes: A color enhancement coefficient-color evaluation value interval correspondence relationship is preset, and the color enhancement coefficient-color evaluation value interval correspondence relationship is associated with a corresponding color enhancement coefficient for each color evaluation value interval; Obtaining a color evaluation value of the area to be enhanced, and based on a mapping relationship between a color evaluation value interval to which the color evaluation value belongs and a color enhancement coefficient corresponding to the color evaluation value interval, determining the color enhancement coefficient corresponding to the area to be enhanced; The hue, saturation and brightness of each pixel in the color-to-be-enhanced area of the initial image are enhanced according to the color enhancement coefficient to obtain a color-enhanced area.
9. A display screen image enhancement processing method according to claim 8, characterized in that: The method of seamlessly splicing the color-to-be-enhanced area with the color-enhanced area based on the edge fusion algorithm to obtain an enhanced image of the display screen image includes: Determine the edges of the non-enhanced area and the color-enhanced area surrounding the area to be enhanced in the original image based on an edge detection algorithm, and determine edge information of the non-enhanced area and the color-enhanced area; The color-enhanced area in the original image is replaced with the color-enhanced area, and the edge fusion algorithm and edge information are used to perform edge fusion on the surrounding unenhanced area and the color-enhanced area in the original image to obtain an enhanced processed image of the display screen image.
10. A display screen image enhancement processing system, characterized in that: include: An acquisition module is used to acquire the original image to be displayed on the display screen and preprocess the original image to obtain an initial image; A determination module, configured to determine color data of each pixel in the initial image in a preset color space, and analyze the initial image based on the color data to determine a color enhancement area in the initial image; An evaluation module, configured to determine color features of the area to be enhanced, and evaluate the color state of the area to be enhanced based on the color features to obtain a color state evaluation value of the area to be enhanced; an enhancement module, configured to determine a color enhancement coefficient according to the color evaluation value, and perform enhancement processing on the color-to-be-enhanced region in the initial image based on the color enhancement coefficient to obtain a color-enhanced region; The processing module is used to seamlessly splice the color-to-be-enhanced area with the color-enhanced area based on an edge fusion algorithm to obtain an enhanced processed image of the display screen image.