Search

CN-117173081-B - Color uniformity detection method and related equipment

CN117173081BCN 117173081 BCN117173081 BCN 117173081BCN-117173081-B

Abstract

The application discloses a color uniformity detection method and related equipment, which can divide a target image into at least one region image, calculate color indexes corresponding to the region image based on pixel values of pixel points in the region image on at least one color channel, conduct difference analysis on the color indexes corresponding to the region images to obtain region color difference indexes of the target image, obtain chromaticity values corresponding to color blocks in the target image, obtain chromaticity deviation information of the target image based on the chromaticity values of the color blocks, and detect color uniformity of the target image according to the region color difference indexes and the chromaticity deviation information to obtain color uniformity detection results of the target image. The application can combine the regional color difference index and the chromaticity deviation information to detect the color uniformity of the target image, thereby being beneficial to improving the detection efficiency and accuracy of the color uniformity.

Inventors

  • YANG YONG

Assignees

  • 惠州TCL移动通信有限公司

Dates

Publication Date
20260512
Application Date
20220706

Claims (9)

  1. 1. A color uniformity detection method, comprising: obtaining a target image to be detected, and carrying out region division on the target image to obtain at least one region image corresponding to the target image; Calculating a color index corresponding to the area image based on pixel values of pixel points in the area image on at least one color channel; Performing difference analysis on color indexes corresponding to each region image to obtain region color difference indexes of the target image, wherein the region color difference indexes are used for representing color uniformity of the target image; Acquiring chromaticity values corresponding to all color blocks in the target image, and acquiring chromaticity deviation information of the target image based on the chromaticity values of all color blocks; detecting the color uniformity of the target image according to the regional color difference index and the chromaticity deviation information to obtain a color uniformity detection result of the target image; Wherein the at least one region image corresponding to the target image comprises a center region image and at least one edge region image; Performing difference analysis on color indexes corresponding to each area image to obtain an area color difference index of the target image, wherein the method comprises the following steps: Performing difference contrast calculation on the color index of the edge region image and the color index of the center region image aiming at each edge region image to obtain the color contrast between the edge region image and the center region image; A region color difference indicator of the target image is determined based on color contrast between each edge region image and the center region image.
  2. 2. The method according to claim 1, wherein calculating the color index corresponding to the area image based on the pixel values of the pixel points in the area image on at least one color channel includes: For each color channel, carrying out average value operation on pixel values of all pixel points in the area image on the color channel to obtain the pixel average value of the area image on the color channel; and calculating a color index corresponding to the area image based on the pixel mean value of the area image on each color channel.
  3. 3. The method according to claim 1, wherein the acquiring chromaticity deviation information of the target image based on chromaticity values of the respective color blocks includes: carrying out statistical analysis on the chromaticity values of each chromaticity block to obtain chromaticity reference values; and carrying out chromaticity deviation analysis on each chromaticity block according to the chromaticity reference value to obtain chromaticity deviation information of the target image.
  4. 4. The method of claim 3, wherein the chrominance values comprise a first chrominance value and a second chrominance value, and wherein the chrominance reference values comprise a first chrominance reference value corresponding to the first chrominance value and a second chrominance reference value corresponding to the second chrominance value; And performing chromaticity deviation analysis on each chromaticity block according to the chromaticity reference value to obtain chromaticity deviation information of the target image, wherein the chromaticity deviation information comprises: According to the first chrominance reference value, calculating the chrominance deviation of the first chrominance value of each chrominance block to obtain a first chrominance deviation value; Performing chromaticity deviation calculation on the second chromaticity value of each chromaticity block according to the second chromaticity reference value to obtain a second chromaticity deviation value; chromaticity deviation information of the target image is determined based on the first chromaticity deviation value and the second chromaticity deviation value.
  5. 5. The method according to claim 1, wherein detecting the color uniformity of the target image according to the region color difference index and the chromaticity deviation information, to obtain a color uniformity detection result of the target image, comprises: And when the regional color difference index is in a preset color difference range and the chromaticity deviation information is smaller than a preset value, determining that the target image passes through color uniformity detection.
  6. 6. A color uniformity detecting apparatus, comprising: The dividing unit is used for acquiring a target image to be detected, and dividing the target image into areas to obtain at least one area image corresponding to the target image; the computing unit is used for computing a color index corresponding to the area image based on pixel values of pixel points in the area image on at least one color channel; the difference analysis unit is used for carrying out difference analysis on the color indexes corresponding to each area image to obtain an area color difference index of the target image, wherein the area color difference index is used for representing the color uniformity of the target image; the chromaticity unit is used for acquiring chromaticity values corresponding to all color blocks in the target image and acquiring chromaticity deviation information of the target image based on the chromaticity values of all color blocks; the detection unit is used for detecting the color uniformity of the target image according to the regional color difference index and the chromaticity deviation information to obtain a color uniformity detection result of the target image; Wherein the at least one region image corresponding to the target image comprises a center region image and at least one edge region image; the difference analysis unit comprises a contrast ratio calculation subunit and a determination subunit: The contrast computing subunit is used for performing difference contrast computation on the color index of the edge region image and the color index of the central region image aiming at each edge region image to obtain the color contrast between the edge region image and the central region image; A determination subunit configured to determine an area color difference index of the target image based on color contrast between each edge area image and the center area image.
  7. 7. An electronic device comprising a memory storing an application program and a processor for running the application program in the memory to perform the operations in the color uniformity detection method according to any one of claims 1 to 5.
  8. 8. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the color uniformity detection method according to any one of claims 1 to 5.
  9. 9. A computer program product comprising computer programs or instructions which, when executed by a processor, implement the steps of the color uniformity detection method according to any one of claims 1 to 5.

