A projection color adaptive correction method, device, storage medium and equipment

By projecting pure white and multi-color rectangular block pattern, the corner coordinates and RGB gain are detected, and the color correction of the projector is updated, which solves the problem of color deviation of the projector on non-white walls, achieving efficient and low-cost colors Correction effect.

CN118678038BActive Publication Date: 2024-11-15SHENZHEN ORANGE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411149154.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-15
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

When existing projectors project onto non-white walls, the color deviates from the true value. The calculation volume of the existing technology is large and affected by regional dirt and color abnormalities, making it difficult to achieve efficient and low-cost color correction.

Method used

By projecting pure white and multi-color rectangular block patterns to the projection area, detecting corner coordinates, calculating homography matrix and RGB gain, updating the gain according to the difference meeting preset conditions, and adjusting the color correction of the projection device.

Benefits of technology

It realizes simple calculation and high efficiency color correction, avoids the problems of frame rate reduction and inaccurate color, and is suitable for different wall conditions and has a wide range of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678038B_ABST
    Figure CN118678038B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, storage medium and equipment for adaptive correction of projection color, which have beneficial effects: by projecting rectangular blocks of different colors on a wall, and then obtaining the RGB current gain of each rectangular block based on a preset processing model, the RGB current gain is compared with the RGB original gain to obtain the RGB update gain, and the gains of the three RGB lamps are adjusted based on the RGB update gain, so that color correction can be achieved without affecting the frame rate of the content output by the projector; by continuously iterating the projected color block diagram, the optimal gains of the three RGB lamps are solved, without complex calculations and formula fitting, and the calculation is simple and efficient; at the same time, the present invention takes into account the continuous iterative approximation of the percentages of the three RGB components of the captured image and the percentages of the three RGB components of the ideal white wall captured image, so it is not affected by the color difference of the image captured by the camera, and is not limited by the camera sensor, and has a wide range of applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the field of projection technology, and in particular to a projection color adaptive correction method, device, storage medium and equipment. Background Art

[0002] As projectors become more and more popular in households, higher and higher requirements are placed on the authenticity of movie colors. When consumers project a projector onto a non-white wall, the color of the projected image will deviate a lot from the true value. To solve this problem, the prior art proposes the following solutions, which have obvious defects:

[0003] (1) By solving the color correction matrix, the color correction matrix is ​​directly performed on the image content. This method greatly increases the amount of calculation, thereby affecting the frame rate of the projector output content and ultimately affecting the projection effect;

[0004] (2) Perform statistical calculations on the entire canvas or a certain area on the projection wall. This method is affected by dirt or even color anomalies in the wall area, which will affect the accuracy of the color.

[0005] Therefore, how to design a projection color correction method with small computational complexity, no restrictions on the projection area, low cost and high efficiency is a technical problem to be solved. Summary of the invention

[0006] Based on this, it is necessary to provide a projection color adaptive correction method, device, storage medium and equipment to address the existing problems.

[0007] In a first aspect, an embodiment of the present application provides a projection color adaptive correction method, comprising the following steps:

[0008] Projecting a first preset sample image onto the pure white projection area to form a first projection image;

[0009] Performing corner point detection on the first projection image to obtain first coordinate data of all corner points of the first projection image;

[0010] Obtaining a homography matrix of a projection device according to the first coordinate data and the preset coordinate data corresponding to all corner points of the preset sample image;

[0011] Projecting a second preset sample image including a plurality of blocks of different colors to the current projection area to form a second projection image;

[0012] Obtaining second coordinate data of all corner points of the second projection image according to the original coordinate data corresponding to all corner points of the second preset sample image and the homography matrix;

[0013] Obtaining RGB current gains of all color blocks of the second preset sample image according to the second coordinate data;

[0014] Determine whether the difference between the RGB current gain and the RGB original gain meets a preset condition;

[0015] In response to the RGB current gain and the RGB original gain satisfying a preset condition, updating the RGB current gain according to a preset processing model to obtain an RGB updated gain;

