WO2022183721A1 - Projection correction method and apparatus, and projection system - Google Patents

Projection correction method and apparatus, and projection system Download PDF

Info

Publication number
WO2022183721A1
WO2022183721A1 PCT/CN2021/120673 CN2021120673W WO2022183721A1 WO 2022183721 A1 WO2022183721 A1 WO 2022183721A1 CN 2021120673 W CN2021120673 W CN 2021120673W WO 2022183721 A1 WO2022183721 A1 WO 2022183721A1
Authority
WO
WIPO (PCT)
Prior art keywords
projection
information
projector
angle
offset
Prior art date
Application number
PCT/CN2021/120673
Other languages
French (fr)
Chinese (zh)
Inventor
冉鹏
王鑫
Original Assignee
成都极米科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 成都极米科技股份有限公司 filed Critical 成都极米科技股份有限公司
Publication of WO2022183721A1 publication Critical patent/WO2022183721A1/en

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B21/00Projectors or projection-type viewers; Accessories therefor
    • G03B21/14Details
    • G03B21/147Optical correction of image distortions, e.g. keystone
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B21/00Projectors or projection-type viewers; Accessories therefor
    • G03B21/14Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3141Constructional details thereof
    • H04N9/315Modulator illumination systems

Definitions

  • the present application relates to the field of projection technology, and in particular, to a projection correction method, device, and projection system.
  • the image projected by the projector should face the projection screen or projection wall as much as possible to ensure that the picture has no vertical or horizontal angle, so as to ensure the projection effect.
  • the projection direction and the projection surface will have vertical or horizontal clips. horn.
  • the projected image will present a non-rectangular trapezoid state. If you need to adjust the trapezoidal image to a standard rectangle, you need to use the projected keystone correction function.
  • the keystone correction of projection usually has two ways: manual and automatic.
  • Manual means that the user calls up the adjustment setting menu, and adjusts the shape of the picture by manually controlling the positions of several vertices of the projection picture;
  • the module collects the projection surface information, and automatically corrects the picture into a rectangle by automatically compensating for the projection position.
  • the image is adjusted by digital adjustment, that is, the pixel position of the projected picture is changed by software algorithm.
  • Embodiments of the present application provide a projection correction method, device, and projection system, so as to at least solve the technical problems of image quality loss and gray border effects in the related art when correcting a projected image.
  • a projection correction method is provided, the method is applied to a projection system, and the projection system at least includes: a projection light machine supporting an optical axis shift and a light projector for adjusting the light projection machine
  • a rotating mechanism for a projection direction the method includes: acquiring projection information of the light projector; acquiring attitude information of the light projector; determining the projection of the light projector according to the projection information and the attitude information
  • the rotation mechanism needs first angle information to rotate, and rotates the rotation mechanism according to the first angle information, wherein the projection surface is the plane where the target projection area is located ; Determine a first offset amount of the optical axis shift according to the first angle information, and perform an optical axis shift on the optical projector according to the first offset amount.
  • the projection information of the light projector is acquired through an image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface.
  • the attitude information of the light projector is acquired through an attitude sensor, and the attitude information includes at least attitude angle information of the light projector.
  • the plane equation determines the horizontal rotation angle of the optical projector, and the horizontal rotation angle is the rotation angle of the rotating mechanism in the horizontal direction when the projection direction of the optical projector is adjusted to face the projection surface.
  • the angle determine the vertical pitch angle of the light projector according to the plane equation or the attitude angle information, and the vertical pitch angle is when the projection direction of the light projector is adjusted to face the projection surface, the The rotation angle of the rotation mechanism in the vertical direction; the tilt angle of the projector is determined according to the attitude angle information, and the tilt angle is the rotation of the rotation mechanism when the projector is adjusted to be parallel to the horizontal plane.
  • the angle of ; the horizontal rotation angle, the vertical pitch angle and the tilt angle are used as the first angle information.
  • the rotating mechanism is driven to rotate by a first motor
  • rotating the rotating mechanism according to the first angle information includes: determining the number of rotation steps of the first motor and the rotation speed of the rotating mechanism.
  • a second correspondence between the rotation angle of the rotating mechanism and the offset of the optical axis according to the second correspondence and the first angle information, determine the When the projected image is adjusted to the target projection area, a first offset of the optical axis is performed, wherein the first offset includes a first horizontal offset in the horizontal direction and a first offset in the vertical direction. vertical offset.
  • the first horizontal offset is determined according to the second correspondence and the horizontal rotation angle
  • the first vertical offset is determined according to the second correspondence and the vertical pitch angle quantity.
  • the texture information of the projection surface is acquired, and the obstacle information in the target projection area is determined according to the texture information; according to the obstacle information, it is determined that the projection image is to be optically moved when avoiding obstacles.
  • the second offset of the axis is determined according to the texture information.
  • second angle information that the rotating mechanism needs to rotate includes that the rotating mechanism rotates in a horizontal direction.
  • the horizontal offset angle and the vertical offset angle rotated in the vertical direction; the second horizontal offset is determined according to the second corresponding relationship and the horizontal offset angle; according to the second corresponding relationship and the The vertical offset angle, which determines the second vertical offset.
  • the rotating mechanism needs third angle information of rotation, and rotates the rotating mechanism according to the third angle information.
  • the optical projector has a digital correction function, after the optical projector is optically shifted according to the first offset, a correction instruction of the target object is received, and the projection image is adjusted according to the correction instruction. Correction is performed, wherein the correction instruction is used to instruct the projection image to be corrected again by the digital correction function.
  • another projection correction method is provided, the method is applied to a projection system, the projection system at least includes: a projector light machine supporting an optical axis shift, and the method includes: acquiring projection information of the light projector; obtain the position information of the target projection area; determine the first offset of the optical axis shift in the light projector according to the projection information and the position information; The shift amount is used to optically shift the axis of the light projector, so as to adjust the projection image of the light projector to the target projection area.
  • the optical projector performs optical axis shifting to avoid obstacles on the projected image.
  • a projection correction device including: a first acquisition module, configured to acquire projection information of a light projector and obstacle information in a target projection area; a second acquisition module, Used to obtain the attitude information of the light projector; the first determination module is used to determine that when the projection direction of the light projector is adjusted to face the projection surface according to the projection information and the attitude information, the rotating mechanism needs The first angle information of the rotation, wherein the projection plane is the plane where the target projection area is located; the rotation module is used to rotate the rotation mechanism according to the first angle information; the second determination module is used to determining a first offset of the optical axis shift according to the first angle information, and determining a second offset of the optical axis shift according to the obstacle information; an axis shift module for determining the first offset amount and The second offset optically shifts the optical axis of the projector.
  • a projection system including: a projector light machine supporting an optical tilt-shift function, for projecting a projection image to a target projection area, wherein the optical tilt-shift function is used for is used to adjust the position of the projection screen; the image acquisition module is used to obtain the projection information of the light projector and the texture information of the projection surface, wherein the texture information is used to determine the obstacles in the target projection area information; an attitude information acquisition module for acquiring the attitude information of the projector, the attitude information including at least the attitude angle information of the projector; a calculation processing module for according to the projection information and the attitude The information determines the first angle information that the rotation module needs to rotate when the projection direction of the projector is adjusted to face the projection surface; the rotation module is used to adjust the projection of the projector according to the first angle information.
  • the projection direction is adjusted to face the projection surface.
  • a non-volatile storage medium is further provided, the non-volatile storage medium includes a stored program, wherein the non-volatile storage medium is controlled when the program runs The device where the storage medium is located executes the above-mentioned projection correction method.
  • the first angle information when the rotating mechanism is rotated is determined, and the rotating mechanism is rotated according to the first angle information, so that the The projection direction is adjusted to face the projection surface, and then, according to the first angle information, the first offset of the optical axis shift is calculated and the optical axis of the projector is optically shifted, so as to project the projection image to the target projection area; at the same time, obtain the target According to the obstacle information in the projection area, the second offset of the optical axis shift is determined according to the obstacle information, and the optical axis of the projector is optically shifted, so that the projection image avoids obstacles;
  • By scaling the projection image it can effectively solve the technical problems of image quality loss and gray border effect when correcting the projection image in the related art.
  • FIG. 1a is a schematic diagram of an optical horizontal axis shift of a light projector according to an embodiment of the present application
  • Fig. 1b is a schematic diagram of an optical vertical axis shift of an optical projector according to an embodiment of the present application
  • Fig. 2a is a schematic diagram of picture loss caused by a projection keystone correction according to the related art
  • Figure 2b is a schematic diagram of a gray border generated by a projection keystone correction according to the related art
  • FIG. 3 is a schematic structural diagram of a projection system according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a projection correction method according to an embodiment of the present application.
  • Fig. 5a is a schematic diagram of horizontal rotation projection of a light projector according to an embodiment of the present application.
  • Fig. 5b is a schematic diagram of vertical rotation projection of a light projector according to an embodiment of the present application.
  • 5c is a schematic diagram of oblique projection of a light projector according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of the relationship between the rotation angle of the projector and the screen offset according to an embodiment of the present application
  • FIG. 7 is a schematic diagram of a projection image avoiding obstacles according to an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a projection correction process according to an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another projection correction method according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a projection correction device according to an embodiment of the present application.
  • the optical projector Similar to the principle of camera tilt-shift, the optical projector also has an optical tilt-shift system. As long as the internal lens of the optical machine is shifted slightly, the projected optical image can be almost unchanged in shape. With a large displacement, the displacement change of the projected image caused by the displacement of the optical system of the lens is much larger than the displacement change of the projected image caused by the direct displacement of the projector to the same size.
  • the optical axis shift of the projector includes a horizontal axis and a vertical axis.
  • Figure 1a is a schematic diagram of the optical horizontal axis shift, wherein 11 represents the projector, 12 represents the projection surface, and 13 represents the projector on the projection surface.
  • Figure 1b is a schematic diagram of the optical vertical axis shift , where 11 represents the optical projector, 12 represents the projection surface, 13 represents the original projection image of the optical projector on the projection surface, and 15 represents the projected image on the projection surface after the optical projector is vertically shifted, which is shifted by the optical projector.
  • the axis system realizes a large displacement of the projection screen in the vertical direction.
  • Digitally correcting the displacement of the image can be achieved by electronic zooming and zooming or controlling the pixel point displacement, but at the cost of losing brightness, resolution and image quality, and leaving gray borders when intercepting the undisplayed part, thus reducing the quality of the image.
  • the optical axis shift system can realize the physical displacement of the optical imaging picture without the position of the projector light machine through the precise movement of the complex optical lens group, so as to have no effect on the picture quality and brightness , which can be said to be a lossless image processing technology.
  • the image shape is generally adjusted by manually controlling the positions of several vertices of the projected image, or the projected image information is collected by an image acquisition module, and the projected image is automatically compensated for the projected image.
  • the picture is corrected into a rectangle.
  • an embodiment of the present application provides a projection system, the projection system at least includes: a projection light machine supporting optical axis shifting and a rotation mechanism for adjusting the projection direction of the projection light machine, so as to realize the projection image.
  • Optical lossless automatic keystone correction and adaptive correction for intelligent obstacle avoidance so as to optimize the image quality loss and gray border problems under projection digital keystone correction and digital adaptive correction.
  • FIG. 3 is a schematic structural diagram of an optional projection system according to an embodiment of the present application. As shown in FIG. 3 , the system includes the following modules:
  • the projector 30 supporting the optical axis-shift function is used to project the projection image to the target projection area, wherein the projection image can be shifted in the horizontal direction and the vertical direction through the optical axis-shift function, so as to realize the position of the projection image. Adjustment; usually, there is an optical-mechanical axis-shift motor control module in the projector, and the program controls the direction and offset of its axis-shift.
  • the image acquisition module 32 is used to obtain the projection information of the light projector and the texture information of the projection surface, wherein the texture information is used to determine the obstacle information in the target projection area; optionally, the image acquisition module includes a camera module or other Depth information measurement modules, such as tof (time of flight) modules, etc.
  • the attitude information acquisition module 34 is used to obtain the attitude information of the projector, and the attitude information includes at least the attitude angle information of the projector (usually the attitude caused by the plane of the object on which the projector is placed or the hoisting projector is not horizontal). angle); optionally, the attitude information acquisition module includes an IMU (Inertial Measurement Unit, that is, an inertial measurement unit) sensor such as a gyroscope or a G-Sensor (gravity sensor).
  • IMU Inertial Measurement Unit
  • gyroscope gyroscope
  • G-Sensor gravitation sensor
  • the computing processing module 36 includes units with computing processing capabilities such as MCU/CPU/GPU, etc., and is used to determine, according to the projection information and the attitude information, when adjusting the projection direction of the light projector to face the projection surface, the rotation module needs to rotate the first element. angle information;
  • the rotation module 38 is connected to the light projector 30 and is used to adjust the projection direction of the light projector to face the projection surface according to the first angle information; it is usually a mechanical rotation module, including a machine capable of adjusting up, down, left, right and tilt in six directions.
  • the structure and the drive motor module can drive the light projector to perform six-direction mechanical rotation through the program control motor to drive the rotation module.
  • an embodiment of the present application provides a projection correction method. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions, and, Although a logical order is shown in the flowcharts, in some cases steps shown or described may be performed in an order different from that herein.
  • FIG. 4 is a schematic flowchart of a projection correction method according to an embodiment of the present application. As shown in FIG. 4 , the method includes the following steps:
  • Step S402 obtaining projection information of the light projector.
  • the projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface, wherein the projection surface is the plane where the target projection area is located.
  • the projection image can be roughly projected into the target projection area, and then the projector projector projects the original projection image, or projects the specific image information that the image sensor needs to recognize (if the depth information sensor is used to collect data, no projection is required).
  • the projection image can also be displayed), at this time, if the projection direction of the projector is not directly facing the projection surface, the projection image may be a distorted trapezoid.
  • RGB camera modules or modules with depth information collection capabilities such as tof camera modules, multi-point tof modules or binocular cameras or structured light modules, etc., to collect the projected picture information or feature map information
  • projection information such as projection surface depth information for 3D reconstruction or calculation of projection attitude angle.
  • the texture information of the projection surface may also be acquired through the image acquisition module, and the obstacle information in the target projection area may be determined according to the texture information.
  • the texture information of the projection surface is captured by the camera to determine whether there are obstacles such as switches, sockets, murals, etc. in the target projection area. moving distance.
  • Step S404 acquiring attitude information of the projector.
  • the attitude information of the light projector can be obtained by using an attitude sensor, such as a gyroscope or other gravity sensor, and the attitude information includes at least attitude angle information of the light projector.
  • an attitude sensor such as a gyroscope or other gravity sensor
  • the attitude sensor can obtain the attitude angle of the projector, including its pitch angle and tilt angle in the vertical direction.
  • Step S406 according to the projection information and the attitude information, determine the first angle information that the rotating mechanism needs to rotate when the projection direction of the light projector is adjusted to face the projection surface, and rotate the rotating mechanism according to the first angle information, wherein the projection The face is the plane where the target projection area is located.
  • the first angle information includes: a horizontal rotation angle, a vertical pitch angle, and a tilt angle.
  • the first angle information can be determined through the following process:
  • Step S4061 determine the three-dimensional point cloud information and picture coordinate information of the projection surface according to the obtained projection information such as the projection picture information or the projection surface depth information, and the picture coordinate information can be the spatial coordinates of the four vertices of the projection picture, which is used to calculate the projection.
  • the plane equation of the face is used to calculate the projection.
  • Step S4062 perform plane fitting according to the obtained three-dimensional point cloud information and screen coordinate information, obtain the plane equation Fn of the projection surface, and calculate the normal vector n of the projection surface.
  • Step S4063 according to the plane equation Fn and the normal vector n, determine the horizontal rotation angle Ang_H of the light projector.
  • the schematic diagram is shown in Figure 5a, where 51 represents the projector, 52 represents the projection surface, 53 represents the trapezoidal projection screen of the projector on the projection surface, and 54 represents the angle Ang_H that rotates the projector in the horizontal direction.
  • the resulting orthographic rectangular projection screen is obtained.
  • Step S4064 determine the vertical pitch angle Ang_V of the light projector according to the plane equation Fn and the normal vector n, and the vertical pitch angle Ang_V is the angle at which the rotating mechanism rotates in the vertical direction when the projection direction of the light projector is adjusted to face the projection surface
  • the schematic diagram is shown in Figure 5b, wherein 51 represents the projector, 52 represents the projection surface, 55 represents the trapezoidal projection screen of the projector on the projection surface, and 56 represents the projector after the projector is rotated in the vertical direction by the angle Ang_V
  • the obtained orthographic rectangular projection picture; optionally, the vertical pitch angle Ang_V may also be determined according to the obtained attitude angle information of the projector.
  • Step S4065 Determine the inclination angle Ang_Z of the light projector according to the attitude angle information.
  • the inclination angle Ang_Z is the angle at which the rotating mechanism rotates when the light projector is adjusted to be parallel to the horizontal plane.
  • the schematic diagram is shown in Figure 5c, wherein 51 denotes Light projector, 52 represents the projection surface, 57 is the oblique projection image of the projector on the projection surface, 58 is the rectangular projection image obtained by rotating the projector by the angle Ang_Z to make it parallel to the horizontal plane.
  • the rotating mechanism may be rotated according to the first angle information.
  • the rotating mechanism is driven to rotate by a first motor, and the first motor may be a DC motor or a stepping motor.
  • the first corresponding relationship between the number of rotation steps of the first motor and the rotation angle of the rotating mechanism may be determined first; then the first motor may be determined according to the first corresponding relationship and the first angle information The required rotation direction and the number of rotation steps in the corresponding direction; and then control the first motor to drive the rotation mechanism to rotate according to the rotation direction and the number of rotation steps.
  • the first correspondence between the number of rotation steps of the first motor and the rotation angle of the rotating mechanism needs to be established by collecting data in advance.
  • the first corresponding relationship determined above can be used to calculate that when the rotating mechanism rotates the angles Ang_H, Ang_V and Ang_Z in the horizontal, vertical and inclined directions, respectively, the first motor is in the horizontal direction. , the number of rotation steps in the vertical and oblique directions, and the program controls the first motor to drive the rotating mechanism to rotate, and the rotating mechanism drives the projector to rotate so that the projection direction of the projector is facing the projection surface.
  • the projection picture can be adjusted to a rectangle, but the projection picture at this time has deviate from the original target projection area, and it needs to be further adjusted by optical axis shifting. Adjust the position of the projected screen.
  • Step S408 determining a first offset of the optical axis shift according to the first angle information, and performing an optical axis shift on the projector according to the first offset.
  • the second correspondence between the rotation angle of the projector (ie the rotation angle of the rotation mechanism) and the offset of the optical axis may be determined first; according to the second correspondence and The first angle information determines the first offset of the optical axis shift when adjusting the projection image of the light projector to the target projection area. Since the first offset includes the first horizontal offset in the horizontal direction and the first vertical offset in the vertical direction, the first horizontal offset can be determined according to the second correspondence and the horizontal rotation angle; Two corresponding relationship and vertical pitch angle, determine the first vertical offset.
  • 61 represents the projector
  • 62 represents the projection surface
  • 63 represents the trapezoidal projection image of the projector in the target projection area of the projection surface
  • 64 represents the projector after being adjusted by the rotating mechanism.
  • the distance L between the two is the final screen offset of the horizontal shift axis. Due to the horizontal rotation angle Ang_H of the projector and the final screen offset L of the horizontal shift axis It has a relationship similar to a right triangle, so the final screen offset L of the horizontal axis shift is a linear relationship proportional to the rotation angle Ang_H.
  • a Ang_H and the optical machine horizontal axis shift motor offset Len_H can be established.
  • the texture information of the projection surface can be obtained.
  • the information determines the obstacle information in the target projection area; according to the obstacle information, when the projection image is determined to avoid the obstacle, a second offset of the optical axis shift is performed. Specifically, it is determined according to the acquired obstacle information that when the projection image is to avoid the obstacle, the second angle information that the rotating mechanism needs to rotate, the second angle information includes the horizontal offset angle rotated by the rotating mechanism in the horizontal direction and the horizontal offset angle of the rotating mechanism in the vertical direction.
  • the second horizontal offset is determined according to the second corresponding relationship and the horizontal offset angle
  • the second vertical offset is determined according to the second corresponding relationship and the vertical offset angle
  • the determined first Two horizontal offsets and a second vertical offset are used as second offsets.
  • the depth information of the projection surface is the vertical distance.
  • the shape of the obtained projection image may have some small shape distortion.
  • the projection information collection and plane equation calculation steps can be repeated, and the calculation needs to satisfy the projection image. Fine-tuned rotation angles Ang_H_1, Ang_V_1, Ang_Z_1 for the rectangle.
  • the second projection information and the second attitude information of the light projector are acquired; and the projection direction of the light projector is adjusted to face the projection surface according to the second projection information and the second attitude information.
  • the rotating mechanism needs the third angle information of rotation, and rotates the rotating mechanism according to the third angle information.
  • the physical correction of the projected image is completed, and finally the projected image in the target projection area is a rectangle without image quality loss and gray borders caused by digital correction, and obstacles are avoided at the same time.
  • the projector has a digital correction function, which changes the pixel position of the projected picture through a software algorithm.
  • a digital correction function which changes the pixel position of the projected picture through a software algorithm.
  • manual and automatic There are two ways: manual and automatic. Manually, that is, the user calls up the adjustment setting menu, and manually controls the position of several vertices of the projected picture. , to adjust the shape of the picture; the automatic mode is to collect the projection surface information through the image acquisition module, and automatically correct the picture into a rectangle by automatically compensating for the projection position.
  • a correction instruction of the target object may be received, and the projection screen may be corrected according to the correction instruction, wherein the correction instruction uses Correct the projected image again by the digital correction function as instructed.
  • the projector light machine can correct the projection picture according to the above-mentioned projection correction method, and can also correct the projection picture by using the digital correction function.
  • the rotating mechanism fails to automatically correct the projected image, or the user is still dissatisfied with the corrected projected image
  • the projected image can be re-corrected with the digital correction function according to the user's instruction by accepting the user's instruction. Correction.
  • D_H or D_V control optical machine according to D_H or D_V control optical machine to carry out horizontal or vertical axis shift fine-tuning, so that the projection picture is projected on the target projection area and avoid obstacles;
  • the first angle information when the rotating mechanism is rotated is determined, and the rotating mechanism is rotated according to the first angle information, so that the The projection direction is adjusted to face the projection surface, and then, according to the first angle information, the first offset of the optical axis shift is calculated and the optical axis of the projector is optically shifted, so as to project the projection image to the target projection area; at the same time, obtain the target According to the obstacle information in the projection area, the second offset of the optical axis shift is determined according to the obstacle information, and the optical axis of the projector is optically shifted, so that the projection image avoids obstacles;
  • By scaling the projection image it can effectively solve the technical problems of image quality loss and gray border effect when correcting the projection image in the related art.
  • another projection correction method is also provided, which can also run in the projection system of Embodiment 1.
  • the steps shown in the flowchart of the accompanying drawings can be performed in a computer system such as a set of computers. Executable instructions are executed in a computer system and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
  • FIG. 9 is a schematic flowchart of a projection correction method according to an embodiment of the present application. As shown in FIG. 9 , the method includes the following steps:
  • Step S902 obtaining projection information of the light projector.
  • the projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface, wherein the projection surface is the plane where the target projection area is located.
  • Step S904 obtaining the position information of the target projection area.
  • Step S906 determining the first offset of the optical shift axis in the light projector according to the projection information and the position information.
  • step S908 the optical axis of the optical projector is optically shifted according to the first offset, so as to adjust the projection image of the optical projector to the target projection area.
  • the obstacle information in the target projection area can also be obtained; the second offset of the optical axis shift in the light projector is determined according to the obstacle information; the projection is calculated according to the second offset
  • the opto-mechanical performs an optical tilt to move the projected image away from obstacles.
  • the projection image can be projected to the target projection area; at the same time, obtain the obstacle information in the target projection area, determine the second offset of the optical axis shift according to the obstacle information, and perform the optical axis shift of the projection light machine, so that the projection image can avoid obstacles.
  • a projection correction device for implementing the above-mentioned projection correction method is also provided.
  • the device includes a first acquisition module 100, a second acquisition module 102, a first determination module 104, The rotation module 106, the second determination module 108 and the axis shift module 110, wherein:
  • the first obtaining module 100 is used for obtaining the projection information of the light projector and the obstacle information in the target projection area.
  • the projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface, wherein the projection surface is the plane where the target projection area is located; the texture information of the projection surface is obtained through the image acquisition module, and the obstacle information in the target projection area is determined according to the texture information.
  • the second acquiring module 102 is configured to acquire attitude information of the projector.
  • the attitude information of the light projector can be acquired through an attitude sensor, such as a gyroscope or other gravity sensor, where the attitude information at least includes the inclination angle between the light projector and the horizontal plane.
  • an attitude sensor such as a gyroscope or other gravity sensor
  • the first determination module 104 is used to determine the first angle information that the rotation mechanism needs to rotate when the projection direction of the projector is adjusted to face the projection surface according to the projection information and the attitude information, wherein the projection surface is the location where the target projection area is located. flat.
  • the 3D point cloud information and picture coordinate information of the projection surface are determined according to the obtained projection information such as projection picture information or projection surface depth information; Perform plane fitting to obtain the plane equation of the projection surface; according to the plane equation, determine the horizontal rotation angle of the rotating mechanism in the horizontal direction when the projection direction of the light projector is adjusted to face the projection surface; according to the plane equation or the attitude of the light projector The information determines the vertical pitch angle of the rotating mechanism in the vertical direction when the projection direction of the projector is adjusted to face the projection surface; the tilt angle of the projector is determined according to the attitude information; the horizontal rotation angle, vertical pitch angle and tilt angle are determined. as the first angle information.
  • the rotation module 106 is configured to rotate the rotation mechanism according to the first angle information.
  • the first correspondence between the number of rotation steps of the first motor and the rotation angle of the rotation mechanism may be determined first; A corresponding relationship and the first angle information determine the required rotation direction of the first motor and the number of rotation steps in the corresponding direction; and then control the first motor to drive the rotating mechanism to rotate according to the rotation direction and the number of rotation steps.
  • the second determining module 108 is configured to determine the first offset of the optical axis shift according to the first angle information, and determine the second offset of the optical axis shift according to the obstacle information.
  • the second correspondence between the rotation angle of the projector and the offset of the optical axis shift may be determined first; according to the second correspondence and the first angle information, the projection When the projection image of the optical machine is adjusted to the target projection area, a first horizontal offset of the optical horizontal axis shift and a first vertical offset of the optical vertical axis are performed.
  • the second angle information includes the rotating mechanism rotating in the horizontal direction.
  • the determined second horizontal offset and the second vertical offset are used as the second offset.
  • the axis-shifting module 110 is used to perform optical axis-shifting of the projector according to the first offset and the second offset.
  • the optical horizontal axis shift is performed on the optical projector according to the first horizontal offset and the second horizontal offset;
  • the optical projector performs an optical vertical axis shift, so that the projection image is projected on the target projection area and avoids obstacles.
  • each module in the projection correction device in this embodiment of the present application corresponds to the implementation steps of the projection correction method in Embodiment 1. Since Embodiment 1 has been described in detail, some of the modules in this embodiment For details not shown, reference may be made to Embodiment 1, which will not be repeated here.
  • a non-volatile storage medium includes a stored program, wherein when the program runs, the device where the non-volatile storage medium is located is controlled to perform the above-mentioned projection correction method.
  • the device where the non-volatile storage medium is located is controlled to perform the following steps: obtaining the projection information of the light projector and the obstacle information in the target projection area; obtaining the attitude information of the light projector; according to the projection information and attitude information to determine the first angle information that the rotating mechanism needs to rotate when the projection direction of the projector is adjusted to face the projection surface, and rotate the rotating mechanism according to the first angle information, wherein the projection surface is where the target projection area is located the plane; determine the first offset of the optical axis shift according to the first angle information, determine the second offset of the optical axis shift according to the obstacle information, and determine the projection light according to the first offset and the second offset
  • the machine performs optical tilt shifting.
  • the device where the non-volatile storage medium is located is controlled to perform the following steps: obtaining the projection information of the light projector; obtaining the position information of the target projection area; The first offset amount of the corresponding optical axis shift in the target projection area; the optical axis shift is performed on the projector light machine according to the first offset amount.
  • the disclosed technical content can be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or integrated into Another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • Units illustrated as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

