Dark edge correction method and system, electronic equipment and storage medium
By automatically obtaining the test image when the relay mirror moves during the projection module assembly process, determining the standard coordinate position of the relay mirror and performing alignment and assembly, the dark edge problem caused by the projection module assembly alignment processing is solved. Improve the imaging quality of projection products.
Patent Information
- Application Number
- CN202411533273.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-11
AI Technical Summary
The assembly and alignment of projection modules relies on manual debugging, which makes it difficult to effectively identify and correct dark edge problems, affecting the imaging quality of projection products.
By controlling the relay mirrors in the test projection module to move horizontally and vertically, the corresponding test images are obtained, and the standard coordinate position of the relay mirror is determined based on these images, and aligned and assembled to minimize the influence of dark edges.
It improves the assembly efficiency of projection modules, reduces the dark edge problems caused by uneven assembly and alignment of manual assembly, and improves the imaging effect of projection products.
Smart Images

Figure CN119420885A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image detection technology, and in particular to a dark edge correction method, system, electronic device and storage medium. Background Art
[0002] In the manufacturing process of projection products, the assembly process of the projection module is crucial. However, the current assembly and alignment of the projection module relies on manual debugging. The process is cumbersome and it is difficult to form a unified and standardized adjustment plan. It is difficult to ensure that the dark edge problem caused by assembly alignment deviation can be effectively identified and corrected, resulting in uneven imaging quality of products shipped out of the factory.
[0003] In summary, how to effectively detect and correct the dark edge problem to improve the imaging effect of projection products has become a technical problem that urgently needs to be solved in this field. Summary of the invention
[0004] The main purpose of the present application is to provide a dark edge correction method, system, electronic device and storage medium, aiming to effectively detect and correct the dark edge problem to improve the imaging effect of the projection product.
[0005] To achieve the above purpose, the present application proposes a dark edge correction method, which includes:
[0006] Controlling the relay mirror in the test projection module to move horizontally and vertically in sequence;
[0007] During the lateral movement of the relay mirror, first test images of the screen formed by the light emitted by the test projection module and projected onto the projection screen are obtained;
[0008] During the longitudinal movement of the relay mirror, each second test image of a picture formed by light emitted by the test projection module and projected onto the projection screen is obtained;
[0009] The standard coordinate position of the relay mirror is determined according to each of the first test images and each of the second test images, and the relay mirror and the imaging module in the test projection module are aligned and assembled according to the standard coordinate position to minimize the dark edge effect of the test projection module.
[0010] In one embodiment, the step of determining the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images comprises:
[0011] Determining a standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images;
[0012] The standard ordinate of the relay mirror is determined according to the grayscale value of each of the second test images, wherein the standard coordinate position corresponding to the standard abscissa and the standard ordinate is the relay mirror assembly position capable of minimizing the influence of dark edges.
[0013] In one embodiment, before the step of determining the standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images, the step further includes:
[0014] Determine a first longitudinal edge region and a second longitudinal edge region of each of the first test images according to the size data of each of the first test images, and calculate a first grayscale value of the first longitudinal edge region and a second grayscale value of the second longitudinal edge region;
[0015] The first lateral edge region and the second lateral edge region of each second test image are determined according to the size data of each second test image, and the third grayscale value of the first lateral edge region and the fourth grayscale value of the second lateral edge region are calculated.
[0016] In one embodiment, the step of determining the standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images comprises:
[0017] For each of the first test images, calculating a first grayscale difference between the first grayscale value and the second grayscale value in the first test image;
[0018] Selecting a first target image with the smallest first grayscale difference from each of the first test images;
[0019] The horizontal coordinate of the relay mirror when acquiring the first target image is determined as the standard horizontal coordinate.
[0020] In one embodiment, the step of determining the standard vertical coordinate of the relay mirror according to the grayscale value of each of the second test images comprises:
[0021] For each of the second test images, calculating a second grayscale difference between the third grayscale value and the fourth grayscale value in the second test image;
[0022] Selecting a second target image with the smallest second grayscale difference from each of the second test images;
[0023] The vertical coordinate of the relay mirror when acquiring the second target image is determined as the standard vertical coordinate.
[0024] In one embodiment, before the step of aligning and assembling the relay mirror and the imaging module in the test projection module according to the standard coordinate position, the step further includes:
[0025] Move the relay mirror to the standard coordinate position, and obtain a verification image of a picture formed by light emitted by the test projection module and projected onto the projection screen;
[0026] Calculate the grayscale value of each edge pixel in the edge area of the verification image;
[0027] Whether the standard coordinate position meets the dark edge correction standard is determined according to the grayscale value of each edge pixel point.
[0028] In one embodiment, the step of determining whether the standard coordinate position meets the dark edge correction standard according to the grayscale value of each edge pixel point includes:
[0029] If the grayscale value of each edge pixel point is higher than a preset threshold, it is determined that the standard coordinate position meets the dark edge correction standard;
[0030] If there is a grayscale value among the grayscale values that is lower than the preset threshold, the position of the relay mirror is adjusted and the verification is performed again until the grayscale value of each edge pixel point is higher than the preset threshold.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a dark edge correction system, which includes: an image acquisition device, a test projection module, a projection screen and a dark edge correction device, wherein the test projection module includes a light source, a relay lens and an imaging module, and the center line of the light source, the center line of the relay lens, the center line of the imaging module and the center line of the projection screen are on the same vertical line;
[0032] The test projection module is used to emit light through the light source, and the light is projected onto the projection screen through the relay lens and the imaging module to form an image;
[0033] The dark edge correction device is used to control the relay mirror to move horizontally and vertically in sequence;
[0034] The image acquisition device is used to acquire the image on the projection screen, obtain each first test image corresponding to the horizontal movement process of the relay lens, and obtain each second test image corresponding to the vertical movement process of the relay lens, and send each first test image and each second test image to the dark edge correction device;
[0035] The dark edge correction device is used to determine the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images, and align and assemble the relay mirror and the imaging module according to the standard coordinate position to minimize the dark edge effect of the test projection module.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes an electronic 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 dark edge correction method as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the dark edge correction method as described above are implemented.
[0038] The present application proposes a dark edge correction method, which first controls a relay mirror in a test projection module to perform lateral movement and longitudinal movement in sequence, and during the lateral movement of the relay mirror, obtains each first test image of a picture formed by projecting light emitted by the test projection module onto a projection screen, and each first test image reflects the change of the light projection effect of the test projection module when the relay mirror moves laterally; similarly, during the longitudinal movement of the relay mirror, obtains each second test image of a picture formed by projecting light emitted by the test projection module onto the projection screen, and each second test image reflects the change of the light projection effect of the test projection module when the relay mirror moves longitudinally; then, the standard coordinate position of the relay mirror is determined according to each first test image and the second test image, and the standard coordinate position is the assembly position of the relay mirror that can minimize the dark edge effect, and finally, the relay mirror and the imaging module in the test projection module are aligned and assembled according to this standard coordinate position, thereby minimizing the dark edge effect generated by the test projection module.
[0039] In summary, the present application improves the assembly efficiency of the projection module by automatically obtaining the projection images projected by the light emitted by the test projection module when the relay lens moves during the assembly process of the projection module, namely the first test image and the second test image, and then determines the optimal assembly position of the relay lens based on the first test image and the second test image, thereby reducing the dark edge problem caused by misaligned manual assembly and improving the imaging effect of the projection product. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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.
[0041] 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 work.
[0042] Figure 1A schematic diagram of the internal structure of a test projection module provided in Example 1 of the dark edge correction method of the present application;
[0043] Figure 2 A flowchart of the first embodiment of the dark edge correction method of the present application is provided;
[0044] Figure 3 A schematic diagram of a first test image provided in Embodiment 2 of the dark edge correction method of the present application;
[0045] Figure 4 A schematic diagram of grayscale difference recording provided in Example 2 of the dark edge correction method of the present application;
[0046] Figure 5 A schematic diagram of a projection image provided in Embodiment 2 of the dark edge correction method of the present application;
[0047] Figure 6 This is a schematic diagram of the structure of the dark edge correction system of the embodiment of the present application;
[0048] Figure 7 Another structural schematic diagram of the dark edge correction system of the embodiment of the present application;
[0049] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the dark edge correction method in the embodiment of the present application.
[0050] Figure 1 Description of Figure Numbers:
[0051] Label name Label name A Luminous light source B Relay mirror C Imaging module
[0052] Figure 6 to Figure 7 Description of Figure Numbers:
[0053] Label name Label name ① Image acquisition equipment ② Testing the projection module ③ Projection Screen ④ Projection screen
[0054] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] 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.
[0056] 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.
[0057] The main solution of the embodiment of the present application is: controlling the relay mirror in the test projection module to move horizontally and vertically in sequence; during the horizontal movement of the relay mirror, obtaining each first test image of the picture formed by the light emitted by the test projection module projected onto the projection screen; during the vertical movement of the relay mirror, obtaining each second test image of the picture formed by the light emitted by the test projection module projected onto the projection screen; determining the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images, and aligning and assembling the relay mirror and the imaging module in the test projection module according to the standard coordinate position, so as to minimize the dark edge influence of the test projection module.
[0058] In the manufacturing process of projection products, the assembly process of the projection module is crucial. However, the current assembly and alignment of the projection module relies on manual debugging. The process is cumbersome and it is difficult to form a unified and standardized adjustment plan. It is difficult to ensure that the dark edge problem caused by assembly alignment deviation can be effectively identified and corrected, resulting in uneven imaging quality of products shipped out of the factory.
[0059] An embodiment of the present application provides a solution, which automatically obtains the projection images projected by the light emitted by the test projection module when the relay lens moves during the assembly process of the projection module, namely, the first test image and the second test image, and then determines the optimal assembly position of the relay lens according to the first test image and the second test image, thereby improving the assembly efficiency of the projection module, reducing the dark edge problem caused by misaligned manual assembly, and improving the imaging effect of the projection product.
[0060] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a computer, a server, etc., or an electronic device capable of realizing the above functions, etc. The following takes a dark edge correction device as an example to illustrate this embodiment and the following embodiments.
[0061] To facilitate understanding of the present embodiment, the application scenario of executing each step in the present embodiment is first described, that is, the present embodiment is applied to the assembly scenario of the test projection module, and the test projection module is any module including a light source, a relay lens and an imaging module structure, such as an AR (Augmented Reality) module, a laser module or a 3D (Three Dimensions) module, etc. Figure 1 As shown, the center line of the light source A (z-LED), the center line of the relay lens B (z-LENS) and the center line of the imaging module C are on the same vertical line. The distance Y between the light source A and the relay lens B in different types of test projection modules is lMay be different, the relay mirror B and the imaging module C need to be assembled and aligned. During the assembly process, the position of the relay mirror is freely adjustable along the X-axis and Y-axis directions. By adjusting the position of the relay mirror, ensure that the assembled relay mirror and the imaging module can be aligned. After alignment, control the relay mirror B to move down (i.e. move along the Z-direction) to assemble with the imaging module C, so as to ensure that the projection image of the assembled test projection module does not have a dark edge phenomenon.
[0062] Based on this, the present application embodiment provides a dark edge correction method, referring to Figure 2 , Figure 2 This is a flowchart diagram of the first embodiment of the dark edge correction method of the present application.
[0063] In this embodiment, the dark edge correction method includes steps S10 to S40:
[0064] Step S10, controlling the relay mirror in the test projection module to move horizontally and vertically in sequence;
[0065] The relay mirror is controlled to move horizontally first, and then to move vertically after the horizontal movement is completed, so as to minimize the dark edge effect of the test projection module by adjusting the relative position between the relay mirror and the imaging module in the test projection module.
[0066] In another feasible embodiment, the moving trajectory of the relay mirror in the test projection module may also be adjusted, such as controlling the relay mirror to move longitudinally first and then move laterally, or other combined movement forms, which are not specifically limited in this embodiment.
[0067] It should be noted that the distance between the relay mirror and the imaging module remains unchanged during the movement, and only the relative position between the relay mirror and the imaging module changes. The distance range of the lateral and longitudinal movement of the relay mirror can be set according to the actual situation of different test projection modules, and this is not specifically limited in this embodiment.
[0068] Step S20, during the lateral movement of the relay mirror, obtaining each first test image of a screen formed by light emitted by the test projection module and projected onto the projection screen;
[0069] During the lateral movement of the relay lens, the test projection module will continue to emit light through the light source. These lights will pass through the relay lens and the imaging module and be projected onto the projection screen to form a series of pictures. At this time, the image acquisition device will capture the pictures on the projection screen at preset time intervals, that is, the first test images corresponding to the lateral movement process of the relay lens. Each first test image reflects the change in the light projection effect of the test projection module when the relay lens moves laterally.
[0070] Step S30, during the longitudinal movement of the relay lens, obtaining each second test image of a picture formed by the light emitted by the test projection module and projected onto the projection screen;
[0071] During the longitudinal movement of the relay lens, the test projection module will continue to emit light through the light source. These lights will pass through the relay lens and the imaging module and be projected onto the projection screen to form a series of pictures. At this time, the image acquisition device will capture the pictures on the projection screen at preset time intervals, that is, the second test images corresponding to the longitudinal movement process of the relay lens. Each second test image reflects the change in the light projection effect of the test projection module when the relay lens moves longitudinally.
[0072] Step S40, determining the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images, and aligning and assembling the relay mirror and the imaging module in the test projection module according to the standard coordinate position to minimize the dark edge effect of the test projection module.
[0073] The standard coordinate position of the relay mirror is determined according to the first test image and the second test image. The standard coordinate position is the assembly position of the relay mirror that can minimize the dark edge effect. Finally, the relay mirror and the imaging module in the test projection module are aligned and assembled according to this standard coordinate position, thereby minimizing the dark edge effect produced by the test projection module.
[0074] In this way, the embodiment of the present application automatically obtains the projection images projected by the light emitted by the test projection module when the relay lens moves during the assembly process of the projection module, that is, the first test image and the second test image, and then determines the optimal assembly position of the relay lens according to the first test image and the second test image, thereby improving the assembly efficiency of the projection module, reducing the dark edge problem caused by misaligned manual assembly, and improving the imaging effect of the projection product.
[0075] 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 be referred to the above introduction, and will not be described in detail later. On this basis, step S40 can include steps S401 to S402:
[0076] Step S401, determining the standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images;
[0077] The grayscale value of each first test image is determined by using image analysis technology. The intensity distribution of light projected onto the projection screen can be intuitively reflected by quantitatively representing the image brightness of the first test image. By comparing the grayscale values of the first test image at different lateral positions of the relay lens, the image with the most uniform light distribution and the smallest dark edge effect can be identified. The horizontal coordinate of the relay lens corresponding to the image is determined as the standard horizontal coordinate.
[0078] Step S402, determining the standard vertical coordinate of the relay mirror according to the grayscale value of each of the second test images, wherein the standard coordinate position corresponding to the standard horizontal coordinate and the standard vertical coordinate is the relay mirror assembly position that can minimize the influence of dark edges.
[0079] The grayscale value of each second test image is determined by using image analysis technology. The intensity distribution of light projected onto the projection screen can be intuitively reflected by quantitatively representing the image brightness of the second test image. By comparing the grayscale values of the second test images at different longitudinal positions of the relay lens, the image with the most uniform light distribution and the smallest dark edge effect can be identified. The longitudinal coordinate of the relay lens corresponding to the image is determined as the standard longitudinal coordinate.
[0080] In a feasible embodiment, before step S401, steps A10 to A20 may be further included:
[0081] Step A10, determining a first longitudinal edge region and a second longitudinal edge region of each of the first test images according to the size data of each of the first test images, and calculating a first grayscale value of the first longitudinal edge region and a second grayscale value of the second longitudinal edge region;
[0082] It should be noted that the test projection module emits light to project the screen image on the projection screen, including the first test image and the second test image. Usually, the edge areas of the screen image (i.e., the upper edge, lower edge, left edge and right edge of the screen image) are the areas where the dark edge phenomenon is most obvious. During the lateral movement of the relay lens, the imaging effect of the longitudinal edges of the screen image (i.e., the left edge and the right edge) will change. During the longitudinal movement of the relay lens, the imaging effect of the lateral edges of the screen image (i.e., the upper edge and the lower edge) will change.
[0083] According to the size data of each first test image, the first longitudinal edge area and the second longitudinal edge area of each first test image are accurately divided. The two areas are respectively the areas close to the left edge and the right edge of the first test image. Then, the first grayscale value of the first longitudinal edge area and the second grayscale value of the second longitudinal edge area are respectively calculated.
[0084] Exemplarily, taking the size of the first test image as 600×600 as an example, the division process of the first longitudinal edge area and the second longitudinal edge area is described as follows: First, it is known that the size of the first test image is 600×600 pixels. In order to determine the distance between the first longitudinal edge area and the left edge of the first test image, and the distance between the second longitudinal edge area and the right edge of the first test image, a ratio value is predetermined. For example, 1% of the image width is selected as the spacing between the longitudinal edge area and the edge, then the spacing is 600×1%=6 pixels. Starting from the left edge of the first test image, the area with a spacing of 6 pixels to the right is used as the first longitudinal edge area. The width and height of the first longitudinal edge can also be based on the predetermined ratio value. That is to say, the first longitudinal edge area is a rectangular area with a distance of 6 pixels from the left edge, upper edge, and lower edge of the first test image, and the size data of the first longitudinal edge area is 6×588; similarly, the second longitudinal edge area is a rectangular area with a distance of 6 pixels from the right edge, upper edge, and lower edge of the first test image, and the size data of the second longitudinal edge area is 6×588.
[0085] Step A20, determining the first lateral edge region and the second lateral edge region of each second test image according to the size data of each second test image, and calculating the third grayscale value of the first lateral edge region and the fourth grayscale value of the second lateral edge region.
[0086] According to the size data of each second test image, the first lateral edge area and the second lateral edge area of each second test image are accurately divided. These two areas are respectively the areas close to the upper edge and the lower edge of the second test image. Then, the third grayscale value of the first lateral edge area and the fourth grayscale value of the second lateral edge area are calculated respectively.
[0087] Exemplarily, taking the second test image with a size of 600×600 as an example, the first horizontal edge area is a rectangular area that is 6 pixels away from the top, left and right edges of the second test image, and the size data of the first horizontal edge area is 588×6; similarly, the second horizontal edge area is a rectangular area that is 6 pixels away from the bottom, left and right edges of the second test image, and the size data of the second horizontal edge area is 588×6.
[0088] In a feasible embodiment, step S401 may include steps S4011 to S4013:
[0089] Step S4011, for each of the first test images, calculating a first grayscale difference between the first grayscale value and the second grayscale value in the first test image;
[0090] After determining the first grayscale value of the first longitudinal edge area and the second grayscale value of the second longitudinal edge area in each first test image, the first grayscale difference between the first grayscale value and the second grayscale value is calculated. The first grayscale difference reflects the brightness unevenness of the longitudinal edge area in the first test image. The larger the first grayscale difference, the more serious the dark edge phenomenon in the first test image.
[0091] Step S4012, selecting a first target image with the smallest first grayscale difference from each of the first test images;
[0092] Step S4013: determining the horizontal coordinate of the relay mirror when acquiring the first target image as the standard horizontal coordinate.
[0093] An image with the smallest first grayscale difference is selected from all first test images as the first target image. The brightness distribution of the first target image on the longitudinal edge is the most uniform, and the dark edge effect is minimal. The horizontal coordinate of the relay mirror when acquiring the first target image is determined as the standard horizontal coordinate. This position can ensure that the light emitted by the test projection module maintains the best longitudinal distribution during the projection process and reduces the dark edge phenomenon.
[0094] In a feasible embodiment, step S402 may include steps S4021 to S4023:
[0095] Step S4021: for each of the second test images, calculating a second grayscale difference between the third grayscale value and the fourth grayscale value in the second test image;
[0096] After determining the third grayscale value of the first lateral edge area and the fourth grayscale value of the second lateral edge area in each second test image, the second grayscale difference between the third grayscale value and the fourth grayscale value is calculated. The second grayscale difference reflects the brightness unevenness of the lateral edge area in the second test image. The larger the second grayscale difference, the more serious the dark edge phenomenon in the second test image.
[0097] Step S4022, selecting a second target image with the smallest second grayscale difference from each of the second test images;
[0098] Step S4023: determining the vertical coordinate of the relay mirror when acquiring the second target image as the standard vertical coordinate.
[0099] The image with the smallest second grayscale difference is selected from all the second test images as the second target image. The brightness distribution of the second target image on the lateral edge is the most uniform and the dark edge effect is the smallest. The vertical coordinate of the relay mirror when acquiring the second target image is determined as the standard vertical coordinate. This position can ensure that the light emitted by the test projection module maintains the best lateral distribution during the projection process and reduces the dark edge phenomenon.
[0100] Exemplarily, before the relay mirror moves laterally, the first test image acquired is as follows: Figure 3 As shown, it is visible to the naked eye that there are dark edge phenomena on the left edge and the upper edge of the first test image. The traditional dark edge correction method is to manually observe the imaging situation and make manual adjustments. Although the dark edge problem can be corrected to a certain extent, it has the defects of low efficiency, inconsistent standards, and unstable imaging quality. In this embodiment, the first grayscale difference between the first longitudinal edge area and the second longitudinal edge area of the first test image is continuously recorded during the movement by controlling the horizontal movement of the relay mirror. The recorded information is as follows: Figure 4 As shown, Figure 4 The horizontal coordinate indicates the horizontal position of the relay mirror, and the vertical coordinate indicates the first grayscale difference. It can be seen that when the horizontal position of the relay mirror is 7, the first grayscale difference is the smallest, that is, the light emitted by the test projection module maintains the best longitudinal distribution during the projection process, and the standard horizontal coordinate of the relay mirror is determined. Similarly, the standard vertical coordinate of the relay mirror can be determined, and the relay mirror is moved to the standard coordinate position corresponding to the standard horizontal coordinate and the standard vertical coordinate. The projected image obtained at this time is as follows: Figure 5 As shown, there is no obvious dark edge phenomenon in the projected image, which significantly improves the imaging quality of the test projection module.
[0101] In this way, more precise control of the relay mirror assembly position is achieved. Not only the overall effect of the light projection of the test projection module is taken into account, but also special attention is paid to the brightness distribution of the edge area of the projected image, so as to more effectively identify and correct the dark edge phenomenon. At the same time, the degree of automation of the module assembly process is improved, human errors are reduced, and a more reliable guarantee is provided for the quality control of projection products.
[0102] In a feasible embodiment, before the step of "aligning and assembling the relay mirror and the imaging module in the test projection module according to the standard coordinate position" in step S40, steps B10 to B30 are also included:
[0103] Step B10, moving the relay mirror to the standard coordinate position, and obtaining a verification image of a picture formed by the light emitted by the test projection module and projected onto the projection screen;
[0104] Step B20, calculating the grayscale value of each edge pixel in the edge area of the verification image;
[0105] Move the relay mirror to a determined standard coordinate position, and control the test projection module to emit light to project onto the projection screen to form a picture, i.e., a verification image. Then, calculate the grayscale value of each edge pixel point in the edge area of the verification image, wherein the edge area is all areas in the verification image corresponding to the first longitudinal edge area, the second longitudinal edge area in the first test image, the first transverse edge area, and the second transverse edge area in the second test image. The edge pixel points may be all the pixel points in the edge area or some pixel points selected at a certain pixel interval. By calculating the grayscale value of the edge pixel points in the edge area, it is possible to test whether there is still a dark edge in the projection imaging of the projection module.
[0106] Step B30, determining whether the standard coordinate position meets the dark edge correction standard according to the grayscale value of each edge pixel point.
[0107] Based on the grayscale value data of the edge pixels obtained, further analyze whether these grayscale values meet the preset dark edge correction standards, where the dark edge correction standards are formulated based on actual application needs, aiming to ensure that there is no obvious brightness drop or dark shadow in the edge area of the projection screen of the test projection module, thereby maintaining the overall uniformity and viewing experience of the projection screen. If the grayscale values of the edge pixels of the verified image meet the dark edge correction standards, it means that the current position of the relay mirror is appropriate and subsequent assembly work can continue; conversely, if the grayscale values do not meet the dark edge correction standards, it is necessary to adjust the position of the relay mirror or perform other necessary calibration measures until an imaging effect that meets the dark edge correction standards is achieved.
[0108] In a feasible embodiment, step B30 may include steps B301 to B302:
[0109] Step B301, if the grayscale value of each edge pixel point is higher than a preset threshold, determining that the standard coordinate position meets the dark edge correction standard;
[0110] The grayscale value of each edge pixel point is compared with the preset threshold in turn. The preset threshold is used as the basis for judging whether the current verification image of the test projection module meets the dark edge correction standard. The preset threshold can be set based on the actual application scenario, and is not specifically limited in this embodiment. By comparing the grayscale values of each edge pixel point in the edge area of the verification image one by one, if the grayscale values of all edge pixel points are higher than this preset threshold, it can be determined that the current relay mirror position is appropriate, that is, the standard coordinate position meets the dark edge correction standard. This determination result means that when the relay mirror is in this position, the edge area of the test projection module projection screen can maintain good brightness uniformity without obvious dark shadows or brightness reduction.
[0111] Step B302: If any of the grayscale values is lower than the preset threshold, the position of the relay mirror is adjusted and verification is performed again until the grayscale value of each edge pixel point is higher than the preset threshold.
[0112] If, when comparing the grayscale values of each edge pixel point, it is found that some grayscale values are lower than the preset threshold, it indicates that there is still a deviation in the current relay lens position, resulting in a dark edge problem in the edge area of the projected image. At this time, it is necessary to fine-tune the position of the relay lens, and re-verify the image acquisition and grayscale value calculation. This adjustment process will continue until the grayscale values of all edge pixels are higher than the preset threshold, that is, the dark edge correction standard is met.
[0113] In this way, this embodiment can improve the accuracy and efficiency of the alignment and assembly of the test projection module by verifying the grayscale value of the projection image of the test projection module when the relay mirror is in the standard coordinate position, and can promptly detect and correct possible position deviations before assembly to avoid the degradation of imaging quality due to improper assembly, which helps to optimize the overall imaging quality of the projection image of the test projection module and enhance the user experience.
[0114] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the dark edge correction method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0115] The present application also provides a dark edge correction system. Figure 6 The dark edge correction system comprises: an image acquisition device ①, a test projection module ②, a projection screen ③ and a dark edge correction device, wherein the test projection module ② comprises a light source, a relay lens and an imaging module, and the center line of the light source, the center line of the relay lens, the center line of the imaging module and the center line of the projection screen ③ are on the same vertical line;
[0116] The test projection module ② is used to emit light through the light source, and the light is projected onto the projection screen ③ through the relay lens and the imaging module to form a picture;
[0117] The dark edge correction device is used to control the relay mirror to move horizontally and vertically in sequence;
[0118] The image acquisition device ① is used to acquire the image on the projection screen ③, obtain each first test image corresponding to the horizontal movement process of the relay mirror, and obtain each second test image corresponding to the vertical movement process of the relay mirror, and send each first test image and each second test image to the dark edge correction device;
[0119] The dark edge correction device is used to determine the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images, and align and assemble the relay mirror and the imaging module according to the standard coordinate position to minimize the dark edge effect of the test projection module ②.
[0120] In this embodiment, the dark edge correction system includes an image acquisition device ①, a test projection module ②, a projection screen ③ and a dark edge correction device, wherein the test projection module ② integrates a light source, a relay lens and an imaging module, the center line of the light source, the center line of the relay lens, the center line of the imaging module and the center line of the projection screen ③ are on the same vertical line, the image acquisition device ① is usually arranged on the same plane as the test projection module ②, the distance between the image acquisition device ① and the projection screen ③ is equal to the distance between the test projection module ② and the projection screen ③, and the dark edge correction device can transmit information with the image acquisition device ① and the test projection module ②.
[0121] The test projection module ② emits light through the light source, and the light is projected onto the projection screen ③ after passing through the relay lens and the imaging module to form a picture.
[0122] Among them, the projection distance between the test projection module ② and the projection screen ③ can be adjusted according to the actual application scenario to ensure that the projection picture can be fully displayed on the projection screen ③.
[0123] The dark edge correction device controls the relay mirror in the test projection module ② to move horizontally and vertically in sequence, that is, the relay mirror moves along Figure 6 Move in the X-axis and Y-axis directions.
[0124] While the relay mirror is moving, the image acquisition device ① synchronously acquires the image on the projection screen ③, obtains each first test image corresponding to the horizontal movement process of the relay mirror, and obtains each second test image corresponding to the vertical movement process of the relay mirror, and sends each first test image and each second test image to the dark edge correction device for processing, and the obtained first test image / second test image is as follows Figure 6 As shown in the projection screen ④.
[0125] In addition, in a feasible implementation manner, the position and acquisition angle of the image acquisition device ① can be adjusted, for example, Figure 6 The image captured by the image acquisition device ① is an inclined image. Figure 6 The image acquisition device ① in the figure rotates around the Z axis, such as Figure 7 As shown, at this time, the position of the test projection module ② remains unchanged, the image projected onto the projection screen ③ remains unchanged, but the image captured by the image acquisition device ① is the positive projection image ④.
[0126] Finally, the dark edge correction device determines the standard coordinate position of the relay mirror according to the first test images and the second test images acquired by the image acquisition device ①, and aligns and assembles the relay mirror and the imaging module according to the standard coordinate position to minimize the dark edge impact of the test projection module ②.
[0127] It should also be noted that the dark edge correction device in this embodiment can adopt the dark edge correction method in the above embodiment, which can effectively detect and correct the dark edge problem to improve the imaging effect of the projection product.
[0128] Compared with the prior art, the beneficial effects of the dark edge correction system provided in the embodiment of the present application are the same as the beneficial effects of the dark edge correction method provided in the above embodiment, and other technical features of the dark edge correction system are the same as the features disclosed in the dark edge correction method in the above embodiment, which will not be repeated here.
[0129] An embodiment of the present application provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable 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 dark edge correction method in the above-mentioned embodiment 1.
[0130] Reference below Figure 8 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to mobile terminals such as laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0131] like Figure 8As shown, the electronic 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 electronic 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 electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic 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.
[0132] 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.
[0133] The electronic device provided in the embodiment of the present application adopts the dark edge correction method in the above embodiment, which can effectively detect and correct the dark edge problem to improve the imaging effect of the projection product. Compared with the prior art, the beneficial effects of the electronic device provided in the embodiment of the present application are the same as the beneficial effects of the dark edge correction method provided in the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the dark edge correction method in the previous embodiment, which will not be repeated here.
[0134] It should be understood that the various parts disclosed in the embodiments of the present 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.
[0135] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the 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.
[0136] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the dark edge correction method in the above embodiment.
[0137] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor 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: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), 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 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: Radio Frequency), etc., or any suitable combination of the above.
[0138] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0139] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: controls the relay mirror in the test projection module to move horizontally and vertically in sequence; during the horizontal movement of the relay mirror, obtains each first test image of the picture formed by the light emitted by the test projection module projected onto the projection screen; during the vertical movement of the relay mirror, obtains each second test image of the picture formed by the light emitted by the test projection module projected onto the projection screen; determines the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images, and aligns and assembles the relay mirror and the imaging module in the test projection module according to the standard coordinate position, so as to minimize the dark edge influence of the test projection module.
[0140] The computer program code for performing the operation of the embodiment of the present application can be written in one or more programming languages or a combination thereof, and the above-mentioned programming languages include object-oriented programming languages, such as Java, Smalltalk, C++, and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN: Local Area Network) or a wide area network (WAN: Wide Area Network), or it can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0141] 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.
[0142] 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.
[0143] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned dark edge correction method, and can effectively detect and correct the dark edge problem to improve the imaging effect of the projection product. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the dark edge correction method provided in the above-mentioned embodiment, and will not be repeated here.
[0144] The above 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 application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A dark edge correction method, characterized in that: The dark edge correction method comprises: Controlling the relay mirror in the test projection module to move horizontally and vertically in sequence; During the lateral movement of the relay mirror, first test images of the screen formed by the light emitted by the test projection module and projected onto the projection screen are obtained; During the longitudinal movement of the relay mirror, each second test image of a picture formed by light emitted by the test projection module and projected onto the projection screen is obtained; The standard coordinate position of the relay mirror is determined according to each of the first test images and each of the second test images, and the relay mirror and the imaging module in the test projection module are aligned and assembled according to the standard coordinate position to minimize the dark edge effect of the test projection module.
2. The dark edge correction method according to claim 1, characterized in that: The step of determining the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images comprises: Determining a standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images; The standard ordinate of the relay mirror is determined according to the grayscale value of each of the second test images, wherein the standard coordinate position corresponding to the standard abscissa and the standard ordinate is the relay mirror assembly position capable of minimizing the influence of dark edges.
3. The dark edge correction method according to claim 2, characterized in that: Before the step of determining the standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images, the method further includes: Determine a first longitudinal edge region and a second longitudinal edge region of each of the first test images according to the size data of each of the first test images, and calculate a first grayscale value of the first longitudinal edge region and a second grayscale value of the second longitudinal edge region; The first lateral edge region and the second lateral edge region of each second test image are determined according to the size data of each second test image, and the third grayscale value of the first lateral edge region and the fourth grayscale value of the second lateral edge region are calculated.
4. The dark edge correction method according to claim 3, characterized in that: The step of determining the standard horizontal coordinate of the relay mirror according to the grayscale value of each of the first test images comprises: For each of the first test images, calculating a first grayscale difference between the first grayscale value and the second grayscale value in the first test image; Selecting a first target image with the smallest first grayscale difference from each of the first test images; The horizontal coordinate of the relay mirror when acquiring the first target image is determined as the standard horizontal coordinate.
5. The dark edge correction method according to claim 3, characterized in that: The step of determining the standard vertical coordinate of the relay mirror according to the grayscale value of each of the second test images comprises: For each of the second test images, calculating a second grayscale difference between the third grayscale value and the fourth grayscale value in the second test image; Selecting a second target image with the smallest second grayscale difference from each of the second test images; The vertical coordinate of the relay mirror when acquiring the second target image is determined as the standard vertical coordinate.
6. The dark edge correction method according to claim 1, characterized in that: Before the step of aligning and assembling the relay mirror and the imaging module in the test projection module according to the standard coordinate position, the method further includes: Move the relay mirror to the standard coordinate position, and obtain a verification image of a picture formed by light emitted by the test projection module and projected onto the projection screen; Calculate the grayscale value of each edge pixel in the edge area of the verification image; Whether the standard coordinate position meets the dark edge correction standard is determined according to the grayscale value of each edge pixel point.
7. The dark edge correction method according to claim 6, characterized in that: The step of determining whether the standard coordinate position meets the dark edge correction standard according to the grayscale value of each edge pixel point comprises: If the grayscale value of each edge pixel point is higher than a preset threshold, it is determined that the standard coordinate position meets the dark edge correction standard; If there is a grayscale value among the grayscale values that is lower than the preset threshold, the position of the relay mirror is adjusted and the verification is performed again until the grayscale value of each edge pixel point is higher than the preset threshold.
8. A dark edge correction system, characterized in that: The dark edge correction system comprises: an image acquisition device, a test projection module, a projection screen and a dark edge correction device, wherein the test projection module comprises a light source, a relay lens and an imaging module, and the center line of the light source, the center line of the relay lens, the center line of the imaging module and the center line of the projection screen are on the same vertical line; The test projection module is used to emit light through the light source, and the light is projected onto the projection screen through the relay lens and the imaging module to form an image; The dark edge correction device is used to control the relay mirror to move horizontally and vertically in sequence; The image acquisition device is used to acquire the image on the projection screen, obtain each first test image corresponding to the horizontal movement process of the relay lens, and obtain each second test image corresponding to the vertical movement process of the relay lens, and send each first test image and each second test image to the dark edge correction device; The dark edge correction device is used to determine the standard coordinate position of the relay mirror according to each of the first test images and each of the second test images, and align and assemble the relay mirror and the imaging module according to the standard coordinate position to minimize the dark edge effect of the test projection module.
9. An electronic 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 dark edge correction method according to any one of claims 1 to 7.
10. 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 dark edge correction method according to any one of claims 1 to 7 are implemented.