[0016] The color of the projection device is corrected based on the RGB update gains.

[0017] Preferably, the first preset sample image is a checkerboard image, and the second preset sample image includes a plurality of rectangular blocks of different colors.

[0018] Preferably, the homography matrix is ​​obtained by formula (1):

[0019] (1);

[0020] in, is the homography matrix, z is the scale factor, are preset coordinates corresponding to the corner points of the first preset sample image, where: is the first coordinate corresponding to the corner point of the first projection image, is the number of corner points of the first projection image and the first preset sample image.

[0021] Preferably, the second coordinate data is obtained by formula (2):

[0022] (2);

[0023] in, are the original coordinates corresponding to the corner points of the second preset sample image, is the number of corner points of the second preset sample image, is the second coordinate corresponding to the corner point of the second projection image.

[0024] Preferably, obtaining the RGB current gains of all color blocks of the second preset sample image according to the second coordinate data includes:

[0025] According to the second coordinate data, obtaining RGB current pixel average data of all color blocks of the second preset sample image;

[0026] The RGB current gains of all color blocks are obtained according to the RGB current pixel average data of all color blocks.

[0027] Preferably, the RGB current gain is obtained by formula (3):

[0028] (3);

[0029] in,( , , ) is the The current RGB gain of each color block, , , and They are the current gain of the R channel, the current gain of the G channel and the current gain of the B channel of the RGB current gain;

[0030] in,( , , ) is the first projection image of the second The RGB current pixel average data of the color block is calculated according to the second projection image. The RGB of the pixels of all corner point coordinates of the color block is obtained. , and Respectively The current pixel average value of the R channel, the current pixel average value of the G channel, and the current pixel average value of the B channel of the color block.

[0031] Preferably, the RGB original gain is obtained by the following steps:

[0032] Projecting a second preset sample image including a plurality of blocks of different colors onto the pure white projection area to form a third projection image;

[0033] Obtaining third coordinate data of all corner points of the third projection image according to the original coordinate data corresponding to all corner points of the second preset sample image and the homography matrix;

[0034] The RGB original gains of all color blocks of the second preset sample image are obtained according to the third coordinate data.

[0035] Preferably, obtaining the RGB original gains of all color blocks of the second preset sample image according to the third coordinate data includes:

[0036] Obtaining RGB original pixel average data of all color blocks of the second preset sample image according to the third coordinate data;

[0037] The RGB original gains of all color blocks are obtained according to the RGB original pixel average data of all color blocks.

[0038] Preferably, the RGB current gain is obtained by formula (4):

[0039] (4);

[0040] in,( , , ) is the The current RGB gain of each color block, , , and They are the current gain of the R channel, the current gain of the G channel and the current gain of the B channel of the RGB current gain;

[0041] in,( , , ) is the third projection image The RGB current pixel average data of the color block is calculated according to the third projection image. The RGB of the pixels of all corner point coordinates of the color block is obtained. , and Respectively The current pixel average value of the R channel, the current pixel average value of the G channel, and the current pixel average value of the B channel of the color block.

[0042] Preferably, the preset conditions are expressed by formulas (5), (6) and (7):

[0043] or ; (5);

[0044] or ; (6);

[0045] or ; (7);

[0046] in, , , , is the R channel gain threshold, is the G channel gain threshold, is the B channel gain threshold.

[0047] Preferably, updating the RGB current gain according to a preset processing model to obtain the RGB updated gain includes:

[0048] (1) When When the current gain of the R channel is adjusted as follows:

[0049] ;

[0050] (2) When When the current gain of the R channel is adjusted as follows:

[0051] ;

[0052] (3) When When , adjust the current gain of G channel as follows:

[0053] ;

[0054] (4) When When , adjust the current gain of G channel as follows:

[0055] ;

[0056] (5) When When , adjust the current gain of channel B as follows:

[0057] ;

[0058] (6) When When , adjust the current gain of channel B as follows:

[0059] ;

[0060] in,( , , ) is the RGB update gain, , and They are the R channel update gain, G channel update gain and B channel update gain of RGB update gain respectively; is the gain adjustment step size.