Abstract

The present application discloses a projection correction method and apparatus, and a projection system. The projection system at least comprises: a projector light engine supporting optical axis shifting and a rotary mechanism used for adjusting a projection direction of the projector light engine. The method comprises: obtaining projection information of a projector light engine; obtaining posture information of the projector light engine; determining, according to the projection information and the posture information, first angle information by which a rotary mechanism needs to rotate when a projection direction of the projector light engine is adjusted to directly face the plane where a target projection region is located, and rotating the rotary mechanism according to the first angle information; determining a first shift amount of optical axis shifting according to the first angle information, and performing optical axis shifting on the projector light engine according to the first shift amount. The present application solves the technical problem in the related art that loss of image quality and an unprojected edge effect are present during the correction of a projection picture.

Description

投影校正方法、装置及投影系统Projection correction method, device and projection system 技术领域technical field
本申请涉及投影技术领域,具体而言,涉及一种投影校正方法、装置及投影系统。The present application relates to the field of projection technology, and in particular, to a projection correction method, device, and projection system.
背景技术Background technique
在日常使用中,投影光机投射的图像应尽可能正对投影屏幕或投影墙面,保证画面没有垂直或水平方向的夹角,这样才能保证投影效果。但是,在实际使用中,往往有很多场景很难做到光机投射画面正对投影面,例如吊装或卧室使用的场景中,基本上投影投射方向与投影面都会有垂直方向或者水平方向的夹角。这种情况下,投射出的画面会呈现出非矩形的梯形状态,如果需要将梯形的画面调成标准的矩形,需要使用到投影的梯形校正功能。In daily use, the image projected by the projector should face the projection screen or projection wall as much as possible to ensure that the picture has no vertical or horizontal angle, so as to ensure the projection effect. However, in actual use, it is often difficult to make the optical-mechanical projection screen face the projection surface in many scenarios. For example, in the scenarios of ceiling installation or bedroom use, basically the projection projection direction and the projection surface will have vertical or horizontal clips. horn. In this case, the projected image will present a non-rectangular trapezoid state. If you need to adjust the trapezoidal image to a standard rectangle, you need to use the projected keystone correction function.
在相关技术中,投影的梯形校正通常有手动和自动两种方式,手动即用户调出调校设置菜单,通过手动控制投影画面几个顶点的位置,来调整画面形状;自动方式即通过图像采集模块采集到投影面信息,通过对投影位置的自动补偿来自动将画面校正成矩形。然而无论是手动还是自动,其都是采用数字调校的方式来调节图像,即通过软件算法改变投影出的画面像素位置,这种方式存在两个弊端:1)调节后的画面分辨率和画质会由于缩放而损失;2)调节后,正常显示内容会变小,但光机内部结构由于无法做到完全遮光,所以用户能看到正常画面内容四周有明显的灰边,画面调的越小,灰边越大。In the related art, the keystone correction of projection usually has two ways: manual and automatic. Manual means that the user calls up the adjustment setting menu, and adjusts the shape of the picture by manually controlling the positions of several vertices of the projection picture; The module collects the projection surface information, and automatically corrects the picture into a rectangle by automatically compensating for the projection position. However, whether it is manual or automatic, the image is adjusted by digital adjustment, that is, the pixel position of the projected picture is changed by software algorithm. There are two drawbacks in this method: 1) The adjusted picture resolution and image quality The quality will be lost due to zooming; 2) After adjustment, the normal display content will become smaller, but the internal structure of the optical machine cannot be completely blocked, so the user can see obvious gray borders around the normal screen content, and the more the screen is adjusted. Smaller, the larger the gray border.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种投影校正方法、装置及投影系统,以至少解决相关技术中对投影画面进行校正时存在画质损失及灰边效果的技术问题。Embodiments of the present application provide a projection correction method, device, and projection system, so as to at least solve the technical problems of image quality loss and gray border effects in the related art when correcting a projected image.
根据本申请实施例的一个方面,提供了一种投影校正方法,所述方法应用于投影系统,所述投影系统至少包括:支持光学移轴的投影光机和用于调整所述投影光机的投射方向的旋转机构,所述方法包括:获取所述投影光机的投影信息;获取所述投影光机的姿态信息;依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对投影面时,所述旋转机构需要旋转的第一角度信息,并依据所述第一角度信息对所述旋转机构进行旋转,其中,所述投影面为目标投影区域所在的平面;依据所述第一角度信息确定光学移轴的第一偏移量,并依据所述第一偏移量对所述投影光机进行光学移轴。According to an aspect of the embodiments of the present application, a projection correction method is provided, the method is applied to a projection system, and the projection system at least includes: a projection light machine supporting an optical axis shift and a light projector for adjusting the light projection machine A rotating mechanism for a projection direction, the method includes: acquiring projection information of the light projector; acquiring attitude information of the light projector; determining the projection of the light projector according to the projection information and the attitude information When the direction is adjusted to face the projection surface, the rotation mechanism needs first angle information to rotate, and rotates the rotation mechanism according to the first angle information, wherein the projection surface is the plane where the target projection area is located ; Determine a first offset amount of the optical axis shift according to the first angle information, and perform an optical axis shift on the optical projector according to the first offset amount.
可选地,通过图像采集模块获取所述投影光机的投影信息,所述投影信息包括以下至少之一:投影画面信息,特征图信息,所述投影面的深度信息。Optionally, the projection information of the light projector is acquired through an image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface.
可选地,通过姿态传感器获取所述投影光机的姿态信息,所述姿态信息至少包括所述投影光机的姿态角度信息。Optionally, the attitude information of the light projector is acquired through an attitude sensor, and the attitude information includes at least attitude angle information of the light projector.
可选地,依据所述投影信息确定所述投影面的三维点云信息及画面坐标信息;依据所述三维 点云信息及画面坐标信息进行平面拟合,得到所述投影面的平面方程;依据所述平面方程确定所述投影光机的水平旋转角度,所述水平旋转角度为将所述投影光机的投射方向调整至正对所述投影面时,所述旋转机构在水平方向上旋转的角度;依据所述平面方程或所述姿态角度信息确定所述投影光机的垂直俯仰角度,所述垂直俯仰角度为将所述投影光机的投射方向调整至正对所述投影面时,所述旋转机构在垂直方向上旋转的角度;依据所述姿态角度信息确定所述投影光机的倾斜角度,所述倾斜角度为将所述投影光机调整至平行于水平面时,所述旋转机构旋转的角度;将所述水平旋转角度、所述垂直俯仰角度以及所述倾斜角度作为所述第一角度信息。Optionally, determine the three-dimensional point cloud information and screen coordinate information of the projection surface according to the projection information; perform plane fitting according to the three-dimensional point cloud information and the screen coordinate information to obtain the plane equation of the projection surface; The plane equation determines the horizontal rotation angle of the optical projector, and the horizontal rotation angle is the rotation angle of the rotating mechanism in the horizontal direction when the projection direction of the optical projector is adjusted to face the projection surface. angle; determine the vertical pitch angle of the light projector according to the plane equation or the attitude angle information, and the vertical pitch angle is when the projection direction of the light projector is adjusted to face the projection surface, the The rotation angle of the rotation mechanism in the vertical direction; the tilt angle of the projector is determined according to the attitude angle information, and the tilt angle is the rotation of the rotation mechanism when the projector is adjusted to be parallel to the horizontal plane. The angle of ; the horizontal rotation angle, the vertical pitch angle and the tilt angle are used as the first angle information.
可选地,所述旋转机构是由第一电机驱动旋转的,依据所述第一角度信息对所述旋转机构进行旋转,包括:确定所述第一电机的转动步数与所述旋转机构的旋转角度之间的第一对应关系;依据所述第一对应关系及所述第一角度信息确定所述第一电机需要转动的方向以及在对应方向上的转动步数;依据所述转动的方向和转动步数控制所述第一电机驱动所述旋转机构进行旋转。Optionally, the rotating mechanism is driven to rotate by a first motor, and rotating the rotating mechanism according to the first angle information includes: determining the number of rotation steps of the first motor and the rotation speed of the rotating mechanism. The first correspondence between the rotation angles; according to the first correspondence and the first angle information, determine the direction in which the first motor needs to rotate and the number of rotation steps in the corresponding direction; according to the rotation direction and the number of rotation steps to control the first motor to drive the rotation mechanism to rotate.
可选地,确定所述旋转机构的旋转角度与光学移轴的偏移量之间的第二对应关系;依据所述第二对应关系及所述第一角度信息,确定将所述投影光机的投影画面调整至所述目标投影区域时,进行光学移轴的第一偏移量,其中,所述第一偏移量包括水平方向上的第一水平偏移量和垂直方向上的第一垂直偏移量。Optionally, determine a second correspondence between the rotation angle of the rotating mechanism and the offset of the optical axis; according to the second correspondence and the first angle information, determine the When the projected image is adjusted to the target projection area, a first offset of the optical axis is performed, wherein the first offset includes a first horizontal offset in the horizontal direction and a first offset in the vertical direction. vertical offset.
可选地,依据所述第二对应关系及所述水平旋转角度,确定所述第一水平偏移量;依据所述第二对应关系及所述垂直俯仰角度,确定所述第一垂直偏移量。Optionally, the first horizontal offset is determined according to the second correspondence and the horizontal rotation angle; the first vertical offset is determined according to the second correspondence and the vertical pitch angle quantity.
可选地,获取所述投影面的纹理信息,依据所述纹理信息确定所述目标投影区域中的障碍物信息;依据所述障碍物信息确定将所述投影画面避开障碍物时进行光学移轴的第二偏移量。Optionally, the texture information of the projection surface is acquired, and the obstacle information in the target projection area is determined according to the texture information; according to the obstacle information, it is determined that the projection image is to be optically moved when avoiding obstacles. The second offset of the axis.
可选地,依据所述障碍物信息确定将所述投影画面避开障碍物时,所述旋转机构需要旋转的第二角度信息,所述第二角度信息包括所述旋转机构在水平方向上旋转的水平偏移角度和在垂直方向上旋转的垂直偏移角度;依据所述第二对应关系及所述水平偏移角度,确定第二水平偏移量;依据所述第二对应关系及所述垂直偏移角度,确定第二垂直偏移量。Optionally, when it is determined according to the obstacle information that the projection image is to be avoided from an obstacle, second angle information that the rotating mechanism needs to rotate, and the second angle information includes that the rotating mechanism rotates in a horizontal direction. The horizontal offset angle and the vertical offset angle rotated in the vertical direction; the second horizontal offset is determined according to the second corresponding relationship and the horizontal offset angle; according to the second corresponding relationship and the The vertical offset angle, which determines the second vertical offset.
可选地,依据所述第一水平偏移量和所述第二水平偏移量对所述投影光机进行光学水平移轴;依据所述第一垂直偏移量和所述第二垂直偏移量对所述投影光机进行光学垂直移轴。Optionally, performing an optical horizontal shift on the projector according to the first horizontal offset and the second horizontal offset; and according to the first vertical offset and the second vertical offset The optical vertical axis of the projector is shifted by the shift amount.
可选地,获取所述投影光机的第二投影信息及第二姿态信息;依据所述第二投影信息和所述第二姿态信息确定将所述投影光机的投射方向调整至正对投影面时,所述旋转机构需要旋转的第三角度信息,并依据所述第三角度信息对所述旋转机构进行旋转。Optionally, acquiring the second projection information and second posture information of the light projector; determining and adjusting the projection direction of the light projector to face-to-face projection according to the second projection information and the second posture information When the surface is facing, the rotating mechanism needs third angle information of rotation, and rotates the rotating mechanism according to the third angle information.
可选地,所述投影光机具有数字校正功能,在依据所述第一偏移量对所述投影光机进行光学移轴后,接收目标对象的校正指令,依据所述校正指令对投影画面进行校正,其中,所述校正指令用于指示通过所述数字校正功能对所述投影画面再次进行校正。Optionally, the optical projector has a digital correction function, after the optical projector is optically shifted according to the first offset, a correction instruction of the target object is received, and the projection image is adjusted according to the correction instruction. Correction is performed, wherein the correction instruction is used to instruct the projection image to be corrected again by the digital correction function.
根据本申请实施例的另一方面,还提供了另一种投影校正方法,所述方法应用于投影系统,所述投影系统至少包括:支持光学移轴的投影光机,所述方法包括:获取所述投影光机的投影信息;获取目标投影区域的位置信息;依据所述投影信息和所述位置信息确定所述投影光机中光学移轴的第一偏移量;依据所述第一偏移量对所述投影光机进行光学移轴,以将所述投影光机的投影画面调整至所述目标投影区域。According to another aspect of the embodiments of the present application, another projection correction method is provided, the method is applied to a projection system, the projection system at least includes: a projector light machine supporting an optical axis shift, and the method includes: acquiring projection information of the light projector; obtain the position information of the target projection area; determine the first offset of the optical axis shift in the light projector according to the projection information and the position information; The shift amount is used to optically shift the axis of the light projector, so as to adjust the projection image of the light projector to the target projection area.
可选地,获取所述目标投影区域中的障碍物信息;依据所述障碍物信息确定所述投影光机中光学移轴的第二偏移量;依据所述第二偏移量对所述投影光机进行光学移轴,以将所述投影画面避开障碍物。Optionally, obtain obstacle information in the target projection area; determine a second offset of the optical axis shift in the projector according to the obstacle information; The optical projector performs optical axis shifting to avoid obstacles on the projected image.
根据本申请实施例的另一方面,还提供了一种投影校正装置,包括:第一获取模块,用于获取投影光机的投影信息及目标投影区域中的障碍物信息;第二获取模块,用于获取所述投影光机的姿态信息;第一确定模块,用于依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对投影面时,旋转机构需要旋转的第一角度信息,其中,所述投影面为所述目标投影区域所在的平面;旋转模块,用于依据所述第一角度信息对所述旋转机构进行旋转;第二确定模块,用于依据所述第一角度信息确定光学移轴的第一偏移量,依据所述障碍物信息确定光学移轴的第二偏移量;移轴模块,用于依据所述第一偏移量和所述第二偏移量对所述投影光机进行光学移轴。According to another aspect of the embodiments of the present application, a projection correction device is also provided, including: a first acquisition module, configured to acquire projection information of a light projector and obstacle information in a target projection area; a second acquisition module, Used to obtain the attitude information of the light projector; the first determination module is used to determine that when the projection direction of the light projector is adjusted to face the projection surface according to the projection information and the attitude information, the rotating mechanism needs The first angle information of the rotation, wherein the projection plane is the plane where the target projection area is located; the rotation module is used to rotate the rotation mechanism according to the first angle information; the second determination module is used to determining a first offset of the optical axis shift according to the first angle information, and determining a second offset of the optical axis shift according to the obstacle information; an axis shift module for determining the first offset amount and The second offset optically shifts the optical axis of the projector.
根据本申请实施例的另一方面,还提供了一种投影系统,包括:支持光学移轴功能的投影光机,用于将投影画面投射至目标投影区域,其中,所述光学移轴功能用于实现对投影画面的位置进行调整;图像采集模块,用于获取所述投影光机的投影信息及投影面的纹理信息,其中,所述纹理信息用于确定所述目标投影区域中的障碍物信息;姿态信息采集模块,用于获取所述投影光机的姿态信息,所述姿态信息至少包括所述投影光机的姿态角度信息;计算处理模块,用于依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对所述投影面时,旋转模块需要旋转的第一角度信息;旋转模块,用于依据所述第一角度信息将所述投影光机的投射方向调整至正对所述投影面。According to another aspect of the embodiments of the present application, a projection system is also provided, including: a projector light machine supporting an optical tilt-shift function, for projecting a projection image to a target projection area, wherein the optical tilt-shift function is used for is used to adjust the position of the projection screen; the image acquisition module is used to obtain the projection information of the light projector and the texture information of the projection surface, wherein the texture information is used to determine the obstacles in the target projection area information; an attitude information acquisition module for acquiring the attitude information of the projector, the attitude information including at least the attitude angle information of the projector; a calculation processing module for according to the projection information and the attitude The information determines the first angle information that the rotation module needs to rotate when the projection direction of the projector is adjusted to face the projection surface; the rotation module is used to adjust the projection of the projector according to the first angle information. The projection direction is adjusted to face the projection surface.
根据本申请实施例的另一方面,还提供了一种非易失性存储介质,所述非易失性存储介质包括存储的程序,其中,在所述程序运行时控制所述非易失性存储介质所在设备执行上述的投影校正方法。According to another aspect of the embodiments of the present application, a non-volatile storage medium is further provided, the non-volatile storage medium includes a stored program, wherein the non-volatile storage medium is controlled when the program runs The device where the storage medium is located executes the above-mentioned projection correction method.
在本申请实施例中,通过获取投影光机的投影信息及姿态信息,确定对旋转机构进行旋转时的第一角度信息,并依据第一角度信息对旋转机构进行旋转,从而将投影光机的投射方向调整至正对投影面,然后,依据第一角度信息计算光学移轴的第一偏移量并对投影光机进行光学移轴,从而将投影画面投射至目标投影区域;同时,获取目标投影区域中的障碍物信息,依据障碍物信息确定光学移轴的第二偏移量,并对投影光机进行光学移轴,从而使投影画面避开障碍物;由于本申请实施例中不涉及到对投影画面进行缩放,能够有效解决相关技术中对投影画面进行校正时存在画质损失及灰边效果技术问题。In the embodiment of the present application, by acquiring the projection information and attitude information of the light projector, the first angle information when the rotating mechanism is rotated is determined, and the rotating mechanism is rotated according to the first angle information, so that the The projection direction is adjusted to face the projection surface, and then, according to the first angle information, the first offset of the optical axis shift is calculated and the optical axis of the projector is optically shifted, so as to project the projection image to the target projection area; at the same time, obtain the target According to the obstacle information in the projection area, the second offset of the optical axis shift is determined according to the obstacle information, and the optical axis of the projector is optically shifted, so that the projection image avoids obstacles; By scaling the projection image, it can effectively solve the technical problems of image quality loss and gray border effect when correcting the projection image in the related art.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1a是根据本申请实施例的一种投影光机光学水平移轴的示意图;FIG. 1a is a schematic diagram of an optical horizontal axis shift of a light projector according to an embodiment of the present application;
图1b是根据本申请实施例的一种投影光机光学垂直移轴的示意图;Fig. 1b is a schematic diagram of an optical vertical axis shift of an optical projector according to an embodiment of the present application;
图2a是根据相关技术的一种投影梯形校正造成画面损失的示意图;Fig. 2a is a schematic diagram of picture loss caused by a projection keystone correction according to the related art;
图2b是根据相关技术的一种投影梯形校正产生灰边的示意图;Figure 2b is a schematic diagram of a gray border generated by a projection keystone correction according to the related art;
图3是根据本申请实施例的一种投影系统的结构示意图;3 is a schematic structural diagram of a projection system according to an embodiment of the present application;
图4是根据本申请实施例的一种投影校正方法的流程示意图;4 is a schematic flowchart of a projection correction method according to an embodiment of the present application;
图5a是根据本申请实施例的一种投影光机水平旋转投影的示意图;Fig. 5a is a schematic diagram of horizontal rotation projection of a light projector according to an embodiment of the present application;
图5b是根据本申请实施例的一种投影光机垂直旋转投影的示意图;Fig. 5b is a schematic diagram of vertical rotation projection of a light projector according to an embodiment of the present application;
图5c是根据本申请实施例的一种投影光机倾斜投影的示意图;5c is a schematic diagram of oblique projection of a light projector according to an embodiment of the present application;
图6是根据本申请实施例的一种投影光机旋转角度与画面偏移关系的示意图;6 is a schematic diagram of the relationship between the rotation angle of the projector and the screen offset according to an embodiment of the present application;
图7是根据本申请实施例的一种投影画面避开障碍物的示意图;7 is a schematic diagram of a projection image avoiding obstacles according to an embodiment of the present application;
图8是根据本申请实施例的一种投影校正过程的流程示意图;8 is a schematic flowchart of a projection correction process according to an embodiment of the present application;
图9是根据本申请实施例的另一种投影校正方法的流程示意图;9 is a schematic flowchart of another projection correction method according to an embodiment of the present application;
图10是根据本申请实施例的一种投影校正装置的结构示意图。FIG. 10 is a schematic structural diagram of a projection correction device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
为了更好地理解本申请实施例,对本申请实施例进行描述的过程中出现的部分名词或术语翻译解释如下:In order to better understand the embodiments of the present application, some nouns or terms that appear in the process of describing the embodiments of the present application are translated and explained as follows:
光学移轴:与相机移轴的原理类似,投影光机也有光学移轴的系统,只要将光机内部镜头进行较小的位移,即可使投射出的光学画面在形状几乎不变的情况下进行较大幅度的位移,这种镜头光学系统位移带来的投射画面的位移变化,远比直接将投影光机位移相同尺寸带来的投射画面位移变化要大的多。通常,投影光机的光学移轴包括水平移轴和垂直移轴,图1a为光学水平移轴的示意图,其中,11表示投影光机,12表示投影面,13为投影光机在投影面上的原始投影画面,14为投影光机水平移轴后在投影面上的投影画面,其通过光机移轴系统实现了投影画面在水平方向上的大幅位移;图1b为光学垂直移轴的示意图,其中,11表示投影光机,12表示投影面,13为投影光机在投影面上的原始投影画面,15为投影光机垂直移轴后在投影面上的投影画面,其通 过光机移轴系统实现了投影画面在垂直方向上的大幅位移。通过电子变焦缩放或者控制像素点位移可以实现图像的数字校正位移,但其代价是会损失亮度、分辨率及画质,而且在截留未显示的部分时会留下灰边,从而在画质上还要打折扣;而光学移轴系统通过复杂的光学镜片组的精密移动,可以做到在投影光机位置不动的情况下,来实现光学成像画面的物理位移,从而对画质和亮度没有影响,可以说是一种无损的画面处理技术。Optical tilt-shift: Similar to the principle of camera tilt-shift, the optical projector also has an optical tilt-shift system. As long as the internal lens of the optical machine is shifted slightly, the projected optical image can be almost unchanged in shape. With a large displacement, the displacement change of the projected image caused by the displacement of the optical system of the lens is much larger than the displacement change of the projected image caused by the direct displacement of the projector to the same size. Usually, the optical axis shift of the projector includes a horizontal axis and a vertical axis. Figure 1a is a schematic diagram of the optical horizontal axis shift, wherein 11 represents the projector, 12 represents the projection surface, and 13 represents the projector on the projection surface. 14 is the projection image on the projection surface after the optical machine is horizontally shifted, which realizes the large displacement of the projection image in the horizontal direction through the optical-mechanical axis shift system; Figure 1b is a schematic diagram of the optical vertical axis shift , where 11 represents the optical projector, 12 represents the projection surface, 13 represents the original projection image of the optical projector on the projection surface, and 15 represents the projected image on the projection surface after the optical projector is vertically shifted, which is shifted by the optical projector. The axis system realizes a large displacement of the projection screen in the vertical direction. Digitally correcting the displacement of the image can be achieved by electronic zooming and zooming or controlling the pixel point displacement, but at the cost of losing brightness, resolution and image quality, and leaving gray borders when intercepting the undisplayed part, thus reducing the quality of the image. But the optical axis shift system can realize the physical displacement of the optical imaging picture without the position of the projector light machine through the precise movement of the complex optical lens group, so as to have no effect on the picture quality and brightness , which can be said to be a lossless image processing technology.
实施例1Example 1
相关技术中,在对投影画面进行梯形校正时,一般通过手动控制投影画面几个顶点的位置来调整画面形状,或是以图像采集模块采集投影画面信息,通过对投影位置的自动补偿来将投影画面校正成矩形,这些方式都是采用数字调校的方式来调节图像,即通过软件算法改变投影出的画面像素位置,其有两个弊端:1)调节后的画面分辨率和画质会由于缩放而损失,以图2a为例,其中,21为标准投影画面,其横向像素为1920;22为出现梯形畸变时的投影画面,通过对底边缩放进行校正;23为校正过后得到的矩形画面,其横向像素小于1920,即造成了画质损失;2)调节后,正常显示内容会变小,但由于光机内部结构无法做到完全遮光,所以投影画面四周存在明显的灰边,如图2b所示,其中,24为校正之前的梯形投影画面,26为校正之后的矩形投影画面,25为产生的灰边,可以看出,当校正后的画面越小,产生的灰边越大。In the related art, when performing keystone correction on the projected image, the image shape is generally adjusted by manually controlling the positions of several vertices of the projected image, or the projected image information is collected by an image acquisition module, and the projected image is automatically compensated for the projected image. The picture is corrected into a rectangle. These methods use digital adjustment to adjust the image, that is, to change the pixel position of the projected picture through a software algorithm, which has two drawbacks: 1) The adjusted picture resolution and picture quality will be affected by Taking Figure 2a as an example, 21 is the standard projection image, and its horizontal pixel is 1920; 22 is the projection image when keystone distortion occurs, which is corrected by scaling the bottom edge; 23 is the rectangular image obtained after correction , the horizontal pixel is less than 1920, which causes the loss of image quality; 2) After adjustment, the normal display content will become smaller, but because the internal structure of the optical machine cannot completely block light, there are obvious gray borders around the projection screen, as shown in the figure 2b, where 24 is the trapezoidal projection image before correction, 26 is the rectangular projection image after correction, and 25 is the generated gray border. It can be seen that when the corrected screen is smaller, the generated gray border is larger.
为解决上述问题,本申请实施例提供了一种投影系统,该投影系统至少包括:支持光学移轴的投影光机和用于调整投影光机的投射方向的旋转机构,以实现对投影画面的光学无损自动梯形校正以及智能避开障碍物的自适应校正,从而优化投影数字梯形校正及数字自适应校正下的画质损失及灰边问题。In order to solve the above problems, an embodiment of the present application provides a projection system, the projection system at least includes: a projection light machine supporting optical axis shifting and a rotation mechanism for adjusting the projection direction of the projection light machine, so as to realize the projection image. Optical lossless automatic keystone correction and adaptive correction for intelligent obstacle avoidance, so as to optimize the image quality loss and gray border problems under projection digital keystone correction and digital adaptive correction.
图3是根据本申请实施例的一种可选的投影系统的结构示意图,如图3所示,该系包括以下模块:FIG. 3 is a schematic structural diagram of an optional projection system according to an embodiment of the present application. As shown in FIG. 3 , the system includes the following modules:
支持光学移轴功能的投影光机30,用于将投影画面投射至目标投影区域,其中,通过光学移轴功能可以对投影画面进行水平方向及垂直方向上的位移,以实现对投影画面的位置调整;通常,投影光机中具有光机移轴电机控制模块,由程序控制其移轴的方向和偏移量。The projector 30 supporting the optical axis-shift function is used to project the projection image to the target projection area, wherein the projection image can be shifted in the horizontal direction and the vertical direction through the optical axis-shift function, so as to realize the position of the projection image. Adjustment; usually, there is an optical-mechanical axis-shift motor control module in the projector, and the program controls the direction and offset of its axis-shift.
图像采集模块32,用于获取投影光机的投影信息及投影面的纹理信息,其中,纹理信息用于确定目标投影区域中的障碍物信息;可选地,图像采集模块包括摄像头模组或其他深度信息测量模组,例如tof(time of flight)模组等。The image acquisition module 32 is used to obtain the projection information of the light projector and the texture information of the projection surface, wherein the texture information is used to determine the obstacle information in the target projection area; optionally, the image acquisition module includes a camera module or other Depth information measurement modules, such as tof (time of flight) modules, etc.
姿态信息采集模块34,用于获取投影光机的姿态信息,该姿态信息至少包括投影光机的姿态角度信息(通常是由于放置投影光机的物体平面或者吊装投影光机并非水平所造成的姿态角度);可选地,姿态信息采集模块包括陀螺仪或G-Sensor(重力传感器)等IMU(Inertial Measurement Unit,即惯性测量单位)传感器等。The attitude information acquisition module 34 is used to obtain the attitude information of the projector, and the attitude information includes at least the attitude angle information of the projector (usually the attitude caused by the plane of the object on which the projector is placed or the hoisting projector is not horizontal). angle); optionally, the attitude information acquisition module includes an IMU (Inertial Measurement Unit, that is, an inertial measurement unit) sensor such as a gyroscope or a G-Sensor (gravity sensor).
计算处理模块36,包括MCU/CPU/GPU等具备计算处理能力的单元,用于依据投影信息和姿态信息确定将投影光机的投射方向调整至正对投影面时,旋转模块需要旋转的第一角度信息;The computing processing module 36 includes units with computing processing capabilities such as MCU/CPU/GPU, etc., and is used to determine, according to the projection information and the attitude information, when adjusting the projection direction of the light projector to face the projection surface, the rotation module needs to rotate the first element. angle information;
旋转模块38,与投影光机30相连,用于依据第一角度信息将投影光机的投射方向调整至正对投影面;通常为机械旋转模块,包括具备上下左右及倾斜六向调节能力的机械结构以及驱动电机模块,可以通过程序控制电机驱动旋转模块带动投影光机进行六向机械转动。The rotation module 38 is connected to the light projector 30 and is used to adjust the projection direction of the light projector to face the projection surface according to the first angle information; it is usually a mechanical rotation module, including a machine capable of adjusting up, down, left, right and tilt in six directions. The structure and the drive motor module can drive the light projector to perform six-direction mechanical rotation through the program control motor to drive the rotation module.
在上述运行环境下,本申请实施例提供了一种投影校正方法,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。Under the above operating environment, an embodiment of the present application provides a projection correction method. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions, and, Although a logical order is shown in the flowcharts, in some cases steps shown or described may be performed in an order different from that herein.
图4是根据本申请实施例的一种投影校正方法的流程示意图,如图4所示,该方法包括如下步骤:FIG. 4 is a schematic flowchart of a projection correction method according to an embodiment of the present application. As shown in FIG. 4 , the method includes the following steps:
步骤S402,获取投影光机的投影信息。Step S402, obtaining projection information of the light projector.
在本申请一些可选的实施例中,通过图像采集模块获取投影光机的投影信息,该投影信息包括以下至少之一:投影画面信息,特征图信息,投影面的深度信息,其中,投影面为目标投影区域所在的平面。In some optional embodiments of the present application, the projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface, wherein the projection surface is the plane where the target projection area is located.
具体地,可以先将投影画面大致投射在目标投影区域中,此时投影光机投射出原始投影画面,或者投射出图像传感器需要识别的特定图像信息(如果利用深度信息传感器采集数据,则无需投射出投影画面也可以),此时,如果投影光机的投射方向并非正对投影面,投射画面可能为带畸变的梯形。然后,使用RGB摄像头模组或是具有深度信息采集能力的模组,例如tof相机模组、多点tof模组或双目相机或结构光模组等,采集所投射的画面信息或特征图信息或投影面深度信息等用于三维重建或计算投影姿态角度的投影信息。Specifically, the projection image can be roughly projected into the target projection area, and then the projector projector projects the original projection image, or projects the specific image information that the image sensor needs to recognize (if the depth information sensor is used to collect data, no projection is required). The projection image can also be displayed), at this time, if the projection direction of the projector is not directly facing the projection surface, the projection image may be a distorted trapezoid. Then, use RGB camera modules or modules with depth information collection capabilities, such as tof camera modules, multi-point tof modules or binocular cameras or structured light modules, etc., to collect the projected picture information or feature map information Or projection information such as projection surface depth information for 3D reconstruction or calculation of projection attitude angle.
在本申请一些可选的实施例中,还可以通过图像采集模块获取投影面的纹理信息,依据纹理信息确定目标投影区域中的障碍物信息。例如,通过摄像头拍摄投影面的纹理信息,判断在目标投影区域内是否存在开关插座、壁画等障碍物,若存在则确定障碍物的位置信息,用于后续计算避开该障碍物所需要进行偏移的距离。In some optional embodiments of the present application, the texture information of the projection surface may also be acquired through the image acquisition module, and the obstacle information in the target projection area may be determined according to the texture information. For example, the texture information of the projection surface is captured by the camera to determine whether there are obstacles such as switches, sockets, murals, etc. in the target projection area. moving distance.
步骤S404,获取投影光机的姿态信息。Step S404, acquiring attitude information of the projector.
在本申请一些可选的实施例中,可以通过姿态传感器,例如陀螺仪或其他重力传感器,获取投影光机的姿态信息,该姿态信息至少包括投影光机的姿态角度信息,例如,当投影光机放置于倾斜的桌面上时,通过姿态传感器可以获取投影光机的姿态角度,包括其在垂直方向上的俯仰角度及倾斜角度。In some optional embodiments of the present application, the attitude information of the light projector can be obtained by using an attitude sensor, such as a gyroscope or other gravity sensor, and the attitude information includes at least attitude angle information of the light projector. When the projector is placed on an inclined desktop, the attitude sensor can obtain the attitude angle of the projector, including its pitch angle and tilt angle in the vertical direction.
步骤S406,依据投影信息和姿态信息确定将投影光机的投射方向调整至正对投影面时,旋转机构需要旋转的第一角度信息,并依据第一角度信息对旋转机构进行旋转,其中,投影面为目标投影区域所在的平面。Step S406, according to the projection information and the attitude information, determine the first angle information that the rotating mechanism needs to rotate when the projection direction of the light projector is adjusted to face the projection surface, and rotate the rotating mechanism according to the first angle information, wherein the projection The face is the plane where the target projection area is located.
在本申请一些可选的实施例中,第一角度信息包括:水平旋转角度、垂直俯仰角度以及倾斜角度,具体地,可以通过如下过程确定该第一角度信息:In some optional embodiments of the present application, the first angle information includes: a horizontal rotation angle, a vertical pitch angle, and a tilt angle. Specifically, the first angle information can be determined through the following process:
步骤S4061,依据获取的投影画面信息或投影面深度信息等投影信息来确定投影面的三维点云信息及画面坐标信息,该画面坐标信息可以是投影画面四个顶点的空间坐标,用于计算投影面的平面方程。Step S4061, determine the three-dimensional point cloud information and picture coordinate information of the projection surface according to the obtained projection information such as the projection picture information or the projection surface depth information, and the picture coordinate information can be the spatial coordinates of the four vertices of the projection picture, which is used to calculate the projection. The plane equation of the face.
步骤S4062,依据得到的三维点云信息及画面坐标信息进行平面拟合,得到投影面的平面方程Fn,并计算投影面的法向量n。Step S4062, perform plane fitting according to the obtained three-dimensional point cloud information and screen coordinate information, obtain the plane equation Fn of the projection surface, and calculate the normal vector n of the projection surface.
步骤S4063,依据平面方程Fn及法向量n,确定投影光机的水平旋转角度Ang_H,水平旋转角度Ang_H为将投影光机的投射方向调整至正对投影面时,旋转机构在水平方向上旋转的角度,其示意图如图5a所示,其中,51表示投影光机,52表示投影面,53为投影光机在投影面上的梯形投影画面,54为将投影光机在水平方向上旋转角度Ang_H后得到的正投矩形投影画面。Step S4063, according to the plane equation Fn and the normal vector n, determine the horizontal rotation angle Ang_H of the light projector. The schematic diagram is shown in Figure 5a, where 51 represents the projector, 52 represents the projection surface, 53 represents the trapezoidal projection screen of the projector on the projection surface, and 54 represents the angle Ang_H that rotates the projector in the horizontal direction. The resulting orthographic rectangular projection screen is obtained.
步骤S4064,依据平面方程Fn及法向量n确定投影光机的垂直俯仰角度Ang_V,垂直俯仰角度Ang_V为将投影光机的投射方向调整至正对投影面时,旋转机构在垂直方向上旋转的角度,其示意图如图5b所示,其中,51表示投影光机,52表示投影面,55为投影光机在投影面上的梯形投影画面,56为将投影光机在垂直方向上旋转角度Ang_V后得到的正投矩形投影画面;可选地,也可以依据获取的投影光机姿态角度信息确定垂直俯仰角度Ang_V。Step S4064, determine the vertical pitch angle Ang_V of the light projector according to the plane equation Fn and the normal vector n, and the vertical pitch angle Ang_V is the angle at which the rotating mechanism rotates in the vertical direction when the projection direction of the light projector is adjusted to face the projection surface , the schematic diagram is shown in Figure 5b, wherein 51 represents the projector, 52 represents the projection surface, 55 represents the trapezoidal projection screen of the projector on the projection surface, and 56 represents the projector after the projector is rotated in the vertical direction by the angle Ang_V The obtained orthographic rectangular projection picture; optionally, the vertical pitch angle Ang_V may also be determined according to the obtained attitude angle information of the projector.
步骤S4065,依据姿态角度信息确定投影光机的倾斜角度Ang_Z,倾斜角度Ang_Z为将投影光机调整至平行于水平面时,旋转机构所旋转的角度,其示意图如图5c所示,其中,51表示投影光机,52表示投影面,57为投影光机在投影面上的倾斜投影画面,58为将投影光机旋转角度Ang_Z使其平行于水平面后得到的正投矩形投影画面。Step S4065: Determine the inclination angle Ang_Z of the light projector according to the attitude angle information. The inclination angle Ang_Z is the angle at which the rotating mechanism rotates when the light projector is adjusted to be parallel to the horizontal plane. The schematic diagram is shown in Figure 5c, wherein 51 denotes Light projector, 52 represents the projection surface, 57 is the oblique projection image of the projector on the projection surface, 58 is the rectangular projection image obtained by rotating the projector by the angle Ang_Z to make it parallel to the horizontal plane.
在确定了第一角度信息之后,可以依据第一角度信息对旋转机构进行旋转。通常,旋转机构是由第一电机驱动旋转的,该第一电机可以是直流电机,也可以是步进电机。在本申请一些可选的实施例中,可以先确定第一电机的转动步数与旋转机构的旋转角度之间的第一对应关系;然后依据第一对应关系及第一角度信息确定第一电机需要转动的方向以及在对应方向上的转动步数;再依据转动的方向和转动步数控制第一电机驱动旋转机构进行旋转。After the first angle information is determined, the rotating mechanism may be rotated according to the first angle information. Usually, the rotating mechanism is driven to rotate by a first motor, and the first motor may be a DC motor or a stepping motor. In some optional embodiments of the present application, the first corresponding relationship between the number of rotation steps of the first motor and the rotation angle of the rotating mechanism may be determined first; then the first motor may be determined according to the first corresponding relationship and the first angle information The required rotation direction and the number of rotation steps in the corresponding direction; and then control the first motor to drive the rotation mechanism to rotate according to the rotation direction and the number of rotation steps.
具体地,第一电机的转动步数与旋转机构的旋转角度之间的第一对应关系需要提前采集数据建立,一种可选的实施方案如下:假设第一电机在水平方向的转动步数Hx与旋转机构在水平方向的实际旋转角度Hy之间的关系为线性,则有Hy=a*Hx+b,其中,a和b是采集实际的电机与旋转机构转动效果计算得到的;当然,实际的旋转角度与转动步数的关系也可能是非线性关系,此时,可以通过预先采集测定的数据集来拟合Hy=f(Hx)。同理,也可以采集数据拟合第一电机在垂直方向的转动步数Vx与旋转机构在垂直方向的实际旋转角度Vy之间的关系为Vy=c*Vx+d或Vy=f(Vx);拟合第一电机在倾斜方向的转动步数Zx与旋转机构在倾斜方向的实际旋转角度Zy之间的关系为Zy=e*Zx+f或Zy=f(Zx)。Specifically, the first correspondence between the number of rotation steps of the first motor and the rotation angle of the rotating mechanism needs to be established by collecting data in advance. An optional implementation is as follows: Assume that the number of rotation steps Hx of the first motor in the horizontal direction The relationship with the actual rotation angle Hy of the rotating mechanism in the horizontal direction is linear, so Hy=a*Hx+b, where a and b are calculated by collecting the actual rotation effect of the motor and the rotating mechanism; of course, the actual The relationship between the rotation angle of and the number of rotation steps may also be a nonlinear relationship. In this case, Hy=f(Hx) can be fitted by collecting the measured data set in advance. Similarly, it is also possible to collect data to fit the relationship between the number of rotation steps Vx of the first motor in the vertical direction and the actual rotation angle Vy of the rotating mechanism in the vertical direction: Vy=c*Vx+d or Vy=f(Vx) The relationship between the number of rotation steps Zx of the first motor in the inclined direction and the actual rotation angle Zy of the rotating mechanism in the inclined direction is Zy=e*Zx+f or Zy=f(Zx).
在依据第一角度信息对旋转机构进行旋转时,可以通过上述确定的第一对应关系,计算出旋转机构分别在水平、垂直、倾斜方向上旋转角度Ang_H、Ang_V、Ang_Z时,第一电机在水平、垂直、倾斜方向上的转动步数,并由程序控制第一电机驱动旋转机构进行旋转,旋转机构带动投影光机旋转使投影光机的投射方向正对投影面。When the rotating mechanism is rotated according to the first angle information, the first corresponding relationship determined above can be used to calculate that when the rotating mechanism rotates the angles Ang_H, Ang_V and Ang_Z in the horizontal, vertical and inclined directions, respectively, the first motor is in the horizontal direction. , the number of rotation steps in the vertical and oblique directions, and the program controls the first motor to drive the rotating mechanism to rotate, and the rotating mechanism drives the projector to rotate so that the projection direction of the projector is facing the projection surface.
需要说明的是,通过上述过程使投影光机的投射方向正对投影面后,可以将投影画面调整为矩形,但此时的投影画面已经偏离了原先的目标投影区域,需要进一步通过光学移轴对投影画面的位置进行调整。It should be noted that, after the projection direction of the light projector is made to face the projection surface through the above process, the projection picture can be adjusted to a rectangle, but the projection picture at this time has deviate from the original target projection area, and it needs to be further adjusted by optical axis shifting. Adjust the position of the projected screen.
步骤S408,依据第一角度信息确定光学移轴的第一偏移量,并依据第一偏移量对投影光机进行光学移轴。Step S408 , determining a first offset of the optical axis shift according to the first angle information, and performing an optical axis shift on the projector according to the first offset.
为了将投影画面调整至目标投影区域,需要确定光学移轴的第一偏移量。在本申请一些可选 的实施例中,可以先确定投影光机的旋转角度(即旋转机构的旋转角度)与光学移轴的偏移量之间的第二对应关系;依据第二对应关系及第一角度信息,确定将投影光机的投影画面调整至目标投影区域时,进行光学移轴的第一偏移量。由于第一偏移量包括水平方向上的第一水平偏移量和垂直方向上的第一垂直偏移量,可以依据第二对应关系及水平旋转角度,确定第一水平偏移量;依据第二对应关系及垂直俯仰角度,确定第一垂直偏移量。In order to adjust the projection image to the target projection area, it is necessary to determine the first offset of the optical axis shift. In some optional embodiments of the present application, the second correspondence between the rotation angle of the projector (ie the rotation angle of the rotation mechanism) and the offset of the optical axis may be determined first; according to the second correspondence and The first angle information determines the first offset of the optical axis shift when adjusting the projection image of the light projector to the target projection area. Since the first offset includes the first horizontal offset in the horizontal direction and the first vertical offset in the vertical direction, the first horizontal offset can be determined according to the second correspondence and the horizontal rotation angle; Two corresponding relationship and vertical pitch angle, determine the first vertical offset.
具体地,如图6所示,其中,61表示投影光机,62表示投影面,63为投影光机在投影面的目标投影区域内的梯形投影画面,64为经旋转机构调整后投影光机在投影面上的正投矩形投影画面,二者之间的距离L即为水平移轴最终的画面偏移量,由于投影光机水平旋转的角度Ang_H以及水平移轴最终的画面偏移量L具有类似于直角三角形的关系,所以水平移轴最终的画面偏移量L与旋转角度Ang_H是成正比的线性关系,在此基础上,可以建立一个Ang_H与光机水平移轴电机偏移量Len_H之间的数据表,此数据表可以通过采集不同角度得到的相应光学移轴电机偏移步数得到,即Len_H=a*Ang_H+b,其中a和b需要结合投影光机的设计与实际光学移轴电机运动效果计算拟合得出;可选地,考虑到电机运动区间内可能光学移轴的实际图像偏移量可能会存在误差而并非绝对线性,可以采集足够多的数据通过实际的非线性关系来拟合,即Len_H=f(Ang_H)。同理,也可以得出光机垂直移轴电机偏移量Len_V与投影光机垂直旋转的角度Ang_V之间的对应关系:Len_V=c*Ang_V+d或Len_V=f(Ang_V)。Specifically, as shown in FIG. 6 , 61 represents the projector, 62 represents the projection surface, 63 represents the trapezoidal projection image of the projector in the target projection area of the projection surface, and 64 represents the projector after being adjusted by the rotating mechanism. For the orthographic projection image on the projection surface, the distance L between the two is the final screen offset of the horizontal shift axis. Due to the horizontal rotation angle Ang_H of the projector and the final screen offset L of the horizontal shift axis It has a relationship similar to a right triangle, so the final screen offset L of the horizontal axis shift is a linear relationship proportional to the rotation angle Ang_H. On this basis, a Ang_H and the optical machine horizontal axis shift motor offset Len_H can be established This data table can be obtained by collecting the corresponding optical axis shift motor offset steps obtained from different angles, that is, Len_H=a*Ang_H+b, where a and b need to be combined with the design of the projector and the actual optics. The motion effect of the tilt-shift motor is calculated and fitted; optionally, considering that the actual image offset of the optical tilt-shift in the motor motion range may have errors rather than absolute linearity, it is possible to collect enough data to pass the actual non-linear motion. Linear relationship to fit, that is, Len_H=f(Ang_H). In the same way, the corresponding relationship between the offset Len_V of the vertical axis-shifting motor of the optical machine and the angle Ang_V of the vertical rotation of the projector light machine can also be obtained: Len_V=c*Ang_V+d or Len_V=f(Ang_V).
考虑到目标投影区域内可能存在开关插座、壁画等障碍物,在进行投影时需要避开这些障碍物,因此,在本申请一些可选的实施例中,可以获取投影面的纹理信息,依据纹理信息确定目标投影区域中的障碍物信息;依据障碍物信息确定将投影画面避开障碍物时,进行光学移轴的第二偏移量。具体地,依据获取的障碍物信息确定将投影画面避开障碍物时,旋转机构需要旋转的第二角度信息,第二角度信息包括旋转机构在水平方向上旋转的水平偏移角度和在垂直方向上旋转的垂直偏移角度;之后,依据第二对应关系及水平偏移角度确定第二水平偏移量,依据第二对应关系及垂直偏移角度确定第二垂直偏移量,将确定的第二水平偏移量和第二垂直偏移量作为第二偏移量。Considering that there may be obstacles such as switch sockets and murals in the target projection area, these obstacles need to be avoided during projection. Therefore, in some optional embodiments of the present application, the texture information of the projection surface can be obtained. The information determines the obstacle information in the target projection area; according to the obstacle information, when the projection image is determined to avoid the obstacle, a second offset of the optical axis shift is performed. Specifically, it is determined according to the acquired obstacle information that when the projection image is to avoid the obstacle, the second angle information that the rotating mechanism needs to rotate, the second angle information includes the horizontal offset angle rotated by the rotating mechanism in the horizontal direction and the horizontal offset angle of the rotating mechanism in the vertical direction. the vertical offset angle of the upward rotation; then, the second horizontal offset is determined according to the second corresponding relationship and the horizontal offset angle, the second vertical offset is determined according to the second corresponding relationship and the vertical offset angle, and the determined first Two horizontal offsets and a second vertical offset are used as second offsets.
例如,通过获取的投影面的纹理信息,判断目标投影区域内是否存在障碍物,如果存在,则计算投影画面需要上下或左右位移的方向及位移的坐标值,由于上述过程已获取投影光机与投影面的深度信息即垂直距离,根据目的坐标值和原始画面坐标值差量可以由三角原理计算出投影位置画面需要上下左右微调偏移的角度Ang_H’或Ang_V’,如图7所示,其中,71表示投影光机,72表示投影面,73表示障碍物,74为校正后的矩形投影画面,75为以第一水平偏移量水平移轴后的投影画面,其有部分覆盖在障碍物上,76为将投影光机微调角度Ang_H’后得到的避开了障碍物的投影画面;再根据确定的投影光机的旋转角度与光学移轴的偏移量之间的第二对应关系Len_H=a*Ang_H+b或Len_H=f(Ang_H),可以计算出光机水平移轴避开障碍物需要移动的水平偏移量D_H=a*Ang_H’+b或D_H=f(Ang_H’);同理,可以得到光机垂直移轴避开障碍物需要移动的垂直偏移量D_V=c*Ang_V’+d或D_V=f(Ang_V’)。For example, through the acquired texture information of the projection surface, it is judged whether there is an obstacle in the target projection area. If there is an obstacle, the direction in which the projection image needs to be displaced up and down or left and right and the coordinate value of the displacement are calculated. The depth information of the projection surface is the vertical distance. According to the difference between the target coordinate value and the original screen coordinate value, the angle Ang_H' or Ang_V' that needs to be fine-tuned up, down, left, and right for the projection position screen can be calculated by the principle of trigonometry, as shown in Figure 7, where , 71 is the projector light projector, 72 is the projection surface, 73 is the obstacle, 74 is the corrected rectangular projection picture, 75 is the projection picture after horizontal shifting by the first horizontal offset, which is partially covered by the obstacle Above, 76 is the projection picture obtained by fine-tuning the angle Ang_H' of the projector and avoiding the obstacle; then according to the second correspondence Len_H between the determined rotation angle of the projector and the offset of the optical axis shift =a*Ang_H+b or Len_H=f(Ang_H), the horizontal offset required to move the optical-mechanical horizontal shift axis to avoid obstacles can be calculated D_H=a*Ang_H'+b or D_H=f(Ang_H'); the same According to the principle, the vertical offset D_V=c*Ang_V'+d or D_V=f(Ang_V') that the opto-mechanical vertical axis shift axis needs to move to avoid obstacles can be obtained.
最后,依据第一水平偏移量Len_H和第二水平偏移量D_H对投影光机进行光学水平移轴;依据第一垂直偏移量Len_H和第二垂直偏移量D_V对投影光机进行光学垂直移轴,使投影画面投射于目标投影区域且避开障碍物。Finally, perform optical horizontal shifting of the optical projector according to the first horizontal offset Len_H and the second horizontal offset D_H; perform optical horizontal shifting on the optical projector according to the first vertical offset Len_H and the second vertical offset D_V Shift the axis vertically to project the projected image on the target projection area and avoid obstacles.
在实际实施中,由于电机旋转或移轴时的误差,得到的投影画面的形状可能会存在一些较小 的形状畸变,此时可以重复投影信息采集及平面方程计算步骤,计算出需要满足投影画面为矩形而微调的旋转角度Ang_H_1、Ang_V_1、Ang_Z_1。在本申请一些可选的实施例中,获取投影光机的第二投影信息及第二姿态信息;依据第二投影信息和第二姿态信息确定将投影光机的投射方向调整至正对投影面时,旋转机构需要旋转的第三角度信息,并依据第三角度信息对旋转机构进行旋转。到此,完成对投影画面的物理校正,最终在目标投影区域内的投影画面为矩形,且无画质损失和数字校正造成的灰边,同时避开了障碍物。In actual implementation, due to the error when the motor rotates or shifts the axis, the shape of the obtained projection image may have some small shape distortion. At this time, the projection information collection and plane equation calculation steps can be repeated, and the calculation needs to satisfy the projection image. Fine-tuned rotation angles Ang_H_1, Ang_V_1, Ang_Z_1 for the rectangle. In some optional embodiments of the present application, the second projection information and the second attitude information of the light projector are acquired; and the projection direction of the light projector is adjusted to face the projection surface according to the second projection information and the second attitude information. When , the rotating mechanism needs the third angle information of rotation, and rotates the rotating mechanism according to the third angle information. At this point, the physical correction of the projected image is completed, and finally the projected image in the target projection area is a rectangle without image quality loss and gray borders caused by digital correction, and obstacles are avoided at the same time.
通常,投影光机具有数字校正功能,其通过软件算法改变投影出的画面像素位置,具有手动和自动两种方式,手动即用户调出调校设置菜单,通过手动控制投影画面几个顶点的位置,来调整画面形状;自动方式即通过图像采集模块采集到投影面信息,通过对投影位置的自动补偿来自动将画面校正成矩形。Usually, the projector has a digital correction function, which changes the pixel position of the projected picture through a software algorithm. There are two ways: manual and automatic. Manually, that is, the user calls up the adjustment setting menu, and manually controls the position of several vertices of the projected picture. , to adjust the shape of the picture; the automatic mode is to collect the projection surface information through the image acquisition module, and automatically correct the picture into a rectangle by automatically compensating for the projection position.
在本申请一些可选的实施例中,在依据第一偏移量对投影光机进行光学移轴后,可以接收目标对象的校正指令,依据校正指令对投影画面进行校正,其中,校正指令用于指示通过数字校正功能对投影画面再次进行校正。In some optional embodiments of the present application, after the optical projector is optically shifted according to the first offset, a correction instruction of the target object may be received, and the projection screen may be corrected according to the correction instruction, wherein the correction instruction uses Correct the projected image again by the digital correction function as instructed.
可以理解地,投影光机既可以依据上述的投影校正方法对投影画面进行校正,也可以通过数字校正功能对投影画面进行校正。例如,当旋转机构出现故障无法实现对投影画面的自动校正时,或是用户对校正后的投影画面仍不满意时,可以通过接受用户的指令,依据用户指令以数字校正功能对投影画面再次进行校正。It can be understood that, the projector light machine can correct the projection picture according to the above-mentioned projection correction method, and can also correct the projection picture by using the digital correction function. For example, when the rotating mechanism fails to automatically correct the projected image, or the user is still dissatisfied with the corrected projected image, the projected image can be re-corrected with the digital correction function according to the user's instruction by accepting the user's instruction. Correction.
在本申请一种可选的实施例中,对投影画面进行校正的完整流程如图8所示:In an optional embodiment of the present application, the complete process of calibrating the projection picture is shown in FIG. 8 :
1)通过图像采集模块采集投影画面/投影面深度信息;1) Collect the projection screen/projection surface depth information through the image acquisition module;
2)依据采集到的图像或深度信息,计算投影面三维点云信息及画面坐标信息;2) Calculate the three-dimensional point cloud information and screen coordinate information of the projection surface according to the collected image or depth information;
3)依据三维点云信息及画面坐标信息进行平面拟合,获得投影面的平面方程;3) Carry out plane fitting according to the three-dimensional point cloud information and the screen coordinate information, and obtain the plane equation of the projection surface;
4)依据平面方程计算投影光机的水平旋转角度Ang_H;4) Calculate the horizontal rotation angle Ang_H of the light projector according to the plane equation;
5)依据平面方程或IMU姿态传感器确定投影光机的垂直俯仰角度Ang_V;5) Determine the vertical pitch angle Ang_V of the projector according to the plane equation or the IMU attitude sensor;
6)依据IMU姿态传感器确定投影光机的倾斜角度Ang_Z;6) Determine the tilt angle Ang_Z of the projector according to the IMU attitude sensor;
7)依据电机的转动步数与旋转角度间的第一对应关系,以及上述确定的Ang_H、Ang_V、Ang_Z,确定电机需要转动的方向及转动步数;7) According to the first correspondence between the number of rotation steps of the motor and the rotation angle, and the Ang_H, Ang_V, and Ang_Z determined above, determine the direction in which the motor needs to rotate and the number of rotation steps;
8)依据确定的转动方向及转动步数控制电机驱动旋转机构进行旋转;8) Control the motor to drive the rotating mechanism to rotate according to the determined rotation direction and the number of rotation steps;
9)依据水平旋转角度Ang_H,计算光学水平移轴的第一水平偏移量Len_H;9) according to the horizontal rotation angle Ang_H, calculate the first horizontal offset Len_H of the optical horizontal shift axis;
10)依据Len_H控制光机进行水平移轴,使投影画面投射于目标投影区域;10) Control the optical machine according to Len_H to perform horizontal shift axis, so that the projection picture is projected on the target projection area;
11)通过摄像头获取投影面纹理信息,识别出障碍物并计算将投影画面避开障碍物时光机移轴需要移动得第二水平偏移量D_H或第二垂直偏移量D_V;11) Obtain the texture information of the projection surface through the camera, identify the obstacle and calculate the second horizontal offset D_H or the second vertical offset D_V that needs to be moved to avoid the obstacle when the projection screen is shifted by the light machine;
12)依据D_H或D_V控制光机进行水平或垂直移轴微调,使投影画面投射于目标投影区域且 避开障碍物;12) according to D_H or D_V control optical machine to carry out horizontal or vertical axis shift fine-tuning, so that the projection picture is projected on the target projection area and avoid obstacles;
13)重复投影信息的采集及平面方程计算的过程,计算出需要满足投影画面为矩形而微调的旋转角度Ang_H_1、Ang_V_1、Ang_Z_1;13) Repeat the process of collecting projection information and calculating the plane equation, and calculate the rotation angles Ang_H_1, Ang_V_1, and Ang_Z_1 that need to be fine-tuned for the projection screen to be a rectangle;
14)依据第一对应关系及Ang_H_1、Ang_V_1、Ang_Z_1确定电机需要转动的方向及转动步数;14) According to the first correspondence and Ang_H_1, Ang_V_1, Ang_Z_1, determine the direction and the number of rotation steps that the motor needs to rotate;
15)依据确定的转动方向及转动步数控制电机驱动旋转机构进行旋转;15) Control the motor to drive the rotating mechanism to rotate according to the determined rotation direction and the number of rotation steps;
16)完成对投影画面的物理校正,最终在目标投影区域内的投影画面为矩形,且无画质损失和数字校正造成的灰边,同时避开了障碍物。16) Complete the physical correction of the projected image, and finally the projected image in the target projection area is a rectangle, and there is no image quality loss and gray borders caused by digital correction, and obstacles are avoided at the same time.
在本申请实施例中,通过获取投影光机的投影信息及姿态信息,确定对旋转机构进行旋转时的第一角度信息,并依据第一角度信息对旋转机构进行旋转,从而将投影光机的投射方向调整至正对投影面,然后,依据第一角度信息计算光学移轴的第一偏移量并对投影光机进行光学移轴,从而将投影画面投射至目标投影区域;同时,获取目标投影区域中的障碍物信息,依据障碍物信息确定光学移轴的第二偏移量,并对投影光机进行光学移轴,从而使投影画面避开障碍物;由于本申请实施例中不涉及到对投影画面进行缩放,能够有效解决相关技术中对投影画面进行校正时存在画质损失及灰边效果技术问题。In the embodiment of the present application, by acquiring the projection information and attitude information of the light projector, the first angle information when the rotating mechanism is rotated is determined, and the rotating mechanism is rotated according to the first angle information, so that the The projection direction is adjusted to face the projection surface, and then, according to the first angle information, the first offset of the optical axis shift is calculated and the optical axis of the projector is optically shifted, so as to project the projection image to the target projection area; at the same time, obtain the target According to the obstacle information in the projection area, the second offset of the optical axis shift is determined according to the obstacle information, and the optical axis of the projector is optically shifted, so that the projection image avoids obstacles; By scaling the projection image, it can effectively solve the technical problems of image quality loss and gray border effect when correcting the projection image in the related art.
实施例2Example 2
根据本申请实施例,还提供了另一种投影校正方法,其同样可以运行在实施例1的投影系统中,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present application, another projection correction method is also provided, which can also run in the projection system of Embodiment 1. It should be noted that the steps shown in the flowchart of the accompanying drawings can be performed in a computer system such as a set of computers. Executable instructions are executed in a computer system and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
图9是根据本申请实施例的一种投影校正方法的流程示意图,如图9所示,该方法包括如下步骤:FIG. 9 is a schematic flowchart of a projection correction method according to an embodiment of the present application. As shown in FIG. 9 , the method includes the following steps:
步骤S902,获取投影光机的投影信息。Step S902, obtaining projection information of the light projector.
在本申请一些可选的实施例中,通过图像采集模块获取投影光机的投影信息,该投影信息包括以下至少之一:投影画面信息,特征图信息,投影面的深度信息,其中,投影面为目标投影区域所在的平面。In some optional embodiments of the present application, the projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface, wherein the projection surface is the plane where the target projection area is located.
步骤S904,获取目标投影区域的位置信息。Step S904, obtaining the position information of the target projection area.
步骤S906,依据投影信息和位置信息确定投影光机中光学移轴的第一偏移量。Step S906, determining the first offset of the optical shift axis in the light projector according to the projection information and the position information.
步骤S908,依据第一偏移量对投影光机进行光学移轴,以将投影光机的投影画面调整至目标投影区域。In step S908, the optical axis of the optical projector is optically shifted according to the first offset, so as to adjust the projection image of the optical projector to the target projection area.
在本申请一些可选的实施例中,还可以获取目标投影区域中的障碍物信息;依据障碍物信息确定投影光机中光学移轴的第二偏移量;依据第二偏移量对投影光机进行光学移轴,以将投影画面避开障碍物。In some optional embodiments of the present application, the obstacle information in the target projection area can also be obtained; the second offset of the optical axis shift in the light projector is determined according to the obstacle information; the projection is calculated according to the second offset The opto-mechanical performs an optical tilt to move the projected image away from obstacles.
需要说明的是,本申请实施例中的投影校正方法部分流程与实施例1中的投影校正方法相同,由于实施例1中已经进行了详尽的描述,本实施例中部分未体现的细节可以参考实施例1。It should be noted that part of the process of the projection correction method in this embodiment of the present application is the same as that of the projection correction method in Embodiment 1. Since Embodiment 1 has been described in detail, some details not reflected in this embodiment may refer to Example 1.
在本申请实施例中,通过获取投影光机的投影信息及目标投影区域的位置信息,确定光学移轴的第一偏移量并对投影光机进行光学移轴,从而可以将投影画面投射至目标投影区域;同时,获取目标投影区域中的障碍物信息,依据障碍物信息确定光学移轴的第二偏移量并对投影光机进行光学移轴,从而可以使投影画面避开障碍物。In the embodiment of the present application, by acquiring the projection information of the projector and the position information of the target projection area, determining the first offset of the optical axis shift and performing the optical axis shift of the projector, the projection image can be projected to the target projection area; at the same time, obtain the obstacle information in the target projection area, determine the second offset of the optical axis shift according to the obstacle information, and perform the optical axis shift of the projection light machine, so that the projection image can avoid obstacles.
实施例3Example 3
根据本申请实施例,还提供了一种用于实现上述投影校正方法的投影校正装置,如图10所示,该装置包括第一获取模块100,第二获取模块102,第一确定模块104,旋转模块106,第二确定模块108以及移轴模块110,其中:According to an embodiment of the present application, a projection correction device for implementing the above-mentioned projection correction method is also provided. As shown in FIG. 10 , the device includes a first acquisition module 100, a second acquisition module 102, a first determination module 104, The rotation module 106, the second determination module 108 and the axis shift module 110, wherein:
第一获取模块100,用于获取投影光机的投影信息及目标投影区域中的障碍物信息。The first obtaining module 100 is used for obtaining the projection information of the light projector and the obstacle information in the target projection area.
在本申请一些可选的实施例中,通过图像采集模块获取投影光机的投影信息,该投影信息包括以下至少之一:投影画面信息,特征图信息,投影面的深度信息,其中,投影面为目标投影区域所在的平面;通过图像采集模块获取投影面的纹理信息,依据纹理信息确定目标投影区域中的障碍物信息。In some optional embodiments of the present application, the projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface, wherein the projection surface is the plane where the target projection area is located; the texture information of the projection surface is obtained through the image acquisition module, and the obstacle information in the target projection area is determined according to the texture information.
第二获取模块102,用于获取投影光机的姿态信息。The second acquiring module 102 is configured to acquire attitude information of the projector.
在本申请一些可选的实施例中,可以通过姿态传感器,例如陀螺仪或其他重力传感器,获取投影光机的姿态信息,该姿态信息至少包括投影光机与水平面之间的倾斜角度。In some optional embodiments of the present application, the attitude information of the light projector can be acquired through an attitude sensor, such as a gyroscope or other gravity sensor, where the attitude information at least includes the inclination angle between the light projector and the horizontal plane.
第一确定模块104,用于依据投影信息和姿态信息确定将投影光机的投射方向调整至正对投影面时,旋转机构需要旋转的第一角度信息,其中,投影面为目标投影区域所在的平面。The first determination module 104 is used to determine the first angle information that the rotation mechanism needs to rotate when the projection direction of the projector is adjusted to face the projection surface according to the projection information and the attitude information, wherein the projection surface is the location where the target projection area is located. flat.
在本申请一些可选的实施例中,依据获取的投影画面信息或投影面深度信息等投影信息来确定投影面的三维点云信息及画面坐标信息;依据得到的三维点云信息及画面坐标信息进行平面拟合,得到投影面的平面方程;依据平面方程确定将投影光机的投射方向调整至正对投影面时,旋转机构在水平方向上的水平旋转角度;依据平面方程或投影光机姿态信息确定将投影光机的投射方向调整至正对投影面时,旋转机构在垂直方向上的垂直俯仰角度;依据姿态信息确定投影光机的倾斜角度;将水平旋转角度、垂直俯仰角度以及倾斜角度作为第一角度信息。In some optional embodiments of the present application, the 3D point cloud information and picture coordinate information of the projection surface are determined according to the obtained projection information such as projection picture information or projection surface depth information; Perform plane fitting to obtain the plane equation of the projection surface; according to the plane equation, determine the horizontal rotation angle of the rotating mechanism in the horizontal direction when the projection direction of the light projector is adjusted to face the projection surface; according to the plane equation or the attitude of the light projector The information determines the vertical pitch angle of the rotating mechanism in the vertical direction when the projection direction of the projector is adjusted to face the projection surface; the tilt angle of the projector is determined according to the attitude information; the horizontal rotation angle, vertical pitch angle and tilt angle are determined. as the first angle information.
旋转模块106,用于依据第一角度信息对旋转机构进行旋转。The rotation module 106 is configured to rotate the rotation mechanism according to the first angle information.
在本申请一些可选的实施例中,由于旋转机构是由第一电机驱动旋转的,可以先确定第一电机的转动步数与旋转机构的旋转角度之间的第一对应关系;然后依据第一对应关系及第一角度信息确定第一电机需要转动的方向以及在对应方向上的转动步数;再依据转动的方向和转动步数控制第一电机驱动旋转机构进行旋转。In some optional embodiments of the present application, since the rotation mechanism is driven and rotated by the first motor, the first correspondence between the number of rotation steps of the first motor and the rotation angle of the rotation mechanism may be determined first; A corresponding relationship and the first angle information determine the required rotation direction of the first motor and the number of rotation steps in the corresponding direction; and then control the first motor to drive the rotating mechanism to rotate according to the rotation direction and the number of rotation steps.
第二确定模块108,用于依据第一角度信息确定光学移轴的第一偏移量,依据障碍物信息确定光学移轴的第二偏移量。The second determining module 108 is configured to determine the first offset of the optical axis shift according to the first angle information, and determine the second offset of the optical axis shift according to the obstacle information.
在本申请一些可选的实施例中,可以先确定投影光机的旋转角度与光学移轴的偏移量之间的 第二对应关系;依据第二对应关系及第一角度信息,确定将投影光机的投影画面调整至目标投影区域时,进行光学水平移轴的第一水平偏移量及进行光学垂直移轴的第一垂直偏移量。考虑到目标投影区域内可能存在障碍物,可以依据获取的障碍物信息确定将投影画面避开障碍物时,旋转机构需要旋转的第二角度信息,第二角度信息包括旋转机构在水平方向上旋转的水平偏移角度和在垂直方向上旋转的垂直偏移角度;之后,依据第二对应关系及水平偏移角度确定第二水平偏移量,依据第二对应关系及垂直偏移角度确定第二垂直偏移量,将确定的第二水平偏移量和第二垂直偏移量作为第二偏移量。In some optional embodiments of the present application, the second correspondence between the rotation angle of the projector and the offset of the optical axis shift may be determined first; according to the second correspondence and the first angle information, the projection When the projection image of the optical machine is adjusted to the target projection area, a first horizontal offset of the optical horizontal axis shift and a first vertical offset of the optical vertical axis are performed. Considering that there may be obstacles in the target projection area, you can determine the second angle information that the rotating mechanism needs to rotate when avoiding the obstacles based on the obtained obstacle information. The second angle information includes the rotating mechanism rotating in the horizontal direction. The horizontal offset angle and the vertical offset angle rotated in the vertical direction; then, the second horizontal offset is determined according to the second corresponding relationship and the horizontal offset angle, and the second horizontal offset is determined according to the second corresponding relationship and the vertical offset angle. For the vertical offset, the determined second horizontal offset and the second vertical offset are used as the second offset.
移轴模块110,用于依据第一偏移量和第二偏移量对投影光机进行光学移轴。The axis-shifting module 110 is used to perform optical axis-shifting of the projector according to the first offset and the second offset.
在本申请一些可选的实施例中,依据第一水平偏移量和第二水平偏移量对投影光机进行光学水平移轴;依据第一垂直偏移量和第二垂直偏移量对投影光机进行光学垂直移轴,使投影画面投射于目标投影区域且避开障碍物。In some optional embodiments of the present application, the optical horizontal axis shift is performed on the optical projector according to the first horizontal offset and the second horizontal offset; The optical projector performs an optical vertical axis shift, so that the projection image is projected on the target projection area and avoids obstacles.
需要说明的是,本申请实施例中的投影校正装置中的各模块与实施例1中的投影校正方法实施步骤一一对应,由于实施例1中已经进行了详尽的描述,本实施例中部分未体现的细节可以参考实施例1,在此不再过多赘述。It should be noted that each module in the projection correction device in this embodiment of the present application corresponds to the implementation steps of the projection correction method in Embodiment 1. Since Embodiment 1 has been described in detail, some of the modules in this embodiment For details not shown, reference may be made to Embodiment 1, which will not be repeated here.
实施例3Example 3
根据本申请实施例,还提供了一种非易失性存储介质,该非易失性存储介质包括存储的程序,其中,在程序运行时控制非易失性存储介质所在设备执行上述的投影校正方法。According to an embodiment of the present application, a non-volatile storage medium is also provided, the non-volatile storage medium includes a stored program, wherein when the program runs, the device where the non-volatile storage medium is located is controlled to perform the above-mentioned projection correction method.
可选地,在程序运行时控制非易失性存储介质所在设备执行实现以下步骤:获取投影光机的投影信息及目标投影区域中的障碍物信息;获取投影光机的姿态信息;依据投影信息和姿态信息确定将投影光机的投射方向调整至正对投影面时,旋转机构需要旋转的第一角度信息,并依据第一角度信息对旋转机构进行旋转,其中,投影面为目标投影区域所在的平面;依据第一角度信息确定光学移轴的第一偏移量,依据障碍物信息确定光学移轴的第二偏移量,并依据第一偏移量和第二偏移量对投影光机进行光学移轴。Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following steps: obtaining the projection information of the light projector and the obstacle information in the target projection area; obtaining the attitude information of the light projector; according to the projection information and attitude information to determine the first angle information that the rotating mechanism needs to rotate when the projection direction of the projector is adjusted to face the projection surface, and rotate the rotating mechanism according to the first angle information, wherein the projection surface is where the target projection area is located the plane; determine the first offset of the optical axis shift according to the first angle information, determine the second offset of the optical axis shift according to the obstacle information, and determine the projection light according to the first offset and the second offset The machine performs optical tilt shifting.
可选地,在程序运行时控制非易失性存储介质所在设备执行实现以下步骤:获取投影光机的投影信息;获取目标投影区域的位置信息;依据投影信息和位置信息确定将投影画面调整至目标投影区域时对应的光学移轴的第一偏移量;依据第一偏移量对投影光机进行光学移轴。Optionally, when the program is running, the device where the non-volatile storage medium is located is controlled to perform the following steps: obtaining the projection information of the light projector; obtaining the position information of the target projection area; The first offset amount of the corresponding optical axis shift in the target projection area; the optical axis shift is performed on the projector light machine according to the first offset amount.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative, for example, the division of units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or integrated into Another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是 或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units illustrated as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
以上仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those skilled in the art, some improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as The protection scope of this application.

