Projection correction method, device, equipment and storage medium
By acquiring the vertex coordinates of the optical engine image of the projected screen and the coordinates of the outer frame of the simulated imaging element, and combining the fully automatic keystone correction algorithm and the fast correction algorithm, an animated image is generated to achieve a gradient effect. This solves the problems of low efficiency and poor effect of the projection screen adjustment in the existing technology, and realizes fast and accurate projection screen correction and improves the user experience.
Patent Information
- Application Number
- CN202110712840.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-25
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2041-06-25
AI Technical Summary
In existing technologies, when users use fully automatic keystone correction (AK) or manual "4-point correction", the efficiency of adjusting the projected image is slow and the effect is poor, and it is impossible to quickly correct the adjusted projected image.
By obtaining the vertex coordinates of the optical engine image of the projected screen, the coordinates of the outer frame of the simulated imaging element are determined. Based on the preset display ratio and screen correction function, a new optical engine image is calculated to correct the projected screen. Combining the fully automatic keystone correction algorithm and the fast correction algorithm, an animated image is generated to achieve a gradient effect.
It achieves fast and accurate projection image correction, reduces abrupt changes in the corrected image, and improves the user's viewing experience.
Smart Images

Figure CN115529444B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of projection technology, in particular to a projection correction method and device, an electronic device and a storage medium. BACKGROUND
[0002] With the development of social economy and the progress of electronic information technology, the intelligent projection industry has ushered in a great development, and the problem brought along is the correction problem of the projected picture. How to quickly correct the projected picture has become an important issue in the projection industry.
[0003] Currently, the commonly used trapezoidal correction method includes full-automatic trapezoidal correction (Auto Keystone, AK) and manual "4-point correction". When a user uses AK to correct the projected picture and moves the projector during normal use of the projector, the projected picture on the wall will change from a rectangular picture to a right trapezoidal picture. The existing technology is that the user can only use "4-point correction" for manual point-by-point correction or use the "AK" function for correction again. The "4-point correction" adjustment is slow, and the AK correction effect is poor. Or, when the user manually adjusts the picture using "4-point correction", there is currently no correction scheme that can quickly correct the original image. SUMMARY
[0004] The present application aims to solve the problem that the user can only use "4-point correction" for manual point-by-point correction or use the "AK" function for correction again, the "4-point correction" adjustment is slow, and the AK correction effect is poor. Or, when the user manually adjusts the picture using "4-point correction", there is currently no correction scheme that can quickly correct the original image.
[0005] To achieve the above-mentioned purpose, the technical solutions adopted by the embodiments of the present application are as follows:
[0006] In a first aspect, the embodiments of the present application provide a projection correction method, comprising:
[0007] In the trapezoidal correction page, a first adjustment operation for a first vertex of the projected picture is obtained, the first adjustment operation being used to indicate that the first vertex is moved by a first distance along a first direction;
[0008] In response to the first adjustment operation, the vertex coordinates of the light machine image corresponding to the projected picture are obtained;
[0009] According to the vertex coordinates of the light machine image, the analog imaging element outer frame corresponding to the light machine image and the outer frame coordinates of the analog imaging element outer frame are determined; wherein the analog imaging element outer frame is a rectangular frame.
[0010] determine a new light machine image for correcting the projection picture based on the first distance, a picture correction function associated with preset display ratio of the frame coordinates of the frame of the simulation imaging element, and the frame coordinates of the frame of the simulation imaging element;
[0011] project according to the new light machine image to obtain a corrected projection picture.
[0012] Optionally, the determining the frame of the simulation imaging element corresponding to the light machine image and the frame coordinates of the frame of the simulation imaging element according to the vertex coordinates of the light machine image comprises:
[0013] calculating a side length parameter of the frame of the simulation imaging element according to the vertex coordinates of the light machine image;
[0014] calculating the vertex coordinates of the frame of the simulation imaging element according to the side length parameter of the frame of the simulation imaging element.
[0015] Optionally, the calculating the side length parameter of the frame of the simulation imaging element according to the vertex coordinates of the input image comprises:
[0016] determining a circumscribed rectangle corresponding to the light machine image according to the vertex coordinates of the light machine image, wherein the light machine image is a quadrilateral and the circumscribed rectangle is a rectangle matched with the quadrilateral;
[0017] determining a height parameter of the circumscribed rectangle as a height parameter of the frame of the simulation imaging element;
[0018] calculating a width parameter of the frame of the simulation imaging element according to the height parameter of the frame of the simulation imaging element and preset display ratio.
[0019] Optionally, the light machine image is a quadrilateral, and the determining the frame of the simulation imaging element corresponding to the light machine image and the frame coordinates of the frame of the simulation imaging element according to the vertex coordinates of the light machine image further comprises:
[0020] obtaining vertical coordinates of two vertices of a specified side of the quadrilateral;
[0021] determining an extension direction of the frame of the simulation imaging element according to the vertical coordinates of the two vertices of the specified side.
[0022] Optionally, the determining the new light machine image for correcting the projection picture based on the first distance, the picture correction function associated with preset display ratio of the frame coordinates of the frame of the simulation imaging element, and the frame coordinates of the frame of the simulation imaging element comprises:
[0023] acquire a second distance of movement of the first vertex relative to an initial vertex corresponding to the first vertex in an initial projection picture, the initial projection picture being a projection picture before the trapezoidal correction;
[0024] determine a total distance of movement based on the first distance and the second distance;
[0025] determine coordinates of an effective projection area of the new light machine image according to the total distance of movement, a picture correction function associated with the preset display ratio and the frame coordinates of the frame of the simulated imaging element;
[0026] update the projection picture corresponding light machine image according to the coordinates of the effective projection area to obtain a new light machine image for correcting the projection picture.
[0027] Optionally, the trapezoidal correction is a full-automatic trapezoidal correction, the effective projection area has a shape of a right trapezoid, the effective projection area includes a first effective projection vertex having a mapping relationship with the first vertex and a second effective projection vertex constituting a hypotenuse of the right trapezoid with the first effective projection vertex, the coordinates of the first effective projection vertex are (x1, d1), and the coordinates of the second effective projection vertex are (x2, d2).
[0028] The method for determining the coordinates of the effective projection area of the new light machine image according to the total distance of movement, the frame coordinates of the frame of the simulated imaging element and the picture correction function associated with the preset display ratio comprises:
[0029] acquire a difference function of the horizontal coordinates of the second effective projection vertex calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm, the shortcut correction algorithm being associated with the picture correction function associated with the preset display ratio;
[0030] acquire coordinates of a first projection vertex having a mapping relationship with the first vertex in the light machine image, the coordinates of the first projection vertex being (x0, d0);
[0031] determine a difference value of the horizontal coordinates of the second effective projection vertex currently calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm based on the vertical coordinates of the first projection vertex and the difference function;
[0032] determine calculation coordinates of the horizontal coordinates of the second effective projection vertex according to the total distance of movement, the frame coordinates of the frame of the simulated imaging element and the picture correction function associated with the preset display ratio;
[0033] determine the coordinates of the second effective projection vertex according to the calculation coordinates of the horizontal coordinates of the second effective projection vertex and the difference value of the horizontal coordinates of the second effective projection vertex.
[0034] Optionally, before the acquiring the difference function of the second effective projection vertex horizontal coordinate calculated by the full-automatic trapezoidal correction algorithm and the quick correction algorithm, the method further comprises:
[0035] acquiring a first fitting function of the vertical coordinate of the first projection vertex and the second effective projection vertex horizontal coordinate under the full-automatic trapezoidal correction algorithm;
[0036] acquiring a second fitting function of the vertical coordinate of the first projection vertex and the second effective projection vertex horizontal coordinate under the quick correction algorithm;
[0037] obtaining the difference function of the second effective projection vertex horizontal coordinate based on the first fitting function and the second fitting function.
[0038] Optionally, the optical-mechanical image is a quadrilateral, and the projecting according to the new optical-mechanical image to obtain the corrected projection picture comprises:
[0039] generating an animation image associated with the optical-mechanical image and the new optical-mechanical image according to the vertex coordinates of the optical-mechanical image, the coordinates of the effective projection region, and a preset animation algorithm;
[0040] projecting according to the animation image to obtain the corrected projection picture.
[0041] Optionally, the determining the coordinate of the second effective projection vertex according to the calculated coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate comprises:
[0042] acquiring a target correction coefficient;
[0043] determining the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate, and the difference value of the second effective projection vertex horizontal coordinate.
[0044] Optionally, the determining the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate, and the difference value of the second effective projection vertex horizontal coordinate comprises:
[0045] detecting whether the target correction coefficient is greater than or equal to a correction threshold;
[0046] if yes, triggering the determining the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate, and the difference value of the second effective projection vertex horizontal coordinate.
[0047] Optionally, the acquiring the target correction coefficient comprises:
[0048] According to the second distance, and a preset mapping calculation formula of the vertex of the optical-mechanical image and the vertex in the initial projection picture, a calculation coordinate of the second projection vertex horizontal coordinate in the optical-mechanical image is calculated;
[0049] According to the calculation coordinate of the second projection vertex horizontal coordinate, the actual horizontal coordinate of the second projection vertex in the optical-mechanical image, and the difference value of the second projection vertex horizontal coordinate, the target correction coefficient is calculated.
[0050] Optionally, the obtaining the second distance of the movement of the first vertex relative to the corresponding initial vertex of the first vertex in the initial projection picture comprises:
[0051] According to the vertical coordinate of the first projection vertex in the optical-mechanical image, and a preset fitting function of the vertex of the optical-mechanical image and the vertex in the initial projection picture, the second distance of the movement of the first vertex relative to the corresponding initial vertex of the first vertex in the initial projection picture is calculated.
[0052] In a second aspect, the embodiments of the present application further provide a projection correction device, the device comprises:
[0053] The obtaining module is configured to obtain a first adjustment operation for a first vertex of a projection picture in a projection correction page after trapezoidal correction, the first adjustment operation being used to indicate that the first vertex is moved by a first distance along a first direction.
[0054] The response module is configured to obtain vertex coordinates of an optical-mechanical image corresponding to the projection picture in response to the first adjustment operation.
[0055] The determining module is configured to determine, according to the vertex coordinates of the optical-mechanical image, an analog imaging element outer frame corresponding to the optical-mechanical image and outer frame coordinates of the analog imaging element outer frame, wherein the analog imaging element outer frame is a rectangular frame; and determine a new optical-mechanical image used to correct the projection picture based on the first distance, the outer frame coordinates of the analog imaging element outer frame, and a picture correction function associated with a preset display ratio.
[0056] The projection module is configured to perform projection according to the new optical-mechanical image to obtain a corrected projection picture.
[0057] Optionally, the determining module is further configured to:
[0058] According to the vertex coordinates of the optical-mechanical image, a side length parameter of the analog imaging element outer frame is calculated.
[0059] According to the side length parameter of the analog imaging element outer frame, vertex coordinates of the analog imaging element outer frame are calculated.
[0060] Optionally, the determining module is further configured to:
[0061] determine, according to the vertex coordinates of the optical-mechanical image, a circumscribed rectangle corresponding to the optical-mechanical image, wherein the optical-mechanical image is a quadrilateral, and the circumscribed rectangle is a rectangle matching the quadrilateral;
[0062] determine a height parameter of the circumscribed rectangle as a height parameter of the simulated imaging element frame;
[0063] calculate a width parameter of the simulated imaging element frame according to the height parameter of the simulated imaging element frame and a preset display ratio.
[0064] Optionally, the optical-mechanical image is a quadrilateral, and the obtaining module is further configured to obtain the longitudinal coordinates of two vertices of a specified side of the quadrilateral.
[0065] The determining module is further configured to determine an extension direction of the simulated imaging element frame according to the longitudinal coordinates of the two vertices of the specified side.
[0066] Optionally, the determining module is further configured to:
[0067] obtain a second distance of movement of the first vertex relative to an initial vertex corresponding to the first vertex in an initial projection picture, the initial projection picture being a projection picture before the trapezoidal correction;
[0068] determine a total distance of movement based on the first distance and the second distance;
[0069] determine coordinates of an effective projection area of the new optical-mechanical image according to the total distance of movement, frame coordinates of the simulated imaging element frame, and a picture correction function associated with a preset display ratio;
[0070] update the optical-mechanical image corresponding to the projection picture according to the coordinates of the effective projection area to obtain a new optical-mechanical image used to correct the projection picture.
[0071] Optionally, the trapezoidal correction is full-automatic trapezoidal correction, the shape of the effective projection area is a right trapezoid, the effective projection area includes a first effective projection vertex having a mapping relationship with the first vertex and a second effective projection vertex constituting a non-parallel side of the right trapezoid with the first effective projection vertex, the coordinates of the first effective projection vertex are (x1, d1), and the coordinates of the second effective projection vertex are (x2, d2).
[0072] The determining module is further configured to:
[0073] obtaining a difference function of the second effective projection vertex horizontal coordinate calculated by the full-automatic keystone correction algorithm and the shortcut correction algorithm, the shortcut correction algorithm being associated with the picture correction function associated with the preset display ratio;
[0074] obtaining the coordinate of the first projection vertex in the optical-mechanical image which has a mapping relationship with the first vertex, the coordinate of the first projection vertex being (x0, d0);
[0075] determining the difference value of the second effective projection vertex horizontal coordinate currently calculated by the full-automatic keystone correction algorithm and the shortcut correction algorithm based on the vertical coordinate of the first projection vertex and the difference function;
[0076] determining the calculation coordinate of the second effective projection vertex horizontal coordinate according to the total moving distance, the picture correction function associated with the outer frame coordinate of the simulated imaging element outer frame and the preset display ratio;
[0077] determining the coordinate of the second effective projection vertex according to the calculation coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate.
[0078] Optionally, before the obtaining of the difference function of the second effective projection vertex horizontal coordinate calculated by the full-automatic keystone correction algorithm and the shortcut correction algorithm, the obtaining module is further configured to:
[0079] obtaining a first fitting function of the vertical coordinate of the first projection vertex and the second effective projection vertex horizontal coordinate under the full-automatic keystone correction algorithm; obtaining a second fitting function of the vertical coordinate of the first projection vertex and the second effective projection vertex horizontal coordinate under the shortcut correction algorithm; and obtaining the difference function of the second effective projection vertex horizontal coordinate based on the first fitting function and the second fitting function.
[0080] Optionally, the optical-mechanical image is a quadrilateral, and the projection module is further configured to:
[0081] generating an animation image associated with the optical-mechanical image and the new optical-mechanical image according to the vertex coordinate of the optical-mechanical image, the coordinate of the effective projection area and a preset animation algorithm;
[0082] projecting according to the animation image to obtain a corrected projection picture.
[0083] Optionally, the obtaining module is further configured to obtain a target correction coefficient.
[0084] The determining module is further configured to determine the coordinate of the second effective projection vertex based on the target correction coefficient, the calculation coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate.
[0085] Optionally, the determining module is further configured to:
[0086] detect whether the target correction coefficient is greater than or equal to a correction threshold value;
[0087] if yes, trigger execution of the following steps: determining the coordinate of the second effective projection vertex based on the difference value of the calculated coordinate of the second projection vertex horizontal coordinate and the second effective projection vertex horizontal coordinate and the target correction coefficient.
[0088] Optionally, the obtaining module is further configured to:
[0089] calculate the calculated coordinate of the second projection vertex horizontal coordinate in the optical-mechanical image according to the second distance and a preset mapping calculation formula of the vertex of the optical-mechanical image and the vertex in the initial projection picture;
[0090] calculate the target correction coefficient according to the calculated coordinate of the second projection vertex horizontal coordinate, the actual horizontal coordinate of the second projection vertex in the optical-mechanical image, and the difference value of the second projection vertex horizontal coordinate.
[0091] Optionally, the obtaining module is further configured to:
[0092] calculate the second distance of the movement of the first vertex in the projection picture relative to the corresponding initial vertex of the first vertex in the initial projection picture according to the vertical coordinate of the first projection vertex in the optical-mechanical image and the preset fitting function of the vertex of the optical-mechanical image and the vertex in the initial projection picture.
[0093] In a third aspect, an electronic device is provided, 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 through the bus. The processor executes the machine readable instructions to perform the steps of the projection correction method provided in the first aspect.
[0094] In a fourth aspect, a storage medium is provided. The storage medium stores a computer program. When the computer program is run by a processor, the steps of the projection correction method provided in the first aspect are executed.
[0095] The present application has the following beneficial effects:
[0096] The embodiment of the present application provides a projection correction method, device and equipment and a storage medium, the method comprises the following steps: in the projection correction page after trapezoidal correction, a first adjustment operation for a first vertex of a projection picture is acquired, the first adjustment operation is used for indicating that the first vertex is moved by a first distance along a first direction; in response to the first adjustment operation, vertex coordinates of a light machine image corresponding to the projection picture are acquired; according to the vertex coordinates of the light machine image, an analog imaging element outer frame corresponding to the light machine image and outer frame coordinates of the analog imaging element outer frame are determined; wherein the analog imaging element outer frame is a rectangular frame; based on the first distance, the outer frame coordinates of the analog imaging element outer frame and a picture correction function associated with a preset display ratio, a new light machine image used for correcting the projection picture is determined; according to the new light machine image, projection is carried out to obtain a corrected projection picture. In the present scheme, by acquiring the vertex coordinates of the light machine image corresponding to the projection picture after trapezoidal correction, and further determining the analog imaging element outer frame corresponding to the light machine image and the outer frame coordinates of the analog imaging element outer frame based on the vertex coordinates of the light machine image, the new light machine image used for correcting the projection picture can be calculated according to the first distance by which the first vertex in the projection picture is moved along the first direction, the outer frame coordinates of the analog imaging element outer frame and the picture correction function, so as to carry out image projection according to the obtained new light machine image. In this way, on the one hand, the picture after trapezoidal correction can be conveniently corrected, and the projection picture correction efficiency can be effectively improved; on the other hand, by introducing the picture correction function associated with the preset display ratio, the accuracy of the projection picture correction can be improved, and the viewing experience of the user can be improved.
[0097] In addition, the present application can acquire the difference function of the second effective projection vertex horizontal coordinate calculated by the full-automatic trapezoidal correction algorithm and the quick correction algorithm, and based on the difference function of the second effective projection vertex horizontal coordinate, the coordinates of the compensated second effective projection vertex are obtained, then the quick trapezoidal correction is carried out using the compensated second effective projection vertex coordinates, so as to obtain the corrected projection picture, so that the mutation of the obtained corrected projection picture is reduced, and only the horizontal mutation of B and C points exists, the mutation of A point and D point is generally within a few pixels (4K resolution), and the problem of the existence of the mutation of the corrected projection picture is effectively solved.
[0098] Secondly, in the present application, the vertex coordinates of the light machine image corresponding to the obtained projection image, the coordinates of the effective projection area and the preset animation algorithm are used to generate an animation image associated with the light machine image and the new light machine image, so that the animation processing is added on the basis of the fitting, so that the animation is used to make a gradual change effect between the light machine image and the new light machine image after calculation, so that each frame of image in the animation image is projected at a certain interval, so that the user hardly feels the sudden change of the corrected projection picture when the light machine image is switched to the new light machine image, effectively reducing the sudden change of the projection picture seen by the user, thereby improving the user's viewing experience.
[0099] Finally, in the present application, the target correction coefficient, the calculated coordinates of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate are used to determine the coordinates of the second effective projection vertex, so that the target correction coefficient can be used to correct the coordinates of the second effective projection vertex, and the problem of sudden change of the projection picture after fast trapezoidal correction and AK correction can be effectively solved. BRIEF DESCRIPTION OF DRAWINGS
[0100] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[0101] Figure 1 Flowchart of the projection correction method provided by the embodiments of the present application Figure 1 ;
[0102] Figure 2 A projection correction page provided by the embodiments of the present application;
[0103] Figure 3 A schematic diagram of the change process of the light machine image on the imaging element when the projection picture is adjusted using the fast trapezoidal correction function provided by the embodiments of the present application;
[0104] Figure 4 A schematic diagram of the light machine image corresponding to the simulation imaging element frame provided by the embodiments of the present application;
[0105] Figure 5 A function relationship diagram provided by the embodiments of the present application;
[0106] Figure 6 A projection diagram provided by the embodiments of the present application;
[0107] Figure 7Another function relationship diagram provided by the embodiment of the present application;
[0108] Figure 8 Another function relationship diagram provided by the embodiment of the present application;
[0109] Figure 9 Another projection relationship diagram provided by the embodiment of the present application;
[0110] Figure 10 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 2 ;
[0111] Figure 11 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 3 ;
[0112] Figure 12 A diagram of the optical-mechanical image vertex coordinates provided by the embodiment of the present application;
[0113] Figure 13 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 4 ;
[0114] Figure 14 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 5 ;
[0115] Figure 15 A diagram of the projection picture correction provided by the embodiment of the present application;
[0116] Figure 16 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 6 ;
[0117] Figure 17 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 7 ;
[0118] Figure 18 A diagram of the first fitting function of the first projection vertex vertical coordinate and the second effective projection vertex horizontal coordinate under the full-automatic keystone correction algorithm provided by the embodiment of the present application;
[0119] Figure 19 A diagram of the second fitting function of the first projection vertex vertical coordinate and the second effective projection vertex horizontal coordinate under the fast correction algorithm provided by the embodiment of the present application;
[0120] Figure 20 A flow diagram of the projection correction method provided by the embodiment of the present application Figure 8 ;
[0121] Figure 21 Flowchart of the projection correction method provided by the embodiment of the present application Figure 9
[0122] Figure 22 Flowchart of the projection correction method provided by the embodiment of the present application Figure 10
[0123] Figure 23 Flowchart of the projection correction method provided by the embodiment of the present application Figure 10
[0124] Figure 24 Schematic diagram of the change of the light machine image in the projection picture correction process provided by the embodiment of the present application
[0125] Figure 25 Schematic diagram of the structure of the projection correction device provided by the embodiment of the present application
[0126] Figure 26 Schematic diagram of the structure of the electronic device provided by the embodiment of the present application DETAILED DESCRIPTION
[0127] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of description and illustration, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn according to the actual proportions. The flowcharts show the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can not be implemented in sequence, and the steps without logical context relationship can be reversed in sequence or implemented simultaneously. In addition, one or more other operations can be added to the flowcharts or one or more operations can be removed from the flowcharts under the guidance of the content of the present application.
[0128] In addition, the described embodiments are only some of the embodiments of the present application, not all the embodiments. The components of the embodiments of the present application described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0129] It should be noted that the term “comprising” will be used in the embodiments of the present application to indicate the presence of the features, but does not exclude the addition of other features.
[0130] In one aspect, the related background of the present application is briefly described:
[0131] When the user moves the projector while using the AK correction screen and normally using the projector, the projected picture on the wall changes from a rectangular picture to a right-angled trapezoidal picture. The prior art is that the user can only use the "4-point correction" to manually correct point by point or use the "AK" function to correct the right-angled trapezoidal picture again.
[0132] However, first, when the user manually adjusts the picture using the "4-point correction", there is currently no correction scheme that can quickly correct the original image; second, when the user uses the "AK" correction, the projected picture obtained may still not be a standard rectangle, resulting in poor viewing effect for the user. The present scheme can quickly perform "fast trapezoidal correction" on the picture after AK correction to fine-tune the non-standard rectangular picture into a rectangular picture and ensure that the fine-tuned rectangular picture has no abrupt change, the entire adjustment process is smooth, and the purpose of improving the user's experience and viewing effect is achieved.
[0133] On the other hand, the projection principle of the projection light machine involved in the present application is briefly described: the projection light machine can have a DMD (Digital Micromirror Device). The DMD is an array composed of a plurality of high-speed digital light reflection openings, which is composed of a plurality of small aluminum reflecting mirrors. The number of mirrors is determined by the display resolution, and one small mirror corresponds to one pixel, which is used for imaging the projected picture. The light source is projected on the DMD and displayed on the projection wall through imaging. When correcting the projected picture on the projection wall, the pixel value of each pixel on the DMD can be adjusted to adjust the shape of the picture projected on the wall.
[0134] Next, the scheme of the present application will be described in detail through a plurality of specific embodiments.
[0135] Figure 1 Flowchart of the projection correction method provided for the embodiments of the present application Figure 1 ; Figure 2 Schematic diagram of a projection correction page provided for the embodiments of the present application. The execution subject of the present method can be a controller, a processor or the like in the projection light machine, or a computer, a server or the like independent of the projection light machine. As shown in the figure, the method can include: Figure 1
[0136] S101, in the trapezoidal correction projection correction page, a first adjustment operation for a first vertex of the projected picture is obtained, and the first adjustment operation is used to indicate that the first vertex is moved by a first distance along a first direction.
[0137] Optionally, the "projection correction page" refers to a page for correcting the projected picture, such asFigure 2 As shown in the figure, the projection correction page can include a quick correction control and at least one adjustment control, and the background of the projection correction page can be any background.
[0138] Optionally, the user can input a first adjustment operation for the first vertex of the projection picture in the projection correction page through the adjustment control in the projection correction page, where the first vertex can refer to a specified point in the projection picture.
[0139] For example, continuing to refer to Figure 2 The adjustment control can include a first adjustment control and a second adjustment control, the first adjustment control can be used to adjust the vertical downward movement of the point in the projection picture, and the second adjustment control can be used to adjust the vertical upward movement of the point in the projection picture. The user can control the first adjustment control through a button in the remote controller of the projection light machine to move the first vertex in the projection picture along a first direction by a first distance, so as to Figure 2 For example, the projection picture shown in the figure is a right-angled trapezoid, and assuming that the first vertex is a1, the first adjustment control can be controlled through the button to input a first adjustment operation to move a1 along the vertical direction to a2, where the first distance can be represented by the number of pixel points, for example: a1 is moved by n pixel points along the vertical direction ad to reach a2, that is, the first distance is a1a2. Pressing the first adjustment button once corresponds to adjusting a fixed step value s, which can also be understood as the above n pixel points.
[0140] S102, in response to the first adjustment operation, obtaining the vertex coordinates of the light machine image corresponding to the projection picture. Wherein, the light machine image can be understood as the DMD image input into the DMD of the projection light machine for projecting the above-mentioned projection picture.
[0141] Optionally, in response to the first adjustment operation for the first vertex of the projection picture, the vertex coordinates of the light machine image corresponding to the projection picture after the first adjustment operation are obtained.
[0142] S103, according to the vertex coordinates of the light machine image, determining the analog imaging element outer frame corresponding to the light machine image and the outer frame coordinates of the analog imaging element outer frame; wherein the analog imaging element outer frame is a rectangular frame with a preset display ratio. For example, the preset display ratio of the projection picture is 16:9, so the analog imaging element outer frame here is a rectangular outer frame with a ratio of 16:9. In the embodiments of the present application, the analog imaging element outer frame can be understood as an imaginary DMD outer frame, and the imaging element outer frame can be understood as a real DMD outer frame.
[0143] For example, the projection picture shown in the figure is a right-angled trapezoid, and assuming that the first vertex is a1, the first adjustment control can be controlled through the button to input a first adjustment operation to move a1 along the vertical direction to a2, where the first distance can be represented by the number of pixel points, for example: a1 is moved by n pixel points along the vertical direction ad to reach a2, that is, the first distance is a1a2. Pressing the first adjustment button once corresponds to adjusting a fixed step value s, which can also be understood as the above n pixel points. Figure 4 As can be clearly seen, the light machine image, the area corresponding to the analog imaging element outer frame corresponding to the light machine image can be obtained.
[0144] Optionally, Figure 3 The schematic diagram of the image change process on the light machine of the imaging element when the user adjusts the projection picture using the quick keystone correction function is shown in Figure 3 As shown in the left part of FIG. 6, when the user adjusts the projection picture using the quick keystone correction function, the vertical coordinate Ay of the first projection point (for example, point A in FIG. 6) on the light machine image that has a mapping relationship with the first vertex (for example, point a1 in FIG. 6) of the projection picture always moves on the left boundary of the outer frame of the imaging element, and the horizontal coordinate Bx of the second projection point (for example, point B in FIG. 6) always moves on the upper boundary of the outer frame of the imaging element. Figure 2 Figure 4 Figure 4
[0145] The specific manner of adjusting the projection picture through the quick keystone correction function is as follows:
[0146] Firstly, an adjustment operation for a preset vertex in the projection picture is obtained, and a cumulative step value mstep corresponding to the adjustment operation is determined.
[0147] Optionally, in the actual use process of the projector, the user can enter the quick correction mode by operating the quick correction control in any page (for example, a video playing page, a music playing page, etc.) to correct the currently displayed projection picture.
[0148] The adjustment operation can be a pressing operation input by the user to the first adjustment control or the second adjustment control in the remote controller of the projector. Taking the projector as an example of left projection, as shown in the right part of FIG. 6, the preset vertex is point a, and the initial projection picture is abcd. The user can move the a vertex downward to a1 by pressing the first adjustment control. Each time the first adjustment control is pressed, the corresponding cumulative step value mstep increases by a fixed step value s, and the initial mstep is 0. In contrast, each time the second adjustment control is pressed, the corresponding cumulative step value mstep decreases by the fixed step value s. Figure 15
[0149] Alternatively, when the projector is right projection, the above-mentioned preset vertex changes from point a to point b, which is not limited in the present application.
[0150] It can be understood that when the projection light machine is placed horizontally, the projection picture is projected onto the wall surface at an arbitrary horizontal angle with the DMD, the light image of the projection picture is always a right trapezoid, and when the projection angle is unchanged, the light image on the wall is also always unchanged, and the projection picture always moves within the light image range.
[0151] The second step involves updating the optical engine image corresponding to the above-mentioned projection image based on the cumulative step value mstep (i.e., the ordinate a_y of the preset vertex) and the image correction function that matches the preset display ratio, thereby obtaining the target image.
[0152] In this process, an adjustment operation is performed once for each pair of preset vertices to move the preset vertices downwards. The change process of the projected image after correction can be found in [reference needed]. Figure 15 As shown in the left image, after repeated adjustments, the projected image gradually transforms from a trapezoid into a rectangle with a preset display ratio. This method allows for quick correction of the projected image, rapidly creating a rectangular image with a preset display ratio, thus improving the user experience.
[0153] In practice, the second step above is implemented as follows:
[0154] When the projector is placed horizontally and projects onto a wall at any horizontal angle to the projector's DMD, the light pattern remains a right-angled trapezoid (because the projector's light source and the bottom edge of the DMD are on the same horizontal plane). When the projection angle remains constant, the light pattern on the wall also remains unchanged, and the image always moves within the range of the light pattern. By adjusting the position of the highest point of the trapezoid downwards to make the projected image rectangular, the image on the DMD will... Move down Each pixel. Assuming the aspect ratio of the DMD is 16:9, then we can set the longer side of the DMD to be 16 and the shorter side to be 9. .
[0155] Taking the DMD with an aspect ratio of 16:9 as an example, Figure 6 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 de. This refers to the number of moving pixels in the DMD, M refers to the physical resolution of the DMD in the projection engine, and D refers to the aspect ratio of the projected image. In this embodiment, taking a physical resolution of 1080 and a projection aspect ratio of 16:9 as an example, the corresponding formula can be used to calculate the resolution. 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 values.
[0156] 1. Proof:
[0157] By △ , △ , △ The triangles are similar to each other. It is easy to prove:
[0158]
[0159] 2. Find
[0160] Figure 7 This is yet another schematic diagram of a functional relationship provided in the embodiments of this application; Figure 8 This is another schematic diagram of a functional relationship provided for an embodiment of this application.
[0161] Let the throw ratio (projection distance: projection screen width) be a constant r. In this embodiment, r can be taken as 16:9. Then... , in ⊿ By the Pythagorean theorem, we can obtain ,set up Let's say m.
[0162] In ⊿ In the middle, it is easy to obtain from the projection relationship. Since ∠bco is complementary to ∠bco, we can obtain: .
[0163] Based on the projection relationship, it is easy to obtain △ and Similarity, derived from similarity relations = .exist middle = , , = The result can be obtained using the Law of Cosines. Therefore, we can conclude that:
[0164] Later .
[0165] 3. Proof:
[0166] Let So .
[0167] Bring and into the expression:
[0168]
[0169] Summarized above can be projected on the wall of the light map , when the projection of the projector projection ratio fixed K only with the number of pixels on the DMD moving.
[0170] 4, to project on the wall of the right trapezoidal light map ratio
[0171] When the user adjusts the initial projection screen (right trapezoidal) for projection screen (rectangular image), you can get a unique DMD x, K into the expression can be calculated light map aspect ratio , plus , so you can uniquely determine the right trapezoidal two parallel sides and the bottom ( , , ) ratio, that is, the light map ratio mentioned above. Corresponding to 1, Corresponding to K1, Corresponding to K, light map ratio can also refer to the ratio between K, K1 and 1, wherein K1= .
[0172] 5, in the projection screen corresponding to the light map planning with the preset display ratio (for example, 16:9) matching the target rectangle
[0173] For the above in the projection screen corresponding to the light map to determine the preset display ratio matching rectangular image, an achievable way, you can first determine the light map and the first intersection of the target curve, that is, you can make a target curve in the light map, the slope of the target curve can be obtained according to the above-mentioned preset display ratio, for example, the preset display ratio is 16:9, the slope of the target curve can be 9 / 16.
[0174] It should be noted that for the computer, the above operation to make a target curve can be realized by program, the parameters in the program can include light map data, the slope of the target curve and other data.
[0175] For example Figure 5As shown, the determined light map can be a right trapezoid d3-a'-b'-h2 in the figure, the target curve made can be h2d5, wherein the specified non-parallel side of the right trapezoid included on 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, and then the first intersection point of the light map and the target curve can be obtained, which can be g.
[0176] Further, according to the first intersection point and the second intersection point, a rectangular image matching the preset display ratio is determined, and the vertices of the rectangular image include the first intersection point and the second intersection point.
[0177] Alternatively, based on the determined first intersection point g, a perpendicular line can be made from g to the side d3h2 and h2b' of the right trapezoid d3-a'-b'-h2 respectively, and the intersection points f and m as shown in the figure can be obtained. Based on the obtained intersection points, the first intersection point and the second intersection point, a rectangular image f-g-m-h2 matching the preset display ratio can be determined in the light map of the projection picture. Figure 5
[0178] Alternatively, based on the obtained proportional data of the light map, the curve function of the target curve, and the function corresponding to the specified non-parallel side d3a' of the right trapezoid in the figure, the coordinates of the first intersection point g can be calculated. Figure 5
[0179] Based on the coordinate system established in the figure, the curve function equation of the target curve h2d5 can be obtained as follows: Figure 5 , wherein the slope of the target curve is determined according to the preset display ratio 16:9. The function equation corresponding to the specified non-parallel side d3a' is: , and the first intersection point g can be obtained by solving the equations together. .
[0180] 6, Calculate ∠B
[0181] As shown in the figure, the light source is O, the first light source curve can be Ob', the second light source curve can be Ob''', and the included angle can be Figure 9 .
[0182] The specific calculation process of ∠B can be as follows:
[0183] In triangle , =8, =16r, = tan O(tan )= .
[0184] In , we have .
[0185] In , we have .
[0186] In , we have .
[0187] In , we have = ; , we have .
[0188] In , we have . = .
[0189] In , we have .
[0190] 7. Calculate Figure 9 the coordinates of the four points in the coordinate system of the original image dabc (i.e. the effective projection area of the new image in the projection light machine)
[0191] Point d": d"_x = 0; d"_y = 0; Point c: c_x = 0; c_y = 0;
[0192] Point a": a"_y = 0; a"_x = B (half_r_angle); a"_x = B (half_r_angle);
[0193] Point b": b"_y = B ; b"_x = a"_x.
[0194] Wherein, , K1 = (9 - x) / 9
[0195] Wherein, , The horizontal and vertical coordinates of point b are known, since the coordinates of the original image dabc in the projection light machine are known. , The horizontal and vertical coordinates of point b are known, since the coordinates of the original image dabc in the projection light machine are known. , The horizontal and vertical coordinates of point b are known, since the coordinates of the original image dabc in the projection light machine are known. , This is also known. Px and Py are related to the physical resolution of the DMD in the projection engine. Specifically, Px is the horizontal number of pixels in the DMD's physical resolution, and Py is the vertical number of pixels in the DMD's physical resolution. For example, if the DMD's physical resolution is (1920*1080), then Px=1920 and Py=1080.
[0196] Based on the above description, the screen correction function that matches the preset display ratio can refer to the calculation of the four coordinates. The formula. Specifically, the second step above is implemented as follows:
[0197] The cumulative step value mstep corresponding to the above adjustment operation is used as the image on the DMD. The number of pixels that shifted down, as mentioned above. =The cumulative step value mstep. Correspondingly, when the preset display ratio is 16:9, the DMD physical resolution is 1080. Therefore, x = (cumulative step value mstep / 1080) * 9. In this case, the known x can be substituted into the coordinates of the above 4 points. The calculation formula is used to calculate the coordinates of four points in the effective projection area of the new image to be input into the optical engine, and then the target image is obtained based on these four coordinates.
[0198] Continue to refer to the above. Figure 4 This is a schematic diagram of the outline of the analog imaging element corresponding to the optomechanical image provided in the embodiments of this application; however, as Figure 4 As shown, when the user performs AK keystone correction, manual 4-point correction, or image scaling on the displayed "initial projection image", the optical engine image corresponding to the projected image is located in the center of the "imaging element outer frame", rather than near the boundary of the imaging element outer frame. Therefore, there is a compatibility issue between AK correction, manual 4-point correction, image scaling, and quick keystone correction. In order to continue to be compatible with the quick keystone correction function after AK, manual 4-point correction, or image scaling, the speed and accuracy of projection image correction can be improved.
[0199] This application embodiment can obtain the vertex coordinates of the current optical engine image (i.e., the optical engine image corresponding to the AK, manual 4-point correction, or the projected image after image scaling), and based on the vertex coordinates of the optical engine image, determine the outer frame of the analog imaging element corresponding to the optical engine image, as well as the outer frame coordinates of the analog imaging element, so that when the user subsequently adjusts the projected image using the quick keystone correction function, the optical engine image can move on the boundary of the analog imaging element's outer frame.
[0200] S104. Based on the first distance, the frame coordinates of the simulated imaging element and the preset display ratio, a new optical engine image for correcting the projected image is determined.
[0201] wherein, the preset display ratio associated picture correction function refers to the calculation formula of the four point coordinates of the effective projection area of the new projector image in the above-mentioned calculation of the effective projection area of the new projector image in the projection light machine, but
[0202] When step S104 is executed, the outer frame of the simulation imaging element needs to be replaced with the outer frame of the actual imaging element in the above-mentioned formula. Figure 9 The abscissa and ordinate of the b point corresponding point in the above-mentioned formula are replaced with 、 Therefore, after obtaining the outer frame coordinates of the simulation imaging element, the new projector image used for correcting the projection picture can be determined based on the above-mentioned “first distance” of the first vertex moving along the first direction in the projection picture and the picture correction function, so as to realize the fast keystone correction of the projection picture, and solve the problem of compatibility between the keystone correction and the fast keystone correction.
[0203] S105, projection is performed according to the new projector image to obtain the corrected projection picture.
[0204] In some embodiments, the new projector image can be input to the projection light machine, and image projection is performed according to the size of the new projector image to obtain the “corrected projection picture”. On the one hand, the conveniently corrected picture after the keystone correction can effectively improve the projection picture correction efficiency. On the other hand, by introducing the picture correction function associated with the preset display ratio, the accuracy of the projection picture correction can be improved, and the viewing experience of the user can be improved.
[0205] Referring to Figure 15 , it is assumed that the projection picture after the keystone correction is the abcd corresponding picture, and the first vertex is the a point when the projector is on the left side. The first adjustment operation can move the a point downward to adjust to a1. The steps S102-S105 are executed to correct the projection picture from abcd to A1B1C1d. Correspondingly, the user can continue to input the second adjustment operation, the third adjustment operation, the fourth adjustment operation, etc., to continuously move the a point in the projection picture downward. The input of each adjustment operation can repeatedly execute the steps S102-S105. The change process of the corrected projection picture can be seen from the left drawing of Figure 15 . Until the projection picture is corrected to the standard rectangle (for example, the standard rectangle of 16:9) matching the preset display ratio, in this way, the fast keystone correction scheme can be compatible with the keystone correction (AK or manual keystone correction) after the projection picture is corrected, and the picture after the keystone correction can be quickly adjusted to the standard rectangle matching the preset display ratio.
[0206] It can be understood that the first adjustment operation for the first vertex of the projection picture after the optical zoom and the picture zoom is also applicable to the scheme, and specifically, the first adjustment operation for the first vertex of the projection picture after the optical zoom and the picture zoom can still be acquired, the steps S102-S105 are executed according to the first adjustment operation, and convenient correction of the picture is realized.
[0207] In summary, the projection correction method provided by the embodiments of the present application comprises the following steps: acquiring a first adjustment operation for a first vertex of a projection picture in a projection correction page after trapezoidal correction, the first adjustment operation being used to indicate that the first vertex is moved by a first distance along a first direction; acquiring vertex coordinates of a light machine image corresponding to the projection picture in response to the first adjustment operation; determining an analog imaging element outer frame corresponding to the light machine image and outer frame coordinates of the analog imaging element outer frame according to the vertex coordinates of the light machine image; the analog imaging element outer frame is a rectangular frame; determining a new light machine image used to correct the projection picture based on the first distance, the outer frame coordinates of the analog imaging element outer frame and a picture correction function; and performing projection according to the new light machine image to obtain a corrected projection picture. In the scheme, the vertex coordinates of the light machine image corresponding to the projection picture after trapezoidal correction are acquired, and the analog imaging element outer frame corresponding to the light machine image and the outer frame coordinates of the analog imaging element outer frame are further determined based on the vertex coordinates of the light machine image, so that the new light machine image used to correct the projection picture can be calculated according to the first distance by which the first vertex in the projection picture is moved along the first direction, the outer frame coordinates of the analog imaging element outer frame and the picture correction function, so as to perform image projection according to the obtained new light machine image. In this way, on the one hand, the picture after trapezoidal correction can be conveniently corrected, and the projection picture correction efficiency can be effectively improved; on the other hand, the picture correction function associated with the preset display ratio is introduced, so that the accuracy of the projection picture correction is improved, and the viewing experience of the user is improved.
[0208] The following embodiments will be used to specifically explain how to determine the analog imaging element outer frame corresponding to the light machine image and the outer frame coordinates of the analog imaging element outer frame according to the vertex coordinates of the light machine image.
[0209] Figure 10 Flowchart of the projection correction method provided by the embodiments of the present application Figure 2 Optionally, in the step S103, the analog imaging element outer frame corresponding to the light machine image and the outer frame coordinates of the analog imaging element outer frame can be determined according to the vertex coordinates of the light machine image, and the step can comprise the following steps:
[0210] S1001, calculating a side length parameter of the analog imaging element outer frame according to the vertex coordinates of the light machine image.
[0211] The length parameter of the outer frame of the analog imaging element includes a height parameter of the outer frame of the analog imaging element and a width parameter of the outer frame of the analog imaging element.
[0212] In the embodiment, the length parameter of the outer frame of the analog imaging element can be calculated according to the vertex coordinates of the optical-mechanical image.
[0213] The length parameter of the outer frame of the analog imaging element is calculated according to the vertex coordinates of the optical-mechanical image. Figure 11 The embodiment provides a detailed explanation of how to calculate the length parameter of the outer frame of the analog imaging element according to the vertex coordinates of the optical-mechanical image.
[0214] Figure 11 The projection correction method provided in the embodiment Figure 9 The step S1001 can further include the following steps.
[0215] S1101, determining an outer rectangle corresponding to the optical-mechanical image according to the vertex coordinates of the optical-mechanical image, the optical-mechanical image being a quadrangle and the outer rectangle being a rectangle matched with the quadrangle.
[0216] When the user performs trapezoidal correction on the initial projection picture, the optical-mechanical image corresponding to the projection picture is not a standard right trapezoid.
[0217] Optionally, the optical-mechanical image can be processed by the following method to obtain a standard right trapezoidal optical-mechanical image and an outer frame of an analog imaging element.
[0218] First, the outer rectangle corresponding to the optical-mechanical image can be determined according to the vertex coordinates of the optical-mechanical image. For example, Figure 12 The vertex coordinates of the optical-mechanical image are shown in the diagram. Figure 12 As shown in the diagram, the vertices of the optical-mechanical image are A, B, C and D, and the vertex coordinates of the optical-mechanical image are A (A_x_raw, A_y_raw), B (B_x_raw, B_y_raw), C (C_x_raw, C_y_raw) and D (D_x_raw, D_y_raw).
[0219] According to the vertex coordinates of the optical-mechanical image, the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum horizontal coordinate in the vertex of the optical-mechanical image are determined. The specific determination process is as follows:
[0220] short x_min= A_x_raw<D_x_raw?A_x_raw:D_x_raw;
[0221] short x_max=B_x_raw>C _x_raw?B_x_raw:C_x_raw;
[0222] short y_min = A_y_raw < D_y_raw? A_y_raw : D_y_raw;
[0223] short y_max = B_y_raw > C_y_raw? B_y_raw : C_y_raw;
[0224] At this time, the coordinates of the circumscribed rectangle corresponding to the light engine image can be determined according to the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum horizontal coordinate of the vertex of the light engine image.
[0225] S1102, determine the height parameter of the circumscribed rectangle as the height parameter of the simulation imaging element frame.
[0226] Optionally, the height of the circumscribed rectangle is taken as the height parameter of the "simulation imaging element frame", that is, px_y = short (y_max-y_min).
[0227] S1103, calculate the width parameter of the simulation imaging element frame according to the height parameter of the simulation imaging element frame and the preset display ratio.
[0228] Generally, when the projection picture is a 16:9 rectangular picture, the user has a better viewing angle effect when watching the projection picture. Therefore, in the embodiment, the preset display ratio is taken as an example of 16:9, that is, the ratio between the height parameter and the width parameter of the simulation imaging element frame conforms to the standard display ratio.
[0229] That is, after the height parameter of the simulation imaging element frame is determined, the width parameter of the simulation imaging element frame can be calculated according to the height parameter of the simulation imaging element frame and the preset display ratio, that is, px_x = short ((y_max-y_min)*16 / 9).
[0230] S1002, calculate the vertex coordinates of the simulation imaging element frame according to the side length parameter of the simulation imaging element frame.
[0231] On the basis of the above embodiment, after obtaining the height parameter px_y and the width parameter px_x of the simulation imaging element frame, the vertex coordinates of the simulation imaging element frame can be further calculated according to the "coordinates of the circumscribed rectangle corresponding to the light engine image" obtained above and the side length parameter of the simulation imaging element frame.
[0232] In the embodiment, in order to determine the uniqueness of the calculated vertex coordinates of the simulation imaging element frame, the extension direction of the simulation imaging element frame can also be determined according to the vertex coordinates of the light engine image.
[0233] This will be specifically explained through the following embodiments on how to determine the extension direction of the outer frame of the simulated imaging element based on the vertex coordinates of the optical engine image.
[0234] Figure 13 Flow schematic of the projection correction method provided by the embodiment of the present application Figure 4 ; Optionally, the optical engine image is a quadrilateral. Before the above step S103: According to the vertex coordinates of the optical engine image, determine the outer frame of the simulated imaging element corresponding to the optical engine image and the outer frame coordinates of the outer frame of the simulated imaging element, the method of the present application may further include:
[0235] S1301. Obtain the vertical coordinates of the two vertices of the specified side of the quadrilateral.
[0236] Among them, taking Figure 12 as an example, the two vertices of the specified side of the quadrilateral are respectively the A point and the B point indicated in Figure 12 , that is, A(A_x_raw, A_y_raw), B(B_x_raw, B_y_raw). This specified side can be understood as the top side of the quadrilateral.
[0237] S1302. Determine the extension direction of the outer frame of the simulated imaging element according to the vertical coordinates of the two vertices of the specified side.
[0238] Based on the above embodiments, it is possible to further determine whether the A point is lower than the B point according to the vertical coordinates of the A point and the B point, that is, to judge whether A_y_raw >= B_y_raw? It mainly includes the following two situations, specifically as follows:
[0239] First, if A_y_raw >= B_y_raw, that is, the A point is lower than the B point, then it can be determined that the extension direction of the outer frame of the simulated imaging element is along the direction of the B point, that is, the upper left point coordinates of the outer frame of the simulated imaging element are A'(A'_x = x_min, A'_y = y_min).
[0240] Second, if A_y_raw < B_y_raw, that is, the A point is higher than the B point, then the extension direction of the outer frame of the simulated imaging element is along the direction of the a point, that is, the upper left point coordinates of the outer frame of the simulated imaging element are A'(A'_x = x_max - px_x, A'_y = y_min), and the process of determining the outer frame of the simulated imaging element corresponding to the optical engine image and the outer frame coordinates of the outer frame of the simulated imaging element according to the vertex coordinates of the optical engine image is completed.
[0241] This will be specifically explained through the following embodiments on how to determine a new optical engine image for correcting a projection screen based on the first distance, the outer frame coordinates of the simulated imaging element, and a screen correction function associated with a preset display ratio.
[0242] Figure 14Flowchart of projection correction method provided for embodiments of the present application Figure 5 ; Figure 15 The correction diagram of the projection picture provided for the embodiments of the present application. Optionally, in the step S104, the new light machine image for correcting the projection picture is determined based on the first distance, the picture correction function associated with the preset display ratio and the outer frame coordinates of the outer frame of the simulation imaging element, and includes the following steps.
[0243] S1401, obtaining a second distance of the first vertex in the projection picture relative to the initial vertex corresponding to the first vertex in the initial projection picture, the initial projection picture being the projection picture before the trapezoidal correction.
[0244] Optionally, the second distance of the first vertex in the projection picture relative to the initial vertex corresponding to the first vertex in the initial projection picture is calculated according to the longitudinal coordinate of the first projection vertex in the light machine image, and a fitting function of the vertex of the light machine image and the vertex in the initial projection picture.
[0245] Optionally, the vertex coordinate information of the light machine image in the projection light machine and the vertex coordinate information of the projection picture have a preset one-to-one correspondence, so that Figure 15 As shown in the table, assuming that the corresponding relationship between the coordinate information (the longitudinal coordinate is marked as a_y) of the first vertex of the projection picture and the coordinate information (the longitudinal coordinate is marked as A_y) of the first projection point of the light machine image in the projection light machine is A_y=f(a_y), under the premise that the coordinate of the first projection point of the light machine image is known, that is, under the premise that A_y is known, only the function a_y=f(A_y) needs to be obtained, and then the longitudinal coordinate a_y of the first projection vertex can be calculated from the coordinate of the first projection vertex according to the function.
[0246] Since the formula A_y=f(a_y) used is relatively complex, the function a_y=f(A_y) calculated by using matlab is more complex. Therefore, a polynomial fitting method is selected to obtain the function a_y=f(A_y) after collecting sufficient data. Assuming that the resolution of the projection picture is (1920*1080), the a_y(0, 1080] is brought into the formula A_y=f(a_y) to obtain sufficient data, and then a fitting curve is obtained by using polynomial fitting. The fitting function is used in the code, and the results show that the difference between the a_y values before and after is only a few pixels, and the picture almost has no mutation.
[0247] Wherein, the fitting function of a_y=f(A_y) obtained can be as follows: a_y=(2*pow(10,-12)*pow(A_y,5)-2*pow(10,-9)*pow(A_y,4)+pow(10,-6)*pow(A_y,3)+pow(10,-4)*pow(A_y,2)+1.0091*(A_y)+0.9359).
[0248] Here, the longitudinal coordinate of the first projection point of the optical-mechanical image is substituted into the fitting function of a_y=f(A_y) above, and the a_y obtained is the second distance of the first vertex in the projection picture relative to the corresponding initial vertex in the initial projection picture.
[0249] Alternatively, in an embodiment, referring to Figure 12 It can be seen that there is a certain distance l1 between the outer frame of the analog imaging element (i.e. the imaginary DMD outer frame) and the outer frame of the imaging element (i.e. the real DMD) in the y-axis direction (or can also be understood as the longitudinal direction), and therefore, in order to reduce the error, the longitudinal coordinate of the first projection point - l1 can be taken as A_y in the function of a_y=f(A_y) when calculating the second distance, so as to calculate the second distance.
[0250] In the embodiment, when it is needed to obtain Figure 15 the second distance of the first vertex a1 relative to the corresponding initial vertex a in the initial projection picture.
[0251] Therefore, the second distance aa1 of the first vertex a1 in the projection picture relative to the corresponding initial vertex a in the initial projection picture can be calculated according to the longitudinal coordinate A1_y of the first projection vertex A1 in the optical-mechanical image and the fitting function of a_y=f(A_y) above.
[0252] S1402, determine the total distance of movement based on the first distance and the second distance.
[0253] Alternatively, the total distance of movement aa2 of the first vertex in the initial projection picture in the correction process can be calculated according to the first distance a1a2 and the second distance aa1. The total distance of movement here can be understood as the cumulative step value of the first vertex in the projection picture relative to the corresponding initial vertex in the initial projection picture after responding to the first adjustment operation.
[0254] S1403, determine the coordinates of the effective projection area of the new light engine image according to the total moving distance, the frame coordinates of the frame of the simulation imaging element, and the picture correction function associated with the preset display ratio.
[0255] The picture correction function associated with the preset display ratio refers to the calculation formula of the four-point coordinates of the effective projection area of the new light engine image in the projection light engine. Here, taking the preset display ratio of 16:9 as an example, x=(total moving distance / 1080)*9 can be taken as a known number, which is brought into the calculation formula of the four-point coordinates of the effective projection area of the new light engine image in the projection light engine, so as to calculate the coordinates of the effective projection area of the new light engine image.
[0256] S1404, update the projection picture corresponding light engine image according to the coordinates of the effective projection area, to obtain a new light engine image for correcting the projection picture.
[0257] In an implementable manner, the pixel values of each pixel in the effective projection area can be adjusted correspondingly, that is, the pixel values of each pixel in the projection picture corresponding light engine image are updated, so that the imaging is changed from the original light engine image to the new light engine image, to obtain a new light engine image for correcting the projection picture.
[0258] The following embodiments will be used to specifically explain how to determine the coordinates of the effective projection area of the new light engine image according to the total moving distance, the frame coordinates of the frame of the simulation imaging element, and the picture correction function.
[0259] Figure 16 Flowchart of the projection correction method provided by the embodiments of the present application Figure 6 Optionally, continuing to refer to Figure 15 , the trapezoidal correction is a full-automatic trapezoidal correction, the shape of the effective projection area is a right trapezoid, and the effective projection area A2B2CD includes a first effective projection vertex A2 having a mapping relationship with the first vertex in the projection picture, and a second effective projection vertex B2 constituting a hypotenuse of the right trapezoid with the first effective projection vertex; the coordinates of the first effective projection vertex are A2(x1, d1), and the coordinates of the second effective projection vertex are B2(x2, d2); in the above step S1403: determining the coordinates of the effective projection area of the new light engine image according to the total moving distance, the frame coordinates of the frame of the simulation imaging element, and the picture correction function associated with the preset display ratio, comprising:
[0260] S1601, obtain a difference function of the horizontal coordinates of the second effective projection vertex calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm; the shortcut correction algorithm is associated with the picture correction function.
[0261] It should be noted that when the user enters the "shortcut trapezoidal correction mode" after using the trapezoidal correction, the horizontal coordinate B2_x value of the second projection vertex is calculated according to the vertical coordinate A1_y value of the first projection vertex of the light machine image corresponding to the projection picture, but because the calculation method of "trapezoidal correction" is different from the calculation method of "shortcut trapezoidal correction", the calculated B2_x value will have a certain difference, so directly determining the coordinates of the effective projection area of the new light machine image according to the total moving distance, the picture correction function associated with the outer frame coordinates of the simulated imaging element outer frame and the preset display ratio will cause the problem of picture mutation of the corrected projection picture.
[0262] Therefore, in the present embodiment, in order to solve the above-mentioned picture mutation problem, the present application proposes that the difference function ∆Bx=f(Ay) of the horizontal coordinates of the second effective projection vertex calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm can be obtained by multiple experimental fitting methods.
[0263] S1602, obtaining the coordinates of the first projection vertex in the light machine image which has a mapping relationship with the first vertex, and the coordinates of the first projection vertex are A1(x0, y0).
[0264] S1603, determining the difference value of the horizontal coordinates of the second effective projection vertex calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm based on the vertical coordinates of the first projection vertex and the difference function.
[0265] Optionally, the difference value ∆B2_x of the horizontal coordinates of the second effective projection vertex can be calculated based on the vertical coordinates A1_y of the first projection vertex in the light machine image and the difference function ∆Bx=f(Ay).
[0266] S1604, determining the calculation coordinates of the horizontal coordinates of the second effective projection vertex according to the total moving distance, the picture correction function associated with the outer frame coordinates of the simulated imaging element outer frame and the preset display ratio.
[0267] Optionally, the calculation coordinates of the horizontal coordinates of the second effective projection vertex B2 can be further calculated according to the total moving distance, the picture correction function associated with the outer frame coordinates of the simulated imaging element outer frame and the preset display ratio, and are denoted as B2_cx.
[0268] S1605, determining the coordinates of the second effective projection vertex according to the calculation coordinates of the horizontal coordinates of the second effective projection vertex and the difference value of the horizontal coordinates of the second effective projection vertex.
[0269] In the present embodiment, the calculation coordinates B2_cx of the horizontal coordinates of the second effective projection vertex and the difference value ∆B2_x of the horizontal coordinates of the second effective projection vertex are added to calculate the coordinates B2_x of the second effective projection vertex, i.e. B2_x=B2_cx+∆B2_x.
[0270] Figure 17 Flowchart of the projection correction method provided for the embodiments of the present application Figure 7 ; Figure 18 Schematic diagram of the first fitting function of the longitudinal coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex under the full-automatic keystone correction algorithm provided for the embodiments of the present application, Figure 19 Schematic diagram of the second fitting function of the longitudinal coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex under the fast correction algorithm provided for the embodiments of the present application. Optionally, before the step S1601 of obtaining the difference function of the horizontal coordinate of the second effective projection vertex calculated by the full-automatic keystone correction algorithm and the fast correction algorithm, the method further comprises:
[0271] S1701, obtaining the first fitting function of the longitudinal coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex under the full-automatic keystone correction algorithm.
[0272] In the present embodiment, a plurality of machines in the “AK” correction mode at various angles with the wall can be obtained by the experimental method to obtain a plurality of groups of (Ay, Bx) data, so that the first fitting function B2_x=f1(A1_y) of the longitudinal coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex can be fitted as shown in Figure 13
[0273] S1702, obtaining the second fitting function of the longitudinal coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex under the fast correction algorithm.
[0274] In the present embodiment, the same experimental method as described above is adopted, and a plurality of machines in the “fast correction algorithm” correction mode at various angles with the wall are collected to obtain the first fitting function B2_x=f2(A1_y) of the longitudinal coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex as shown in Figure 14
[0275] S1703, obtaining the difference function of calculating the horizontal coordinate of the second effective projection vertex based on the first fitting function and the second fitting function.
[0276] On the basis of the above-mentioned embodiments, the first fitting function B2_x=f1(A1_y) and the second fitting function B2_x=f2(A1_y) can be subtracted, that is, the difference function ∆B2_x=f1(A1_y)-f2(A1_y) of the horizontal coordinate of the second effective projection vertex can be obtained.
[0277] For example, the obtained fitting function B2_x=f1(A1_y) can be as follows: f1(A1_y) = -5E-11x 5 +7E-08x 4 -4E-05x 3 +0.0066x 2 -1.7351x+3837.9.
[0278] The fitting function of the obtained second fitting function B2_x=f2(A1_y) can be as follows: f2(A1_y)=-4E-0.6x 3 -0.0002x 2 -1.0825x+3834.3.
[0279] So that when entering the "fast trapezoidal correction" mode, B2_cx and ∆B2_x are calculated according to A1_y, the coordinates of the compensated second effective projection vertex B2_x=B2_cx+∆B2_x are obtained, and fast trapezoidal correction is performed based on the coordinates of the compensated second effective projection vertex B2_x to obtain the corrected projection picture, so that the mutation of the obtained corrected projection picture is reduced, and only B and C points have horizontal mutations, and the mutations of A and D points are generally within a few dozen pixels (4K resolution), effectively solving the problem of mutations in the corrected projection picture.
[0280] Figure 20 Flowchart of the projection correction method provided by the embodiments of the present application Figure 8 Optionally, the light machine image is a quadrilateral, and the step S105 of projecting according to the new light machine image to obtain the corrected projection picture comprises:
[0281] S2001, generating an animation image associated with the light machine image and the new light machine image according to the vertex coordinates of the light machine image, the coordinates of the effective projection region, and a preset animation algorithm.
[0282] It should be noted that the embodiments provided above use a pure fitting method, which can reduce the mutation degree of the obtained corrected projection picture, but cannot reduce the mutations of A and D points.
[0283] Therefore, in the present application, the vertex coordinates of the light machine image corresponding to the obtained projection image, the coordinates of the effective projection region, and the preset animation algorithm are used to generate an animation image associated with the light machine image and the new light machine image, which realizes the process of using animation on the basis of fitting, so that the animation is used to make a gradual change between the light machine image and the calculated new light machine image, so that the user hardly feels the mutation of the corrected projection picture. In this way, when the user adjusts the projection picture, the picture has already been switched from the light machine image to the "fast correction" mode, and there will be no mutation in the subsequent adjustment.
[0284] S2002, projecting according to the animation image to obtain the corrected projection picture.
[0285] Based on the above embodiments, the generated animation image can be projected. Since the animation image is composed of multiple frames, the frames in the animation image are projected at certain intervals. This makes it so that when the optical engine image is switched to a new optical engine image, the user can hardly feel the sudden change in the corrected projection image, effectively reducing the sudden change in the projection image seen by the user, thereby improving the user's viewing experience.
[0286] The following examples will explain in detail how to determine the coordinates of the second effective projection vertex based on the difference between the calculated coordinates of the second effective projection vertex and the second effective projection vertex.
[0287] Figure 21 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 9 Optionally, the optomechanical image is a quadrilateral. In step S1605 above: the coordinates of the second effective projection vertex are determined according to the difference between the calculated coordinates of the second effective projection vertex and the second effective projection vertex, including:
[0288] S2101, Obtain the target correction coefficient.
[0289] It is worth noting that the target correction coefficient is calculated based on the abscissa of the second projection vertex of the optical engine image. In other words, the target correction coefficient is already obtained when the user first enters the quick and convenient correction mode, and it will not change in subsequent adjustments.
[0290] In this embodiment, the target correction coefficient can be obtained through the following calculation method.
[0291] Figure 22 A flowchart illustrating the projection correction method provided in the embodiments of this application. Figure 10 Optionally, the steps for obtaining the target correction coefficient described above include:
[0292] S2201. According to the second distance and the preset mapping calculation formula between the vertices of the optical-mechanical image and the vertices in the initial projection image, the calculated coordinates of the abscissa of the second projection vertex in the optical-mechanical image are obtained.
[0293] Alternatively, it can be based on the above. Figure 15 The first vertex a1 in the initial projection image shown corresponds to the second distance aa1 that the initial vertex a moved, and the calculation formula of the four points of the new optical engine image mentioned above are used to calculate the calculated coordinates B1_cx of the horizontal coordinate of the second projection vertex in the optical engine image.
[0294] The following is the formula for calculating the coordinates of point 'a' in the new optical engine image:
[0295] a”_x= (B<half_r_angle);
[0296] a”_x= (B>half_r_angle).
[0297] For this embodiment, similar to the formula in the above is the second distance aa1, and a”_x is the calculated coordinate B1_cx of the horizontal coordinate of the second projection vertex, that is, the formula in the above is a known quantity, and the value of a”_x is calculated, that is, the calculated coordinate B1_cx of the horizontal coordinate of the second projection vertex in the light machine image is calculated.
[0298] S2202, according to the calculated coordinate of the horizontal coordinate of the second projection vertex, the actual horizontal coordinate of the second projection vertex in the light machine image, and the difference value of the horizontal coordinate of the second projection vertex, the target correction factor is calculated.
[0299] Wherein, the first initial projection vertex in the initial light machine image corresponding to the initial projection picture can be calculated according to the second distance and the preset mapping calculation formula of the vertex of the light machine image and the vertex in the initial projection picture, and then the difference value of the horizontal coordinate of the second projection vertex in the light machine image is calculated according to the first initial projection vertex in the initial light machine image and the difference function of the horizontal coordinate of the second effective projection vertex in the effective projection area corresponding to the corrected projection picture.
[0300] In this embodiment, the actual horizontal coordinate B1_x of the second projection vertex in the light machine image and the calculated coordinate B1_cx of the horizontal coordinate of the second projection vertex are first subtracted to calculate the deviation of the actual horizontal coordinate B1_x_raw of the second projection vertex in the light machine image and the calculated coordinate B1_cx; Then, the ratio of the deviation of the actual horizontal coordinate B1_x of the second projection vertex in the light machine image and the calculated coordinate B1_cx to the difference value of the horizontal coordinate of the second projection vertex is calculated, which is called target correction factor, which can also be recorded as: correct_factor=(B1_x_raw-B1_cx) / ∆B1_x.
[0301] Wherein, correct_factor is the target correction factor.
[0302] S2102, based on the target correction factor, the calculated coordinate of the horizontal coordinate of the second effective projection vertex and the difference value of the horizontal coordinate of the second effective projection vertex, the coordinates of the second effective projection vertex are determined.
[0303] In the embodiment, in order to completely eliminate the abrupt change of the obtained corrected projection picture, the coordinate of the second effective projection vertex can also be determined by the following manner.
[0304] The following embodiment will be specifically explained, how to determine the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate.
[0305] Figure 23 The flowchart of the projection correction method provided by the embodiment Figure 10 One; optionally, the determination of the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate, comprises:
[0306] S2301, detecting whether the target correction coefficient is greater than or equal to the correction threshold.
[0307] The correction threshold is a threshold preset according to correction experience.
[0308] S2302, if yes, triggering the determination of the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate.
[0309] It is worth noting that if the optical machine image is the image after AK correction, the calculated target correction coefficient will not exceed the correction threshold. Only when the user corrects the projection picture amplitude too large in the manual mode, the threshold value will be exceeded.
[0310] Therefore, in the present application, it is proposed that if the calculated target correction coefficient correct_factor is greater than or equal to the correction threshold, the determination of the coordinate of the second effective projection vertex based on the target correction coefficient, the calculated coordinate of the second effective projection vertex horizontal coordinate and the difference value of the second effective projection vertex horizontal coordinate is triggered to further determine the coordinate B2_x of the second effective projection vertex, so that the target correction coefficient can be used to correct the coordinate of the second effective projection vertex, and the problem of abrupt change of the picture after the fast trapezoidal correction compatible with AK can be effectively solved.
[0311] By using the embodiment, when the user uses the "fast trapezoidal correction" after AK correction or after manually fine-tuning the AK picture, there is no picture abrupt change, and the problem of abrupt change of the corrected projection picture is effectively solved.
[0312] When the manual correction picture amplitude is too large, the corrected projection picture will have part of the abrupt change, and the user manually adjusts the amplitude too large, the optical machine image on the DMD is random. In order to be able to correct on the optical machine image, this degree of abrupt change is inevitable.
[0313] In another case, if the detected target correction coefficient is less than the correction threshold, triggering the execution of the calculation of the difference value between the calculated coordinate based on the horizontal coordinate of the second effective projection vertex and the horizontal coordinate of the second effective projection vertex, to determine the coordinate of the second effective projection vertex.
[0314] In the implementation of the above-mentioned embodiments, the following phenomenon may occur: when the AK obstacle avoidance or manual adjustment of the picture amplitude is too far to the right, the picture is adjusted to the right using the "shortcut keystone correction", and in the process of moving A point in the optical machine image along the left edge of the analog imaging element frame to the right, B point first moves along the upper edge to the upper right point and then remains stationary, and when A point moves along the upper edge of the analog imaging element frame to the right, B point moves downward again.
[0315] Figure 24 A schematic diagram of the change of the optical machine image in the projection picture correction process provided by the embodiments of the present application is shown in FIG. 6. Figure 24 As shown in FIG. 6, when the AK obstacle avoidance or manual adjustment of the picture amplitude is too large, the optical machine image is too close to the right side, resulting in that the calculated part of the analog imaging element frame exceeds the physical boundary of the real DMD.
[0316] B point in the optical machine image should move to B' point along the upper boundary of the analog imaging element frame and then move downward, but since Bx exceeds the boundary, B point remains stationary first, and then moves downward when Bx is equal to B'x.
[0317] Therefore, the solution provided by the present application is that: the proportion of the picture after Bx exceeds the boundary is distorted, and the value of Bx needs to be limited, and the subsequent calculation is stopped when Bx exceeds the boundary, so that the user cannot continue to adjust the picture to the right, which can effectively solve the problem of abnormal picture using the shortcut keystone correction after manual adjustment of the picture amplitude is too large.
[0318] The following describes the device, electronic equipment, storage medium and the like for executing the projection correction method provided by the present application. The specific implementation process and technical effects are described above, and will not be described here.
[0319] Figure 25 A structural schematic diagram of a projection correction device provided by the embodiments of the present application is shown in FIG. 7. The function implemented by the projection correction device corresponds to the steps of the above-mentioned method. The device can be understood as the above-mentioned projection optical machine, or a server, or a processor of the server, or a component independent of the above-mentioned server or processor and realizing the function of the present application under the control of the server. Optionally, the device can include: an acquisition module 2500, a response module 2501, a determination module 2502, and a projection module 2503.
[0320] The acquisition module 2500 is configured to acquire, in the trapezoidal-corrected projection correction page, a first adjustment operation for a first vertex of a projection picture, the first adjustment operation being used to indicate that the first vertex is moved by a first distance along a first direction.
[0321] The response module 2501 is configured to acquire, in response to the first adjustment operation, vertex coordinates of a light machine image corresponding to the projection picture.
[0322] The determination module 2502 is configured to determine, according to the vertex coordinates of the light machine image, an analog imaging element outer frame corresponding to the light machine image and outer frame coordinates of the analog imaging element outer frame, wherein the analog imaging element outer frame is a rectangular frame; and determine a new light machine image used to correct the projection picture based on the first distance, the outer frame coordinates of the analog imaging element outer frame and a picture correction function.
[0323] The projection module 2503 is configured to perform projection according to the new light machine image to obtain a corrected projection picture.
[0324] Optionally, the determination module 2502 is further configured to:
[0325] calculate a side length parameter of the analog imaging element outer frame according to the vertex coordinates of the light machine image;
[0326] calculate vertex coordinates of the analog imaging element outer frame according to the side length parameter of the analog imaging element outer frame.
[0327] Optionally, the determination module 2502 is further configured to:
[0328] determine a circumscribed rectangle corresponding to the light machine image according to the vertex coordinates of the light machine image, wherein the light machine image is a quadrilateral and the circumscribed rectangle is a rectangle matched with the quadrilateral;
[0329] determine a height parameter of the circumscribed rectangle as a height parameter of the analog imaging element outer frame;
[0330] calculate a width parameter of the analog imaging element outer frame according to the height parameter of the analog imaging element outer frame and a preset display ratio.
[0331] Optionally, the light machine image is a quadrilateral, and the acquisition module is further configured to acquire vertical coordinates of two vertices of a specified side of the quadrilateral.
[0332] The determination module is further configured to determine an extension direction of the analog imaging element outer frame according to the vertical coordinates of the two vertices of the specified side.
[0333] Optionally, the determination module 2502 is further configured to:
[0334] acquire a second distance by which the first vertex moves relative to an initial vertex corresponding to the first vertex in an initial projection picture, the initial projection picture being the projection picture before trapezoidal correction;
[0335] determine the total distance of movement based on the first distance and the second distance;
[0336] determine the coordinates of the effective projection area of the new light machine image according to the total distance of movement, the frame coordinates of the frame of the simulated imaging element, and the picture correction function;
[0337] update the projection picture corresponding light machine image according to the coordinates of the effective projection area to obtain a new light machine image for correcting the projection picture.
[0338] Optionally, the trapezoidal correction is full-automatic trapezoidal correction, the shape of the effective projection area is a right trapezoid, and the effective projection area includes a first effective projection vertex having a mapping relationship with the first vertex and a second effective projection vertex constituting a hypotenuse of the right trapezoid with the first effective projection vertex; the coordinates of the first effective projection vertex are (x1, d1), and the coordinates of the second effective projection vertex are (x2, d2);
[0339] The determining module 2502 is further configured to:
[0340] obtain a difference function of the horizontal coordinate of the second effective projection vertex calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm; the shortcut correction algorithm is associated with the picture correction function;
[0341] obtain the coordinates of a first projection vertex in the light machine image, the first projection vertex having a mapping relationship with the first vertex; the coordinates of the first projection vertex are (x0, d0);
[0342] determine a difference value of the horizontal coordinate of the second effective projection vertex currently calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm based on the vertical coordinate of the first projection vertex and the difference function;
[0343] determine a calculation coordinate of the horizontal coordinate of the second effective projection vertex according to the total distance of movement, the frame coordinates of the frame of the simulated imaging element, and the picture correction function;
[0344] determine the coordinates of the second effective projection vertex according to the calculation coordinate of the horizontal coordinate of the second effective projection vertex and the difference value of the horizontal coordinate of the second effective projection vertex.
[0345] Optionally, before obtaining the difference function of the horizontal coordinate of the second effective projection vertex calculated by the full-automatic trapezoidal correction algorithm and the shortcut correction algorithm, the obtaining module 2500 is further configured to:
[0346] obtain a first fitting function of the vertical coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex under the full-automatic trapezoidal correction algorithm; obtain a second fitting function of the vertical coordinate of the first projection vertex and the horizontal coordinate of the second effective projection vertex under the shortcut correction algorithm; and obtain the difference function of the horizontal coordinate of the second effective projection vertex based on the first fitting function and the second fitting function.
[0347] Optionally, the light machine image is a quadrangle, and the projection module 2503 is further configured to:
[0348] generate an animation image associated with the light machine image and the new light machine image according to the vertex coordinates of the light machine image, the coordinates of the effective projection area, and a preset animation algorithm;
[0349] project according to the animation image to obtain a corrected projection picture.
[0350] Optionally, the obtaining module 2500 is further configured to obtain a target correction coefficient.
[0351] The determining module 2502 is further configured to determine the coordinates of the second effective projection vertex based on the target correction coefficient, the calculated coordinates of the second effective projection vertex horizontal coordinate, and the difference value of the second effective projection vertex horizontal coordinate.
[0352] Optionally, the determining module 2502 is further configured to:
[0353] detect whether the target correction coefficient is greater than or equal to a correction threshold value;
[0354] If yes, trigger the determination of the coordinates of the second effective projection vertex based on the target correction coefficient, the calculated coordinates of the second effective projection vertex horizontal coordinate, and the difference value of the second effective projection vertex horizontal coordinate.
[0355] Optionally, the obtaining module 2500 is further configured to:
[0356] calculate the calculated coordinates of the second projection vertex horizontal coordinate in the light machine image according to the second distance and a preset mapping calculation formula of the vertex of the light machine image and the vertex in the initial projection picture;
[0357] calculate the target correction coefficient according to the calculated coordinates of the second projection vertex horizontal coordinate, the actual horizontal coordinates of the second projection vertex in the light machine image, and the difference value of the second projection vertex horizontal coordinate.
[0358] Optionally, the obtaining module 2500 is further configured to:
[0359] calculate the second distance of the movement of the first vertex in the projection picture relative to the corresponding initial vertex in the initial projection picture according to the vertical coordinates of the first projection vertex in the light machine image and a preset fitting function of the vertex of the light machine image and the vertex in the initial projection picture.
[0360] The above device is used to execute the method provided by the foregoing embodiments, and has similar implementation principles and technical effects, which will not be described here.
[0361] The modules above can be one or more integrated circuits configured to implement the methods above, for example, one or more Application Specific Integrated Circuits (ASICs), or, one or more Digital Singnal Processors (DSPs), or, one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element can be a general purpose processor, such as a Central Processing Unit (CPU) or other processor that can invoke program code. For another example, the modules can be integrated together to be implemented in the form of a system-on-a-chip (SOC).
[0362] The modules above can be connected or communicate with each other via wired or wireless connections. The wired connections can include metal cables, optical cables, hybrid cables, etc., or any combination thereof. The wireless connections can include connections in the form of LAN, WAN, Bluetooth, ZigBee, or NFC, etc., or any combination thereof. Two or more modules can be combined into a single module, and any one module can be divided into two or more units. It can be clearly understood by those skilled in the art that, for the convenience and brevity of description, the specific working processes of the system and device described above can refer to the corresponding processes in the method embodiments, which will not be described herein.
[0363] It should be noted that the modules above can be one or more integrated circuits configured to implement the methods above, for example, one or more Application Specific Integrated Circuits (ASICs), or, one or more Digital Singnal Processors (DSPs), or, one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element can be a general purpose processor, such as a Central Processing Unit (CPU) or other processor that can invoke program code. For another example, the modules can be integrated together to be implemented in the form of a system-on-a-chip (SOC).
[0364] Figure 26A structural schematic diagram of an electronic device is provided for an embodiment of the present application. The device can be integrated in a terminal device or a chip of the terminal device. The terminal device can be a computing device with a data processing function.
[0365] The device includes a processor 2601 and a memory 2602.
[0366] The memory 2602 is configured to store a program. The processor 2601 invokes the program stored in the memory 2602 to execute the above-mentioned method embodiments. The specific implementation manners and technical effects are similar, and thus will not be described here again.
[0367] The memory 2602 stores program codes. When the program codes are executed by the processor 2601, the processor 2601 performs various steps in the projection correction method according to various exemplary embodiments of the present application described in the “Exemplary Method” part of the present specification.
[0368] The processor 2601 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute each method, step and logic block disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor for execution, or be executed by a combination of hardware and software modules in the processor.
[0369] The memory 2602, as a non-volatile computer readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory can include at least one type of storage medium, for example, can include flash memory, hard disk, multimedia card, card 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 storage, magnetic disk, optical disk, etc. The memory is any other medium capable of carrying or storing desired program codes in the form of instructions or data structures and capable of being accessed by a computer, but is not limited thereto. The memory 2602 in the embodiments of the present application can also be a circuit or any other device capable of realizing a storage function, used for storing program instructions and / or data.
[0370] Optionally, the present application also provides a program product, for example, a computer readable storage medium, comprising a program which, when executed by a processor, is used to execute the above-mentioned method embodiments.
[0371] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the described apparatus embodiments are merely schematic, and the division of the units is merely a logical function division, and there can be another division manner in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the logical couplings or communication connections between different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0372] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments of the present application.
[0373] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software functional units.
[0374] The integrated unit realized in the form of software functional units can be stored in a computer readable storage medium. The software functional units stored in a storage medium include a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.
Claims
1. A projection correction method, characterized in that, include: In the projection correction page after trapezoidal correction, a first adjustment operation is obtained for the first vertex of the projected image. The first adjustment operation is used to indicate that the first vertex is moved a first distance along a first direction. In response to the first adjustment operation, the vertex coordinates of the optical engine image corresponding to the projected image are obtained; wherein, the optical engine image refers to the DMD image input to the projection optical engine and used to project the projected image; Based on the vertex coordinates of the optical-mechanical image, the outer frame of the simulated imaging element corresponding to the optical-mechanical image and the coordinates of the outer frame of the simulated imaging element are determined; wherein, the outer frame of the simulated imaging element is a rectangle; the outer frame of the simulated imaging element is a rectangle with a preset display ratio; Based on the first distance, the frame coordinates of the simulated imaging element and the preset display ratio, a new optical engine image is determined for correcting the projected image using a screen correction function. The corrected projected image is obtained by projecting the new optical image onto the screen. The step of determining the outline of the analog imaging element corresponding to the optical-mechanical image and the coordinates of the outline of the analog imaging element based on the vertex coordinates of the optical-mechanical image includes: Calculate the side length parameter of the outer frame of the simulated imaging element based on the vertex coordinates of the optomechanical image; The vertex coordinates of the outer frame of the simulated imaging element are calculated based on the side length parameters of the outer frame.
2. The method according to claim 1, characterized in that, The step of calculating the side length parameter of the simulated imaging element's outer frame based on the vertex coordinates of the optomechanical image includes: Based on the vertex coordinates of the optical-mechanical image, the circumscribed rectangle corresponding to the optical-mechanical image is determined, wherein the optical-mechanical image is a quadrilateral and the circumscribed rectangle is a rectangle that matches the quadrilateral; The height parameter of the circumscribed rectangle is determined as the height parameter of the outer frame of the analog imaging element; The width parameter of the simulated imaging element's outer frame is calculated based on the height parameter of the frame and the preset display ratio.
3. The method according to claim 1, characterized in that, The optomechanical image is quadrilateral. Before determining the outer frame of the analog imaging element corresponding to the optomechanical image and the outer frame coordinates of the analog imaging element based on the vertex coordinates of the optomechanical image, the method further includes: Obtain the ordinates of two vertices on a specified side of the quadrilateral; The extension direction of the outer frame of the simulated imaging element is determined based on the ordinates of the two vertices of the specified edge.
4. The method according to claim 1, characterized in that, The determination of a new optical engine image for correcting the projected image based on the image correction function relating the first distance, the outer frame coordinates of the simulated imaging element, and a preset display ratio includes: Obtain the second distance that the first vertex has moved relative to the initial vertex corresponding to the first vertex in the initial projection image, wherein the initial projection image is the projection image before the trapezoidal correction; The total distance traveled is determined based on the first distance and the second distance. The coordinates of the effective projection area of the new optical engine image are determined based on the total moving distance, the coordinates of the outer frame of the simulated imaging element, and the image correction function associated with the preset display ratio. Based on the coordinates of the effective projection area, update the optical engine image corresponding to the projected image to obtain a new optical engine image for correcting the projected image.
5. The method according to claim 4, characterized in that, The trapezoidal correction is a fully automatic trapezoidal correction. The effective projection area is a right trapezoid. The effective projection area includes a first effective projection vertex that has a mapping relationship with the first vertex, and a second effective projection vertex that forms the hypotenuse of the right trapezoid with the first effective projection vertex. The coordinates of the first effective projection vertex are (x1, d1), and the coordinates of the second effective projection vertex are (x2, d2). The step of determining the coordinates of the effective projection area of the new optical engine image based on the total moving distance, the coordinates of the outer frame of the simulated imaging element, and a screen correction function related to a preset display ratio includes: Obtain the difference function between the fully automatic keystone correction algorithm and the quick correction algorithm to calculate the abscissa of the second effective projection vertex; the quick correction algorithm is associated with the image correction function related to the preset display ratio; Obtain the coordinates of the first projection vertex in the optical-mechanical image that has a mapping relationship with the first vertex, where the coordinates of the first projection vertex are (x0, d0). Based on the ordinate of the first projected vertex and the difference function, the difference value of the abscissa of the second effective projected vertex calculated by the fully automatic trapezoidal correction algorithm and the quick correction algorithm is determined. The calculated coordinates of the second effective projection vertex are determined based on the total moving distance, the frame coordinates of the simulated imaging element, and the screen correction function that relates to the preset display ratio. The coordinates of the second effective projection vertex are determined based on the difference between the calculated coordinates of the second effective projection vertex and the calculated coordinates of the second effective projection vertex.
6. The method according to claim 5, characterized in that, Before obtaining the difference function of the second effective projected vertex abscissa calculated by the fully automatic trapezoidal correction algorithm and the quick correction algorithm, the method further includes: Obtain a first fitting function for the ordinate of the first projected vertex and the abscissa of the second effective projected vertex under the fully automatic trapezoidal correction algorithm; Obtain a second fitting function for the ordinate of the first projected vertex and the abscissa of the second effective projected vertex under the fast correction algorithm; Based on the first fitting function and the second fitting function, a difference function for calculating the x-coordinate of the second effective projection vertex is obtained.
7. The method according to claim 4, characterized in that, The optomechanical image is quadrilateral, and the projection based on the new optomechanical image to obtain a corrected projection image includes: Based on the vertex coordinates of the optical-mechanical image, the coordinates of the effective projection area, and a preset animation algorithm, an animated image associated with the optical-mechanical image and the new optical-mechanical image is generated. The animated image is projected to obtain a corrected projected image.
8. The method according to claim 5, characterized in that, Determining the coordinates of the second effective projection vertex based on the difference between the calculated coordinates of the second effective projection vertex and the calculated coordinates of the second effective projection vertex includes: Obtain the target correction coefficient; The coordinates of the second effective projection vertex are determined based on the target correction coefficient, the calculated coordinates of the second effective projection vertex, and the difference between the second effective projection vertex's abscissa and the abscissa of the second effective projection vertex.
9. The method according to claim 8, characterized in that, The step of determining the coordinates of the second effective projection vertex based on the target correction coefficient, the calculated coordinates of the second effective projection vertex, and the difference between the second effective projection vertex's abscissa and the abscissa of the second effective projection vertex includes: Detect whether the target correction coefficient is greater than or equal to the correction threshold; If so, the calculation of the coordinates based on the target correction coefficient, the x-coordinate of the second effective projected vertex, and the difference value of the x-coordinate of the second effective projected vertex is triggered to determine the coordinates of the second effective projected vertex.
10. The method according to claim 8, characterized in that, The acquisition of the target correction coefficient includes: Based on the second distance and the preset mapping formula between the vertices of the optical engine image and the vertices in the initial projection image, the calculated coordinates of the abscissa of the second projection vertex in the optical engine image are obtained; The target correction coefficient is calculated based on the calculated coordinates of the second projection vertex, the actual coordinates of the second projection vertex in the optomechanical image, and the difference value of the second projection vertex's coordinates.
11. The method according to claim 5, characterized in that, The step of obtaining the second distance that the first vertex has moved relative to the initial vertex corresponding to the first vertex in the initial projection image includes: Based on the ordinate of the first projected vertex in the optical-mechanical image and the fitting function between the vertices of the optical-mechanical image and the vertices in the initial projection image, the second distance that the first vertex in the projection image moves relative to the initial vertex corresponding to the first vertex in the initial projection image is calculated.
12. A projection correction device, characterized in that, The device includes: The acquisition module is used to acquire a first adjustment operation for the first vertex of the projected image in the projection correction page after trapezoidal correction. The first adjustment operation is used to indicate that the first vertex is moved a first distance along a first direction. A response module is used to respond to the first adjustment operation and obtain the vertex coordinates of the optical engine image corresponding to the projected image; wherein, the optical engine image refers to the DMD image input to the projection optical engine and used to project the projected image; The determining module is used to determine the outer frame of the simulated imaging element corresponding to the optical-mechanical image and the outer frame coordinates of the simulated imaging element based on the vertex coordinates of the optical-mechanical image; wherein the outer frame of the simulated imaging element is a rectangle; and to determine a new optical-mechanical image for correcting the projected image based on the first distance, the outer frame coordinates of the simulated imaging element, and a screen correction function relating to a preset display ratio; wherein the outer frame of the simulated imaging element is a rectangle with a preset display ratio. The projection module is used to project the new optical image to obtain a corrected projection image. The determining module is specifically used for: Calculate the side length parameter of the outer frame of the simulated imaging element based on the vertex coordinates of the optomechanical image; The vertex coordinates of the outer frame of the simulated imaging element are calculated based on the side length parameters of the outer frame.
13. An electronic device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the method as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, performs the steps of the method as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Projector and method for screen shape correction of projector
JP2012129594A
Image projecting method, projector and computer program
WO2006008792A1