[0061] In a second aspect, an embodiment of the present application provides a projection color adaptive correction device, comprising:

[0062] A first projection module, used for projecting a first preset sample image to a pure white projection area to form a first projection image;

[0063] A first detection module, configured to perform corner point detection on the first projection image to obtain first coordinate data of all corner points of the first projection image;

[0064] A first calculation module, used for obtaining a homography matrix of a projection device according to the first coordinate data and preset coordinate data corresponding to all corner points of the preset sample image;

[0065] A second projection module, used for projecting a second preset sample image including a plurality of blocks of different colors to the current projection area to form a second projection image;

[0066] A second calculation module, used for obtaining second coordinate data of all corner points of the second projection image according to the original coordinate data corresponding to all corner points of the second preset sample image and the homography matrix;

[0067] A gain calculation module, used for obtaining the RGB current gains of all color blocks of the second preset sample image according to the second coordinate data;

[0068] A judging module, used for judging whether the difference between the RGB current gain and the RGB original gain meets a preset condition;

[0069] A processing module, configured to update the RGB current gain according to a preset processing model to obtain an RGB updated gain in response to the RGB current gain and the RGB original gain satisfying a preset condition;

[0070] A correction module is used to correct the color of the projection device based on the RGB update gain.

[0071] Compared with the prior art, the present invention has the following beneficial effects: the present invention projects rectangular blocks of different colors on the wall, obtains the RGB current gain of each rectangular block based on a preset processing model, compares the RGB current gain with the pre-stored RGB original gain, obtains an updated RGB update gain, and finally adjusts the gain of the projected RGB three lamps based on the RGB update gain. By adjusting the gain of the RGB three lamps, color correction can be achieved without affecting the frame rate of the projector output content; the present invention gradually approaches the strategy of iteratively solving the optimal RGB three lamp gain by continuously iteratively projecting a color block diagram, without complex calculations, formula fitting and optimization solutions, and has simple calculations and high efficiency; at the same time, the present invention takes into account the continuous iterative approximation of the percentage of the RGB three components of the captured image to the percentage of the RGB three components of the ideal white wall captured image, so it is not affected by the color difference of the image captured by the camera, and is not limited by the camera sensor, and has a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] By referring to the following drawings, the exemplary embodiments of the present invention can be more completely understood. The drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present invention and do not constitute a limitation of the present invention. In the drawings, the same reference numerals generally represent the same parts or steps.

[0073] Figure 1 A flowchart of a projection color adaptive correction method provided according to an exemplary embodiment of the present application;

[0074] Figure 2 A schematic diagram of a first preset sample image of a projection color adaptive correction method provided according to an exemplary embodiment of the present application;

[0075] Figure 3 A schematic diagram of the structure of a projection color adaptive correction device provided by an exemplary embodiment of the present application is shown;

[0076] Figure 4 A schematic diagram of an electronic device provided by an exemplary embodiment of the present application is shown;

[0077] Figure 5 A schematic diagram of a computer-readable medium provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0078] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0079] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0080] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0081] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0082] Example 1

[0083] An embodiment of the present application provides a projection color adaptive correction method, which is described below in conjunction with the accompanying drawings.

[0084] Reference Figure 1 , which shows a projection color adaptive correction method provided by some embodiments of the present application, the method may include the following steps:

[0085] S101: Projecting a first preset sample image onto a pure white projection area to form a first projection image;

[0086] Specifically, the projector projects a predefined sample image onto the screen. In a preferred embodiment, the sample image may be an Aruco code, a chessboard, or other graphics. Figure 2 The aruco code and checkerboard are shown for illustration.

[0087] S102: Perform corner point detection on the first projection image to obtain first coordinate data of all corner points of the first projection image;

