Brightness compensation method and device, equipment and storage medium
The brightness compensation method addresses the optical design bottleneck in projection equipment by uniformly compensating pixel brightness, enhancing 3D printing speed through improved brightness uniformity.
Patent Information
- Application Number
- CN202411411542.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2024-12-27
AI Technical Summary
Existing projection equipment in DLP technology faces an optical design bottleneck in brightness uniformity, leading to decreased 3D printing speed due to uneven brightness, which prolongs the curing time of each layer.
A brightness compensation method that involves determining the minimum grayscale value of each pixel in a projection image, performing inverse compensation based on this value, and normalizing the compensation values to achieve uniform brightness across pixels, thereby enhancing the projection device's brightness uniformity.
The method effectively adjusts brightness uniformity, reducing noise and improving the speed of 3D printing by ensuring consistent curing times for each layer.
Smart Images

Figure CN119207257A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a brightness compensation method, device, equipment and storage medium. Background Art
[0002] With the continuous development and application of DLP (Digital Light Processing) technology in the field of 3D printing, in order to meet the requirements of printing accuracy and printing speed in the final application scenarios of the product, the requirements for projection equipment are becoming higher and higher.
[0003] As product application scenarios have increasingly higher requirements for printing accuracy and printing speed, the commonly used projection equipment in common DLP technology can basically meet various application scenarios in terms of imaging and lighting design. However, existing projection equipment has an optical design bottleneck in terms of brightness uniformity. If the brightness is uneven, the entire layer of the image will not be completely cured. Therefore, the curing time of each layer in the 3D printing process will be increased, which will lead to a decrease in 3D printing speed.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a brightness compensation method, which aims to solve the technical problem that the existing projection equipment has an optical design bottleneck in brightness uniformity, resulting in a decrease in 3D printing speed.
[0006] To achieve the above object, the present application proposes a brightness compensation method, which comprises:
[0007] Get the projection image of the projection device;
[0008] Determine the grayscale value of each pixel in the projection image, and select the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel;
[0009] Based on the minimum grayscale value, brightness inverse compensation is performed on each of the pixel points to obtain a compensated image after brightness compensation of the projection image.
[0010] In one embodiment, the step of performing brightness inverse compensation on each pixel point based on the minimum grayscale value to obtain a compensated image after brightness compensation of the projection image comprises:
[0011] Based on the minimum grayscale value, determining a compensation value for each of the pixels;
[0012] Perform brightness inverse compensation on the corresponding pixel point based on each compensation value, and determine the inverse compensation value of each pixel point;
[0013] Each of the anti-compensation values is used as the grayscale value of the corresponding pixel point after compensation, so as to obtain a compensated image after the brightness of the projection image is compensated.
[0014] In one embodiment, the step of performing brightness inverse compensation on the corresponding pixel point based on each compensation value and determining the inverse compensation value of each pixel point comprises:
[0015] Normalizing the compensation values to obtain normalized compensation values for the pixels;
[0016] Retrieving the anti-compensation value of the darkest pixel represented by the minimum grayscale value;
[0017] Taking the inverse compensation value of the darkest pixel as a reference, the inverse compensation value of each pixel to be compensated is determined based on the normalized compensation value of each pixel to be compensated, and the pixel to be compensated is the pixel among the pixels except the darkest pixel.
[0018] In one embodiment, the step of determining the compensation value of each pixel based on the minimum grayscale value includes:
[0019] The minimum grayscale value is used as a calibration value of the projection image, and each pixel point is compensated to determine a compensation value of each pixel point.
[0020] In one embodiment, the step of determining the grayscale value of each pixel in the projection image and selecting the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel includes:
[0021] Performing coordinate system processing on the projection picture to determine the coordinate value of each pixel point in the projection picture;
[0022] Determine the grayscale value of each pixel point based on the coordinate value to determine the grayscale value representing the grayscale of each pixel point;
[0023] The minimum grayscale value representing the darkest pixel is selected from the grayscale values.
[0024] In one embodiment, the step of acquiring a projection image of a projection device includes:
[0025] Get the projection image when the grayscale is set to the maximum value.
[0026] In addition, to achieve the above-mentioned purpose, the present application also proposes a brightness compensation device, which includes:
[0027] An acquisition module, used to acquire a projection image of a projection device;
[0028] A grayscale value determination module, used to determine the grayscale value of each pixel in the projection image, and select the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel;
[0029] The anti-compensation module is used to perform brightness anti-compensation on each of the pixel points based on the minimum grayscale value to obtain a compensated image after brightness compensation of the projection image.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a brightness compensation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the brightness compensation method described above.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the brightness compensation method described above are implemented.
[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the brightness compensation method described above are implemented.
[0033] One or more technical solutions proposed in this application have at least the following technical effects:
[0034] In order to adjust or compensate for the brightness uniformity of a projection device, the present application needs to obtain a projection screen of the projection device. Since the projection screen is composed of a plurality of pixels, and the grayscale value of the pixel represents the brightness of each pixel, after obtaining the projection screen of the projection device, it is necessary to determine the grayscale value of each pixel in the projection screen, so as to obtain the grayscale value of each pixel. Since the projection screen is adjusted by the darkest pixel, the noise in the projection screen can be effectively controlled and the details in the projection screen can be obtained, it is necessary to screen the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel, so as to perform brightness counter-compensation on each pixel through the minimum grayscale value, change the dynamic range of the image grayscale, and then compensate for the brightness of the projection screen, improve the brightness uniformity of the projection screen, and then improve the 3D printing speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A schematic diagram of a process flow provided for Embodiment 1 of the brightness compensation method of the present application;
[0038] Figure 2 A schematic diagram of a brightness compensation architecture provided in Embodiment 1 of the present application;
[0039] Figure 3 A schematic diagram of a flow chart provided for Embodiment 2 of the brightness compensation method of the present application;
[0040] Figure 4 A schematic diagram of a process flow provided for Embodiment 3 of the brightness compensation method of the present application;
[0041] Figure 5 This is a schematic diagram of the module structure of the brightness compensation device according to an embodiment of the present application;
[0042] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the brightness compensation method in the embodiment of the present application.
[0043] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0046] The main solution of the embodiment of the present application is: obtain the projection screen of the projection device through the host computer; and determine the grayscale value of each pixel in the projection screen, and filter the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel; then perform brightness de-compensation on each pixel based on the minimum grayscale value to obtain a compensated screen after the brightness of the projection screen is compensated.
[0047] In this embodiment, for the convenience of description, the following is explained by identifying the execution subject of the host computer.
[0048] As the requirements for printing accuracy and printing speed in product application scenarios are getting higher and higher, the commonly used projection equipment in the common DLP technology can basically meet various application scenarios in imaging and lighting design. However, the existing projection equipment has an optical design bottleneck in brightness uniformity. If the brightness is uneven, the curing of the entire layer of the image will not be complete. Therefore, it will increase the curing time of each layer in the 3D printing process, which will lead to a decrease in 3D printing speed.
[0049] The present application provides a solution. In order to adjust or compensate for the brightness uniformity of a projection device, it is necessary to obtain a projection screen of the projection device. Since the projection screen is composed of a plurality of pixels, and the grayscale value of the pixel represents the brightness of each pixel, after obtaining the projection screen of the projection device, it is necessary to determine the grayscale value of each pixel in the projection screen, so as to obtain the grayscale value of each pixel. Since the projection screen is adjusted by the darkest pixel, the noise in the projection screen can be effectively controlled and the details in the projection screen can be obtained. Therefore, it is necessary to screen the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel, so as to perform brightness counter-compensation on each pixel through the minimum grayscale value, change the dynamic range of the image grayscale, and then compensate for the brightness of the projection screen, improve the brightness uniformity of the projection screen, and then improve the 3D printing speed.
[0050] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a host computer, etc. The following takes the host computer as an example to illustrate this embodiment and the following embodiments.
[0051] Based on this, the embodiment of the present application provides a brightness compensation method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the brightness compensation method of the present application.
[0052] In this embodiment, the brightness compensation method includes steps S10 to S40:
[0053] Step S10, obtaining a projection image of a projection device;
[0054] It should be noted that the projection device may be an in-production projector device that needs to be compensated for uniformity. The projection picture may be a white light picture projected by the projection device onto a light curtain. The light curtain may be a semi-transparent device, and the light emitted by the projector forms a projection picture on the light curtain.
[0055] It can be understood that by acquiring the projection images of the projector device in production, the brightness compensation method can be extended to various projection systems without being affected by the brightness uniformity of the projection system itself.
[0056] In the specific implementation, refer to Figure 2 , use an industrial camera to shoot the projection image projected by the projection device onto the light curtain from behind the light curtain (in the opposite direction of the projection device), and the industrial camera then uploads the captured projection image to the host computer, so that the host computer obtains the projection image that needs to be compensated, and performs subsequent brightness uniformity compensation on the projection image.
[0057] Optionally, step S10 may include:
[0058] Get the projection image when the grayscale is set to the maximum value.
[0059] It should be noted that the grayscale can be different brightness levels from the darkest to the brightest in the image. Generally, the grayscale is divided into 0-255 levels, where 0 represents the darkest and 255 represents the brightest.
[0060] It is understandable that, since the brightness of the projected image will not affect the color, contrast or color scale data in the projected image, after the projection device performs brightness uniformity compensation on the projection image, the subsequent projection device can directly use the brightness compensation to project images of various colors. Moreover, when determining the grayscale value of each pixel in the image, it is necessary to perform grayscale processing on the colored pixels and then determine the grayscale value of each colored pixel. Moreover, there are many details in the colored pixels. In order to ensure the details of each pixel in the image, it is more cumbersome to process the pixel. Therefore, in order to simplify the uniformity compensation of the brightness of the projection image, a picture with a set grayscale can be used for brightness uniformity compensation.
[0061] It can be understood that when the grayscale is at the maximum value, the projected picture is a white light picture. Since the brightness of the projected picture can be set when the projection device is projecting, in order to facilitate the brightness uniformity compensation of the projection device, the grayscale of the projection device during projection can be set, that is, the grayscale is set to the maximum value to obtain a projection picture of a white light picture. Since the projection device has an insurmountable bottleneck in brightness uniformity, the grayscale of each pixel in the obtained projection picture is not all the set maximum value. Therefore, by setting the grayscale, it is convenient to compensate for the brightness uniformity of the projection picture.
[0062] Step S20, determining the grayscale value of each pixel in the projection image, and selecting the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel;
[0063] It should be noted that a pixel is the basic unit in digital image processing, and is each independent pixel in an image. A grayscale value can be a brightness measurement value of a single pixel in a black and white image, that is, the larger the grayscale value, the brighter the pixel, and vice versa. The darkest pixel can be the pixel with the smallest grayscale value in the projected image.
[0064] It can be understood that by adjusting the projection image through the darkest pixel, the noise in the projection image can be effectively controlled, the details in the projection image can be obtained, and it can be ensured that each pixel is compensated evenly when the projection image is compensated. Therefore, it is necessary to determine the grayscale value of each pixel in the projection image, and to filter out the minimum grayscale value representing the darkest pixel from the grayscale value, so as to facilitate the compensation of the grayscale values of the remaining pixels according to the minimum grayscale value.
[0065] In a specific implementation, the grayscale value of each pixel in the projection image is determined to determine the grayscale value of each pixel, and then the minimum grayscale value is screened out from the grayscale values. Since the smaller the grayscale value, the darker the brightness of the corresponding pixel, the darkest pixel with the smallest grayscale value in the projection image can be screened out by the grayscale value, and the minimum grayscale value of the darkest pixel can be determined, so as to facilitate the subsequent brightness decompensation of each pixel according to the minimum grayscale value, and then perform brightness uniformity compensation on the projection image.
[0066] Step S30, performing brightness inverse compensation on each of the pixel points based on the minimum grayscale value to obtain a compensated image after brightness compensation of the projection image.
[0067] It should be noted that brightness decompensation can be performed by performing mathematical operations on the grayscale value of each pixel in the projected image to adjust the visual effect of the projected image or highlight its specific features. The compensated image can be a projected image after brightness uniformity compensation is performed on the projected image, that is, after brightness decompensation is performed on each pixel according to the minimum grayscale value, the grayscale value of each pixel after compensation is obtained, so that the projection device projects the image according to the grayscale value.
[0068] It can be understood that the brightness of each pixel is reversely compensated according to the minimum grayscale value to dynamically change the grayscale range of each pixel in the projection image, thereby adjusting the brightness range of each pixel. The brightness reverse compensation of each pixel according to the minimum grayscale value can also enhance the changing relationship between the grayscale value of each pixel and the minimum grayscale value, thereby making the overall grayscale value of the projection image uniform, and thus making the overall brightness of the projection image uniform.
[0069] The present embodiment provides a brightness compensation method. In order to adjust or compensate for the brightness uniformity of a projection device, it is necessary to obtain a projection screen of the projection device. Since the projection screen is composed of a plurality of pixels, and the grayscale value of the pixel represents the brightness of each pixel, after obtaining the projection screen of the projection device, it is necessary to determine the grayscale value of each pixel in the projection screen, so as to obtain the grayscale value of each pixel. Since the projection screen is adjusted by the darkest pixel, the noise in the projection screen can be effectively controlled and the details in the projection screen can be obtained, it is necessary to screen the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel, so as to perform brightness counter-compensation on each pixel through the minimum grayscale value, change the dynamic range of the image grayscale, and then compensate for the brightness of the projection screen, improve the brightness uniformity of the projection screen, and then improve the 3D printing speed.
[0070] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 3 , step S30 also includes steps S31 to S33:
[0071] Step S31, determining a compensation value of each pixel based on the minimum grayscale value;
[0072] It should be noted that the compensation value may be the difference between the grayscale value of each pixel and the minimum grayscale value, and the brightness difference between each pixel and the darkest pixel may be determined through the compensation value.
[0073] It can be understood that improving the uniformity of the brightness of the projection picture can be understood as improving the similarity of the grayscale values of each pixel in the projection picture. Therefore, in order to improve the uniformity of the brightness of the projection picture, it is necessary to determine the brightness difference between each pixel and the darkest pixel, that is, the difference between the grayscale value of each pixel and the minimum grayscale value, so as to determine the compensation value required for each pixel based on the difference.
[0074] In a specific implementation, taking a 1092*1080 projection screen as an example, the calculation formula for calculating the compensation value ΔZ of each pixel in the projection screen can be:
[0075] ΔZ1=Z1-Zmin
[0076] ΔZ2=Z2-Zmin
[0077] …
[0078] ΔZ2073600=Z2073600-Zmin
[0079] Wherein, ΔZ1 represents the compensation value of the first pixel in the projection image, and ΔZ2073600 represents the compensation value of the 2073600th pixel in the projection image.
[0080] Optionally, step S31 may further include:
[0081] The minimum grayscale value is used as a calibration value of the projection image, and each pixel point is compensated to determine a compensation value of each pixel point.
[0082] It can be understood that the minimum grayscale value is used as the calibration value of the projection image to determine the grayscale value standard after compensation of the projection image. By using the minimum grayscale value as the calibration value of the projection image, the brightness difference between each pixel and the darkest pixel can be determined, and then the compensation amount required for each pixel can be determined.
[0083] Step S32, performing brightness inverse compensation on the corresponding pixel points based on each compensation value, and determining the inverse compensation value of each pixel point;
[0084] It should be noted that the anti-compensation value may be the grayscale value corresponding to each pixel after brightness anti-compensation is performed on the pixel, that is, the grayscale value of each pixel in the projection picture after brightness uniformization is performed on the projection picture.
[0085] It can be understood that since the brightness of the projected image is digitized through the grayscale value of each pixel in the projected image, and since after obtaining the compensation value, in order to make the grayscale of each pixel meet the grayscale range of 0-255, and in order to make the dynamic range of the grayscale value of each pixel consistent after determining the compensation value, it is necessary to perform brightness decompensation on each pixel after obtaining the compensation value of each pixel, so that the grayscale range of the compensated brightness is 0-255, that is, the minimum grayscale value corresponds to 255, and the grayscale value of each pixel after compensation is obtained, so that the host computer can project the compensated image according to the grayscale value, thereby improving the projection speed, and the compensated image is a picture with uniform brightness, thereby speeding up the 3D printing speed.
[0086] Step S33, using each of the anti-compensation values as the grayscale value of the corresponding pixel after compensation, to obtain a compensated image after brightness compensation of the projection image.
[0087] It should be noted that the compensation picture can be a picture corresponding to the projection picture after the minimum gray value corresponds to 255 for counter compensation.
[0088] It can be understood that since each anti-compensation value is the grayscale value after anti-compensation of the corresponding pixel point, it is necessary to obtain a compensated picture after brightness compensation of the projection picture based on the grayscale value, so as to dynamically adjust the grayscale value range of each pixel point, that is, the brightness range, so that the grayscale value of each pixel point after the compensation picture is unified, and when adjusting the picture brightness, each pixel point can use the same set of grayscales to achieve that the brightness of each pixel point meets the set brightness, thereby improving the uniformity of the brightness of the projection picture, making the curing speed of each layer the same during 3D printing, and speeding up the 3D printing speed.
[0089] Furthermore, since the minimum grayscale value of the darkest pixel in the projected image needs to be used to compensate the pixel values of the remaining pixels, it is necessary to first determine the inverse compensation value of the darkest pixel, and then obtain the inverse compensation values of the remaining pixels with the inverse compensation value of the darkest pixel as a reference, that is, the inverse compensation value includes the inverse compensation value of the darkest pixel and the inverse compensation values of the remaining pixels. Therefore, step S32 also includes:
[0090] Normalizing the compensation values to obtain normalized compensation values for the pixels;
[0091] Retrieving the anti-compensation value of the darkest pixel represented by the minimum grayscale value;
[0092] Taking the inverse compensation value of the darkest pixel as a reference, the inverse compensation value of each pixel to be compensated is determined based on the normalized compensation value of each pixel to be compensated, and the pixel to be compensated is the pixel among the pixels except the darkest pixel.
[0093] It should be noted that the normalized compensation value may be a compensation value in the interval 0-1 after the compensation value of each pixel point is normalized.
[0094] It is understandable that since the size range of the compensation value of each pixel point is uncertain, it is necessary to normalize the compensation values so that the sizes of each compensation value can be in the same range, thereby facilitating the subsequent calculation of the decompensation value and ensuring the size relationship between the compensation values.
[0095] In a specific implementation, since the minimum grayscale value of the darkest pixel is used as a reference to perform brightness compensation for the remaining pixels, and the compensation value of the darkest pixel is 0, the compensation value of the darkest pixel can be normalized to 1, and the compensation values of the remaining pixels can be normalized accordingly.
[0096] It can be understood that since the anti-compensation value of the darkest pixel is used as a reference, the anti-compensation value of the darkest pixel can be identified as the maximum grayscale value after compensation, so that the anti-compensation values of the remaining pixels can be compensated by the maximum grayscale value, so that the anti-compensation values of the remaining pixels and the anti-compensation point of the darkest pixel belong to the same grayscale, and the grayscale values of each pixel after the projection picture is compensated are the same within the set fluctuation, thereby improving the brightness uniformity of the compensated picture after the projection picture is compensated.
[0097] In a specific implementation, since the anti-compensation value of the darkest pixel is used as a reference, that is, the anti-compensation value of the darkest pixel is used as the maximum grayscale value after compensation, the anti-compensation value of the darkest pixel can be identified as 255, and then the anti-compensation value of each pixel to be compensated is calculated based on the compensation value of each pixel to be compensated, the minimum grayscale value and the identification value 255 of the darkest point, so as to determine the grayscale value of each pixel to be compensated after adjusting the relationship between each grayscale.
[0098] The calculation formula of the inverse compensation value of each pixel to be compensated is:
[0099]
[0100] Among them, F1 is the anti-compensation value of the first pixel in the projection image; F2073600 is the anti-compensation value of the 2073600th pixel in the projection image.
[0101] It can be understood that by performing anti-compensation processing on each pixel point to perform brightness uniformity processing on the projection picture, the difficulty of brightness uniformity processing on the projection picture is simplified, thereby reducing the difficulty of achieving brightness uniformity on the projection picture and improving universality.
[0102] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 4 , step S10 also includes steps S1 to S3:
[0103] Step S1, performing coordinate system processing on the projection picture to determine the coordinate value of each pixel point in the projection picture;
[0104] Step S2, determining the grayscale value of each pixel point based on the coordinate value, and determining the grayscale value representing the grayscale of each pixel point;
[0105] Step S3, selecting the minimum grayscale value representing the darkest pixel from the grayscale values.
[0106] It should be noted that the coordinate system may be a Cartesian coordinate system established with a corner of the projection screen as the zero point, wherein the matrix position of each pixel point in the projection screen is the coordinate value of each pixel point.
[0107] It can be understood that since the grayscale values of each pixel in the projection image are consistent and the grayscale values between adjacent pixels are continuous, in order to more conveniently perform digitized processing on the pixels in the projection image, each pixel in the projection image can be represented by a coordinate value, thereby reducing the complexity of processing the projection image and speeding up the compensation for uniform brightness of the projection image. When using DLP technology for 3D printing, the fixing of each layer can be accelerated to increase the speed of 3D printing.
[0108] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the brightness compensation method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0109] This application also provides a brightness compensation device, please refer to Figure 5 , the brightness compensation device comprises:
[0110] An acquisition module 10 is used to acquire a projection image of a projection device;
[0111] A grayscale value determination module 20 is used to determine the grayscale value of each pixel in the projection image, and select the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel;
[0112] The anti-compensation module 30 is used to perform brightness anti-compensation on each of the pixel points based on the minimum grayscale value to obtain a compensated image after brightness compensation of the projection image.
[0113] Optionally, the anti-compensation module 30 is also used to determine the compensation value of each pixel point based on the minimum grayscale value; perform brightness anti-compensation on the corresponding pixel point based on each compensation value to determine the anti-compensation value of each pixel point; use each anti-compensation value as the grayscale value after compensation of the corresponding pixel point to obtain a compensated image after brightness compensation of the projection image.
[0114] Optionally, the anti-compensation module 30 is also used to normalize each of the compensation values to obtain a normalized compensation value for each of the pixel points; retrieve the anti-compensation value of the darkest pixel represented by the minimum grayscale value; and use the anti-compensation value of the darkest pixel point as a reference to determine the anti-compensation value of each of the pixel points to be compensated based on the normalized compensation value of each of the pixel points to be compensated, where the pixel points to be compensated are the pixel points other than the darkest pixel point among the pixel points.
[0115] Optionally, the anti-compensation module 30 is further configured to use the minimum grayscale value as a calibration value of the projection image, compensate each pixel point, and determine a compensation value of each pixel point.
[0116] Optionally, the grayscale value determination module 20 is also used to perform coordinate system processing on the projection image to determine the coordinate value of each pixel in the projection image; determine the grayscale value of each pixel based on the coordinate value to determine the grayscale value representing the grayscale of each pixel; and filter out the minimum grayscale value representing the darkest pixel from the grayscale values.
[0117] Optionally, the acquisition module 10 is further configured to acquire a projection picture projected by the projection device when the gray scale is set to a maximum value.
[0118] The brightness compensation device provided by the present application adopts the brightness compensation method in the above embodiment, which can solve the technical problem that the projection equipment has an optical design bottleneck in brightness uniformity, resulting in a decrease in 3D printing speed. Compared with the prior art, the beneficial effects of the brightness compensation device provided by the present application are the same as the beneficial effects of the brightness compensation method provided by the above embodiment, and the other technical features of the brightness compensation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0119] The present application provides a brightness compensation device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the brightness compensation method in the above-mentioned embodiment 1.
[0120] Reference below Figure 6 , which shows a schematic diagram of the structure of a brightness compensation device suitable for implementing the embodiment of the present application. The brightness compensation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The brightness compensation device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0121] like Figure 6As shown, the brightness compensation device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the brightness compensation device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the brightness compensation device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a brightness compensation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0122] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0123] The brightness compensation device provided by the present application adopts the brightness compensation method in the above embodiment, which can solve the technical problem that the projection device has an optical design bottleneck in brightness uniformity, resulting in a decrease in 3D printing speed. Compared with the prior art, the beneficial effects of the brightness compensation device provided by the present application are the same as the beneficial effects of the brightness compensation method provided by the above embodiment, and the other technical features in the brightness compensation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0124] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0125] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0126] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the brightness compensation method in the above-mentioned embodiment.
[0127] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0128] The computer-readable storage medium may be included in the brightness compensation device; or may exist independently without being assembled into the brightness compensation device.
[0129] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the brightness compensation device, the brightness compensation device: obtains the projection screen of the projection device; determines the grayscale value of each pixel in the projection screen, and selects the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel; performs brightness de-compensation on each pixel based on the minimum grayscale value, and obtains a compensated screen after brightness compensation of the projection screen.
[0130] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0132] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0133] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned brightness compensation method, and can solve the technical problem that the projection device has an optical design bottleneck in brightness uniformity, resulting in a decrease in 3D printing speed. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the brightness compensation method provided in the above-mentioned embodiment, and will not be repeated here.
[0134] The present application also provides a computer program product, including a computer program, which implements the steps of the brightness compensation method as described above when executed by a processor.
[0135] The computer program product provided by the present application can solve the technical problem that the projection device has an optical design bottleneck in brightness uniformity, which leads to a decrease in 3D printing speed. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the brightness compensation method provided by the above embodiment, and will not be repeated here.
[0136] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A brightness compensation method, characterized in that: The method includes: Get the projection image of the projection device; Determine the grayscale value of each pixel in the projection image, and select the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel; Based on the minimum grayscale value, brightness inverse compensation is performed on each of the pixel points to obtain a compensated image after brightness compensation of the projection image.
2. The method according to claim 1, characterized in that The step of performing brightness inverse compensation on each pixel point based on the minimum grayscale value to obtain a compensated image after brightness compensation of the projection image comprises: Based on the minimum grayscale value, determining a compensation value for each of the pixels; Perform brightness inverse compensation on the corresponding pixel point based on each compensation value, and determine the inverse compensation value of each pixel point; Each of the anti-compensation values is used as the grayscale value of the corresponding pixel point after compensation, so as to obtain a compensated image after the brightness of the projection image is compensated.
3. The method according to claim 2, characterized in that The step of performing brightness inverse compensation on the corresponding pixel point based on each compensation value and determining the inverse compensation value of each pixel point comprises: Normalizing the compensation values to obtain normalized compensation values for the pixels; Retrieving the anti-compensation value of the darkest pixel represented by the minimum grayscale value; Taking the inverse compensation value of the darkest pixel as a reference, the inverse compensation value of each pixel to be compensated is determined based on the normalized compensation value of each pixel to be compensated, and the pixel to be compensated is the pixel among the pixels except the darkest pixel.
4. The method according to claim 2, characterized in that The step of determining the compensation value of each pixel point based on the minimum grayscale value comprises: The minimum grayscale value is used as a calibration value of the projection image, and each pixel point is compensated to determine a compensation value of each pixel point.
5. The method according to any one of claims 1 to 4, characterized in that The step of determining the grayscale value of each pixel in the projection image and selecting the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel comprises: Performing coordinate system processing on the projection picture to determine the coordinate value of each pixel point in the projection picture; Determine the grayscale value of each pixel point based on the coordinate value to determine the grayscale value representing the grayscale of each pixel point; The minimum grayscale value representing the darkest pixel is selected from the grayscale values.
6. The method according to claim 1, characterized in that The step of obtaining the projection image of the projection device comprises: Get the projection image when the grayscale is set to the maximum value.
7. A brightness compensation device, characterized in that: The device comprises: An acquisition module, used to acquire a projection image of a projection device; A grayscale value determination module, used to determine the grayscale value of each pixel in the projection image, and select the minimum grayscale value representing the darkest pixel from the grayscale values of each pixel; The anti-compensation module is used to perform brightness anti-compensation on each of the pixel points based on the minimum grayscale value to obtain a compensated image after brightness compensation of the projection image.
8. A brightness compensation device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the brightness compensation method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the brightness compensation method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the brightness compensation method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Brightness compensation method, head-up display, storage medium and program product
CN120735587A