A projector based on omnidirectional trapezoidal technology

By combining omnidirectional trapezoidal technology and multi-module collaborative work in the projector, low-cost, high-reliability projection picture correction is achieved, solving the contradiction between cost and accuracy in the existing technology, and reducing the impact on ambient light and Dependence on complex scenarios.

CN116886881BActive Publication Date: 2024-09-24SHENZHEN JIXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310928829.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2024-09-24
Estimated Expiration
2043-07-26

AI Technical Summary

Technical Problem

Existing projector keystone correction technology is difficult to find a balance between low cost and high reliability, and is greatly affected by ambient light and complex scenes, and lacks efficient integration design of hardware and software.

Method used

Using a projector based on omnidirectional trapezoidal technology, combined with the main control module, gyroscope module, stepper motor control module, camera module and optocoupler feedback module, automatic correction and cost reduction are achieved through projection feature map recognition, attitude measurement and motor adjustment. and improve correction accuracy.

Benefits of technology

It achieves high-precision trapezoidal correction in different environments, reduces the impact of projection picture distortion, avoids correction failures in high-cost and complex scenarios, and improves the flexibility and reliability of the projector.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886881B
    Figure CN116886881B
Patent Text Reader

Abstract

The present invention provides a projector based on omnidirectional trapezoidal technology, comprising: a main control module and a gyroscope module, a stepper motor control module, a camera module, an optical coupling feedback module and a storage module connected to the main control module, wherein the optical coupling feedback module comprises a first optical coupling feedback unit and a second optical coupling feedback unit, wherein the first optical coupling feedback unit and the second optical coupling feedback unit are respectively connected to the inner side and the outer side of the telescopic stroke of the optical lens of the projector; the driving chip of the stepper motor control module is connected to its stepper motor through a driving interface; during the projection control process, a preset feature map is first projected by the projector, and then feature points are detected, and then the posture corresponding to each feature point is calculated by posture measurement, and calculation, setting and corresponding adjustment are performed according to the posture matrix. The present invention realizes the trapezoidal correction of the projected image with a relatively low cost and a highly reliable correction effect, and can effectively reduce the use limitations of the product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a projector, in particular to a projector based on omnidirectional trapezoidal technology. Background Art

[0002] With the development of science and technology, projectors as a high-tech product have been widely used in entertainment, education, business and other fields. In daily life, we can see various types of projection equipment, such as home theaters, school classrooms and conference rooms. However, although projectors play an important role in facilitating people to obtain information and improve work efficiency, there are still some problems in the actual application process.

[0003] Among them, distortion and deformation of the projected image is one of the most common problems in the use of projectors. This not only affects the user's viewing experience, but may also lead to inaccurate information transmission. In order to solve this problem, a variety of projector trapezoidal correction methods and technologies have appeared on the market.

[0004] At present, the projector trapezoidal correction technology mainly includes TOF ranging technology, gyroscope technology, camera technology, projection screen feature point detection technology and triangulation principle. These technologies have their own characteristics and can be selected according to actual application scenarios and needs. Among them, the real-time performance of TOF ranging technology is good, but the cost is high; although the gyroscope technology has good real-time performance and does not require additional hardware module support, it is not ideal for scenes with frequent posture changes; the camera technology is convenient to implement, but it is affected by factors such as ambient light, and the correction effect is not reliable; the projection screen feature point detection technology does not require additional hardware module support, but its effect is not ideal for complex scenes; and the accuracy based on the triangulation principle is high, but the installation process is cumbersome and the cost is high. Therefore, there is no projector in the prior art that can well meet the low-cost and high-reliability correction effects through the efficient fusion design between hardware and software. Summary of the invention

[0005] The technical problem to be solved by the present invention is that it is necessary to provide a projector based on omnidirectional trapezoidal technology, aiming to be able to well meet the needs of low cost and high reliability correction effect through efficient fusion design between hardware and software, and provide a complete set of hardware technical solutions and their corresponding software control process.

[0006] In this regard, the present invention provides a projector based on omnidirectional trapezoidal technology, comprising: a main control module, a gyroscope module, a stepper motor control module, a camera module, an optical coupling feedback module and a storage module, wherein the gyroscope module, the stepper motor control module, the camera module, the optical coupling feedback module and the storage module are respectively connected to the main control module, the optical coupling feedback module comprises a first optical coupling feedback unit and a second optical coupling feedback unit, wherein the first optical coupling feedback unit and the second optical coupling feedback unit are respectively connected to the inner side and the outer side of the telescopic stroke of the optical lens of the projector; the driving chip of the stepper motor control module is connected to its stepper motor through a driving interface; the The gyroscope module includes a six-axis gyroscope chip U3, a resistor R892, a capacitor C501, a resistor R893 and a capacitor C502, wherein the first input pin and the second input pin of the six-axis gyroscope chip U3 are respectively connected to the input end of the motion sensor through the resistor R892 and the resistor R893; the power pin, the enable pin, the data pin and the clock pin of the six-axis gyroscope chip U3 are all connected to one end and the power end of the capacitor C501, and are respectively connected to one end of the capacitor C502, the other end of the capacitor C501 and the other end of the capacitor C502 are grounded, and the capacitance of the capacitor C501 and the capacitor C502 are equal;

[0007] The projection control process of the projector based on the omnidirectional trapezoidal technology comprises the following steps:

[0008] Step S1, projecting a preset feature map through an optical lens of a projector, identifying parameter information of feature points in the feature map, and saving the parameter information to a storage module, wherein the preset feature map includes a middle checkerboard and four corner points, and the checkerboard of the corner points is smaller than the middle checkerboard;

[0009] Step S2, obtaining the rotation angle information of the projector by reading the data of the gyroscope module, and triggering the omnidirectional trapezoidal function when the data jitter change value exceeds a preset threshold;

[0010] Step S3, after the projector automatically focuses, the omnidirectional trapezoidal function is activated, and a preset characteristic map is projected through the optical lens;

[0011] Step S4, first obtain a calibration image, and perform corner point detection and line length calculation on the calibration image to identify all feature points of the feature image;

