[go: up one dir, main page]

CN112770096A - Image processing method, image processing device, terminal device and computer-readable storage medium - Google Patents

Image processing method, image processing device, terminal device and computer-readable storage medium Download PDF

Info

Publication number
CN112770096A
CN112770096A CN202011643714.6A CN202011643714A CN112770096A CN 112770096 A CN112770096 A CN 112770096A CN 202011643714 A CN202011643714 A CN 202011643714A CN 112770096 A CN112770096 A CN 112770096A
Authority
CN
China
Prior art keywords
image
target
pixel
compensation value
compensated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011643714.6A
Other languages
Chinese (zh)
Other versions
CN112770096B (en
Inventor
杨剑锋
陈林
夏大学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202011643714.6A priority Critical patent/CN112770096B/en
Publication of CN112770096A publication Critical patent/CN112770096A/en
Application granted granted Critical
Publication of CN112770096B publication Critical patent/CN112770096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0233Improving the luminance or brightness uniformity across the screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses an image processing method, which comprises the following steps: when a target display outputs a test picture, acquiring a target image of the target display; determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image; obtaining a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image; and carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image. The invention also discloses an image processing device, a terminal device and a computer readable storage medium. By utilizing the image processing method, the information accuracy of the obtained result image is higher, and further the brightness and chroma uniformity of the corrected LED display is better.

Description

Image processing method, image processing device, terminal device and computer-readable storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a terminal device, and a computer-readable storage medium.
Background
The LED display is formed by splicing a plurality of box bodies. The LED lamps in different boxes of the same LED display have brightness and color gamut space difference due to different production batches, the LED lamps in the same box of the same LED display have difference in luminous characteristic, visual angle characteristic and arrangement density, in addition, the different boxes are spliced into the LED display manually by technicians, so that the splicing side seams between the boxes are different from the LED lamp spacing in the boxes, and the LED display is poor in brightness uniformity due to a plurality of reasons.
Before the LED display is put into use, it needs to be corrected for uniformity of brightness and chromaticity. In the related art, a camera is used to capture a target image of an LED display, and based on the target image of the LED display, a preset LED lamp in the LED display is corrected to obtain a corrected LED display.
However, the accuracy of the information in the target image is low, resulting in poor uniformity of luminance and chrominance of the LED display after correction is obtained.
Disclosure of Invention
The invention mainly aims to provide an image processing method, an image processing device, terminal equipment and a computer readable storage medium, and aims to solve the technical problem that the uniformity of brightness and chrominance of an LED display after correction is poor due to low accuracy of information in a current target image.
In order to achieve the above object, the present invention provides an image processing method, including:
when a target display outputs a test picture, acquiring a target image of the target display;
determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image;
obtaining a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image;
and carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image.
Optionally, before the step of obtaining the selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image, the method further includes:
performing pixel processing on the boundary area with uneven pixel values in the image to be compensated to obtain a preprocessed image with even pixel values in the boundary area;
the step of obtaining the selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image comprises:
obtaining a selected compensation value based on the pixel values of the pre-processed image and the pixel values of the reference image;
the step of performing pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image comprises the following steps:
and carrying out pixel processing on the preprocessed image corresponding to the target image by using the selected compensation value to obtain a result image.
Optionally, the target image includes a plurality of target images corresponding to the target display outputting different brightness test pictures, and each target image in the plurality of target images corresponds to the pre-processing image and the reference image; the step of obtaining a selected compensation value based on the pixel values of the pre-processed image and the pixel values of the reference image comprises:
obtaining an initial selection compensation value of each target image based on the preprocessing image pixel value corresponding to each target image and the reference image pixel value corresponding to each target image;
obtaining a plurality of primary selection compensation values of the plurality of target images based on the primary selection compensation value of each target image;
obtaining the selected compensation value based on the plurality of initially selected compensation values;
the step of performing pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image comprises the following steps:
and carrying out pixel processing on the image to be compensated corresponding to each target image by using the selected compensation value to obtain a result image.
Optionally, the step of obtaining the selected compensation value based on the plurality of initially selected compensation values includes:
and obtaining the selected compensation value based on the plurality of initially selected compensation values by using a least square method.
Optionally, the step of performing pixel processing on the image to be compensated corresponding to each target image by using the selected compensation value to obtain a result image includes:
compensating the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value to obtain an output image corresponding to each target image;
and obtaining the result image based on the output image corresponding to each target image.
Optionally, the step of performing compensation processing on the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value to obtain an output image corresponding to each target image includes:
compensating the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value through a formula I to obtain an output image corresponding to each target image;
the first formula is as follows:
row′=u×row
wherein row is a pixel value of the preprocessed image corresponding to each target image, row' is a pixel value of the output image corresponding to each target image, and u is the selected compensation value.
Optionally, the target images are gray-scale target images.
Further, to achieve the above object, the present invention also proposes an image processing apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a target image of a target display when the target display outputs a test picture;
the determining module is used for determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image;
a first obtaining module, configured to obtain a selected compensation value based on a pixel value of the image to be compensated and a pixel value of the reference image;
and the second obtaining module is used for carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image.
In addition, to achieve the above object, the present invention further provides a terminal device, including: a memory, a processor and an image processing program stored on the memory and running on the processor, the image processing program when executed by the processor implementing the steps of the image processing method as claimed in any one of the above.
Furthermore, to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon an image processing program which, when executed by a processor, implements the steps of the image processing method as described in any one of the above.
The technical scheme of the invention provides an image processing method, which comprises the steps of acquiring a target image of a target display when the target display outputs a test picture; determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image; obtaining a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image; and carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image. The target image of the target display is obtained when the display screen outputs the test picture, the brightness information of the preset LED lamp corresponding to the display in the target image is different from that of the reference LED lamp, the brightness of the preset LED lamp is low, and the accuracy of the image to be compensated of the preset LED lamp in the target image is low.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an image processing method according to the present invention;
FIG. 3 is a schematic diagram of an image to be compensated of a preset LED lamp in a target display;
fig. 4 is a block diagram of an image processing apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present invention.
The terminal device may be a User Equipment (UE) such as a Mobile phone, a smart phone, a laptop, a digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a handheld device, a vehicle mounted device, a wearable device, a computing device or other processing device connected to a wireless modem, a Mobile Station (MS), etc. The terminal device may be referred to as a user terminal, a portable terminal, a desktop terminal, etc.
In general, a terminal device includes: at least one processor 301, a memory 302 and an image processing program stored on said memory and executable on said processor, said image processing program being configured to implement the steps of the image processing method as described before.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display needs to display. The processor 301 may further include an AI (Artificial Intelligence) processor for processing relevant image processing method operations so that the image processing method model can be trained and learned autonomously, improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the image processing methods provided by method embodiments herein.
In some embodiments, the terminal may further include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. In some embodiments, processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 304 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When display 305 is a touch display, display 305 also has the ability to acquire touch signals on or over the surface of display 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 305 may be a front panel of an electronic device; in other embodiments, the display 305 may be at least two, respectively disposed on different surfaces of the electronic device or in a folded design; in still other embodiments, the display 305 may be a flexible display disposed on a curved surface or on a folding surface of the electronic device. Even further, the display 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology. Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, on which an image processing program is stored, which, when executed by a processor, implements the steps of the image processing method as described above. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. Determining by way of example, the program instructions may be deployed to be executed on one terminal device, or on multiple terminal devices located at one site, or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Based on the above hardware structure, an embodiment of the image processing method of the present invention is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of an image processing method according to the present invention, where the method is used in a terminal device, and the method includes the following steps:
step S11: and when the target display outputs the test picture, acquiring a target image of the target display.
The main execution body of the present invention is a terminal device installed with an image processing program, and when the terminal device executes the image processing program, the steps of the image processing method according to the embodiment of the present invention are implemented. The target display is a display to be corrected, and partial LED lamps in the display to be corrected need to be subjected to position correction. The target display may be a single box display, or the target display may be a display composed of multiple boxes, which is not limited in the present invention.
Before the LED display is put into use, it needs to be corrected for uniformity of brightness and chromaticity. In the field of uniformity correction of brightness and chrominance of LED displays, an effective method is currently a point-by-point correction technology, which is the most effective method currently. However, when the target display outputs a picture with uniform brightness, the LED lamps in the boundary area and the LED lamps in the middle area have different distributions, so that the brightness of the obtained target image is different between the boundary area and the middle area, and the accuracy of the target image is low.
Generally, when a target display is to be corrected, the target display is required to output a pure color picture (i.e., a test picture), and an image of the target display when the pure color picture is output is captured, which is a target image. Generally, when the target display is a monochrome display, the target display outputs a pure color image corresponding to the monochrome, the target image is a single color target image corresponding to the color display, when the target display is a multi-color display, the target display outputs pure color images corresponding to the multi-color displays, and the target image includes a plurality of single color target images corresponding to the multi-color displays. The image processing method of the present application needs to be performed for each color of target image, that is, when the target display is a monochrome display, the image processing method needs to be performed only once, and when the target display is a multi-color display, the image processing method needs to be performed multiple times (either simultaneously, that is, in parallel, or separately, that is, in sequence).
Firstly, the fixing device fixes the positions of the camera and the target display, so that the photographing distance of the camera is moderate, the visual angle is adjusted to be in a better visual angle, and the camera is required to be vertically opposite to the middle of the target display so as to ensure the optimal angle of the target image.
In specific application, the target image is a gray-scale target image, the display form of the target image shot by the camera is a gray-scale form, or the original color target image shot by the camera needs to be converted into the gray-scale target image.
Step S12: and determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image.
It should be noted that, in the present application, one LED lamp of the target display is one LED lamp unit, that is, when the target display is a 3-color display, one LED lamp unit includes one LED lamp unit formed by three LED lamps of different colors. The LED lamp of the boundary region of the target display (the target display is usually rectangular, the boundary region refers to four sides, the display may also be in the shape of other target figures, and the boundary region is a region corresponding to the sides of the target figure) is a preset LED lamp, and the LED lamp next to the boundary region is a reference LED lamp.
For example, the target display includes 540 × 480 LED lamps (540 × 480 LED lamp units), the boundary regions may be respectively an uppermost 5 rows of the upper boundary, a lowermost 5 rows of the lower boundary, a leftmost 5 columns of the left boundary, and a rightmost 5 columns of the right boundary, and the LED lamps corresponding to the boundary regions are preset LED lamps, that is, the boundary regions are preset regions; the target display comprises 540 by 480 LED lamps, the reference area can be respectively the 5 th to 10 th rows at the uppermost side of the upper boundary, the 5 th to 10 th rows at the lowermost side of the lower boundary, the 5 th to 10 th columns at the leftmost side of the left boundary and the 5 th to 10 th columns at the rightmost side of the right boundary, the LED lamps corresponding to the reference area are the reference LED lamps, generally, the number of rows or columns of the reference area is not less than that of the boundary area, and the boundary area preferably takes 5 rows (or columns).
In addition, a certain number of rows and columns can be expanded outside the boundary area of the target display, the expanded number of rows and columns is used as a new boundary area, and the original boundary area of the target display is used as a reference area.
For example, the target display includes 540 × 480 LED lamps (540 × 480 LED lamp units), the boundary regions may be respectively an uppermost 5 rows of the upper boundary, a lowermost 5 rows of the lower boundary, a leftmost 5 columns of the left boundary, and a rightmost 5 columns of the right boundary, and the LED lamps corresponding to the boundary regions are preset LED lamps; the target display includes 540 x 480 LED lamps. The upper and lower boundaries of the target display are respectively expanded by 5 rows, and the left and right boundaries of the target display are respectively expanded by 5 columns, namely, the new target display corresponds to 550 × 490 LED lamps. The preset area is the 5 th row at the top of the upper boundary, the 5 th row at the bottom of the lower boundary, the 5 th column at the left side of the left boundary and the 5 th column at the right side of the right boundary of the new target display, the reference area is the 5 th-10 th row at the top of the upper boundary, the 5 th-10 th row at the bottom of the lower boundary, the 5 th-10 th column at the left side of the left boundary and the 5 th-10 th column at the right side of the right boundary of the new target display, and the reference area is the preset area of the original target display at the moment. And taking the image to be compensated of the preset area of the new target display as the image to be compensated of the preset area of the original target display, and taking the reference image of the reference area of the new target display as the reference image of the reference area of the original target display.
It can be understood that the image to be compensated of the preset LED lamp and the reference image of the reference LED lamp are respectively a part of images in the target image, and when the target image is processed by the image processing method of the present application, no processing is performed on other part of images in the target image.
Meanwhile, the reference LED lamp and the preset LED lamp of the same target display are fixed, for example, when a user determines that the boundary area (preset area) is the top 5 lines of the upper boundary, the bottom 5 lines of the lower boundary, the left 5 lines of the left boundary and the right 5 lines of the right boundary, and shoots target images of the same target display for multiple times, the positions of the images to be compensated of the preset LED lamp and the reference image of the reference LED lamp in the shot target images for multiple times are relatively unchanged.
Step S13: and obtaining a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image.
Step S14: and carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image.
Specifically, before step S13, the method further includes: performing pixel processing on the boundary area with uneven pixel values in the image to be compensated to obtain a preprocessed image with even pixel values in the boundary area; the corresponding step S13 includes: obtaining a selected compensation value based on the pixel values of the pre-processed image and the pixel values of the reference image; accordingly, step S14 includes: and carrying out pixel processing on the preprocessed image corresponding to the target image by using the selected compensation value to obtain a result image.
It should be noted that one preset LED lamp corresponds to one image to be compensated, one preset LED lamp corresponds to one reference LED lamp, and one reference LED lamp corresponds to one reference image. The preset LED lamps are located in the boundary area, so that the pixel values of the boundary area of the image to be compensated corresponding to the preset LED lamps are uneven, the pixel values of the boundary area of the image to be compensated corresponding to each preset LED lamp are uneven, and the image to be compensated corresponding to each preset LED lamp needs to be subjected to pixel processing, so that the preprocessed image with the uniform pixel values of the boundary area corresponding to each preset LED lamp is obtained.
Referring to fig. 3, fig. 3 is a schematic diagram of an image to be compensated of a preset LED lamp in a target display; the LED lamp is a preset LED lamp on the leftmost side and the uppermost side of the target display, the brightness of the left side (1 area) and the brightness of the upper side (2 area) of the target display are low, and the left side and the upper side of the target display are not provided with other LED lamps, so that the pixel value of the corresponding image to be compensated is low. Respectively mapping pixel values corresponding to a 5 area and a 4 area of an image to be compensated of a preset LED lamp to a1 area and a2 area, namely replacing the pixel value of the 1 area with the pixel value of the 5 area, replacing the pixel value of the 2 area with the pixel value of the 4 area, and then obtaining a preprocessed image corresponding to the preset LED lamp, wherein the pixel values of the 1 area and the 5 area in the preprocessed image corresponding to the preset LED lamp are the same, and the pixel values of the 2 area and the 4 area in the preprocessed image corresponding to the preset LED lamp are the same. Meanwhile, the pixel value of the preprocessed image corresponding to the preset LED lamp is an average value of the pixel values of all the pixel points included in the five regions in fig. 3.
After pixel processing is completed on the preprocessed images of all the preset LED lamps in each row and each column corresponding to the preset area, all the preprocessed images of the row and the column are obtained; when the preset LED lamp includes a plurality of rows and a plurality of columns, the preprocessed image includes the entire preprocessed image of the plurality of rows and the plurality of columns. Meanwhile, one row (or column) of preset LED lamps corresponds to one row (or column) of reference LED lamps, and a plurality of rows (or columns) of preset LED lamps correspond to a plurality of rows (or columns) of reference LED lamps. And obtaining the selected compensation value of all the pre-processing images corresponding to the preset LED lamp of each row (or column) based on the pixel value of all the pre-processing images of the preset LEDs of each row (or column) and the pixel value of all the reference images of the corresponding row (or column) of the reference LED lamps.
For example, the border area of the target display is the 5 rows at the top, the 5 rows at the bottom of the lower border, the 5 columns at the left and the 5 columns at the right of the border, and the reference areas are the 5-10 rows at the top of the upper border, the 5-10 rows at the bottom of the lower border, the 5-10 columns at the left and the 5-10 columns at the right of the border, respectively. Taking the top 5 rows of preset LEDs and the corresponding top 5-10 rows of reference LEDs as an example, from top to bottom, each row of LED lamps is defined as U1 and U2 · · · · · · · · · · · · · · · · · · · · · · · U10, where U1-U5 are preset LED lamps, U6-U10 are reference LED lamps, U1 corresponds to U6, and U2 corresponds to U7, and similarly, it can be obtained that U3 corresponds to U8, U4 corresponds to U9, and U5 corresponds to U10.
For the preset LED lamp in each line of U1-U5, pixel value calculation (refer to the calculation of the pixel value in fig. 3) is performed on all the preprocessed images corresponding to the preset LED lamp in the line, pixel values of all the preprocessed images corresponding to the preset LED lamp in the line are obtained, an average value of the pixel values of all the preprocessed images corresponding to the preset LED lamp in the line is obtained, the average pixel value is a selected pixel value to be compensated of all the preprocessed images in the line, and the selected pixel value to be compensated is a pixel value of all the preprocessed images in the line, that is, the pixel values of all the preprocessed images in the same line are the same and are all the selected pixel values to be compensated; similarly, the selected reference pixel values of all the reference images corresponding to each row of reference LED lamps are calculated, and the selected reference pixel values are taken as the pixel values of all the reference images in the row, that is, the pixel values of all the reference images in the same row are the same and are all the selected reference pixel values. U1-U5 correspond to 5 selected pixel values to be compensated, U6-U10 correspond to 5 selected reference pixel values, the ratio of the selected reference pixel value of U6 to the selected pixel value to be compensated of corresponding U1 is calculated, the ratio is the selected compensation value of all preprocessed images corresponding to U1, and similarly, the selected compensation values corresponding to U1-U5 are respectively obtained.
Then, all the preprocessed images corresponding to U1-U5 are compensated by using the selected compensation values corresponding to U1-U5, respectively, to obtain compensated images, the pixel values of the images corresponding to U1-U5 in the compensated images are all compensated and adjusted, the compensated images are restored to the areas corresponding to the preset LED lamps in the target images, and then the result images can be obtained, in the result images, the pixel values of the areas corresponding to the preset LED lamps (compensated images) are changed, and the pixel values of other areas are not changed.
Further, the target images comprise a plurality of target images corresponding to the target display outputting different brightness test pictures, and each target image in the plurality of target images corresponds to the pre-processing image and the reference image; the step of obtaining a selected compensation value based on the pixel values of the pre-processed image and the pixel values of the reference image comprises: obtaining an initial selection compensation value of each target image based on the preprocessing image pixel value corresponding to each target image and the reference image pixel value corresponding to each target image; obtaining a plurality of primary selection compensation values of the plurality of target images based on the primary selection compensation value of each target image; obtaining the selected compensation value based on the plurality of initially selected compensation values; the step of performing pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image comprises the following steps: and carrying out pixel processing on the image to be compensated corresponding to each target image by using the selected compensation value to obtain a result image.
Specifically, the step of determining the selected compensation value from the plurality of initially selected compensation values includes: and obtaining the selected compensation value based on the plurality of initially selected compensation values by using a least square method. The least square method refers to a formula II which is as follows:
Figure BDA0002879433610000111
wherein n is the number of the plurality of initially selected compensation values, lmFor said selected compensation value,/iFor the ith primary selected compensation value in the plurality of primary selected compensation values,
Figure BDA0002879433610000121
is the mean square error, when the mean square error is minimum, the obtainedmA specific value of the compensation value is selected.
The step of performing pixel processing on the preprocessed image corresponding to the target image by using the selected compensation value to obtain a result image comprises the following steps: compensating the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value to obtain an output image corresponding to each target image; and obtaining the result image based on the output image corresponding to each target image.
For example, the border areas of the target display are the 5 rows uppermost, the 5 rows lowermost of the lower border, the 5 columns leftmost at the left border, and the 5 columns rightmost at the right border, and the reference areas are the 5-10 rows uppermost at the upper border, the 5-10 rows outermost at the lower border, the 5-10 columns leftmost at the left border, and the 5-10 columns rightmost at the right border, respectively. Taking the top 5 rows of preset LEDs and the corresponding top 5-10 rows of reference LEDs as an example, from top to bottom, each row of LED lamps is defined as U1 and U2 · · · · · · · · · · · · · · · · · · · · · · · U10, where U1-U5 are preset LED lamps, U6-U10 are reference LED lamps, U1 corresponds to U6, and U2 corresponds to U7, and similarly, it can be obtained that U3 corresponds to U8, U4 corresponds to U9, and U5 corresponds to U10.
The target image includes 3 target images corresponding to three kinds of brightness respectively: an a1 image, an a2 image, and an A3 image. Taking an a1 image as an example, for a preset LED lamp in each row of U1-U5, performing pixel value calculation (refer to the calculation of the pixel values in fig. 3) on all the preprocessed images corresponding to the preset LED lamp in the row respectively to obtain pixel values of all the preprocessed images corresponding to the preset LED lamp in the row, and calculating an average value of the pixel values of all the preprocessed images corresponding to the preset LED lamp in the row to obtain an average pixel value of all the preprocessed images in the row, where the average pixel value is a selected pixel value to be compensated of all the preprocessed images in the row, and the selected pixel value to be compensated is a pixel value of all the preprocessed images in the row, that is, the pixel values of all the preprocessed images in the same row are the same and are all the selected pixel values to be compensated; similarly, the selected reference pixel values of all the reference images corresponding to each row of reference LED lamps are calculated, and the selected reference pixel values are taken as the pixel values of all the reference images in the row, that is, the pixel values of all the reference images in the same row are the same and are all the selected reference pixel values.
U1-U5 correspond to 5 selected pixel values to be compensated, U6-U10 correspond to 5 selected reference pixel values, the ratio of the selected reference pixel value of U6 to the selected pixel value to be compensated of corresponding U1 is calculated, the ratio is the initial selection compensation value of all preprocessed images corresponding to U1, and similarly, the initial selection compensation values corresponding to U1-U5 are respectively obtained.
The calculation of the initial selection compensation values is performed on the a2 image and the A3 image respectively, the initial selection compensation values corresponding to U1-U5 are obtained and respectively include 3 initial selection compensation values, wherein the selected compensation value corresponding to U1 is obtained based on the 3 initial selection compensation values corresponding to U1 by using a least square method, 5 selected compensation values corresponding to U1-U5 are obtained by the same calculation, all the preprocessed images in a1, a2 and A3 are compensated by using the selected compensation values corresponding to U1-U5, compensated images corresponding to a1, a2 and A3 respectively, that is, output images are obtained, the output images corresponding to a1, a2 and A3 respectively are restored to the regions corresponding to the preset LED lamps in a1, a2 and A3, so as to obtain corresponding result images, and the result images corresponding to a1, a2 and A3 respectively are the result image sets.
It can be understood that, the compensation processing is performed on the pixel value of the pre-processed image corresponding to each target image by using the selected compensation value, and actually, the pixel value of the pre-processed image corresponding to each target image is calculated by using the selected compensation value, so as to obtain a result image corresponding to the target image. Compared with the original target image, the pixel values of the preprocessed image part are changed, and the pixel values of other parts are not changed, namely, the pixel values of the local area (the area corresponding to the preprocessed image) of the target image are adjusted.
The step of performing compensation processing on the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value to obtain an output image corresponding to each target image comprises:
compensating the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value through a formula I to obtain an output image corresponding to each target image;
the first formula is as follows:
row′=u×row
wherein row is a pixel value of the preprocessed image corresponding to each target image, row' is a pixel value of the output image corresponding to each target image, and u is the selected compensation value.
For example, the target display is a three-color display including three colors of R (red), G (green), and B (blue), presetThe LED areas correspond to K rows (or columns) and are sorted from the outside to the inside, and in this case, the selected compensation value obtained can be expressed as uj,R、uj,GAnd uj,BThe red selected compensation value, the green selected compensation value and the blue selected compensation value of the preprocessed image corresponding to the jth row (or column) of preset LEDs respectively represent, i.e. the multicolor display is to perform the calculation and compensation processing of the selected compensation values of the plurality of colors respectively. In this case, the formula two can be expressed as:
Figure BDA0002879433610000131
wherein rowj,R、rowj,RAnd rowj,BRed, green and blue pre-processed image pixel values, respectively, and their corresponding row'j,R、row′j,GAnd row'j,BRed result image pixel values, green result image pixel values, and blue result image pixel values, respectively.
The technical scheme of the invention provides an image processing method, which comprises the steps of acquiring a target image of a target display when the target display outputs a test picture; determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image; obtaining a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image; and carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image. The target image of the target display is obtained when the display screen outputs the test picture, the brightness information of the preset LED lamp corresponding to the display in the target image is different from that of the reference LED lamp, the brightness of the preset LED lamp is low, and the accuracy of the image to be compensated of the preset LED lamp in the target image is low.
Referring to fig. 4, fig. 4 is a block diagram of a first embodiment of an image processing apparatus according to the present invention, the apparatus being used for a terminal device, the apparatus including:
the system comprises an acquisition module 10, a display module and a display module, wherein the acquisition module is used for acquiring a target image of a target display when the target display outputs a test picture;
the determining module 20 is configured to determine, in the target image, an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp;
a first obtaining module 30, configured to obtain a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image;
and a second obtaining module 40, configured to perform pixel processing on the image to be compensated in the target image by using the selected compensation value, so as to obtain a result image.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An image processing method, characterized by comprising the steps of:
when a target display outputs a test picture, acquiring a target image of the target display;
determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image;
obtaining a selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image;
and carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image.
2. The image processing method of claim 1, wherein, prior to the step of obtaining the selected compensation value based on the pixel values of the image to be compensated and the pixel values of the reference image, the method further comprises:
performing pixel processing on the boundary area with uneven pixel values in the image to be compensated to obtain a preprocessed image with even pixel values in the boundary area;
the step of obtaining the selected compensation value based on the pixel value of the image to be compensated and the pixel value of the reference image comprises:
obtaining a selected compensation value based on the pixel values of the pre-processed image and the pixel values of the reference image;
the step of performing pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image comprises the following steps:
and carrying out pixel processing on the preprocessed image corresponding to the target image by using the selected compensation value to obtain a result image.
3. The image processing method according to claim 2, wherein the target image includes a plurality of target images corresponding to the target display outputting different luminance test pictures, each of the plurality of target images corresponding to the pre-processing image and the reference image; the step of obtaining a selected compensation value based on the pixel values of the pre-processed image and the pixel values of the reference image comprises:
obtaining an initial selection compensation value of each target image based on the preprocessing image pixel value corresponding to each target image and the reference image pixel value corresponding to each target image;
obtaining a plurality of primary selection compensation values of the plurality of target images based on the primary selection compensation value of each target image;
obtaining the selected compensation value based on the plurality of initially selected compensation values;
the step of performing pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image comprises the following steps:
and carrying out pixel processing on the image to be compensated corresponding to each target image by using the selected compensation value to obtain a result image.
4. The image processing method of claim 3, wherein the step of obtaining the selected compensation value based on the plurality of initially selected compensation values comprises:
and obtaining the selected compensation value based on the plurality of initially selected compensation values by using a least square method.
5. The image processing method according to claim 4, wherein the step of performing pixel processing on the image to be compensated corresponding to each target image by using the selected compensation value to obtain a result image comprises:
compensating the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value to obtain an output image corresponding to each target image;
and obtaining the result image based on the output image corresponding to each target image.
6. The image processing method according to claim 5, wherein the step of performing compensation processing on the pixel values of the pre-processed image corresponding to each target image by using the selected compensation value to obtain the output image corresponding to each target image comprises:
compensating the pixel value of the preprocessed image corresponding to each target image by using the selected compensation value through a formula I to obtain an output image corresponding to each target image;
the first formula is as follows:
row′=u×row
wherein row is a pixel value of the preprocessed image corresponding to each target image, row' is a pixel value of the output image corresponding to each target image, and u is the selected compensation value.
7. The image processing method of claim 6, wherein the plurality of target images are a plurality of grayscale target images.
8. An image processing apparatus characterized by comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a target image of a target display when the target display outputs a test picture;
the determining module is used for determining an image to be compensated of a preset LED lamp and a reference image of a reference LED lamp in the target image;
a first obtaining module, configured to obtain a selected compensation value based on a pixel value of the image to be compensated and a pixel value of the reference image;
and the second obtaining module is used for carrying out pixel processing on the image to be compensated in the target image by using the selected compensation value to obtain a result image.
9. A terminal device, characterized in that the terminal device comprises: memory, a processor and an image processing program stored on the memory and running on the processor, the image processing program when executed by the processor implementing 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 an image processing program is stored thereon, which when executed by a processor implements the steps of the image processing method according to any one of claims 1 to 7.
CN202011643714.6A 2020-12-31 2020-12-31 Image processing method, device, terminal equipment and computer readable storage medium Active CN112770096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011643714.6A CN112770096B (en) 2020-12-31 2020-12-31 Image processing method, device, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011643714.6A CN112770096B (en) 2020-12-31 2020-12-31 Image processing method, device, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112770096A true CN112770096A (en) 2021-05-07
CN112770096B CN112770096B (en) 2024-02-09

Family

ID=75698746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011643714.6A Active CN112770096B (en) 2020-12-31 2020-12-31 Image processing method, device, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112770096B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350933A (en) * 2008-09-02 2009-01-21 广东威创视讯科技股份有限公司 Method for regulating lighteness of filmed display screen based on image inductor
US20150325170A1 (en) * 2013-09-30 2015-11-12 Boe Technology Group Co., Ltd. Method, apparatus and system for display compensation
CN106952627A (en) * 2017-05-03 2017-07-14 深圳市华星光电技术有限公司 A kind of mura phenomenons compensation method of display panel and display panel
US20180144719A1 (en) * 2016-11-23 2018-05-24 Samsung Display Co., Ltd. Display device and method of compensating luminance of the same
CN108831386A (en) * 2018-06-27 2018-11-16 京东方科技集团股份有限公司 Backlight module and its control method, splicing display device and its method for controlling backlight thereof, display module
US20190066574A1 (en) * 2017-08-25 2019-02-28 HKC Corporation Limited Optimization method and device for brightness compensation
US20190251671A1 (en) * 2016-07-11 2019-08-15 Samsung Electronics Co., Ltd. Image processing device and image processing method
CN111415609A (en) * 2020-04-20 2020-07-14 Tcl华星光电技术有限公司 Method and device for adjusting brightness of display panel and electronic equipment
CN111710277A (en) * 2020-06-28 2020-09-25 合肥维信诺科技有限公司 Compensation method and device of display panel
CN111968563A (en) * 2020-09-08 2020-11-20 京东方科技集团股份有限公司 Brightness compensation method, device and system of display panel, display panel and medium
CN111968583A (en) * 2020-07-23 2020-11-20 昆山国显光电有限公司 Display panel brightness compensation control method and brightness compensation control system
CN112017590A (en) * 2019-05-28 2020-12-01 陕西坤同半导体科技有限公司 Mura compensation method, device, medium and electronic equipment for display panel

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350933A (en) * 2008-09-02 2009-01-21 广东威创视讯科技股份有限公司 Method for regulating lighteness of filmed display screen based on image inductor
US20150325170A1 (en) * 2013-09-30 2015-11-12 Boe Technology Group Co., Ltd. Method, apparatus and system for display compensation
US20190251671A1 (en) * 2016-07-11 2019-08-15 Samsung Electronics Co., Ltd. Image processing device and image processing method
US20180144719A1 (en) * 2016-11-23 2018-05-24 Samsung Display Co., Ltd. Display device and method of compensating luminance of the same
CN106952627A (en) * 2017-05-03 2017-07-14 深圳市华星光电技术有限公司 A kind of mura phenomenons compensation method of display panel and display panel
US20190066574A1 (en) * 2017-08-25 2019-02-28 HKC Corporation Limited Optimization method and device for brightness compensation
CN108831386A (en) * 2018-06-27 2018-11-16 京东方科技集团股份有限公司 Backlight module and its control method, splicing display device and its method for controlling backlight thereof, display module
CN112017590A (en) * 2019-05-28 2020-12-01 陕西坤同半导体科技有限公司 Mura compensation method, device, medium and electronic equipment for display panel
CN111415609A (en) * 2020-04-20 2020-07-14 Tcl华星光电技术有限公司 Method and device for adjusting brightness of display panel and electronic equipment
CN111710277A (en) * 2020-06-28 2020-09-25 合肥维信诺科技有限公司 Compensation method and device of display panel
CN111968583A (en) * 2020-07-23 2020-11-20 昆山国显光电有限公司 Display panel brightness compensation control method and brightness compensation control system
CN111968563A (en) * 2020-09-08 2020-11-20 京东方科技集团股份有限公司 Brightness compensation method, device and system of display panel, display panel and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黎吉国;王悦;张新峰;马思伟;: "一种鱼眼视频全景拼接中的亮度补偿算法", 中国科学:信息科学, no. 03 *

Also Published As

Publication number Publication date
CN112770096B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US11120726B2 (en) Method and device for driving display panel, and display apparatus
US20200135148A1 (en) Screen of ue, screen structure, method and apparatus for controlling screen of ue, and ue
CN105261326A (en) Display device for adjusting display color gamut and method for adjusting display color gamut
US20240339068A1 (en) Display method and electronic device
US11328645B2 (en) Display control method and device for N-primary-color display panel, and display device
CN107958470A (en) A kind of color correcting method, mobile terminal
WO2022166624A1 (en) Screen display method and related apparatus
US20230230521A1 (en) Method for managing pixel of display, and electronic device supporting same
CN116466899A (en) Image processing method and electronic equipment
CN113271422B (en) Brightness adjustment method, device, television, and computer-readable storage medium
CN113554973A (en) Display brightness adjusting method and related device
CN113676716A (en) White balance control method, device, terminal device and storage medium
CN112508922B (en) Mura detection method, device, terminal equipment and storage medium
US20230377503A1 (en) Image processing method and apparatus, and electronic device
CN109377966B (en) Display method, system and display device
CN111986602A (en) Burning method of display panel and display device
CN112767877B (en) Display adjusting method, device, equipment and storage medium
CN112669769A (en) Display screen box body parameter correction method and device, equipment and storage medium
CN112770096B (en) Image processing method, device, terminal equipment and computer readable storage medium
CN114495859B (en) Picture display method, device, display terminal and storage medium
KR20220099784A (en) Electronic device including flexible display and method for operating thereof
CN108646455B (en) Electronic equipment and its display panel
WO2022116718A1 (en) Display adjustment method and apparatus, electronic device, and storage medium
CN113393809A (en) Display terminal control method, display terminal control device, display terminal and storage medium
WO2025080091A1 (en) An electronic device for generating color-corrected image and controlling method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant