Projection correction method and device, electronic equipment and storage medium

By determining the coordinate information of a rectangular image with a preset display ratio on the projection calibration page, the projected image is automatically calibrated, solving the problem of tedious and time-consuming manual calibration, and achieving efficient projection image calibration and improved user experience.

CN115529442BActive Publication Date: 2026-03-17CHENGDU XGIMI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Without camera hardware support, manually calibrating the projected image on existing projectors is cumbersome and time-consuming, making it impossible to achieve a standard aspect ratio and impacting the user experience.

Method used

By obtaining adjustment confirmation on the projection calibration page, a rectangular image matching the preset display ratio is determined, its coordinate information is obtained, the original image of the projected screen is updated, and projection is performed using the projection optical engine to achieve automatic calibration.

Benefits of technology

It improves the efficiency of projection image correction, and can automatically correct the projection image to the standard preset display ratio, thereby enhancing the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529442B_ABST
    Figure CN115529442B_ABST
Patent Text Reader

Abstract

The application provides a projection correction method and device, electronic equipment and storage medium, and relates to the technical field of projection. The method comprises the following steps: obtaining an adjustment confirmation operation for a projection picture in a projection correction page; in response to the adjustment confirmation operation, determining a rectangular image matched with a preset display ratio in a light diagram corresponding to the projection picture, and obtaining coordinate information of the rectangular image; updating an original image corresponding to the projection picture according to the coordinate information of the rectangular image to obtain a target image; inputting the target image into a projection light machine and projecting to obtain a corrected projection picture. In the method, the projection picture correction efficiency can be effectively improved. In addition, based on the rectangular image with the preset display ratio determined in the light diagram of the projection picture, the correction of the display ratio of the projection picture can be automatically realized, so that the projection picture with the standard preset display ratio is obtained through correction, and the user's viewing experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of projection technology, and more specifically, to a projection correction method, apparatus, electronic device, and storage medium. Background Technology

[0002] Projectors are widely used in homes, offices, schools, and other places, providing a better viewing experience. However, during use, the projected image may exhibit trapezoidal distortion due to the projector lens beam, affecting the viewing experience. Therefore, enabling more convenient adjustment of the projected image has become particularly important.

[0003] In existing technologies, projection products without hardware support such as cameras all achieve image correction through manual calibration.

[0004] However, manual calibration is cumbersome, time-consuming, and labor-intensive, and it also fails to produce a projected image with the required aspect ratio, affecting the user experience. Summary of the Invention

[0005] The purpose of this application is to address the shortcomings of the prior art by providing a projection correction method, apparatus, electronic device, and storage medium, so as to solve the problems of high projection correction time and inability to obtain a standard-ratio correction image in the prior art.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:

[0007] In a first aspect, embodiments of this application provide a projection correction method, including:

[0008] On the projection calibration page, obtain confirmation of adjustments for the projected image;

[0009] In response to the adjustment confirmation operation, a rectangular image matching the preset display ratio is determined in the light map corresponding to the projected image, and the coordinate information of the rectangular image is obtained;

[0010] The original image corresponding to the projected image is updated based on the coordinate information of the rectangular image to obtain the target image;

[0011] The target image is input into the projection optical engine and projected to obtain the corrected projection image.

[0012] Optionally, the shape corresponding to the light pattern is a right-angled trapezoid, and the step of responding to the adjustment confirmation operation by determining a rectangular image matching a preset display ratio in the light pattern corresponding to the projected image includes:

[0013] In response to the adjustment confirmation operation, the first intersection point of the light map and the target curve is determined. The slope of the target curve is determined according to the preset display ratio. The target curve includes the second intersection point of the specified non-parallel side and the specified parallel side of the right trapezoid.

[0014] Based on the first intersection point and the second intersection point, a rectangular image matching a preset display ratio is determined, wherein the vertices of the rectangular image include the first intersection point and the second intersection point.

[0015] Optionally, obtaining the coordinate information of the rectangular image includes:

[0016] Based on the adjustment parameters carried by the adjustment confirmation operation, determine the scale data of the light map;

[0017] Based on the scale data of the light map, the function corresponding to the target curve, and the function corresponding to the specified non-parallel edge, calculate the coordinates of the first intersection point;

[0018] The coordinate information of the rectangular image is determined based on the coordinates of the first intersection point.

[0019] Optionally, before obtaining the adjustment confirmation operation for the projected image on the projection calibration page, the method further includes:

[0020] The initial projection image is displayed on the projection correction page;

[0021] The initial projection screen is adjusted to the projection screen according to the movement operation inputted at the preset point of the initial projection screen.

[0022] Optionally, the adjustment parameters are used to indicate: moving a preset point in the initial projection image a target distance along a preset direction; determining the scale data of the light map according to the adjustment parameters carried by the adjustment confirmation operation includes:

[0023] Based on the target distance, determine the movement parameters of the target point mapped to the preset point on the original image in the projection optical engine;

[0024] Based on the movement parameters, the preset display ratio, and the preset calculation formula, the proportion data of the light map is determined, and the proportion data of the light map is used to characterize the proportional relationship of a specified edge in the light map.

[0025] Optionally, updating the original image corresponding to the projected image based on the coordinate information of the rectangular image to obtain the target image includes:

[0026] Based on the coordinate information of the rectangular image, determine the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine;

[0027] The information of the original image is updated based on the coordinate information of the effective projection area to obtain the target image.

[0028] Optionally, determining the coordinate information of the effective projection area of ​​the new image in the projection engine based on the coordinate information of the rectangular image includes:

[0029] The calculation is based on the angle between the first light source curve and the second light source curve, both starting from the light source of the projection optical engine. The first light source curve includes the first designated vertex in the rectangular image, and the second light source curve includes the second designated vertex in the light map corresponding to the projected image.

[0030] Based on the included angle and the coordinate information of the original image in the projection optical engine, the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine is determined.

[0031] Secondly, embodiments of this application also provide a projection correction device, including: an acquisition module, a determination module, and a projection module;

[0032] The acquisition module is used to acquire the adjustment confirmation operation for the projected image in the projection correction page;

[0033] The determining module is used to respond to the adjustment confirmation operation, determine a rectangular image that matches the preset display ratio in the light map corresponding to the projected image, and obtain the coordinate information of the rectangular image;

[0034] The acquisition module is used to update the original image corresponding to the projected image based on the coordinate information of the rectangular image to obtain the target image;

[0035] The projection module is used to input the target image into the projection optical engine and project it to obtain a corrected projection image.

[0036] Optionally, the shape corresponding to the light pattern is a right trapezoid. The determining module is specifically used to respond to the adjustment confirmation operation, determine the first intersection point of the light pattern and the target curve, the slope of the target curve is determined according to the preset display ratio, and the target curve includes the second intersection point of the specified non-parallel side and the specified parallel side of the right trapezoid; based on the first intersection point and the second intersection point, determine a rectangular image that matches the preset display ratio, and the vertices of the rectangular image include the first intersection point and the second intersection point.

[0037] Optionally, the determining module is specifically used to determine the scale data of the light map according to the adjustment parameters carried by the adjustment confirmation operation; calculate the coordinates of the first intersection point based on the scale data of the light map, the function corresponding to the target curve and the function corresponding to the specified non-parallel side; and determine the coordinate information of the rectangular image according to the coordinates of the first intersection point.

[0038] Optionally, the device further includes: a display module and an adjustment module;

[0039] The display module is used to display the initial projection image on the projection correction page;

[0040] The adjustment module is used to adjust the initial projection screen to the projection screen according to the movement operation inputted for the preset point of the initial projection screen.

[0041] Optionally, the adjustment parameter is used to indicate: moving a preset point in the initial projection image along a preset direction by a target distance. The determining module is specifically used to determine the movement parameter of the target point mapped to the preset point on the original image in the projection optical engine according to the target distance; and to determine the scale data of the light map according to the movement parameter, the preset display ratio, and the preset calculation formula. The scale data of the light map is used to characterize the scale relationship of a specified side in the light map.

[0042] Optionally, the acquisition module is specifically used to determine the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine based on the coordinate information of the rectangular image; and to update the original image based on the coordinate information of the effective projection area to obtain the target image.

[0043] Optionally, the acquisition module is specifically used to calculate the angle between a first light source curve and a second light source curve, both originating from the light source of the projection engine. The first light source curve includes a first designated vertex in the rectangular image, and the second light source curve includes a second designated vertex in the light map corresponding to the projected image. Based on the angle and the coordinate information of the original image, the coordinate information of the effective projection area of ​​the new image to be input into the projection engine is determined.

[0044] Thirdly, embodiments of this application provide an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the method provided in the first aspect.

[0045] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, performs the steps of the method provided in the first aspect.

[0046] The beneficial effects of this application are:

[0047] This application provides a projection correction method, apparatus, electronic device, and storage medium. The method includes: obtaining an adjustment confirmation operation for the projected image on a projection correction page; responding to the adjustment confirmation operation, determining a rectangular image matching a preset display ratio in the light map corresponding to the projected image, and obtaining the coordinate information of the rectangular image; updating the original image corresponding to the projected image according to the coordinate information of the rectangular image to obtain a target image; and inputting the target image into a projection engine and projecting it to obtain a corrected projection image. In this method, the user can quickly perform manual correction of the projected image on the projection correction page, thereby automatically correcting the projected image based on the parameters obtained after correction, which can effectively improve the efficiency of projection image correction. Furthermore, based on the rectangular image with a preset display ratio determined in the light map of the projected image, the display ratio of the projected image can be automatically corrected, thereby obtaining a projection image with a standard preset display ratio, improving the user's viewing experience. Attached Figure Description

[0048] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 1 ;

[0050] Figure 2 A schematic diagram of a projection correction page provided in an embodiment of this application;

[0051] Figure 3 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 2 ;

[0052] Figure 4 A schematic diagram of a functional relationship provided in an embodiment of this application;

[0053] Figure 5 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 3 ;

[0054] Figure 6 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 4 ;

[0055] Figure 7 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 5 ;

[0056] Figure 8 A schematic diagram of a projection pattern provided for an embodiment of this application;

[0057] Figure 9 This is yet another schematic diagram of a functional relationship provided in the embodiments of this application;

[0058] Figure 10 This is another schematic diagram of a functional relationship provided in an embodiment of this application;

[0059] Figure 11 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 6 ;

[0060] Figure 12 This is another schematic diagram of projection relationship provided for an embodiment of this application;

[0061] Figure 13 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 7 ;

[0062] Figure 14 This is a schematic diagram of a projection correction device provided in an embodiment of this application;

[0063] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0065] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0066] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.

[0067] First, a brief explanation of the projection principle of the projection optical engine involved in this application: The projection optical engine may contain a DMD (Digital Micromirror Device), which is an array composed of multiple high-speed digital light-reflecting switches and many small aluminum reflective mirrors. The number of mirrors is determined by the display resolution, with one small mirror corresponding to one pixel, used to image the projected image. After the light source is emitted, it is projected onto the DMD and displayed on the projection wall. When calibrating the projected image on the projection wall, the shape of the image projected onto the wall can be adjusted by adjusting the pixel values ​​of each pixel on the DMD.

[0068] Figure 1 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 1 ; Figure 2 This is a schematic diagram of a projection correction page provided in an embodiment of this application. The execution subject of this method can be a processor controller or other device in the projection optical engine, or it can be a processor, computer, or other device independent of the projection optical engine. Figure 1 As shown, the method may include:

[0069] S101. Obtain the adjustment confirmation operation for the projected image on the projection calibration page.

[0070] Optionally, the projection calibration page can refer to a page used to calibrate the projected image, such as... Figure 2 As shown on the left, the projection calibration page includes quick calibration controls and adjustment controls. The background of the projection calibration page can be any background (e.g., video playback, music playback, etc.). The projected image is projected onto the projection calibration page via the projector; the projected image refers to the currently displayed image on the projection calibration page. Users can enter calibration mode by clicking the quick calibration controls to calibrate the currently displayed projected image.

[0071] When the projector is placed horizontally, the projected image is projected onto a wall at any horizontal angle to the DMD. The light pattern of the projected image is always a right trapezoid. When the projection angle remains unchanged, the light pattern on the wall also remains unchanged, and the projected image always moves within the range of the light pattern.

[0072] Optionally, users can adjust the projected image using the control on the projection calibration page. For example, continue to refer to... Figure 2The left-hand screen includes adjustment controls, which may include a first adjustment control (e.g., the "<" button on the projector remote) and a second adjustment control (e.g., the ">" button on the projector remote). The first adjustment control can be used to move a point on the projected image vertically downwards, and the second adjustment control can be used to move a point on the projected image vertically upwards. The user can control the first adjustment control via a button on the projector's remote to move a preset point on the projected image along a preset direction. Figure 2 Taking the projected image as a right trapezoid as an example, assuming the preset point is point d3, the first adjustment control can be used via a button to move point d3 vertically to point f, so that when the user adjusts the projected image to the desired shape... Figure 2 When the rectangle shown on the right is in the desired position, you can click the confirmation button (OK button) on the remote control. Clicking the confirmation button here is the adjustment confirmation operation. The adjustment parameter carried by this adjustment confirmation operation indicates the target distance to be moved along the preset direction. The target distance can be represented by the number of pixels, for example: moving point d3 vertically by n pixels to point f.

[0073] S102. In response to the adjustment confirmation operation, determine the rectangular image that matches the preset display ratio in the light map corresponding to the projected screen, and obtain the coordinate information of the rectangular image.

[0074] In response to the aforementioned adjustment confirmation operation, the light pattern corresponding to the projected image can be determined, specifically, the aspect ratio of the light pattern corresponding to the projected image can be determined. Optionally, a rectangular image matching a preset display ratio can be determined within the light pattern corresponding to the projected image.

[0075] In this embodiment, taking a preset display ratio of 16:9 as an example, that is, a rectangular image with a standard display ratio is determined in the light map corresponding to the projected image, and the coordinate information of the rectangular image is further obtained.

[0076] It should be noted that, generally, when the projected image is a rectangular image with a 16:9 aspect ratio, the user has a better viewing angle. The method provided in this application can correct the initial trapezoidal image of the projected image to a rectangular image with a preset aspect ratio, thereby improving the user experience.

[0077] Optionally, in this embodiment, determining the rectangular image with a preset display ratio in the light map corresponding to the projected image can be considered as a simulation adjustment step before the actual correction of the projected image. By manually adjusting the projected image to be corrected, the user stops adjusting the rectangular image with the preset display ratio, thereby obtaining some relevant data. This relevant data is used for subsequent formal projection correction.

[0078] S103. Update the original image corresponding to the projected image based on the coordinate information of the rectangular image to obtain the target image.

[0079] Optionally, based on the coordinate information of the acquired rectangular image, the information of the original image imaged on the DMD in the projection engine can be adjusted to obtain the target image. The original image can refer to the image input into the projection engine for projecting the image onto the projection calibration page.

[0080] S104. Input the target image into the projection optical engine and project it to obtain the corrected projection image.

[0081] In some embodiments, the target image can be input to the projection optical engine, so that the target image is projected to obtain the corrected projection screen, which is the screen after the initial projection screen to be corrected is corrected, and the corrected screen is also a rectangular screen with the above-mentioned preset display ratio.

[0082] In summary, this embodiment provides a projection correction method, including: obtaining an adjustment confirmation operation for the projected image on a projection correction page; responding to the adjustment confirmation operation, determining a rectangular image matching a preset display ratio in the light map corresponding to the projected image, and obtaining the coordinate information of the rectangular image; updating the original image corresponding to the projected image according to the coordinate information of the rectangular image to obtain a target image; inputting the target image into the projector and projecting it to obtain the corrected projection image. In this method, the user can quickly perform manual correction of the projected image on the projection correction page, thereby automatically correcting the projected image based on the parameters obtained after correction, which can effectively improve the efficiency of projection image correction. Furthermore, based on the rectangular image with a preset display ratio determined in the light map of the projected image, the display ratio of the projected image can be automatically corrected, thereby obtaining a projection image with a standard preset display ratio, improving the user's viewing experience.

[0083] Figure 3 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 2 ; Figure 4 This is a schematic diagram of a functional relationship provided in an embodiment of this application. Optionally, in step S102 above, the shape corresponding to the light map of the projected image is a right-angled trapezoid. In response to the adjustment confirmation operation, determining a rectangular image matching the preset display ratio in the light map corresponding to the projected image may include:

[0084] S201. Response adjustment confirmation operation, determine the first intersection point of the light map and the target curve. The slope of the target curve is determined according to the preset display ratio. The target curve includes the second intersection point of the specified non-parallel side and the specified parallel side of the right trapezoid.

[0085] As explained above, when the projection angle of the projector remains unchanged, the light pattern corresponding to the projected image on the wall remains unchanged and is a right-angled trapezoid. That is, whether it is the initial projected image or the rectangular projected image manually adjusted by the user, the corresponding light pattern is the same right-angled trapezoid.

[0086] For the rectangular image that matches the preset display ratio in the light map corresponding to the projected image, one possible approach is to first determine the first intersection point between the light map and the target curve. That is, a target curve can be drawn in the light map. The slope of the target curve can be obtained based on the preset display ratio. For example, if the preset display ratio is 16:9, the slope of the target curve can be 9 / 16.

[0087] It should be noted that, for a computer, the operation of generating the target curve can be implemented through a program, and the parameters in the program can include data such as light map data and the slope of the target curve.

[0088] like Figure 4 As shown, the determined light pattern can be a right trapezoid d3-a'-b'-h2, and the target curve can be h2d5. The specified non-parallel side of the right trapezoid included in the target curve is h2b', the specified parallel side is d3h2, and the second intersection point is h2. Through the second intersection point and the preset slope, the specific shape of the target curve can be determined. Then, the first intersection point of the light pattern and the target curve can be pointed to point g.

[0089] It should be noted that the specific shape of the right trapezoid in this application is exemplified by the one shown in the figure. That is, the specified side of the right trapezoid refers to the side where the direct trapezoid is as shown in the figure. Figure 4 The shape shown corresponds to the specified side. In practical applications, when the shape of the direct trapezoid changes, or the display position of each side of the trapezoid is adjusted, the specified side will also be adjusted according to the specific shape of the direct trapezoid.

[0090] S202. Based on the first intersection point and the second intersection point, determine a rectangular image that matches the preset display ratio. The vertices of the rectangular image include the first intersection point and the second intersection point.

[0091] Optionally, based on the first intersection point g determined above, perpendicular lines can be drawn from g to the sides d3h2 and h2b' of the right trapezoid d3-a'-b'-h2, respectively, to obtain the following results: Figure 4 Based on the intersection points f and m shown, as well as the first and second intersection points mentioned above, a rectangular image fgm-h2 with a preset display ratio can be determined in the light map of the projected image.

[0092] Figure 5A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 3 Optionally, in step S102, obtaining the coordinate information of the rectangular image may include:

[0093] S401. Determine the scale data of the light map according to the adjustment parameters carried by the adjustment confirmation operation.

[0094] Optionally, firstly, based on the user's input adjustment, the initial projected image displayed on the projection calibration page can be adjusted to a rectangular image. During this process, the user relies on their experience and stops adjusting when they believe they are currently seeing a rectangular image. This adjustment process may contain minor errors. When the adjustment is stopped, the user can confirm the adjustment by clicking the confirmation button on the projector.

[0095] Based on the user's adjustment confirmation action, the adjustment parameters carried by the confirmation action can be obtained. Therefore, the scale data of the light pattern corresponding to the projected image can be determined according to the obtained adjustment parameters.

[0096] In some embodiments, the movement distance of the target point in the DMD of the projection optical engine can be determined based on the acquired adjustment parameters. Then, based on the functional relationship between this movement distance and the specified non-parallel edges h2h3 and a'b' in the light map ratio of the projected image, the specified non-parallel edges h2h3 and a'b' can be calculated, thereby obtaining the light map ratio, i.e. Figure 3 L d3h2 L a′b′ L h2b′ The ratio between them, where L d3h2 Corresponding to 1, L a′b′ Corresponding to K1, L h2b′ Corresponding to K, we can obtain the proportional relationship between K, K1, and 1.

[0097] S402. Based on the scale data of the light map, the function corresponding to the target curve, and the function corresponding to the specified non-parallel edge, calculate the coordinates of the first intersection point.

[0098] Optionally, based on the scale data of the obtained light map, the curve function of the aforementioned target curve, and such as Figure 4 The function corresponding to the specified non-parallel side d3a' of the right trapezoid can be used to calculate the coordinates of the first intersection point g.

[0099] Based on, for example Figure 4 Using the coordinate system established in the diagram, the curve function equation of the target curve is obtained: The slope of the target curve is determined based on a preset display ratio of 16:9. The function equation corresponding to the specified non-parallel edge d3a' is: Solving the system of equations simultaneously will yield the first intersection point.

[0100] S403. Determine the coordinate information of the rectangular image based on the coordinates of the first intersection point.

[0101] Optionally, based on the coordinates of the determined first intersection point, the coordinate information of the rectangular image can be calculated. That is, the length of the rectangular image can be the x-coordinate X_ideal of the first intersection point, and the width of the rectangular image can be the y-coordinate Y_ideal of the first intersection point.

[0102] Figure 6 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 4 Optionally, in step S101, before obtaining the adjustment confirmation operation for the projected image on the projection calibration page, the method of this application may further include:

[0103] S501. Display the initial projection image on the projection calibration page.

[0104] Based on the original image input to the projector, the image can be projected on the projection calibration page to display the initial projection image, which is a right-angled trapezoidal image to be calibrated.

[0105] S502. Adjust the initial projection screen to the projection screen according to the movement operation inputted for the preset point of the initial projection screen.

[0106] In one feasible approach, a preset point in the initial projection image displayed on the projection calibration page can be moved using a projection image adjustment button on the projector, wherein the initial projection image is used as the reference point for... Figure 4 The light pattern shown is illustrated by right-angled trapezoids of the same shape. The preset point can refer to the highest point in the right-angled trapezoid, namely point d3. Point d3 can be continuously adjusted downwards along the vertical direction, that is, moved downwards along d3h2, until point d3 moves to the same horizontal line as point a', and the projected image becomes a rectangular image.

[0107] Figure 7 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 5 Optionally, the aforementioned adjustment parameters are used to indicate: moving a preset point in the initial projection image a target distance along a preset direction. In step S401, determining the scale data of the light map according to the adjustment parameters carried by the adjustment confirmation operation may include:

[0108] S601. Based on the target distance, determine the movement parameters of the target point mapped to the preset point on the original image in the projection optical engine.

[0109] Optionally, the user moves a preset point through the projector, and the target distance moved can be directly obtained. During the process of moving the preset point in the initial projected image on the projection calibration page, the target point mapped to the preset point in the original image mapped to the initial projected image on the DMD in the projector also moves accordingly. The movement parameters of the target point can be determined based on the movement distance of the preset point. The movement parameters may include the number of pixels moved.

[0110] S602. Based on the movement parameters, preset display ratio, and preset calculation formula, determine the scale data of the light map. The scale data of the light map is used to characterize the scale relationship of a specified edge in the light map.

[0111] Optionally, the scale of the light map can be determined based on the movement parameters of the target point on the DMD and the preset calculation formula.

[0112] The following will provide a theoretical basis for this method through specific formulas:

[0113] Figure 8 This is a schematic diagram of a projection image provided in an embodiment of this application. Projection image description: O is the light source, plane P1 is the DMD, P2 is the imaginary wall directly opposite, and P3 is the real wall with a certain tilt angle to the projection engine. d3a'b'h2 is the light pattern. When the projection engine angle remains unchanged, the shape of the light pattern remains constant. The initial projected image can be considered to overlap with the light pattern d3a'b'h2. When the preset point d3 in the initial projected image is adjusted along d3h2 to a rectangular image, the projected image fa'b'h2 on the wall is exactly a rectangular image. At this time, the original image dabc of the DMD changes to abce. That is, by obtaining the moving distance of d3f, which is the aforementioned target distance, the number of moving pixels of de can be calculated, which is the moving parameter of the target point on the DMD. Assuming that the target point d of the original image on the DMD moves down by Pn pixels, the function relationship between the number of moving pixels of de and the distance of de can be used to calculate the moving pixel value. The target distance x is calculated, where x refers to the distance of de, P n This refers to the number of moving pixels in the DMD, M refers to the physical resolution of the DMD in the projection optical engine, and D refers to the aspect ratio of the projected image. In this embodiment, the physical resolution of the DMD can be taken as 1080, and the aspect ratio of the projected image is 16:9. Therefore, the corresponding formula can be used to calculate the aspect ratio. The target distance x is calculated. It should be noted that this solution applies even when the physical resolution of the DMD in the projector optical engine and the projection screen ratio are other than specified.