[0088] Specifically, it is defined that when the sample image projected by the projector is displayed on the projection screen, the image taken by the camera is the first projection image, and the first projection image is subjected to corner point detection. Here, the corner points refer to all the corner points of the aruco code. Generally speaking, the corner points are extreme points, that is, points with particularly prominent attributes in some aspects, and are isolated points with the maximum or minimum intensity in some attributes, and the end points of line segments. For an image, the part within the circle as shown in the figure is the corner point of the image, which is the connection point of the object contour line. Specifically, for an image, the corner point coordinates are the pixel point coordinates.

[0089] S103: Obtaining a homography matrix of a projection device according to the first coordinate data and preset coordinate data corresponding to all corner points of the preset sample image;

[0090] Specifically, the number of corner points detected in the first projection image is indivual, The coordinates of the corner points are , ,…… , predefined sample images Preset corner point coordinates , ,……, , the homography matrix H is derived by the following formula (1):

[0091] (1);

[0092] Where z is the scale factor, are the corner point coordinates of the first preset sample image, where: is the corner coordinate of the first projection image, is the number of corner points of the first projection image and the preset sample image. Specifically, after one-to-one correspondence between the corner point coordinates of the first projection image and the corner point coordinates of the first preset sample image, the homography matrix can be obtained by the following process:

[0093] Assume that the homography matrix H is a 3*3 matrix, then it is expressed as , after eliminating the scale factor z, the coordinates of each corner point of the preset sample image can be expressed as:

[0094] ;

[0095] ;

[0096] Among them, assuming , then H has 8 independent unknown elements, and each pair of corresponding corner point coordinates can provide the above two constraint equations. Therefore, when the number of corresponding corner point pairs is equal to 4 pairs, the homography matrix H can be obtained. When the number of corresponding corner point pairs is greater than 4, the least squares method can be used to calculate the optimal homography matrix H.

[0097] S104: Projecting a second preset sample image including a plurality of blocks of different colors to the current projection area to form a second projection image;

[0098] S105: Obtaining second coordinate data of all corner points of the second projection image according to the original coordinate data and the homography matrix corresponding to all corner points of the second preset sample image;

[0099] Specifically, the second coordinate data is obtained by formula (2):

[0100] (2);

[0101] in, are the original coordinates corresponding to the corner points of the second preset sample image, is the number of corner points of the second preset sample image, is the second coordinate corresponding to the corner point of the second projection image.

[0102] S106: Obtaining RGB current gains of all color blocks of the second preset sample image according to the second coordinate data;

[0103] Specifically, step S106 includes the following steps:

[0104] S1062: Obtaining RGB current pixel average data of all color blocks of the second preset sample image according to the first coordinate data;

[0105] S1063: Obtaining the RGB current gains of all color blocks according to the RGB current pixel average data of all color blocks.

[0106] Specifically, the RGB current gain is obtained by formula (3):

[0107] (3);

[0108] in,( , , ) is the The current RGB gain of each color block, , , and They are the current gain of the R channel, the current gain of the G channel and the current gain of the B channel of the RGB current gain;

[0109] in,( , , ) is the first projection image of the second The RGB current pixel average data of the color block is calculated according to the second projection image. The RGB of the pixels of all corner point coordinates of the color block is obtained. , and Respectively The average value of the current pixel in the R channel, the average value of the current pixel in the G channel, and the average value of the current pixel in the B channel of the color block. Specifically, to obtain the RGB value of a pixel in the image, it can be achieved by using Python's PIL library or Java's BufferedImage class, which is a prior art and will not be described in detail here.

[0110] In this embodiment, the RGB original gain is obtained by the following steps:

[0111] Projecting a second preset sample image including a plurality of blocks of different colors onto the pure white projection area to form a third projection image;

[0112] Obtaining third coordinate data of all corner points of the third projection image according to the original coordinate data and the homography matrix corresponding to all corner points of the second preset sample image;

[0113] The RGB original gains of all color blocks of the second preset sample image are obtained according to the third coordinate data.

[0114] The RGB original gains of all color blocks of the second preset sample image are obtained according to the third coordinate data, including:

[0115] According to the third coordinate data, obtaining the RGB original pixel average data of all color blocks of the second preset sample image;