Description

Color uniformity detection method and related equipment Technical Field The application relates to the technical field of computers, in particular to a color uniformity detection method and related equipment. Background The imaging color uniformity of the camera is an important index for evaluating the imaging quality of the camera of the mobile phone, the color non-uniformity is also called Color Shading, the imaging color uniformity is often shown as reddening of the center of a mobile phone photo when the mobile phone camera is used for shooting, and the photo has a black angle, which is caused by limitation of the space of the mobile phone and some options in the aspect of optical system design. In the prior art, the imaging color uniformity of a camera is evaluated and measured mainly by a manual subjective visual evaluation method, specifically, a picture obtained by taking a white board or a gray card through the camera can be observed by eyes to see whether the picture has color difference, the visual consumption is high, eye fatigue is easy to cause, time and labor are wasted, and the color uniformity is often judged to be inconsistent due to the difference of personal visual difference and cognition level, so that the detection efficiency and accuracy of the imaging color uniformity are low. Disclosure of Invention The embodiment of the application provides a color uniformity detection method and related equipment, wherein the related equipment can comprise a color uniformity detection device, electronic equipment, a computer readable storage medium and a computer program product, and can improve the detection efficiency and accuracy of color uniformity. The embodiment of the application provides a color uniformity detection method, which comprises the following steps: obtaining a target image to be detected, and carrying out region division on the target image to obtain at least one region image corresponding to the target image; Calculating a color index corresponding to the area image based on pixel values of pixel points in the area image on at least one color channel; Performing difference analysis on color indexes corresponding to each area image to obtain an area color difference index of the target image; Acquiring chromaticity values corresponding to all color blocks in the target image, and acquiring chromaticity deviation information of the target image based on the chromaticity values of all color blocks; and detecting the color uniformity of the target image according to the regional color difference index and the chromaticity deviation information to obtain a color uniformity detection result of the target image. Correspondingly, an embodiment of the present application provides a color uniformity detecting device, including: The dividing unit is used for acquiring a target image to be detected, and dividing the target image into areas to obtain at least one area image corresponding to the target image; the computing unit is used for computing a color index corresponding to the area image based on pixel values of pixel points in the area image on at least one color channel; the difference analysis unit is used for carrying out difference analysis on the color indexes corresponding to each area image to obtain the area color difference indexes of the target image; the chromaticity unit is used for acquiring chromaticity values corresponding to all color blocks in the target image and acquiring chromaticity deviation information of the target image based on the chromaticity values of all color blocks; and the detection unit is used for detecting the color uniformity of the target image according to the regional color difference index and the chromaticity deviation information to obtain a color uniformity detection result of the target image. Alternatively, in some embodiments of the present application, the calculation unit may include a pixel mean value calculation subunit and an index calculation subunit, as follows: The pixel mean value operation subunit is configured to perform mean value operation on pixel values of each pixel point in the area image on the color channel for each color channel, so as to obtain a pixel mean value of the area image on the color channel; and the index calculating subunit is used for calculating the color index corresponding to the area image based on the pixel mean value of the area image on each color channel. Optionally, in some embodiments of the present application, the at least one region image corresponding to the target image includes a center region image and at least one edge region image; the difference analysis unit may include a contrast calculation subunit and a determination subunit, as follows: The contrast computing subunit is used for performing difference contrast computation on the color index of the edge region image and the color index of the central region image aiming at each edge region image to obtain the color contrast betwe