[0012] Step S5, obtaining the coordinates of each corner point in the camera coordinate system corresponding to the camera module according to the relationship between the feature map and the calibration image;

[0013] Step S6, obtaining a posture matrix of the projector in the camera coordinate system according to the relationship between the feature points and the camera coordinate system;

[0014] Step S7, calculating the angles between the x-axis component, the y-axis component and the z-axis component and the vector modulus length respectively from the attitude matrix, and setting the omnidirectional trapezoidal parameters of the projector image;

[0015] Step S8, adjusting the projector image through the stepper motor control module according to the omnidirectional trapezoidal parameters.

[0016] A further improvement of the present invention is that the viewing angle range of the optical lens of the projector is 40°, the viewing angle range of the camera of the camera module is 59°, and the camera FOV of the camera module covers the projected image of the optical lens within a range of 2 meters.

[0017] A further improvement of the present invention is that the distance between the optical lens of the projector and the camera of the camera module is 135.74 mm, and the camera is offset in the direction of the optical lens during installation, with an offset angle of 3°.

[0018] A further improvement of the present invention is that the camera module includes a camera connector J8, a magnetic bead FB2, a capacitor C948, a resistor R5, a resistor R6, a protection tube ESD3 and a protection tube ESD4, the power supply end is connected to one end of the capacitor C948 and the camera connector J8 through the magnetic bead FB2, and the other end of the capacitor C948 is grounded; the data pin of the camera connector J8 is connected to the USB pin of the main control module through the resistor R5 and the resistor R6, and is grounded through the protection tube ESD3 and the protection tube ESD4.

[0019] A further improvement of the present invention is that step S1 includes the following sub-steps:

[0020] Step S101, projecting a preset feature map through the optical lens of the projector, and then photographing a plurality of feature maps at different positions and angles as calibration images through the camera module;

[0021] Step S102, performing corner detection on each calibration image through the findChessboardCorners() function of the visual learning software, and returning the detection result;

[0022] Step S103, performing sub-pixel processing on the detected corner points through the cornerSubPix() function of the visual learning software to obtain the coordinates of the corner points;

[0023] Step S104, calculating the line lengths of the four corner points of each calibration image, then identifying the middle chessboard, establishing an image space coordinate system and a camera coordinate system, and matching the corner point coordinates detected in each calibration image with the three-dimensional coordinates of the camera coordinate system, so as to determine the distortion of the calibration image and the projection matrix of the camera;

[0024] Step S105, using the calibrationMatrixValues() function of the visual learning software to perform accuracy evaluation on the transformation matrix, where the transformation matrix refers to the conversion matrix between the image space coordinate system and the camera coordinate system, so as to obtain the offset value between the projector optical lens and the camera center axis, and the relationship between the transformation matrix and the five feature maps is used to form the device posture parameters with the left and right angles of the orthographic projection being 0, which are used as the parameter information of the feature points in the feature map;

[0025] Step S106, saving the parameter information to a storage module.

[0026] A further improvement of the present invention is that in step S2, after reading the data of the gyroscope module, the angle information of the projector rotating around the X-axis, Y-axis and Z-axis is obtained, and the angle information of the three axes is weighted and superimposed to obtain the rotation angle information of the projector, the sum of the weights of the three axes is 1, the rotation angle information within 3 seconds is calculated, and the rotation angle information is used as the data jitter change value. When the data jitter change value exceeds a preset threshold, the omnidirectional trapezoidal function is triggered.

[0027] A further improvement of the present invention is that after triggering the omnidirectional trapezoidal function, the following triggering steps are included:

[0028] Step A1, calling the gyroscope module to measure the rotation speed and angle of the projector, and parsing the read raw data into angle values ​​of the three axes of Roll, Pitch and Yaw according to the data format and rules of the gyroscope module;

[0029] Step A2, determining the projector posture according to the angle values ​​of the three axes of Roll, Pitch and Yaw;

[0030] Step A3, according to the projector posture, determine the rotation angle and pitch angle of the projector, with Roll representing the rotation angle of the projector around the X-axis, Pitch representing the rotation angle of the projector around the Y-axis, and Yaw representing the rotation angle of the projector around the Z-axis; jump to step S3.

[0031] A further improvement of the present invention is that step S4 includes the following sub-steps:

[0032] Step S401, first obtain a calibration image, and shoot a preset feature map through a camera module;

[0033] Step S402, performing corner detection on the image through findChessboardCorners() function of visual learning software;

[0034] Step S403, the detected corner points are processed at sub-pixel level by using the cornerSubPix() function of the visual learning software;

[0035] Step S404, according to the coordinates of the feature points in the calibration image, the lengths of four lines of each feature map are obtained by calculating the distance between every two adjacent feature points;

[0036] Step S405, calculating the side length of the middle chessboard grid using the detected feature point coordinates.

[0037] A further improvement of the present invention is that step S6 includes the following sub-steps:

[0038] Step S601, setting the coordinate information of the four corner points of the characteristic graph to (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) and (x4, y4, z4), and setting the relationship matrix R between the four corner points and the camera space coordinate system;

[0039] Step S602, calculating the coordinate d of the first corner point restored to a left-right angle of 0 by the formula d = R * [xyz]', where [xyz]' represents the column vector corresponding to the relationship matrix R;

[0040] Step S603, returning to step S602, replacing the coordinates with the coordinates of the remaining corner points respectively, and calculating the coordinates e, f and g of the remaining three corner points in the camera space coordinate system;

[0041] Step S604, using the four corner point coordinates d, e, f and g calculated in step S602 and step S603, the angle and direction relationship between the five feature graphs are calculated by using the trigonometric relationship and the comparison of the line lengths;

[0042] Step S605, determining the posture between the feature images according to the angle and direction relationship obtained in step S604, and storing the posture information as a one-dimensional matrix R_hat.

[0043] A further improvement of the present invention is that step S7 includes the following sub-steps:

[0044] Step S701, converting the posture matrix R_hat into a quaternion form through the cv::Rodrigues function;

[0045] Step S702, normalize the quaternion to obtain a normalized vector V, V = (Vx, Vy, Vz);

[0046] Step S703, by formula ||V|| = sqrt(Vx 2 + Vy 2 + Vz 2 ) Calculate the modulus ||V|| of vector V;

[0047] Step S704, calculating the angle angle_x between the x-axis component and the modulus length of the vector V by using the formula angle_x= arccos(Vx / ||V||);

[0048] Step S705, calculating the angle angle_y between the y-axis component and the modulus length of the vector V by using the formula angle_y = arccos(Vy / ||V||);

[0049] Step S706, calculating the angle angle_z between the z-axis component and the modulus length of the vector V by using the formula angle_z = arccos(Vz / ||V||);

[0050] Step S707: Using the angle angle_z as the left and right angles of the projector, and setting the angle angle_x, angle angle_y and angle angle_z as omnidirectional trapezoidal parameters of the projector image.

[0051] Compared with the prior art, the beneficial effects of the present invention are: optimizing and improving the hardware module and circuit design of the projector based on omnidirectional trapezoidal technology, in terms of hardware, through the collaborative work of the main control module, gyroscope module, stepper motor control module, camera module, optical coupling feedback module and storage module, a good hardware foundation is provided for the projection control process of the projector, and the disadvantage of high cost can be effectively avoided; on this basis, a matching projection control process is further provided, firstly a preset feature map is projected by the projector, then the feature points of the feature map are detected, and then the posture corresponding to each feature point is calculated by posture measurement, and the calculation, setting and corresponding adjustment are performed according to the posture matrix, thereby the feature point detection and posture detection are reasonably and efficiently organically integrated, so as to automatically and accurately evaluate the posture of the projector, thereby realizing an efficient fusion design between hardware and software. The present invention can adapt to different environments to realize high-precision trapezoidal correction, is not affected by external factors such as complex scenes and ambient light, realizes trapezoidal correction of the projection picture with low cost and high reliable correction effect, and effectively reduces the use limitations of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a schematic diagram of the module structure of an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of the circuit principle of a gyroscope module according to an embodiment of the present invention;

[0054] Figure 3 1 is a schematic diagram of a circuit principle of a stepper motor control module according to an embodiment of the present invention;

[0055] Figure 4 is a schematic diagram of the circuit principle of a camera module according to an embodiment of the present invention;

[0056] Figure 5 1 is a schematic diagram of a circuit principle of an optocoupler feedback module according to an embodiment of the present invention;

[0057] Figure 6 It is a schematic diagram of the relationship between the FOV field of view angle of a camera module and the projection angle of a projector optical lens according to an embodiment of the present invention;

[0058] Figure 7 is a schematic diagram of the relationship between the distance and angle between a camera and an optical lens according to an embodiment of the present invention;

[0059] Figure 8 It is a schematic diagram of the working process of an embodiment of the present invention;

[0060] Fig. 9 It is a schematic diagram of a characteristic diagram of an embodiment of the present invention.

[0061] Figure identification: 1-main control module; 2-gyroscope module; 3-stepping motor control module; 4-camera module; 401-camera; 5-optical coupling feedback module; 501-first optical coupling feedback unit; 502-second optical coupling feedback unit; 6-storage module; 7-optical lens. DETAILED DESCRIPTION

[0062] In the description of the present invention, if it involves a description of orientation, for example, the orientation or position relationship indicated by "upper", "lower", "front", "back", "left", "right", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. If a certain technical feature is referred to as "set", "fixed", "connected", or "installed" on another technical feature, it can be directly set, fixed, or connected to the other technical feature, or it can be indirectly set, fixed, connected, or installed on the other technical feature.

[0063] In the description of the present invention, if "several" is involved, it means more than one; if "multiple" is involved, it means more than two; if "greater than", "less than", or "exceed" is involved, it should be understood as not including the number itself; if "above", "below", or "within" is involved, it should be understood as including the number itself. If "first", "second", etc. are involved, they should be understood as being used only to distinguish the names of the same or similar technical features, and should not be understood as implying / indicating the relative importance of the technical features, the number of the technical features, or the order of the technical features.

[0064] The preferred embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0065] like Figures 1 to 9 As shown, this embodiment provides a projector based on omnidirectional trapezoidal technology, including: a main control module 1, a gyroscope module 2, a stepper motor control module 3, a camera module 4, an optical coupling feedback module 5 and a storage module 6, wherein the gyroscope module 2, the stepper motor control module 3, the camera module 4, the optical coupling feedback module 5 and the storage module 6 are respectively connected to the main control module 1, and the optical coupling feedback module 5 includes a first optical coupling feedback unit 501 and a second optical coupling feedback unit 502, and the first optical coupling feedback unit 501 and the second optical coupling feedback unit 502 are respectively connected to the inner side and the outer side of the telescopic stroke of the optical lens 7 of the projector; the driving chip of the stepper motor control module 3 is connected to its stepper motor through a driving interface; the gyroscope module 2 includes a six-axis gyroscope chip U3, a resistor R892, a capacitor C501, a resistor R893 and a capacitor C502, and the first input of the six-axis gyroscope chip U3 The input pin (INT pin) and the second input pin (INT1 pin) are connected to the input end LSM6DSL_INT of the motion sensor through the resistor R892 and the resistor R893 respectively; the power pin (VDD pin), the enable pin (SENB pin), the data pin (MSDA pin) and the clock pin (MCLK pin) of the six-axis gyroscope chip U3 are all connected to one end of the capacitor C501 and the power end, and are respectively connected to one end of the capacitor C502, the other end of the capacitor C501 and the other end of the capacitor C502 are grounded, and the capacitance of the capacitor C501 and the capacitor C502 are equal; different from the practice of only using one capacitor for grounding in the prior art, this embodiment is grounded at the power end through the capacitor C501, and is grounded through the parallel capacitor C502, which can better realize the filtering and protection functions of the power end and the ground end, and improve the stability and reliability of the circuit.

[0066] like Figure 8 As shown, the projection control process of the projector based on the omnidirectional trapezoidal technology includes the following steps:

[0067] Step S1, projecting a preset feature map through the optical lens 7 of the projector, identifying parameter information of feature points in the feature map, and saving the parameter information to the storage module 6, wherein the preset feature map includes a middle chessboard and four corner points, and the chessboard of the corner points is smaller than the middle chessboard;

[0068] Step S2, obtaining the rotation angle information of the projector by reading the data of the gyroscope module 2, and triggering the omnidirectional trapezoidal function when the data jitter change value exceeds a preset threshold;

[0069] Step S3, after the projector automatically focuses, the omnidirectional trapezoidal function is activated, and a preset characteristic map is projected through the optical lens 7;

[0070] Step S4, first obtain a calibration image, and perform corner point detection and line length calculation on the calibration image to identify all feature points of the feature image;

[0071] Step S5, obtaining the coordinates of each corner point in the camera coordinate system corresponding to the camera module 4 according to the relationship between the feature map and the calibration image;

[0072] Step S6, obtaining a posture matrix of the projector in the camera coordinate system according to the relationship between the feature points and the camera coordinate system;

[0073] Step S7, calculating the angles between the x-axis component, the y-axis component and the z-axis component and the vector modulus length respectively from the attitude matrix, and setting the omnidirectional trapezoidal parameters of the projector image;

[0074] Step S8, adjusting the projector image through the stepper motor control module 3 according to the omnidirectional trapezoidal parameters.

[0075] The main control module 1 of this embodiment is preferably implemented by using an HI3751 integrated chip. The HI3751 chip module is connected to the driver chip U56 of the stepper motor control module 3 through four output pins. The driver chip U56 is preferably an AT8833 integrated chip or a DRC8833C integrated chip. The four output pins of the driver chip U56 are connected to the stepper motor M, thereby realizing the control of the stepper motor. The first optical coupler feedback unit 501 and the second optical coupler feedback unit 502 are respectively connected to the inner side and the outer side of the telescopic travel of the optical lens 7 of the projector, that is, the two optical couplers are respectively connected to the innermost and the outermost of the telescopic travel of the optical lens 7 of the projector, and are respectively connected through the following Figure 5The first interface J15 and the second interface J10 of the first optical coupling feedback unit 501 and the second optical coupling feedback unit 502 implement the output and feedback of the optical coupling signal, so as to be used to identify whether the current state of the optical lens 7 is at the innermost or outermost position. When the optical lens 7 is at the innermost or outermost position, the corresponding level is triggered. Figure 5 The PI_DET1 feedback pin and PI_DET2 feedback pin of the optocoupler feedback module shown in FIG. Figure 6 The HI3751 integrated chip shown is used to implement programming control.

[0076] like Figure 2 As shown, the gyroscope module 2 is preferably connected via I 2 The C controller is connected to the HI3751 integrated chip, wherein the first input pin LSM6DSL_INT of the six-axis gyroscope chip U3 is an interrupt pin for triggering data update. The gyroscope module 2 is used to calculate the rotation angle and trigger the left and right angle calculation of the projector. Figure 4 The circuit diagram of the camera module 4 is shown. The camera 401 preferably uses a 30W pixel camera with a USB interface. The USB pin of the HI3751 integrated chip is connected to Figure 4 The HUB_DM2 and HUB_DP2 shown enable the main control module 1 to access the camera module 4 through the USB interface to acquire images, providing a better basis for the mobile stepper motor to control the focus clarity.

[0077] like Figure 6 As shown, the viewing angle range of the optical lens 7 of the projector in this embodiment is 40°, the viewing angle range of the camera 401 of the camera module 4 is 59°, and the FOV of the camera 401 of the camera module 4 covers the projected image of the optical lens 7 within a range of 2 meters. FOV refers to Field of View, that is, the angle range of receiving images. Through such settings and the control of distance and angle, the camera 401 can completely cover the projected image of the optical lens 7, ensuring that the picture taken by the camera 401 completely contains the image of the projector, avoiding correction failure.

[0078] like Figure 6 and Figure 7As shown, the distance between the optical lens 7 of the projector and the camera 401 of the camera module 4 in this embodiment is 135.74mm, and the camera 401 is offset in the direction of the optical lens 7 when installed, and the offset angle is 3°. This special design is because it is found in actual research and development and testing that if the distance between the optical lens 7 of the projector and the camera 401 of the camera module 4 is not appropriate, or the camera 401 and the optical lens 7 are completely parallel, it is not conducive to real-time tracking correction in scenes with frequent posture changes. However, this embodiment uses a special design that the distance between the optical lens 7 and the camera 401 of the camera module 4 is 135.74±0.1mm and the central axis angle between the camera 401 and the optical lens 7 is 3°, and cooperates with the overall technical solution of combining software and hardware described above, so that real-time tracking correction can be well achieved even in scenes with frequent posture changes, so as to achieve more accurate angle calculation and correction.

[0079] like Figure 4 As shown, the camera module 4 in this embodiment includes a camera connector J8, a magnetic bead FB2, a capacitor C948, a resistor R5, a resistor R6, a protection tube ESD3 and a protection tube ESD4. The power supply end is connected to one end of the capacitor C948 and the camera connector J8 through the magnetic bead FB2, and the other end of the capacitor C948 is grounded; the data pins (i.e., HUB_DM2 and HUB_DP2) of the camera connector J8 are connected to the USB pins of the main control module 1 through the resistor R5 and the resistor R6, respectively, and are grounded through the protection tubes ESD3 and the protection tubes ESD4, respectively, to realize the ESD protection function.

[0080] In terms of hardware, the gyroscope module 2 obtains the rotation angle information of the projector through the gyroscope; the stepper motor control module 3 also adopts the existing stepper motor, Figure 3The optimized circuit shown can achieve good correction control; the camera module 4 can use the existing camera to shoot the feature map, without TOF or a special high-definition camera. Even if a 300,000-pixel camera is used, the same effect can be achieved, but the cost is very competitive. It is worth noting that the various circuit designs shown in this embodiment do not directly adopt the integrated circuit module of the prior art, but are specifically designed in combination with the projection control process of the projector based on the omnidirectional trapezoidal technology described in this embodiment. It not only has the advantage of low cost, but also enables this embodiment to adapt to different environments through the matching design of software and hardware to achieve high-precision trapezoidal correction, and is not affected by external factors such as complex scenes and ambient light; therefore, this embodiment can achieve trapezoidal correction of the projected image at a lower cost and with a highly reliable correction effect, and effectively reduces the use limitations of the product through the collaborative software and hardware technical solutions. The storage module 6 can also use the storage module that comes with the projector.

[0081] In this embodiment, before entering the main control process from step S2 to step S8, the projector is first calibrated in step S1. The specific calibration method includes the following sub-steps:

[0082] Step S101, projecting the image through the optical lens 7 of the projector Fig. 9 The preset feature map shown in the figure comprises a middle chessboard and four corner points, the chessboard of the corner points is smaller than the middle chessboard, that is, the chessboard rows and columns of the corner points are smaller than the rows and columns of the middle chessboard, and the corner points are symmetrically arranged around the middle chessboard; then, the camera module 4 is used to shoot a plurality of feature maps at different positions and angles as calibration images, and preferably, the visual learning software Opencv is used to identify the following Fig. 9 The feature points of the feature graph shown in the figure include four 2*2 checkerboards on the periphery and a 5*9 middle checkerboard in the middle row. This design can better realize the shooting and feature point recognition, facilitate the subsequent calculation and control process, and further reduce the requirements for the camera;

[0083] Step S102, using the findChessboardCorners() function of the visual learning software to perform corner detection on each calibration image, so as to identify Fig. 9 The coordinate positions of the four checkerboard corner points in the feature map shown, and the detection results are returned;

[0084] Step S103, performing sub-pixel processing on the detected corner points through the cornerSubPix() function of the visual learning software, and obtaining the coordinates of the corner points after improving the accuracy of the corner points through the sub-pixel processing;

[0085] Step S104, calculate the line lengths of the four corner points of each calibration image, that is, the distance between every two adjacent corner points, then identify the middle chessboard, record the positional relationship between the middle chessboard and the corner points, use the triangular relationship to calculate the relationship between the five feature maps, determine the image distortion and the camera projection matrix, and the specific method for determining the image distortion and the camera projection matrix is: first establish an image space coordinate system and a camera coordinate system, the image space coordinate system refers to the space coordinate system established for the feature map, the camera coordinate system is also called the camera space coordinate system, refers to the calibration coordinate system established for the camera image, and the camera coordinate system is also called the camera space coordinate system, and then correspond the corner point coordinates detected in each calibration image to the three-dimensional coordinates of the camera coordinate system, so as to determine the distortion of the calibration image and the camera projection matrix; the five feature maps refer to the middle chessboard and the four corner points, a total of five feature maps;

[0086] Step S105, the accuracy of the transformation matrix is ​​evaluated by the calibrationMatrixValues() function of the visual learning software, wherein the transformation matrix refers to the conversion matrix between the image space coordinate system and the camera coordinate system, so as to obtain the offset value between the projector optical lens 7 and the central axis of the camera 401, and the relationship between the transformation matrix and the five feature maps is used to form the device posture parameters with the left and right angles of the orthographic projection being 0, which are used as the parameter information of the feature points in the feature map;

[0087] Step S106, saving the parameter information to the storage module 6.

[0088] Furthermore, in step S105 of this embodiment, after obtaining the device posture parameters, the device posture parameters are matched and saved with the corresponding feature point information, and a one-to-one corresponding index record is established, which serves as the parameter information of the feature point in the feature map.

[0089] In step S2 of the present embodiment, after reading the data of the gyroscope module 2, the angle information of the projector rotating around the X-axis, Y-axis and Z-axis is obtained, and the angle information of the three axes is weighted and superimposed to obtain the rotation angle information of the projector, the sum of the weights of the three axes is 1, and the rotation angle information within 3 seconds is calculated, and the rotation angle information is used as the data jitter change value, and the omnidirectional trapezoidal function is triggered when the data jitter change value exceeds the preset threshold. Among them, the weight of the X-axis, the weight of the Y-axis and the weight of the Z-axis can be customized and adjusted according to actual conditions. In practical applications, it is preferred to determine the size of the weight according to the angle information of the three axes, that is, the larger the angle information, the larger the rotation angle, the larger the set weight, and the sum of the weights of the three axes is 1, so that the calculated jitter data is more accurate, thereby determining whether to trigger the omnidirectional trapezoidal function.

[0090] After the omnidirectional trapezoidal function is triggered in this embodiment, the following triggering steps are included:

[0091] Step A1, calling the gyroscope module 2 to measure the rotation speed and angle of the projector, and parsing the read raw data into angle values ​​of the three axes of Roll, Pitch and Yaw according to the data format and rules of the gyroscope module 2; the parsing process can be implemented according to the data format and rules preset by the gyroscope module 2, and can also be adjusted according to actual needs;

[0092] Step A2, determining the attitude of the projector according to the angle values ​​of the three axes Roll, Pitch and Yaw; that is, by determining the rotation angle of the projector relative to the initial position, the attitude calculation can be performed according to the angle value data of the three axes Roll, Pitch and Yaw;

[0093] Step A3, according to the projector posture, determine the rotation angle and pitch angle of the projector, with Roll representing the rotation angle of the projector around the X-axis, Pitch representing the rotation angle of the projector around the Y-axis, and Yaw representing the rotation angle of the projector around the Z-axis; jump to step S3.