[0116] The RGB original gains of all color blocks are obtained according to the average RGB original pixel data of all color blocks.

[0117] Specifically, the RGB current gain is obtained by formula (4):

[0118] (4);

[0119] in,( , , ) is the The current RGB gain of each color block, , , and They are the current gain of the R channel, the current gain of the G channel and the current gain of the B channel of the RGB current gain;

[0120] in,( , , ) is the third projection image The RGB current pixel average data of the color block is calculated according to the third projection image. The RGB of the pixels of all corner point coordinates of the color block is obtained. , and Respectively The current pixel average value of the R channel, the current pixel average value of the G channel, and the current pixel average value of the B channel of the color block.

[0121] S107: Determine whether the difference between the RGB current gain and the RGB original gain meets a preset condition;

[0122] Specifically, the preset conditions are expressed by formulas (5), (6) and (7):

[0123] or ; (5);

[0124] or ; (6);

[0125] or ; (7);

[0126] in, , , , is the R channel gain threshold, is the G channel gain threshold, is the B channel gain threshold.

[0127] S108: in response to the RGB current gain and the RGB original gain satisfying a preset condition, updating the RGB current gain according to a preset processing model to obtain an RGB updated gain;

[0128] Specifically, the update process is as follows:

[0129] (1) When When the current gain of the R channel is adjusted as follows:

[0130] ;

[0131] (2) When When the current gain of the R channel is adjusted as follows:

[0132] ;

[0133] (3) When When , adjust the current gain of G channel as follows:

[0134] ;

[0135] (4) When When , adjust the current gain of G channel as follows:

[0136] ;

[0137] (5) When When , adjust the current gain of channel B as follows:

[0138] ;

[0139] (6) When When , adjust the current gain of channel B as follows:

[0140] ;

[0141] in,( , , ) is the RGB update gain, , and They are the R channel update gain, G channel update gain and B channel update gain of RGB update gain respectively; is the gain adjustment step size.

[0142] S109: Correcting the color of the projection device based on the RGB update gain.

[0143] The updated RGB update gain is sent to the projection device, so that the projection device performs correction based on the RGB update gain to perform color correction.

[0144] Compared with the prior art, the present invention has the following beneficial effects: the present invention projects rectangular blocks of different colors on the wall, obtains the RGB current gain of each rectangular block based on a preset processing model, compares the RGB current gain with the pre-stored RGB original gain, obtains an updated RGB update gain, and finally adjusts the gain of the projected RGB three lamps based on the RGB update gain. By adjusting the gain of the RGB three lamps, color correction can be achieved without affecting the frame rate of the projector output content; the present invention gradually approaches the strategy of iteratively solving the optimal RGB three lamp gain by continuously iteratively projecting a color block diagram, without complex calculations, formula fitting and optimization solutions, and has simple calculations and high efficiency; at the same time, the present invention takes into account the continuous iterative approximation of the percentage of the RGB three components of the captured image to the percentage of the RGB three components of the ideal white wall captured image, so it is not affected by the color difference of the image captured by the camera, and is not limited by the camera sensor, and has a wide range of applications.

[0145] Example 2

[0146] In the above embodiment, a method is provided, and correspondingly, the present application also provides a device. The device provided in the embodiment of the present application can implement the above method, and the device can be implemented by software, hardware, or a combination of software and hardware. For example, the device may include integrated or separate functional modules or units to perform the corresponding steps in the above methods.

[0147] In some implementations of the embodiments of the present application, the device 30 provided in the embodiments of the present application is based on the same inventive concept as the method provided in the aforementioned embodiments of the present application and has the same beneficial effects.

[0148] like Figure 3 As shown, the device 30 may include:

[0149] The first projection module 301 is used to project a first preset sample image to the pure white projection area to form a first projection image;

[0150] A first detection module 302 is used to perform corner point detection on the first projection image to obtain first coordinate data of all corner points of the first projection image;

[0151] A first calculation module 303 is used to obtain a homography matrix of a projection device according to the first coordinate data and preset coordinate data corresponding to all corner points of a preset sample image;