[0114] 1. Proof: L ec :L ab =La′b′ :L h2d3 =9-x:9

[0115] Since Δd3h2O, Δd′c′O, and ΔdcO are similar triangles, L e′h2 =L a′b′ L cd =L ab It is easy to prove L ec :L ab =L a′b′ :L h2d3 =9-x:9

[0116] 2. Find L fa′ :L a′d′

[0117] Figure 9 This is yet another schematic diagram of a functional relationship provided in the embodiments of this application; Figure 10 This is another schematic diagram of a functional relationship provided in an embodiment of this application. Let the projection ratio (projection distance: projection screen width) be a constant r. In this embodiment, r can be 16:9. Then ct = 8, to = 16r. From the Pythagorean theorem in Δcto, we get... Let L co Let's say m.

[0118] In ⊿cto According to the projection relationship, it is easy to see that ∠a′d′f and ∠bco are complementary, therefore

[0119] Based on the projection relationship, it is easy to see that Δfd′e′ is similar to Δoce. Based on the similarity relationship, we can obtain... In Δfa′d′ L a′d′ =16n, Obtained by the Law of Cosines Therefore L fa′ : Substitute Later L fa′ :

[0120] 3. Proof: L fa′ :L d3h2 = constant K

[0121] Let L fa′ ∶L a′d′ =R because L a′b′ : L a′d′ : Therefore L fa′ :

[0122] L fa′ and L a′d′ Substituting into the expression, we get:

[0123]

[0124] In summary, the L-shape of the light pattern projected onto the wall can be obtained. fa′ :L d3h2 =K, when the projection ratio of the projector is fixed, K is only related to the number of pixels that move on the DMD.

[0125] 4. Determine the scale of the right-angled trapezoidal light pattern projected onto the wall.

[0126] When the user adjusts the initial projected image (right-angled trapezoid) to the projected image (rectangular image), a unique x can be obtained on the DMD. Substituting this x into the expression for K, the aspect ratio L of the light map can be calculated. fa′ :L d3h2 In addition to L a′b′ :L d3h2 = (9-x):9, therefore, the two parallel sides and the base (L) of the right trapezoid can be uniquely determined. d3h2 L a′b′ L h2b′ The ratio of L, also known as the light map ratio mentioned above. d3h2 Corresponding to 1, L a′b′ Corresponding to K1, L h2b′ Corresponding to K, the light map scale can also refer to the proportional relationship between K, K1, and 1, where,

[0127] Figure 11 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 6 ; Figure 12 This is another schematic diagram of a projection relationship provided in an embodiment of this application. Optionally, in step S103, determining the coordinate information of the effective projection area of ​​the new image in the projection optical engine to be input, based on the coordinate information of the rectangular image, may include:

[0128] S1101. Based on the coordinate information of the rectangular image, determine the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine.

[0129] like Figure 12 As shown, based on the coordinates of the determined rectangular image d'a'b'c', the coordinates of the effective projection area of ​​the new image to be input into the projection optical engine can be determined, which means the coordinate information of d"a"b"c in the figure can be determined.

[0130] S1102. Update the original image based on the coordinate information of the effective projection area to obtain the target image.

[0131] In one feasible approach, the pixel values ​​of each pixel in the effective projection region can be adjusted accordingly, that is, the pixel values ​​of each pixel in the original image can be updated, so that the original dabc imaging is transformed into d”a”b”c imaging. This can be achieved by adjusting the grayscale values ​​of each pixel in the imaging regions a”abb” and a”d”d to 0, so that they no longer form images, while the RGB values ​​of each pixel in the corresponding effective projection region d”a”b”c region are adaptively adjusted to obtain the target image.

[0132] Figure 13 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 7 Optionally, in step S1101, determining the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine based on the coordinate information of the rectangular image may include:

[0133] S1301. Calculate the angle between the first light source curve and the second light source curve, both starting from the light source of the projection optical engine. The first light source curve includes the first specified vertex in the rectangular image, and the second light source curve includes the second specified vertex in the light map corresponding to the projected image.

[0134] like Figure 12 As shown, the light source is O, the first light source curve can be referred to as Ob', the second light source curve can be referred to as Ob”', and the included angle can be referred to as ∠B.

[0135] S1302. Based on the included angle and the coordinate information of the original image, determine the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine.

[0136] The specific calculation process is as follows:

[0137] 1. Calculate ∠B

[0138] In triangle Δb′Ho, L Hb′ =8, L Ho =16r, tan can be obtained

[0139] From Δd3h2o, we can obtain

[0140] From Δd′c′o, we can obtain

[0141] From Δb′h2o, we can obtain

[0142] L in Δb′b″′o b′o =L c′o L b′b″′ =K-X_ideal, we can get

[0143] From Δb′b″′o, we can obtain ∠B=cos -1 (cos∠B).

[0144] From Δb′Ho, we can obtain

[0145] 2. Calculate the coordinates of four points a″b″cd″ (the effective projection area of ​​the new image in the projection engine).

[0146] Point d”: d”_x=0; d”_y=Py-Py*Y_ideal

[0147] Point c: c_x = 0; c_y = 0

[0148] Point a”: a”_y = 0; (B <half_r_angle); (B>half_r_angle)

[0149] Point b”: b”_y=Py; b”_x=a”_x

[0150] Where Px and Py are the x and y coordinates of point b, respectively. Since the coordinates of the original image dabc in the projection optical engine are known, Px and Py are also known.

[0151] By following the steps above, the coordinates of the effective projection area of ​​the new image in the projection engine can be determined.

[0152] The above embodiments fully illustrate the implementation process of the entire solution. This method can also achieve rapid trapezoidal projection correction to obtain a rectangular image with a preset display ratio.

[0153] In summary, this embodiment provides a projection correction method, including: obtaining an adjustment confirmation operation for the projected image on a projection correction page; responding to the adjustment confirmation operation, determining a rectangular image matching a preset display ratio in the light map corresponding to the projected image, and obtaining the coordinate information of the rectangular image; updating the original image corresponding to the projected image according to the coordinate information of the rectangular image to obtain a target image; inputting the target image into the projection engine and projecting it to obtain the corrected projection image. In this method, the user can quickly perform manual correction of the projected image on the projection correction page, thereby automatically correcting the projected image based on the parameters obtained after correction, which can effectively improve the efficiency of projection image correction. Furthermore, based on the rectangular image with a preset display ratio determined in the light map of the projected image, the display ratio of the projected image can be automatically corrected, thereby obtaining a projection image with a standard preset display ratio, improving the user's viewing experience.

[0154] The following describes the apparatus, electronic equipment, and storage medium used to perform the projection correction method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.

[0155] Figure 14 This is a schematic diagram of a projection correction device provided in an embodiment of this application. The functions implemented by this projection correction method correspond to the steps performed by the above-described method. This device can be understood as the above-described projection optical engine, or a server, or a processor of a server, or it can be understood as a component that implements the functions of this application under the control of a server, independent of the above-described server or processor. Optionally, the device may include: an acquisition module 140, a determination module 141, and a projection module 142.

[0156] The acquisition module 140 is used to acquire the adjustment confirmation operation for the projected image in the projection calibration page;

[0157] The determination module 141 is used to respond to the adjustment confirmation operation, determine the rectangular image that matches the preset display ratio in the light map corresponding to the projected screen, and obtain the coordinate information of the rectangular image;

[0158] The acquisition module 140 is used to update the original image corresponding to the projected image based on the coordinate information of the rectangular image to obtain the target image;

[0159] The projection module 142 is used to input the target image into the projection optical engine and project the image to obtain a corrected projection image.

[0160] Optionally, the shape corresponding to the light map is a right trapezoid. The determining module 141 is specifically used to respond to the adjustment confirmation operation, determine the first intersection point of the light map and the target curve, the slope of the target curve is determined according to the preset display ratio, and the target curve includes the second intersection point of the specified non-parallel side and the specified parallel side of the right trapezoid; based on the first intersection point and the second intersection point, determine a rectangular image that matches the preset display ratio, and the vertices of the rectangular image include the first intersection point and the second intersection point.

[0161] Optionally, the determining module 141 is specifically used to determine the scale data of the light map according to the adjustment parameters carried by the adjustment confirmation operation; calculate the coordinates of the first intersection point based on the scale data of the light map, the function corresponding to the target curve and the function corresponding to the specified non-parallel side; and determine the coordinate information of the rectangular image according to the coordinates of the first intersection point.

[0162] Optionally, the device further includes: a display module and an adjustment module;

[0163] The display module is used to display the initial projection image on the projection calibration page;

[0164] The adjustment module is used to adjust the initial projection screen to the projected screen according to the movement operation input to the preset point of the initial projection screen.

[0165] Optionally, the adjustment parameters are used to indicate: moving a preset point in the initial projection image along a preset direction by a target distance. The determination module 141 is specifically used to determine the movement parameters of the target point mapped to the preset point on the original image in the projection optical engine according to the target distance; and to determine the scale data of the light map according to the movement parameters, the preset display ratio, and the preset calculation formula. The scale data of the light map is used to characterize the scale relationship of a specified edge in the light map.

[0166] Optionally, the acquisition module 140 is specifically used to determine the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine based on the coordinate information of the rectangular image; and to update the original image based on the coordinate information of the effective projection area to obtain the target image.

[0167] Optionally, the acquisition module 140 is specifically used to calculate the angle between the first light source curve and the second light source curve, both of which are based on the light source of the projection optical engine. The first light source curve includes a first specified vertex in the rectangular image, and the second light source curve includes a second specified vertex in the light map corresponding to the projected image. Based on the angle and the coordinate information of the original image, the coordinate information of the effective projection area of ​​the new image to be input into the projection optical engine is determined.

[0168] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0169] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0170] The modules described above can be connected or communicate with each other via wired or wireless connections. Wired connections can include metal cables, optical fibers, hybrid cables, or any combination thereof. Wireless connections can include connections via LAN, WAN, Bluetooth, ZigBee, or NFC, or any combination thereof. Two or more modules can be combined into a single module, and any module can be divided into two or more units. Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here.