[0094] The specific method for determining the rotation angle and pitch angle of the projector in this embodiment is: according to the gyroscope module 2, the reading module obtains the acceleration data Ax, Ay, and Az, wherein it is assumed that Az points to the center of the earth, then Ax is the acceleration value of the projector's pitch state; Ay is the acceleration value of the projector's rotation state; when the device is placed flat, Az points to the center of the earth, which is 1 gravitational acceleration, i.e. 1g. When the projector is tilted upward at an elevation angle of n degrees, the acceleration data of the Az and Ax axes will change. Through the three spatial axes and the relationship between trigonometric functions, we can obtain Az=1g*cos(n) and Ax=1g*sin(n). Since Az and Ax are known data read from the gyroscope, n can be calculated according to the above formula, that is, the pitch angle Pitch of the projector. In the same principle, Ay is the acceleration value of the projector's rotation posture. When the device is placed flat, Az points to the center of the earth, which is 1 gravitational acceleration, that is, 1g. When the projector rotates to n degrees, the data of the Az and Ay axes will change. Through the three spatial axes and the relationship between trigonometric functions, we can obtain Az=1g*cos(n') and Ay=1g*sin(n'). At this time, n' can also be calculated, that is, the rotation angle Roll of the projector. At this point, it is only necessary to further obtain a left-right angle to determine the final posture of the projector. In this embodiment, the left-right angle is obtained by jumping to step S3 and subsequent steps.

[0095] In step S3 of this embodiment, the projector is first focused, and then the projector is projected again after the focus is clear. Fig. 9The characteristic diagram shown in FIG. 1 and at the same time jump to step S4 to start the ladder program.

[0096] The step S4 of this embodiment is used to identify the feature points in the feature map again and calculate the line length, and determine the distortion of the image according to the calibration parameters. Specifically, it includes the following sub-steps:

[0097] Step S401, first obtain a calibration image, and shoot a preset feature map through the camera module 4;

[0098] Step S402, performing corner detection on the image through the findChessboardCorners() function of the visual learning software to obtain feature points on the corners of the chessboard;

[0099] Step S403, the detected corner points are processed at the sub-pixel level through the cornerSubPix() function of the visual learning software, that is, the sub-pixel level processing is achieved by performing sub-pixel level interpolation calculation around the corner points;

[0100] Step S404, according to the coordinates of the feature points in the calibration image, the lengths of four lines of each feature map are obtained by calculating the distance between every two adjacent feature points; these lines are composed of lines connecting the feature points of the four corner points, and can be obtained by calculating the Euclidean distance between two adjacent feature points;

[0101] Step S405, identifying the middle chessboard in the above image, and calculating the side length of the middle chessboard through the detected feature point coordinates.

[0102] Step S5 described in this embodiment is used to calculate the relationship between feature maps, read the transformation matrix obtained by calibration, that is, read the transformation matrix between the image space coordinate system and the camera coordinate system, calibrate the coordinates of the corner points detected in the calibrated image, match the image coordinates with the corresponding three-dimensional coordinates in the camera coordinate system, and obtain the coordinates of each corner point in the camera coordinate system.

[0103] In this embodiment, step S6 uses the comparison of triangular relationship and line length to calculate the relationship between the five feature maps. Step S6 specifically includes the following sub-steps:

[0104] Step S601, setting the coordinate information of the four corner points of the characteristic graph to (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) and (x4, y4, z4), and setting the relationship matrix R between the four corner points and the spatial coordinate system of the camera 401;

[0105] Step S602, calculating the coordinate d of the first corner point restored to a left-right angle of 0 by the formula d = R * [xyz]', where [xyz]' represents the column vector corresponding to the relationship matrix R;

[0106] Step S603, return to step S602, replace the coordinates with the coordinates of the remaining corner points respectively, and calculate the coordinates e, f and g of the remaining three corner points in the spatial coordinate system of the camera 401; that is, after obtaining the coordinate d, continue to calculate the coordinates of the other three corner points to obtain the e coordinate, f coordinate and g coordinate in the camera coordinate system, where d, e, f and g are used to represent the coordinates of the four corner points respectively;

[0107] Step S604, by the formula min ||R - R_hat|| 2 The minimum value is obtained to obtain the attitude matrix R_hat. At this time, the angle between the attitude matrix R_hat and the projector direction can be minimized. The attitude matrix R_hat is expressed as: R_hat= [abcd], where a, b, c, and d are the rotation angles of the projector in the x, y, and z directions respectively.

[0108] Step S604, using the four corner point coordinates d, e, f and g calculated in step S602 and step S603, the angle and direction relationship between the five feature graphs are calculated by using the trigonometric relationship and the comparison of the line lengths;

[0109] Step S605, determining the posture between the feature images according to the angle and direction relationship obtained in step S604, and storing the posture information as a one-dimensional matrix R_hat.

[0110] In step S604 of this embodiment, the specific method of using the comparison of trigonometric relationship and line length to calculate the angle and direction relationship between the five feature maps is as follows: Calculate the line length between the feature maps. Calculate the length of the line between the feature maps by measuring the distance between the corner points. The specific determination method is as follows: record the length L1 from coordinate d to coordinate e, the length L2 from coordinate d to coordinate f, the length L3 from coordinate d to coordinate g, the length L4 from coordinate e to coordinate f, the length L5 from coordinate e to coordinate g, and the length L6 from coordinate f to coordinate g. From the trigonometric relationship, we can determine the angle and direction relationship between the feature maps. By comparing the lengths of L1 and L2, when the coordinates are known, we can determine the angle relationship of the three corner points with coordinates d, e and f, assuming the angle is a1; similarly, by comparing the lengths of L1 and L3, we can determine the angle relationship of the three corner points with coordinates d, e and g, assuming the angle is b1; by comparing the lengths of L4 and L5, we can determine the angle relationship of the three corner points with coordinates e, f, and g, assuming the angle is c1; by comparing the lengths of L4 and L6, we can determine the direction relationship of the three corner points with coordinates e, f and g, assuming the angle is d1.

[0111] In this embodiment, step S605 is used to determine the posture between the feature images based on the angle and direction relationship. The step S605 determines the posture between the feature images according to the angle and direction relationship obtained in step S604, and the posture information is stored as a one-dimensional matrix R_hat, that is, R_hat = [a1, b1, c1, d1], where a1, b1, c1, d1 are the angles determined in step S604, and the one-dimensional matrix R_hat is the posture data of the projector in the three directions of x, y and z.

[0112] Step S7 in this embodiment includes the following sub-steps:

[0113] Step S701, converting the attitude matrix R_hat into a quaternion form through the cv::Rodrigues function, and then obtaining a format matched by the omnidirectional trapezoidal function module, and returning a three-dimensional vector A, which is used to represent the quaternion corresponding to the rotation matrix;

[0114] Step S702, normalizing the quaternion to obtain a normalized vector V, V = (Vx, Vy, Vz), to ensure that its length is 1;

[0115] Step S703, by formula ||V|| = sqrt(Vx 2 + Vy 2 + Vz 2 ) calculates the modulus length ||V|| of the vector V; sqrt represents the square root calculation function;

[0116] Step S704, calculating the angle angle_x between the x-axis component and the modulus length of the vector V by using the formula angle_x= arccos(Vx / ||V||); arccos represents the inverse cosine function;

[0117] Step S705, calculating the angle angle_y between the y-axis component and the modulus length of the vector V by using the formula angle_y = arccos(Vy / ||V||);

[0118] Step S706, calculating the angle angle_z between the z-axis component and the modulus length of the vector V by using the formula angle_z = arccos(Vz / ||V||);

[0119] Step S707: Using the angle angle_z as the left and right angles of the projector, and setting the angle angle_x, angle angle_y and angle angle_z as omnidirectional trapezoidal parameters of the projector image.

[0120] It is worth noting that the angle angle_x and the angle angle_y are further used to compare with the angles obtained by the actual gyroscope to confirm the accuracy change during the conversion process, and then make final fine adjustments to the projector to increase the correction accuracy.

[0121] In step S8 of this embodiment, the angle angle_x, the angle angle_y and the angle angle_z are input into the omnidirectional trapezoidal function module, and the three-axis angles of the projector image are adjusted respectively by using the omnidirectional trapezoidal parameters.

[0122] In summary, this embodiment optimizes and improves the hardware module and circuit design of the projector based on omnidirectional trapezoidal technology. In terms of hardware, through the coordinated work of the main control module 1, the gyroscope module 2, the stepper motor control module 3, the camera module 4, the optical coupling feedback module 5 and the storage module 6, a good hardware foundation is provided for the projection control process of the projector, and the disadvantage of high cost can be effectively avoided; on this basis, a matching projection control process is further provided, firstly a preset feature map is projected by the projector, then the feature points of the feature map are detected, and then the posture corresponding to each feature point is calculated by posture measurement, and the calculation, setting and corresponding adjustment are performed according to the posture matrix, thereby rationally and efficiently integrating the feature point detection and the posture detection, so as to automatically and accurately evaluate the posture of the projector, thereby realizing an efficient fusion design between hardware and software. This embodiment can adapt to different environments to realize high-precision trapezoidal correction, is not affected by external factors such as complex scenes and ambient light, and realizes the trapezoidal correction of the projected image at a low cost and with a highly reliable correction effect, effectively reducing the limitations of the product.

[0123] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A projector based on omnidirectional trapezoidal technology, characterized in that: include: A main control module, a gyroscope module, a stepper motor control module, a camera module, an optical coupling feedback module and a storage module, wherein the gyroscope module, the stepper motor control module, the camera module, the optical coupling feedback module and the storage module are respectively connected to the main control module, wherein the optical coupling feedback module comprises a first optical coupling feedback unit and a second optical coupling feedback unit, wherein the first optical coupling feedback unit and the second optical coupling feedback unit are respectively connected to the inner side and the outer side of the telescopic stroke of the optical lens of the projector; the driving chip of the stepper motor control module is connected to the stepper motor thereof through a driving interface; the gyroscope module comprises a six-axis gyroscope core The six-axis gyroscope chip U3 comprises a chip U3, a resistor R892, a capacitor C501, a resistor R893 and a capacitor C502, wherein the first input pin and the second input pin of the six-axis gyroscope chip U3 are connected to the input end of the motion sensor through the resistor R892 and the resistor R893 respectively; the power pin, the enable pin, the data pin and the clock pin of the six-axis gyroscope chip U3 are connected to one end and the power end of the capacitor C501, and are respectively connected to one end of the capacitor C502, the other end of the capacitor C501 and the other end of the capacitor C502 are grounded, and the capacitance of the capacitor C501 and the capacitor C502 are equal; The projection control process of the projector based on the omnidirectional trapezoidal technology comprises the following steps: Step S1, projecting a preset feature map through an optical lens of a projector, identifying parameter information of feature points in the feature map, and saving the parameter information to a storage module, wherein the preset feature map includes a middle checkerboard and four corner points, and the checkerboard of the corner points is smaller than the middle checkerboard; Step S2, obtaining the rotation angle information of the projector by reading the data of the gyroscope module, and triggering the omnidirectional trapezoidal function when the data jitter change value exceeds a preset threshold; Step S3, after the projector automatically focuses, the omnidirectional trapezoidal function is activated, and a preset characteristic map is projected through the optical lens; Step S4, first obtain a calibration image, and perform corner point detection and line length calculation on the calibration image to identify all feature points of the feature map; Step S5, obtaining the coordinates of each corner point in the camera coordinate system corresponding to the camera module according to the relationship between the feature map and the calibration image; Step S6, obtaining a posture matrix of the projector in the camera coordinate system according to the relationship between the feature points and the camera coordinate system; Step S7, calculating the angles between the x-axis component, the y-axis component and the z-axis component and the vector modulus length respectively from the attitude matrix, and setting the omnidirectional trapezoidal parameters of the projector image; Step S8, adjusting the projector image through the stepper motor control module according to the omnidirectional trapezoidal parameters; The optical lens viewing angle of the projector is 40°, the camera viewing angle of the camera module is 59°, and the camera FOV of the camera module covers the projected image of the optical lens within a range of 2 meters; The distance between the optical lens of the projector and the camera of the camera module is 135.74 mm. When installed, the camera is offset in the direction of the optical lens, and the offset angle is 3°.

2. The projector based on omnidirectional trapezoidal technology according to claim 1, characterized in that: The camera module includes a camera connector J8, a magnetic bead FB2, a capacitor C948, a resistor R5, a resistor R6, a protection tube ESD3 and a protection tube ESD4. The power supply end is connected to one end of the capacitor C948 and the camera connector J8 through the magnetic bead FB2, and the other end of the capacitor C948 is grounded; the data pin of the camera connector J8 is connected to the USB pin of the main control module through the resistor R5 and the resistor R6, and is grounded through the protection tube ESD3 and the protection tube ESD4.

3. The projector based on omnidirectional trapezoidal technology according to claim 1 or 2, characterized in that: The step S1 comprises the following sub-steps: Step S101, projecting a preset feature map through the optical lens of the projector, and then photographing a plurality of feature maps at different positions and angles as calibration images through the camera module; Step S102, performing corner detection on each calibration image through the findChessboardCorners() function of the visual learning software, and returning the detection result; Step S103, performing sub-pixel processing on the detected corner points through the cornerSubPix() function of the visual learning software to obtain the coordinates of the corner points; Step S104, calculating the line lengths of the four corner points of each calibration image, then identifying the middle chessboard, establishing an image space coordinate system and a camera coordinate system, and matching the corner point coordinates detected in each calibration image with the three-dimensional coordinates of the camera coordinate system, so as to determine the distortion of the calibration image and the projection matrix of the camera; Step S105, using the calibrationMatrixValues() function of the visual learning software to perform accuracy evaluation on the transformation matrix, where the transformation matrix refers to the conversion matrix between the image space coordinate system and the camera coordinate system, so as to obtain the offset value between the projector optical lens and the camera center axis, and the relationship between the transformation matrix and the five feature maps is used to form the device posture parameters with the left and right angles of the orthographic projection being 0, which are used as the parameter information of the feature points in the feature map; Step S106, saving the parameter information to a storage module.

4. The projector based on omnidirectional trapezoidal technology according to claim 1 or 2, characterized in that: In the step S2, after reading the data of the gyroscope module, the angle information of the projector rotating around the X-axis, Y-axis and Z-axis is obtained, and the angle information of the three axes is weighted and superimposed to obtain the rotation angle information of the projector, the sum of the weights of the three axes is 1, and the rotation angle information within 3 seconds is calculated, and the rotation angle information is used as the data jitter change value. When the data jitter change value exceeds a preset threshold, the omnidirectional trapezoidal function is triggered.

5. The projector based on omnidirectional trapezoidal technology according to claim 1 or 2, characterized in that: After triggering the omnidirectional trapezoidal function, the following triggering steps are included: Step A1, calling the gyroscope module to measure the rotation speed and angle of the projector, and parsing the read raw data into angle values ​​of the three axes of Roll, Pitch and Yaw according to the data format and rules of the gyroscope module; Step A2, determining the projector posture according to the angle values ​​of the three axes of Roll, Pitch and Yaw; Step A3, determining the rotation angle and pitch angle of the projector according to the projector posture, where Roll represents the rotation angle of the projector around the X-axis, Pitch represents the rotation angle of the projector around the Y-axis, and Yaw represents the rotation angle of the projector around the Z-axis; Jump to step S3.

6. The projector based on omnidirectional trapezoidal technology according to claim 1 or 2, characterized in that: The step S4 comprises the following sub-steps: Step S401, first obtain a calibration image, and shoot a preset feature map through a camera module; Step S402, performing corner detection on the image through findChessboardCorners() function of visual learning software; Step S403, the detected corner points are processed at sub-pixel level by using the cornerSubPix() function of the visual learning software; Step S404, according to the coordinates of the feature points in the calibration image, the lengths of four lines of each feature map are obtained by calculating the distance between every two adjacent feature points; Step S405, calculating the side length of the middle chessboard grid using the detected feature point coordinates.

7. The projector based on omnidirectional trapezoidal technology according to claim 1 or 2, characterized in that: The step S6 comprises the following sub-steps: Step S601, setting the coordinate information of the four corner points of the characteristic graph to (x1, y1, z1), (x2, y2, z2), (x3, y3, z3) and (x4, y4, z4), and setting the relationship matrix R between the four corner points and the camera space coordinate system; Step S602, calculating the coordinate d of the first corner point restored to a left-right angle of 0 by the formula d = R * [xyz]', where [xyz]' represents the column vector corresponding to the relationship matrix R; Step S603, returning to step S602, replacing the coordinates with the coordinates of the remaining corner points respectively, and calculating the coordinates e, f and g of the remaining three corner points in the camera space coordinate system; Step S604, using the four corner point coordinates d, e, f and g calculated in step S602 and step S603, the angle and direction relationship between the five feature graphs are calculated by using the trigonometric relationship and the comparison of the line lengths; Step S605, determining the posture between the feature images according to the angle and direction relationship obtained in step S604, and storing the posture information as a one-dimensional matrix R_hat.

8. The projector based on omnidirectional trapezoidal technology according to claim 7, characterized in that: The step S7 comprises the following sub-steps: Step S701, converting the posture matrix R_hat into a quaternion form through the cv:Rodrigues function; Step S702, normalizing the quaternion to obtain a normalized vector V, V = (Vx, Vy, Vz); Step S703, by formula ||V|| = sqrt(Vx 2 + Vy 2 + Vz 2 ) Calculate the modulus ||V|| of vector V; Step S704, calculating the angle angle_x between the x-axis component and the modulus length of the vector V by using the formula angle_x= arccos(Vx / ||V||); Step S705, calculating the angle angle_y between the y-axis component and the modulus length of the vector V by using the formula angle_y = arccos(Vy / ||V||); Step S706, calculating the angle angle_z between the z-axis component and the modulus length of the vector V by using the formula angle_z = arccos(Vz / ||V||); Step S707: Using the angle angle_z as the left and right angles of the projector, and setting the angle angle_x, angle angle_y and angle angle_z as omnidirectional trapezoidal parameters of the projector image.