[0152] The second projection module 304 is used to project a second preset sample image including a plurality of blocks of different colors to the current projection area to form a second projection image;

[0153] The second calculation module 305 is used to obtain the second coordinate data of all corner points of the second projection image according to the original coordinate data and the homography matrix corresponding to all corner points of the second preset sample image;

[0154] A gain calculation module 306, configured to obtain RGB current gains of all color blocks of the second preset sample image according to the second coordinate data;

[0155] A judging module 307 is used to judge whether the difference between the current RGB gain and the original RGB gain meets a preset condition;

[0156] A processing module 308 is used to update the RGB current gain according to a preset processing model to obtain an RGB updated gain in response to the RGB current gain and the RGB original gain satisfying a preset condition;

[0157] The correction module 309 is used to correct the color of the projection device based on the RGB update gain.

[0158] Example 3

[0159] An embodiment of the present application also provides an electronic device corresponding to the method provided in the aforementioned embodiment. The electronic device may be an electronic device used for a server, such as a server, including an independent server and a distributed server cluster, etc., to execute the above method; the electronic device may also be an electronic device used for a client, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the above method.

[0160] Please refer to Figure 4 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 4 As shown, the electronic device 40 includes: a processor 400, a memory 401, a bus 402 and a communication interface 403, and the processor 400, the communication interface 403 and the memory 401 are connected via the bus 402; the memory 401 stores a computer program that can be run on the processor 400, and the processor 400 executes the aforementioned method of the present application when running the computer program.

[0161] The memory 401 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 403 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0162] The bus 402 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 401 is used to store programs, and the processor 400 executes the programs after receiving execution instructions. The method disclosed in any implementation of the above-mentioned embodiment of the present application may be applied to the processor 400, or implemented by the processor 400.

[0163] The processor 400 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 400. The above processor 400 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 401, and the processor 400 reads the information in the memory 401 and completes the steps of the above method in combination with its hardware.

[0164] The electronic device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by them.

[0165] Example 4

[0166] The present application also provides a computer-readable medium corresponding to the method provided in the above embodiment. Figure 5 The computer-readable storage medium shown is a CD 50 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the aforementioned method will be executed.

[0167] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0168] It should be noted that the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0169] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0170] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0171] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0172] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0173] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application.

Claims

1. A projection color adaptive correction method, characterized in that: The steps include: Projecting a first preset sample image onto the pure white projection area to form a first projection image; Performing corner point detection on the first projection image to obtain first coordinate data of all corner points of the first projection image; Obtaining a homography matrix of a projection device according to the first coordinate data and the preset coordinate data corresponding to all corner points of the preset sample image; Projecting a second preset sample image including a plurality of blocks of different colors to the current projection area to form a second projection image; Obtaining second coordinate data of all corner points of the second projection image according to the original coordinate data corresponding to all corner points of the second preset sample image and the homography matrix; Obtaining RGB current gains of all color blocks of the second projection picture according to the second coordinate data; Determine whether the difference between the RGB current gain and the RGB original gain meets a preset condition; In response to the RGB current gain and the RGB original gain satisfying a preset condition, updating the RGB current gain according to a preset processing model to obtain an RGB updated gain; The color of the projection device is corrected based on the RGB update gains.