[0171] It should be noted that these modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Furthermore, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Additionally, these modules can be integrated together to form a System-on-a-Chip (SOC).

[0172] Figure 15This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The device may be a computing device with data processing capabilities.

[0173] The device may include: processor 801 and memory 802.

[0174] The memory 802 is used to store programs, and the processor 801 calls the programs stored in the memory 802 to execute the above method embodiments. The specific implementation and technical effects are similar, and will not be described again here.

[0175] The memory 802 stores program code, which, when executed by the processor 801, causes the processor 801 to perform various steps in the methods according to various exemplary embodiments of this application described in the "Exemplary Methods" section above.

[0176] The processor 801 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0177] Memory 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory is any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 802 may also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0178] Optionally, this application also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs the above-described method embodiments.

[0179] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

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

[0181] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0182] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A projection correction method, characterized by, The method comprises the following steps: obtaining an adjustment confirmation operation for a projection picture in a projection correction page; in response to the adjustment confirmation operation, determining a rectangular image matching a preset display ratio in a light diagram corresponding to the projection picture, and obtaining coordinate information of the rectangular image; updating an original image corresponding to the projection picture according to the coordinate information of the rectangular image to obtain a target image; inputting the target image into a projection light machine and projecting to obtain a corrected projection picture; the shape of the light diagram is a right trapezoid, and the response to the adjustment confirmation operation, determining a rectangular image matching a preset display ratio in a light diagram corresponding to the projection picture, comprises: in response to the adjustment confirmation operation, determining a first intersection point of the light diagram and a target curve, the slope of the target curve being determined according to the preset display ratio, and the target curve including a second intersection point of a specified non-parallel side and a specified parallel side of the right trapezoid; determining a rectangular image matching a preset display ratio according to the first intersection point and the second intersection point, the vertices of the rectangular image including the first intersection point and the second intersection point.

2. The method of claim 1, wherein, The method comprises the following steps: determining the scale data of the light diagram according to the adjustment parameters carried by the adjustment confirmation operation; based on the scale data of the light diagram, the function corresponding to the target curve and the function corresponding to the specified non-parallel side, calculating the coordinates of the first intersection point; determining the coordinate information of the rectangular image according to the coordinates of the first intersection point.

3. The method of claim 1, wherein, Before the method obtains the adjustment confirmation operation for the projection picture in the projection correction page, the method further comprises the following steps: displaying an initial projection picture in the projection correction page; adjusting the initial projection picture to the projection picture according to a movement operation input by a preset point of the initial projection picture.

4. The method of claim 2, wherein, The adjustment parameters are used to indicate that the preset point in the initial projection picture is moved by a target distance along a preset direction, and the scale data of the light diagram is determined according to the adjustment parameters carried by the adjustment confirmation operation, comprising: determining the movement parameters of the target point on the original image in the projection light machine which is mapped by the preset point according to the target distance; determining the scale data of the light diagram according to the movement parameters, the preset display ratio and the preset calculation formula, the scale data of the light diagram being used to represent the proportional relationship of the specified side in the light diagram.

5. The method according to any one of claims 1 to 4, wherein The method comprises the following steps: determining the coordinate information of the effective projection area of the new image to be input into the projection light machine according to the coordinate information of the rectangular image; updating the original image according to the coordinate information of the effective projection area to obtain a target image.

6. The method of claim 5, wherein, The method comprises the following steps: calculating the included angle between a first light source curve and a second light source curve, both of which take the light source of the projection light machine as the starting point, the first light source curve including a first specified vertex in the rectangular image, and the second light source curve including a second specified vertex in the light diagram corresponding to the projection picture; According to the included angle and coordinate information of the original image, coordinate information of an effective projection area of a new image to be input into a projection light machine is determined.

7. A projection correction device, characterized by, The method comprises the steps of: The method comprises the steps of: The acquisition module is configured to acquire an adjustment confirmation operation for a projection picture in a projection correction page. The determination module is configured to determine a rectangular image matching the preset display ratio in a light chart corresponding to the projection picture in response to the adjustment confirmation operation, and acquire coordinate information of the rectangular image. The acquisition module is configured to update an original image corresponding to the projection picture according to the coordinate information of the rectangular image to obtain a target image. The projection module is configured to input the target image into a projection light machine and perform projection to obtain a corrected projection picture. The light chart corresponds to a right trapezoid, and the determination module is specifically configured to determine a first intersection point of the light chart and a target curve in response to the adjustment confirmation operation, a slope of the target curve being determined according to the preset display ratio, and a second intersection point of a specified non-parallel side and a specified parallel side of the right trapezoid being included on the target curve; and determine a rectangular image matching the preset display ratio according to the first intersection point and the second intersection point, the vertices of the rectangular image including the first intersection point and the second intersection point.

8. An electronic device, comprising: The method comprises the steps of: The storage medium stores a computer program, and the computer program is executed by the processor to perform the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is executed by the processor to perform the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Projector

    US20060050244A1