Claims (17)

  1. 一种投影校正方法,其特征在于,所述方法应用于投影系统,所述投影系统至少包括:支持光学移轴的投影光机和用于调整所述投影光机的投射方向的旋转机构,所述方法包括:A projection correction method, characterized in that the method is applied to a projection system, the projection system at least comprises: a projection light machine supporting optical axis shifting and a rotation mechanism for adjusting the projection direction of the projection light machine, the The methods described include:
    获取所述投影光机的投影信息;obtaining projection information of the projector;
    获取所述投影光机的姿态信息;obtaining the attitude information of the projector;
    依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对投影面时,所述旋转机构需要旋转的第一角度信息,并依据所述第一角度信息对所述旋转机构进行旋转,其中,所述投影面为目标投影区域所在的平面;According to the projection information and the attitude information, when the projection direction of the projector is adjusted to face the projection surface, the rotation mechanism needs to rotate the first angle information, and according to the first angle information The rotating mechanism rotates, wherein the projection surface is the plane where the target projection area is located;
    依据所述第一角度信息确定光学移轴的第一偏移量,并依据所述第一偏移量对所述投影光机进行光学移轴。A first offset of the optical axis is determined according to the first angle information, and the optical projector is optically shifted according to the first offset.
  2. 根据权利要求1所述的方法,其特征在于,获取所述投影光机的投影信息,包括:The method according to claim 1, wherein obtaining the projection information of the light projector comprises:
    通过图像采集模块获取所述投影光机的投影信息,所述投影信息包括以下至少之一:投影画面信息,特征图信息,所述投影面的深度信息。The projection information of the light projector is acquired through the image acquisition module, and the projection information includes at least one of the following: projection image information, feature map information, and depth information of the projection surface.
  3. 根据权利要求2所述的方法,其特征在于,获取所述投影光机的姿态信息,包括:The method according to claim 2, wherein acquiring the attitude information of the light projector comprises:
    通过姿态传感器获取所述投影光机的姿态信息,所述姿态信息至少包括所述投影光机的姿态角度信息。The attitude information of the light projector is acquired through an attitude sensor, and the attitude information includes at least attitude angle information of the light projector.
  4. 根据权利要求3所述的方法,其特征在于,依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对投影面时,所述旋转机构需要旋转的第一角度信息,包括:The method according to claim 3, wherein, when it is determined according to the projection information and the attitude information that the projection direction of the light projector is adjusted to face the projection surface, the rotation mechanism needs to rotate the first Angle information, including:
    依据所述投影信息确定所述投影面的三维点云信息及画面坐标信息;determining the three-dimensional point cloud information and picture coordinate information of the projection surface according to the projection information;
    依据所述三维点云信息及画面坐标信息进行平面拟合,得到所述投影面的平面方程;performing plane fitting according to the three-dimensional point cloud information and the picture coordinate information to obtain the plane equation of the projection plane;
    依据所述平面方程确定所述投影光机的水平旋转角度,所述水平旋转角度为将所述投影光机的投射方向调整至正对所述投影面时,所述旋转机构在水平方向上旋转的角度;The horizontal rotation angle of the projector is determined according to the plane equation, and the horizontal rotation angle is that when the projection direction of the projector is adjusted to face the projection surface, the rotating mechanism rotates in the horizontal direction Angle;
    依据所述平面方程或所述姿态角度信息确定所述投影光机的垂直俯仰角度,所述垂直俯仰角度为将所述投影光机的投射方向调整至正对所述投影面时,所述旋转机构在垂直方向上旋转的角度;The vertical pitch angle of the projector is determined according to the plane equation or the attitude angle information, and the vertical pitch angle is the rotation angle when the projection direction of the projector is adjusted to face the projection surface. The angle by which the mechanism rotates in the vertical direction;
    依据所述姿态角度信息确定所述投影光机的倾斜角度,所述倾斜角度为将所述投影光机调整至平行于水平面时,所述旋转机构旋转的角度;determining the tilt angle of the light projector according to the attitude angle information, where the tilt angle is the angle at which the rotating mechanism rotates when the light projector is adjusted to be parallel to the horizontal plane;
    将所述水平旋转角度、所述垂直俯仰角度以及所述倾斜角度作为所述第一角度信息。The horizontal rotation angle, the vertical pitch angle, and the tilt angle are used as the first angle information.
  5. 根据权利要求1所述的方法,其特征在于,所述旋转机构是由第一电机驱动旋转的,依据所述第一角度信息对所述旋转机构进行旋转,包括:The method according to claim 1, wherein the rotating mechanism is driven to rotate by a first motor, and rotating the rotating mechanism according to the first angle information comprises:
    确定所述第一电机的转动步数与所述旋转机构的旋转角度之间的第一对应关系;determining a first correspondence between the number of rotation steps of the first motor and the rotation angle of the rotating mechanism;
    依据所述第一对应关系及所述第一角度信息确定所述第一电机需要转动的方向以及在对 应方向上的转动步数;Determine the direction in which the first motor needs to rotate and the number of rotation steps in the corresponding direction according to the first correspondence and the first angle information;
    依据所述转动的方向和转动步数控制所述第一电机驱动所述旋转机构进行旋转。The first motor is controlled to drive the rotation mechanism to rotate according to the direction of rotation and the number of rotation steps.
  6. 根据权利要求4所述的方法,其特征在于,依据所述第一角度信息确定光学移轴的第一偏移量,包括:The method according to claim 4, wherein determining the first offset of the optical axis shift according to the first angle information comprises:
    确定所述旋转机构的旋转角度与光学移轴的偏移量之间的第二对应关系;determining the second correspondence between the rotation angle of the rotating mechanism and the offset of the optical axis;
    依据所述第二对应关系及所述第一角度信息,确定将所述投影光机的投影画面调整至所述目标投影区域时,进行光学移轴的第一偏移量,其中,所述第一偏移量包括水平方向上的第一水平偏移量和垂直方向上的第一垂直偏移量。According to the second correspondence and the first angle information, it is determined that when the projection image of the projector is adjusted to the target projection area, a first offset of the optical axis is performed, wherein the first offset is An offset includes a first horizontal offset in a horizontal direction and a first vertical offset in a vertical direction.
  7. 根据权利要求6所述的方法,其特征在于,依据所述第二对应关系及所述第一角度信息,确定将所述投影光机的投影画面调整至所述目标投影区域时,进行光学移轴的第一偏移量,包括:The method according to claim 6, wherein, according to the second correspondence and the first angle information, when it is determined to adjust the projection screen of the light projector to the target projection area, an optical shift is performed. The first offset of the axis, including:
    依据所述第二对应关系及所述水平旋转角度,确定所述第一水平偏移量;determining the first horizontal offset according to the second correspondence and the horizontal rotation angle;
    依据所述第二对应关系及所述垂直俯仰角度,确定所述第一垂直偏移量。The first vertical offset is determined according to the second correspondence and the vertical pitch angle.
  8. 根据权利要求6所述的方法,其特征在于,在依据所述第一角度信息确定光学移轴的第一偏移量之后,所述方法还包括:The method according to claim 6, wherein after determining the first offset of the optical axis shift according to the first angle information, the method further comprises:
    获取所述投影面的纹理信息,依据所述纹理信息确定所述目标投影区域中的障碍物信息;acquiring texture information of the projection surface, and determining obstacle information in the target projection area according to the texture information;
    依据所述障碍物信息确定将所述投影画面避开障碍物时进行光学移轴的第二偏移量。A second offset of the optical axis shift is determined according to the obstacle information when the projection image is to avoid obstacles.
  9. 根据权利要求8所述的方法,其特征在于,依据所述障碍物信息确定将所述投影画面避开障碍物时进行光学移轴的第二偏移量,包括:The method according to claim 8, wherein determining, according to the obstacle information, a second offset for performing an optical axis shift when the projection image avoids obstacles, comprising:
    依据所述障碍物信息确定将所述投影画面避开障碍物时,所述旋转机构需要旋转的第二角度信息,所述第二角度信息包括所述旋转机构在水平方向上旋转的水平偏移角度和在垂直方向上旋转的垂直偏移角度;When it is determined according to the obstacle information that the projection image needs to be rotated to avoid obstacles, the second angle information of the rotation mechanism needs to be rotated, and the second angle information includes the horizontal offset of the rotation of the rotation mechanism in the horizontal direction the angle and the vertical offset angle of the rotation in the vertical direction;
    依据所述第二对应关系及所述水平偏移角度,确定第二水平偏移量;determining a second horizontal offset according to the second correspondence and the horizontal offset angle;
    依据所述第二对应关系及所述垂直偏移角度,确定第二垂直偏移量。A second vertical offset is determined according to the second correspondence and the vertical offset angle.
  10. 根据权利要求9所述的方法,其特征在于,依据所述第一偏移量对所述投影光机进行光学移轴,包括:The method according to claim 9, wherein the optically shifting the optical axis of the projector according to the first offset comprises:
    依据所述第一水平偏移量和所述第二水平偏移量对所述投影光机进行光学水平移轴;performing an optical horizontal shift on the optical projector according to the first horizontal offset and the second horizontal offset;
    依据所述第一垂直偏移量和所述第二垂直偏移量对所述投影光机进行光学垂直移轴。Perform an optical vertical shift of the optical projector according to the first vertical offset and the second vertical offset.
  11. 根据权利要求1所述的方法,其特征在于,在依据所述第一偏移量对所述投影光机进行光学移轴后,所述方法还包括:The method according to claim 1, characterized in that after optically shifting the optical axis of the projector according to the first offset, the method further comprises:
    获取所述投影光机的第二投影信息及第二姿态信息;acquiring second projection information and second attitude information of the projector;
    依据所述第二投影信息和所述第二姿态信息确定将所述投影光机的投射方向调整至正对投影面时,所述旋转机构需要旋转的第三角度信息,并依据所述第三角度信息对所述旋转机构进行旋转。According to the second projection information and the second attitude information, when the projection direction of the projector is adjusted to face the projection surface, the third angle information that the rotation mechanism needs to rotate is determined, and according to the third The angle information rotates the rotating mechanism.
  12. 根据权利要求1所述的方法,其特征在于,所述投影光机具有数字校正功能,在依据所述第一偏移量对所述投影光机进行光学移轴后,所述方法还包括:The method according to claim 1, wherein the optical projector has a digital correction function, and after optically shifting the optical axis of the optical projector according to the first offset, the method further comprises:
    接收目标对象的校正指令,依据所述校正指令对投影画面进行校正,其中,所述校正指令用于指示通过所述数字校正功能对所述投影画面再次进行校正。A correction instruction of the target object is received, and the projection image is corrected according to the correction instruction, wherein the correction instruction is used to instruct the projection image to be corrected again by the digital correction function.
  13. 一种投影校正方法,其特征在于,所述方法应用于投影系统,所述投影系统至少包括:支持光学移轴的投影光机,所述方法包括:A projection correction method, characterized in that, the method is applied to a projection system, the projection system at least includes: a projection light machine supporting an optical axis shift, and the method includes:
    获取所述投影光机的投影信息;obtaining projection information of the projector;
    获取目标投影区域的位置信息;Obtain the location information of the target projection area;
    依据所述投影信息和所述位置信息确定所述投影光机中光学移轴的第一偏移量;determining a first offset of the optical axis shift in the projector according to the projection information and the position information;
    依据所述第一偏移量对所述投影光机进行光学移轴,以将所述投影光机的投影画面调整至所述目标投影区域。The optical axis of the light projector is optically shifted according to the first offset, so as to adjust the projection image of the light projector to the target projection area.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13, wherein the method further comprises:
    获取所述目标投影区域中的障碍物信息;obtain obstacle information in the target projection area;
    依据所述障碍物信息确定所述投影光机中光学移轴的第二偏移量;determining a second offset of the optical shift axis in the projector according to the obstacle information;
    依据所述第二偏移量对所述投影光机进行光学移轴,以将所述投影画面避开障碍物。The optical axis of the projector is optically shifted according to the second offset, so as to avoid obstacles on the projected image.
  15. 一种投影校正装置,其特征在于,包括:A projection correction device, comprising:
    第一获取模块,用于获取投影光机的投影信息;a first acquisition module, used for acquiring projection information of the projector;
    第二获取模块,用于获取所述投影光机的姿态信息;a second acquisition module, configured to acquire the attitude information of the projector;
    第一确定模块,用于依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对投影面时,旋转机构需要旋转的第一角度信息,其中,所述投影面为目标投影区域所在的平面;a first determining module, configured to determine, according to the projection information and the attitude information, the first angle information that the rotation mechanism needs to rotate when the projection direction of the light projector is adjusted to face the projection surface, wherein the projection The face is the plane where the target projection area is located;
    旋转模块,用于依据所述第一角度信息对所述旋转机构进行旋转;a rotation module, configured to rotate the rotation mechanism according to the first angle information;
    第二确定模块,用于依据所述第一角度信息确定光学移轴的第一偏移量;a second determining module, configured to determine the first offset of the optical axis shift according to the first angle information;
    移轴模块,用于依据所述第一偏移量对所述投影光机进行光学移轴。An axis-shifting module is used for optically shifting the optical axis of the projector according to the first offset.
  16. 一种投影系统,其特征在于,包括:A projection system, characterized in that, comprising:
    支持光学移轴功能的投影光机,用于将投影画面投射至目标投影区域,其中,所述光学移轴功能用于实现对投影画面的位置进行调整;A projector light machine supporting an optical tilt-shift function, used for projecting a projection picture to a target projection area, wherein the optical tilt-shift function is used to adjust the position of the projection picture;
    图像采集模块,用于获取所述投影光机的投影信息;an image acquisition module for acquiring projection information of the projector;
    姿态信息采集模块,用于获取所述投影光机的姿态信息,所述姿态信息至少包括所述投影光机的姿态角度信息;an attitude information acquisition module, configured to acquire attitude information of the projector, the attitude information including at least attitude angle information of the projector;
    计算处理模块,用于依据所述投影信息和所述姿态信息确定将所述投影光机的投射方向调整至正对投影面时,旋转模块需要旋转的第一角度信息;a calculation processing module, configured to determine the first angle information that the rotation module needs to rotate when the projection direction of the projector is adjusted to face the projection surface according to the projection information and the attitude information;
    旋转模块,用于依据所述第一角度信息将所述投影光机的投射方向调整至正对所述投影面。The rotation module is used for adjusting the projection direction of the light projector to face the projection surface according to the first angle information.
  17. 一种非易失性存储介质,其特征在于,所述非易失性存储介质包括存储的程序,其中,在所述程序运行时控制所述非易失性存储介质所在设备执行权利要求1至14中任意一项所述的投影校正方法。A non-volatile storage medium, characterized in that the non-volatile storage medium includes a stored program, wherein when the program is run, the device where the non-volatile storage medium is located is controlled to execute claims 1 to 1. The projection correction method described in any one of 14.