2. The method according to claim 1, characterized in that The homography matrix is ​​obtained by formula (1): (1); in, is the homography matrix, z is the scale factor, are the preset coordinates corresponding to the corner points of the first preset sample image, where ( is the first coordinate corresponding to the corner point of the first projection image, is the number of corner points of the first projection image and the first preset sample image; The second coordinate data is obtained by formula (2): (2); in, are the original coordinates corresponding to the corner points of the second preset sample image, is the second coordinate corresponding to the corner point of the second projection image, is the number of corner points of the second projection image and the second preset sample image.

3. The method according to claim 2, characterized in that Obtaining RGB current gains of all color blocks of the second projection picture according to the second coordinate data includes: Obtaining, according to the second coordinate data, current RGB pixel average data of all color blocks of the second projection image; The RGB current gains of all color blocks are obtained according to the RGB current pixel average data of all color blocks.

4. The method according to claim 3, characterized in that The RGB current gain is obtained by formula (3): (3); in,( , , ) is the first projection image of the second The current RGB gain of each color block, , is the total number of color blocks of the second projection image, , and They are the current gain of the R channel, the current gain of the G channel and the current gain of the B channel of the RGB current gain; in,( , , ) is the first projection image of the second The RGB current pixel average data of the color block is calculated according to the second projection image. The RGB of the pixels of all corner point coordinates of the color block is obtained. , and Respectively The current pixel average value of the R channel, the current pixel average value of the G channel, and the current pixel average value of the B channel of the color block.

5. The method according to claim 4, characterized in that The RGB original gain is obtained by the following steps: Projecting a second preset sample image including a plurality of blocks of different colors onto the pure white projection area to form a third projection image; Obtaining third coordinate data of all corner points of the third projection image according to the original coordinate data corresponding to all corner points of the second preset sample image and the homography matrix; The RGB original gains of all color blocks of the third projection image are obtained according to the third coordinate data.

6. The method according to claim 5, characterized in that Obtaining RGB original gains of all color blocks of the third projection image according to the third coordinate data includes: Obtaining RGB original pixel average data of all color blocks of the third projection image according to the third coordinate data; The RGB original gains of all color blocks are obtained according to the RGB original pixel average data of all color blocks.

7. The method according to claim 6, characterized in that The RGB raw gain is obtained by formula (4): (4); in,( , , ) is the third projection image The RGB raw gain of each color block, , , and They are the R channel original gain, G channel original gain and B channel original gain of RGB original gain respectively; in,( , , ) is the third projection image The RGB original pixel average data of the color block is obtained according to the third projection image. The RGB of the pixels of all corner point coordinates of the color block is obtained. , and Respectively The average value of the original pixels in the R channel, the G channel, and the B channel of the color block.

8. The method according to claim 7, characterized in that The preset conditions are expressed by formulas (5), (6) and (7): or, ; (5); or ; (6); or ; (7); in, , , , is the R channel gain threshold, is the G channel gain threshold, is the B channel gain threshold.

9. The method according to claim 8, characterized in that Updating the RGB current gain according to a preset processing model to obtain the RGB updated gain includes: (1) When When the current gain of the R channel is adjusted as follows: ; (2) When When the current gain of the R channel is adjusted as follows: ; (3) When When , adjust the current gain of G channel as follows: ; (4) When When , adjust the current gain of G channel as follows: ; (5) When When , adjust the current gain of channel B as follows: ; (6) When When , adjust the current gain of channel B as follows: ; in,( , , ) is the RGB update gain, , and They are the R channel update gain, G channel update gain and B channel update gain of RGB update gain respectively; is the gain adjustment step size.

10. A projection color adaptive correction device, characterized in that: include: A first projection module, used for projecting a first preset sample image to a pure white projection area to form a first projection image; A first detection module, configured to perform corner point detection on the first projection image to obtain first coordinate data of all corner points of the first projection image; A first calculation module, used for obtaining a homography matrix of a projection device according to the first coordinate data and preset coordinate data corresponding to all corner points of the preset sample image; A second projection module, used for projecting a second preset sample image including a plurality of blocks of different colors to the current projection area to form a second projection image; A second calculation module, used for obtaining second coordinate data of all corner points of the second projection image according to the original coordinate data corresponding to all corner points of the second preset sample image and the homography matrix; A gain calculation module, used for obtaining the RGB current gains of all color blocks of the second preset sample image according to the second coordinate data; A judging module, used to judge whether the difference between the RGB current gain and the RGB original gain meets a preset condition; A processing module, configured to update the RGB current gain according to a preset processing model to obtain an RGB updated gain in response to the RGB current gain and the RGB original gain satisfying a preset condition; A correction module is used to correct the color of the projection device based on the RGB update gain.