PCT/CN2021/120673 2021-03-05 2021-09-26 Projection correction method and apparatus, and projection system WO2022183721A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110246066.9 2021-03-05
CN202110246066.9A CN114791687B (en) 2021-03-05 2021-03-05 Projection correction method, device and projection system

Publications (1)

Publication Number Publication Date
WO2022183721A1 true WO2022183721A1 (en) 2022-09-09

Family

ID=82460065

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/120673 WO2022183721A1 (en) 2021-03-05 2021-09-26 Projection correction method and apparatus, and projection system

Country Status (2)

Country Link
CN (1) CN114791687B (en)
WO (1) WO2022183721A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003009038A (en) * 2001-06-19 2003-01-10 Nec Viewtechnology Ltd Projector device
JP2008017348A (en) * 2006-07-07 2008-01-24 Matsushita Electric Works Ltd Video display apparatus, and distortion correction processing method of video signal
JP2008209740A (en) * 2007-02-27 2008-09-11 Seiko Epson Corp Projection system, projector, screen device, and correction method
CN101776837A (en) * 2009-01-13 2010-07-14 精工爱普生株式会社 Projector and control method
CN104243879A (en) * 2013-06-24 2014-12-24 中兴通讯股份有限公司 Image correcting method for projection terminal and projection terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659801B (en) * 2017-05-12 2023-05-09 杭州一隅千象科技有限公司 Cross-arrangement multi-direction ring curtain full-coverage projection method, system and projector
CN110191328A (en) * 2019-06-19 2019-08-30 广景视睿科技(深圳)有限公司 A kind of trend projection arrangement, method and projector
CN110677634B (en) * 2019-11-27 2021-06-29 成都极米科技股份有限公司 Trapezoidal correction method, device and system for projector and readable storage medium
CN111399322B (en) * 2020-04-08 2021-08-17 成都极米科技股份有限公司 Projection equipment and electric shaft shifting structure thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003009038A (en) * 2001-06-19 2003-01-10 Nec Viewtechnology Ltd Projector device
JP2008017348A (en) * 2006-07-07 2008-01-24 Matsushita Electric Works Ltd Video display apparatus, and distortion correction processing method of video signal
JP2008209740A (en) * 2007-02-27 2008-09-11 Seiko Epson Corp Projection system, projector, screen device, and correction method
CN101776837A (en) * 2009-01-13 2010-07-14 精工爱普生株式会社 Projector and control method
CN104243879A (en) * 2013-06-24 2014-12-24 中兴通讯股份有限公司 Image correcting method for projection terminal and projection terminal

Also Published As

Publication number Publication date
CN114791687B (en) 2024-02-27
CN114791687A (en) 2022-07-26

Similar Documents

Publication Publication Date Title
JP5224721B2 (en) Video projection system
JP3509652B2 (en) Projector device
US9726965B2 (en) Projection device, image correction method, and computer-readable recording medium
JP6146025B2 (en) Projection apparatus, image correction method, and program
CN110099266B (en) Projector picture correction method and device and projector
JP2022528659A (en) Projector keystone correction methods, devices, systems and readable storage media
CN105308503A (en) System and method for calibrating a display system using a short throw camera
WO2020252934A1 (en) Dynamic projection device and method, and projector
US6877864B1 (en) Projector and method of correcting image distortion
US9398278B2 (en) Graphical display system with adaptive keystone mechanism and method of operation thereof
WO2022206527A1 (en) Method for projection image correction and laser projection device
CN114727081B (en) Projector projection correction method and device and projector
CN101132535A (en) Multi-projection large screen split-joint method based on rotating platform
JP2006094558A (en) Projection system
WO2005084017A1 (en) Multiprojection system
JP2012019295A (en) Display system, projection device, and imaging device
WO2013124901A1 (en) Optical-projection-type display apparatus, portable terminal, and program
CN114286068B (en) Focusing method, focusing device, storage medium and projection equipment
JP4199641B2 (en) Projector device
CN112911270B (en) Image correction method for 100% offset three-dimensional sliced projection imaging system
WO2022183721A1 (en) Projection correction method and apparatus, and projection system
JP5187480B2 (en) Projector, program, information storage medium, and image generation method
WO2022062604A1 (en) Projection screen adjusting method and apparatus, and projector, and storage medium
JP2013243616A (en) Projection device, image correction method, and program
CN114827557B (en) Projection trapezoid correction method, projection trapezoid correction device and projection system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21928796

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21928796

Country of ref document: EP

Kind code of ref document: A1